CN113763972B - Method, device, equipment and computer storage medium for adjusting audio parameters - Google Patents

Method, device, equipment and computer storage medium for adjusting audio parameters Download PDF

Info

Publication number
CN113763972B
CN113763972B CN202010487821.8A CN202010487821A CN113763972B CN 113763972 B CN113763972 B CN 113763972B CN 202010487821 A CN202010487821 A CN 202010487821A CN 113763972 B CN113763972 B CN 113763972B
Authority
CN
China
Prior art keywords
audio
domain data
frequency domain
preset
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010487821.8A
Other languages
Chinese (zh)
Other versions
CN113763972A (en
Inventor
王渊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Group Terminal Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Group Terminal Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Communications Group Terminal Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010487821.8A priority Critical patent/CN113763972B/en
Publication of CN113763972A publication Critical patent/CN113763972A/en
Application granted granted Critical
Publication of CN113763972B publication Critical patent/CN113763972B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/003Changing voice quality, e.g. pitch or formants
    • G10L21/007Changing voice quality, e.g. pitch or formants characterised by the process used

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computational Linguistics (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Tone Control, Compression And Expansion, Limiting Amplitude (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the invention provides a method, a device, equipment and a computer storage medium for adjusting audio parameters. The method comprises the following steps: acquiring frequency domain data of audio in a preset time period in the audio being played; filtering the frequency domain data according to a first preset threshold to obtain first frequency domain data; filtering the first frequency domain data according to a second preset threshold to obtain second frequency domain data; and adjusting the audio parameters of the audio playing device according to the second frequency domain data and the preset adjusting parameters. The method for adjusting the audio parameters can automatically adjust the audio parameters of the playing equipment according to the characteristics of different music.

Description

音频参数调整的方法、装置、设备及计算机存储介质Method, device, equipment and computer storage medium for adjusting audio parameters

技术领域Technical Field

本发明属于声学领域,尤其涉及一种音频参数调整的方法、装置、设备及计算机存储介质。The present invention belongs to the field of acoustics, and in particular relates to a method, a device, a equipment and a computer storage medium for adjusting audio parameters.

背景技术Background technique

目前,越来越多的设备能够播放音乐,这些设备的音乐音频参数是在出厂前,由研发工程师针对设备本身的音腔、电路设计调试的音频参数。例如,在设备出厂前,厂商根据设备本身的结构性能,电路性能调试出的音乐效果,再根据大量测试确定设备出场的最终的音乐效果。At present, more and more devices can play music. The music audio parameters of these devices are the audio parameters designed and debugged by R&D engineers based on the sound cavity and circuit design of the device itself before leaving the factory. For example, before the device leaves the factory, the manufacturer debugs the music effect based on the structural performance and circuit performance of the device itself, and then determines the final music effect of the device based on a large number of tests.

但是这种由厂商设置音频参数的方法,无法根据不同的音乐的进行定制调试,只能设置一个通用的音乐参数。这样很难体现出不同音乐的音乐效果,所以,需要一种方法能够针对不同音乐的进行音频参数的调整。However, this method of setting audio parameters by the manufacturer cannot be customized according to different music, and can only set a universal music parameter. In this way, it is difficult to reflect the music effects of different music, so a method is needed to adjust the audio parameters for different music.

发明内容Summary of the invention

本发明实施例提供一种音频参数调整的方法、装置、设备及计算机存储介质,能够自主根据不同音乐的特征,调整播放设备的音频参数。The embodiments of the present invention provide a method, apparatus, device and computer storage medium for adjusting audio parameters, which can autonomously adjust the audio parameters of a playback device according to the characteristics of different music.

第一方面,本发明实施例提供一种音频参数调整的方法,方法应用于音频播放设备,方法包括:获取正在播放的音频中预设时间段内的音频的频域数据;In a first aspect, an embodiment of the present invention provides a method for adjusting audio parameters, the method being applied to an audio playback device, the method comprising: obtaining frequency domain data of audio within a preset time period in the audio being played;

根据第一预设门限,对频域数据进行滤波,获得第一频域数据;以及,根据第二预设门限,对第一频域数据进行滤波,获得第二频域数据;According to a first preset threshold, filtering the frequency domain data to obtain first frequency domain data; and according to a second preset threshold, filtering the first frequency domain data to obtain second frequency domain data;

根据第二频域数据和预设调整参数,调整音频播放设备的音频参数。The audio parameters of the audio playback device are adjusted according to the second frequency domain data and the preset adjustment parameters.

在第一方面的一些可实现方式中,预设调整参数包括预设频宽和增益参数;In some implementations of the first aspect, the preset adjustment parameters include preset bandwidth and gain parameters;

根据第二频域数据和预设调整参数,调整音频播放设备的音频参数,包括:Adjusting the audio parameters of the audio playback device according to the second frequency domain data and the preset adjustment parameters includes:

获取第二频域数据的频宽;Acquire the frequency bandwidth of the second frequency domain data;

若第二频域数据的频宽大于预设频宽,则获取第二频域数据所在的频段;If the bandwidth of the second frequency domain data is greater than the preset bandwidth, obtaining the frequency band where the second frequency domain data is located;

根据增益参数,调高第二频域数据所在频段的音频参数。According to the gain parameter, the audio parameter of the frequency band where the second frequency domain data is located is increased.

在第一方面的一些可实现方式中,若第二频域数据的频宽小于或等于预设频宽,则获取第一频域数据所在的频段;In some implementations of the first aspect, if the bandwidth of the second frequency domain data is less than or equal to the preset bandwidth, a frequency band where the first frequency domain data is located is acquired;

根据益参数,调高所述第一频域数据所在频段的音频参数。According to the gain parameter, the audio parameter of the frequency band where the first frequency domain data is located is adjusted higher.

在第一方面的一些可实现方式中,第一预设门限小于第二预设门限。In some implementations of the first aspect, the first preset threshold is smaller than the second preset threshold.

在第一方面的一些可实现方式中,获取正在播放的音频中预设时间段内的音频的频域数据,包括:获取正在播放的音频中预设时间段内的音频的时域数据;对时域数据进行傅里叶变换得到频域数据。In some implementations of the first aspect, obtaining frequency domain data of audio within a preset time period in the audio being played includes: obtaining time domain data of audio within a preset time period in the audio being played; and performing Fourier transform on the time domain data to obtain frequency domain data.

第二方面,本发明实施例提供了一种音频参数调整的装置,装置包括:获取模块,用于获取正在播放的音频中预设时间段内的音频的频域数据;In a second aspect, an embodiment of the present invention provides a device for adjusting audio parameters, the device comprising: an acquisition module, configured to acquire frequency domain data of audio within a preset time period in the audio being played;

滤波模块,用于根据第一预设门限,对频域数据进行滤波,获得第一频域数据;以及,根据第二预设门限,对第一频域数据进行滤波,获得第二频域数据;A filtering module, configured to filter the frequency domain data according to a first preset threshold to obtain first frequency domain data; and to filter the first frequency domain data according to a second preset threshold to obtain second frequency domain data;

调参模块,用于根据第二频域数据和预设调整参数,调整音频播放设备的音频参数。The parameter adjustment module is used to adjust the audio parameters of the audio playback device according to the second frequency domain data and preset adjustment parameters.

在第二方面的一些可实现方式中,预设调整参数包括预设频宽和增益参数;In some implementations of the second aspect, the preset adjustment parameters include preset bandwidth and gain parameters;

调参模块,用于获取第二频域数据的频宽;A parameter adjustment module, used for obtaining the bandwidth of the second frequency domain data;

若第二频域数据的频宽大于预设频宽,则调参模块,还用于获取第二频域数据所在的频段;根据增益参数,调高第二频域数据所在频段的音频参数。If the bandwidth of the second frequency domain data is greater than the preset bandwidth, the parameter adjustment module is further used to obtain the frequency band where the second frequency domain data is located; and increase the audio parameters of the frequency band where the second frequency domain data is located according to the gain parameter.

在第二方面的一些可实现方式中,若第二频域数据的频宽小于或等于预设频宽,则调参模块,还用于获取第一频域数据所在的频段;根据所述增益参数,调高所述第一频域数据所在频段的音频参数。In some implementation methods of the second aspect, if the bandwidth of the second frequency domain data is less than or equal to the preset bandwidth, the parameter adjustment module is also used to obtain the frequency band where the first frequency domain data is located; and according to the gain parameter, increase the audio parameters of the frequency band where the first frequency domain data is located.

第三方面,本发明提供一种音频参数调整设备,该设备包括:处理器以及存储有计算机程序指令的存储器;处理器执行计算机程序指令时实现第一方面或者第一方面任一可实现方式中所述的音频参数调整的方法。In a third aspect, the present invention provides an audio parameter adjustment device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, it implements the audio parameter adjustment method described in the first aspect or any implementable method of the first aspect.

第四方面,本发明提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序指令,计算机程序指令被处理器执行时实现第一方面或者第一方面任一可实现方式中所述的音频参数调整的方法。In a fourth aspect, the present invention provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the method for adjusting audio parameters described in the first aspect or any implementable manner of the first aspect.

本发明实施例提供了一种音频参数调整的方法,对用户当前正在播放的音频的频域数据,首先,通过对频域数据进行两次不同预设门限的滤波,获得滤波后的频域数据,使得当前正在播放的音频的频域数据的分析更加准确。然后,根据预设频宽和滤波后的频域数据,确定当前正在播放的音频的频段,再结合符合用户喜好的增益参数,确定播放当前正在播放的音频的音频参数,能够针对当前音乐的频率特点进行实时调整音频参数使当前播放的音乐更加好听。The embodiment of the present invention provides a method for adjusting audio parameters. For the frequency domain data of the audio currently being played by the user, first, the frequency domain data is filtered twice with different preset thresholds to obtain the filtered frequency domain data, so that the analysis of the frequency domain data of the audio currently being played is more accurate. Then, according to the preset bandwidth and the filtered frequency domain data, the frequency band of the audio currently being played is determined, and then the audio parameters of the audio currently being played are determined in combination with the gain parameters that meet the user's preferences. The audio parameters can be adjusted in real time according to the frequency characteristics of the current music to make the currently played music more pleasant to listen to.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单的介绍,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solution of the embodiment of the present invention, the following is a brief introduction to the drawings required for use in the embodiment of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

图1是本发明实施例提供的一种音频播放流程示意图;FIG1 is a schematic diagram of an audio playback process provided by an embodiment of the present invention;

图2是本发明实施例提供的音频参数调整的方法的流程示意图;FIG2 is a schematic flow chart of a method for adjusting audio parameters provided by an embodiment of the present invention;

图3是本发明实施例提供的一种频域能量分布示意图;FIG3 is a schematic diagram of frequency domain energy distribution provided by an embodiment of the present invention;

图4是本发明实施例提供的另一种音频播放流程示意图;FIG4 is a schematic diagram of another audio playback process provided by an embodiment of the present invention;

图5是本发明实施例提供的一种音频参数调整装置的结构示意图FIG. 5 is a schematic diagram of the structure of an audio parameter adjustment device provided by an embodiment of the present invention

图6是本发明实施例提供的一种音频参数调整设备的结构示意图。FIG. 6 is a schematic diagram of the structure of an audio parameter adjustment device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将详细描述本发明的各个方面的特征和示例性实施例,为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及具体实施例,对本发明进行进一步详细描述。应理解,此处所描述的具体实施例仅被配置为解释本发明,并不被配置为限定本发明。对于本领域技术人员来说,本发明可以在不需要这些具体细节中的一些细节的情况下实施。下面对实施例的描述仅仅是为了通过示出本发明的示例来提供对本发明更好的理解。The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

目前,越来越多的设备能够播放音乐,这些设备的音乐音频参数是在出厂前,由研发工程师针对设备本身的音腔、电路设计调试的音频参数。例如,在设备出厂前,厂商根据设备本身的结构性能,电路性能调试出的音乐效果,再根据大量测试确定设备出场的最终的音乐效果。At present, more and more devices can play music. The music audio parameters of these devices are the audio parameters designed and debugged by R&D engineers based on the sound cavity and circuit design of the device itself before leaving the factory. For example, before the device leaves the factory, the manufacturer debugs the music effect based on the structural performance and circuit performance of the device itself, and then determines the final music effect of the device based on a large number of tests.

图1示出了一种常见的音频播放流程,数字信号处理(Digital Signal Process,DSP)获取音频传送给音频处理芯片,例如编码解码器(Codec),经音频处理芯片处理后直接传送给喇叭进行播放。这种由厂商设置音频参数的方法,无法根据不同的音乐的进行定制调试,只能设置一个通用的音乐播放参数。这样很难体现出不同音乐的音乐效果,所以,需要一种方法能够针对不同音乐的进行音频参数的调整。Figure 1 shows a common audio playback process. The digital signal processing (DSP) obtains the audio and transmits it to the audio processing chip, such as the codec. After being processed by the audio processing chip, it is directly transmitted to the speaker for playback. This method of setting audio parameters by the manufacturer cannot be customized according to different music, and can only set a universal music playback parameter. In this way, it is difficult to reflect the musical effects of different music. Therefore, a method is needed to adjust the audio parameters for different music.

为了解决现有技术问题,本发明实施例提供了一种音频参数调整的方法、装置、设备及计算机存储介质。能够自主根据不同音乐的特征,调整播放设备的音频参数。下面首先对本发明实施例所提供的音频参数调整的方法进行介绍。In order to solve the problems of the prior art, the embodiments of the present invention provide a method, device, equipment and computer storage medium for adjusting audio parameters. The audio parameters of a playback device can be adjusted autonomously according to the characteristics of different music. The method for adjusting audio parameters provided by the embodiments of the present invention is first introduced below.

图2示出了本发明一个实施例提供的音频参数调整的方法的流程示意图。图2所示的音频参数调整的方法应用于音频播放设备,如图2所示,该方法可以包括以下步骤:FIG2 is a flow chart showing a method for adjusting audio parameters provided by an embodiment of the present invention. The method for adjusting audio parameters shown in FIG2 is applied to an audio playback device. As shown in FIG2 , the method may include the following steps:

S210、获取正在播放的音频中预设时间段内的音频的频域数据。S210: Obtain frequency domain data of the audio in a preset time period of the audio being played.

在一些实施例中,音频播放系统可以获取到正在播放的音频,为了实现实时的对正在播放的音频进行音频参数的调整,音频播放设备可以获取预设时间段内的音频的频域数据。In some embodiments, the audio playback system may obtain the audio being played. In order to adjust the audio parameters of the audio being played in real time, the audio playback device may obtain the frequency domain data of the audio within a preset time period.

当用户大量播放音乐时候,音频播放系统会统计出用户播放的音频在频率能量较为集中的频段,根据统计数据,音频播放系统可以自动调整所记录的频率的幅值。When a user plays a large amount of music, the audio playback system will count the frequency bands where the frequency energy of the audio played by the user is more concentrated. Based on the statistical data, the audio playback system can automatically adjust the amplitude of the recorded frequency.

在一些实施例中,可选的,通过获取正在播放的音频中预设时间段内的音频的时域数据;对时域数据进行傅里叶变换得到频域数据。In some embodiments, optionally, by acquiring time domain data of audio within a preset time period in the audio being played; Fourier transform is performed on the time domain data to obtain frequency domain data.

其中,预设时间段可以是5秒、10秒等时间段。The preset time period may be 5 seconds, 10 seconds, etc.

在一些实施例中,例如,音频中预设时间段内可以是音频播放时的前10秒。In some embodiments, for example, the preset time period in the audio may be the first 10 seconds of the audio playback.

S220、根据第一预设门限,对频域数据进行滤波,获得第一频域数据。S220. Filter the frequency domain data according to a first preset threshold to obtain first frequency domain data.

S230、根据第二预设门限,对第一频域数据进行滤波,获得第二频域数据。S230. Filter the first frequency domain data according to a second preset threshold to obtain second frequency domain data.

在一些实施例中,第一预设门限小于第二预设门限。In some embodiments, the first preset threshold is less than the second preset threshold.

预设时间段内的音频在第一预设门限后,获得第一频域数据,也就是正在播放的音频的在第一预设门限滤波后的频域能量分布。音频播放系统会保留第一预设门限滤波后的频域能量分布。并根据第二预设门限,对第一频域数据进行第二次滤波,获得第二频域数据,也就是第二预设门限对第一频域数据滤波后的频域能量分布。After the first preset threshold, the audio in the preset time period obtains the first frequency domain data, that is, the frequency domain energy distribution of the audio being played after filtering at the first preset threshold. The audio playback system will retain the frequency domain energy distribution after filtering at the first preset threshold. And according to the second preset threshold, the first frequency domain data is filtered for the second time to obtain the second frequency domain data, that is, the frequency domain energy distribution after filtering the first frequency domain data at the second preset threshold.

S240、根据第二频域数据和预设调整参数,调整音频播放设备的音频参数。S240: Adjust audio parameters of the audio playback device according to the second frequency domain data and preset adjustment parameters.

在一些实施例中,预设调整参数可以包括预设频宽和增益参数。可选的,根据第二频域数据和预设调整参数,调整音频播放设备的音频参数,包括:获取第二频域数据的频宽;若第二频域数据的频宽大于预设频宽,则获取第二频域数据所在的频段;根据增益参数,调高第二频域数据所在频段的音频参数。In some embodiments, the preset adjustment parameters may include preset bandwidth and gain parameters. Optionally, adjusting the audio parameters of the audio playback device according to the second frequency domain data and the preset adjustment parameters includes: obtaining the bandwidth of the second frequency domain data; if the bandwidth of the second frequency domain data is greater than the preset bandwidth, obtaining the frequency band where the second frequency domain data is located; and increasing the audio parameters of the frequency band where the second frequency domain data is located according to the gain parameter.

作为一个具体的示例,结合图3所示的音频的频域能量分布图,首先,预设时间段内的音频的频域数据在经过两次预设门限值的滤波后得到频域能量分布,若此时的频域能量分布的频宽大于预设频宽,则音频播放系统能够记录此时频域能量分布具体再哪个频段,可选的,将该频段作为正在播放的音频的音频特征。然后,音频播放系统会根据增益参数确定该频段数据输出的能量,并将该频段在调高增益参数后的音频参数,作为音频播放设备播放正在播放的音频的音频参数。As a specific example, in conjunction with the frequency domain energy distribution diagram of the audio shown in FIG3, first, the frequency domain data of the audio within the preset time period is filtered twice with a preset threshold value to obtain a frequency domain energy distribution. If the bandwidth of the frequency domain energy distribution at this time is greater than the preset bandwidth, the audio playback system can record the specific frequency band of the frequency domain energy distribution at this time, and optionally use the frequency band as the audio feature of the audio being played. Then, the audio playback system determines the energy output of the frequency band data according to the gain parameter, and uses the audio parameters of the frequency band after the gain parameter is increased as the audio parameters of the audio playback device playing the audio being played.

可以理解的是,用户可以根据自己的喜好对增益参数进行设定。It is understandable that the user can set the gain parameter according to his or her own preferences.

在一些实施例中,若第二频域数据的频宽小于或等于预设频宽,则获取第一频域数据所在的频段;根据增益参数,调高所述第一频域数据所在频段的音频参数。In some embodiments, if the bandwidth of the second frequency domain data is less than or equal to the preset bandwidth, the frequency band where the first frequency domain data is located is obtained; and the audio parameters of the frequency band where the first frequency domain data is located are increased according to the gain parameter.

作为一个具体的示例,预设时间段内的音频的频域数据在经过两次预设门限值的滤波后得到频域能量分布小于或等于预设频宽,则音频播放系统会获取第一预设门限滤波后保留的频域能量分布具体所在的频段,可选的,将该频段作为正在播放的音频的音频特征。然后,音频播放系统会根据增益参数提高该频段的数据输出的能量,并将该频段在调高增益参数后的音频参数,作为音频播放设备播放正在播放的音频的音频参数。As a specific example, if the frequency domain data of the audio within the preset time period is filtered twice with a preset threshold value and the frequency domain energy distribution is less than or equal to the preset bandwidth, the audio playback system will obtain the specific frequency band where the frequency domain energy distribution is retained after the first preset threshold filtering, and optionally use the frequency band as the audio feature of the audio being played. Then, the audio playback system will increase the energy of the data output of the frequency band according to the gain parameter, and use the audio parameters of the frequency band after the gain parameter is increased as the audio parameters of the audio being played by the audio playback device.

在一些实施例中,预设频宽例如可以是300HZ,可以理解的是,预设频宽可以根据用户的喜好进行设定。In some embodiments, the preset bandwidth may be, for example, 300 Hz. It will be appreciated that the preset bandwidth may be set according to user preferences.

图4是基于本发明实施例提供的音频参数调整方法的音频播放流程示意图。如图4所示,数字信号处理器获取到预设时间段内的音频后,预设时间段内的音频先有音频滤波器对预设时间段内的音频进行两次滤波处理,然后再根据两次滤波处理的后的频域数据传回数字信号处理器,以用于数字信号处理器调整音频参数,最后,结合调整后的音频参数,和传送给音频处理芯片的预设时间段后的音频,编码解码器(Codec),再由编码解码器将预设时间段后的音频传送到喇叭进行播放。Fig. 4 is a schematic diagram of the audio playback process of the audio parameter adjustment method provided by the embodiment of the present invention. As shown in Fig. 4, after the digital signal processor obtains the audio within the preset time period, the audio within the preset time period is first filtered twice by the audio filter, and then the frequency domain data after the two filtering processes are returned to the digital signal processor for the digital signal processor to adjust the audio parameters, and finally, the audio parameters after the adjustment are combined with the audio after the preset time period transmitted to the audio processing chip, the codec (Codec), and then the codec transmits the audio after the preset time period to the speaker for playback.

本发明实施例提供了的音频参数调整的方法,对用户当前正在播放的音频的频域数据,首先,通过对频域数据进行两次不同预设门限的滤波,获得滤波后的频域数据,使得当前正在播放的音频的频域数据的分析更加准确。然后,根据预设频宽和滤波后的频域数据,确定当前正在播放的音频的频段,再结合符合用户喜好的增益参数,确定播放当前正在播放的音频的音频参数,能够针对当前音乐的频率特点进行实时调整音频参数使当前播放的音乐更加好听,更具特点。The embodiment of the present invention provides a method for adjusting audio parameters. For the frequency domain data of the audio currently being played by the user, first, the frequency domain data is filtered twice with different preset thresholds to obtain the filtered frequency domain data, so that the analysis of the frequency domain data of the audio currently being played is more accurate. Then, according to the preset bandwidth and the filtered frequency domain data, the frequency band of the audio currently being played is determined, and then the audio parameters of the audio currently being played are determined in combination with the gain parameters that meet the user's preferences. The audio parameters can be adjusted in real time according to the frequency characteristics of the current music to make the currently playing music more pleasant and more distinctive.

基于上述实施例提供的音频参数调整的方法,相应地,本申请还提供了一种音频参数调整装置。请参见以下实施例。Based on the audio parameter adjustment method provided in the above embodiment, the present application also provides an audio parameter adjustment device accordingly. Please refer to the following embodiment.

图5是本发明实施例提供的一种音频参数调整装置的结构示意图,如图5所示,该音频参数调整装置可以包括:获取模块501、滤波模块502、调参模块503。FIG5 is a schematic diagram of the structure of an audio parameter adjustment device provided by an embodiment of the present invention. As shown in FIG5 , the audio parameter adjustment device may include: an acquisition module 501 , a filtering module 502 , and a parameter adjustment module 503 .

具体的,获取模块501,用于获取正在播放的音频中预设时间段内的音频的频域数据。Specifically, the acquisition module 501 is used to acquire frequency domain data of the audio in a preset time period of the audio being played.

滤波模块502,用于根据第一预设门限,对频域数据进行滤波,获得第一频域数据;以及,根据第二预设门限,对第一频域数据进行滤波,获得第二频域数据。The filtering module 502 is used to filter the frequency domain data according to a first preset threshold to obtain first frequency domain data; and to filter the first frequency domain data according to a second preset threshold to obtain second frequency domain data.

调参模块503,用于根据第二频域数据和预设调整参数,调整音频播放设备的音频参数。The parameter adjustment module 503 is used to adjust the audio parameters of the audio playback device according to the second frequency domain data and the preset adjustment parameters.

在一些实施例中,预设调整参数包括预设频宽和增益参数;调参模块330,用于获取第二频域数据的频宽;若第二频域数据的频宽大于预设频宽,则调参模块,还用于获取第二频域数据所在的频段;根据增益参数,调高第二频域数据所在频段的音频参数。In some embodiments, the preset adjustment parameters include preset bandwidth and gain parameters; the parameter adjustment module 330 is used to obtain the bandwidth of the second frequency domain data; if the bandwidth of the second frequency domain data is greater than the preset bandwidth, the parameter adjustment module is also used to obtain the frequency band where the second frequency domain data is located; according to the gain parameter, the audio parameters of the frequency band where the second frequency domain data is located are adjusted up.

在一些实施例中,若第二频域数据的频宽小于或等于预设频宽,则调参模块503,还用于获取第一频域数据所在的频段;根据所述增益参数,调高所述第一频域数据所在频段的音频参数。In some embodiments, if the bandwidth of the second frequency domain data is less than or equal to the preset bandwidth, the parameter adjustment module 503 is also used to obtain the frequency band where the first frequency domain data is located; and increase the audio parameters of the frequency band where the first frequency domain data is located according to the gain parameter.

在一些实施例中,第一预设门限小于第二预设门限。In some embodiments, the first preset threshold is less than the second preset threshold.

在一些实施例中,获取模块501,用于获取正在播放的音频中预设时间段内的音频的时域数据;对时域数据进行傅里叶变换得到频域数据。In some embodiments, the acquisition module 501 is used to acquire time domain data of the audio in a preset time period in the audio being played; and perform Fourier transform on the time domain data to obtain frequency domain data.

可以理解的是,本发明实施例的音频参数调整装置,可以对应于本发明实施例中的音频参数调整方法的执行主体,音频参数调整装置的各个模块/单元的操作和/或功能的具体细节可以参见上述本发明实施例的音频参数调整方法中的相应部分的描述,为了简洁,在此不再赘述。It can be understood that the audio parameter adjustment device in the embodiment of the present invention can correspond to the execution entity of the audio parameter adjustment method in the embodiment of the present invention. The specific details of the operation and/or function of each module/unit of the audio parameter adjustment device can be found in the description of the corresponding parts in the audio parameter adjustment method in the above-mentioned embodiment of the present invention. For the sake of brevity, they will not be repeated here.

本发明实施例提供的音频参数调整装置,对用户当前正在播放的音频的频域数据,首先,通过对频域数据进行两次不同预设门限的滤波,获得滤波后的频域数据,使得当前正在播放的音频的频域数据的分析更加准确。然后,根据预设频宽和滤波后的频域数据,确定当前正在播放的音频的频段,再结合符合用户喜好的增益参数,确定播放当前正在播放的音频的音频参数,能够针对当前音乐的频率特点进行实时调整音频参数使当前播放的音乐更加好听,更具特点。The audio parameter adjustment device provided in the embodiment of the present invention, for the frequency domain data of the audio currently being played by the user, first, filters the frequency domain data twice with different preset thresholds to obtain the filtered frequency domain data, so that the analysis of the frequency domain data of the audio currently being played is more accurate. Then, according to the preset bandwidth and the filtered frequency domain data, the frequency band of the audio currently being played is determined, and then combined with the gain parameters that meet the user's preferences, the audio parameters of the audio currently being played are determined, and the audio parameters can be adjusted in real time according to the frequency characteristics of the current music to make the currently played music more pleasant and more distinctive.

图6是本发明实施例提供的一种音频参数调整设备的硬件结构示意图。FIG. 6 is a schematic diagram of the hardware structure of an audio parameter adjustment device provided by an embodiment of the present invention.

如图6所示,本实施例中的音频参数调整设备600包括输入设备601、输入接口602、中央处理器603、存储器604、输出接口605、以及输出设备606。其中,输入接口602、中央处理器603、存储器604、以及输出接口605通过总线610相互连接,输入设备601和输出设备606分别通过输入接口602和输出接口605与总线610连接,进而与音频参数调整设备的其他组件连接。As shown in Fig. 6, the audio parameter adjustment device 600 in this embodiment includes an input device 601, an input interface 602, a central processing unit 603, a memory 604, an output interface 605, and an output device 606. The input interface 602, the central processing unit 603, the memory 604, and the output interface 605 are interconnected via a bus 610, and the input device 601 and the output device 606 are connected to the bus 610 via the input interface 602 and the output interface 605, respectively, and then connected to other components of the audio parameter adjustment device.

具体地,输入设备601接收来自外部的输入信息,并通过输入接口602将输入信息传送到中央处理器603;中央处理器603基于存储器604中存储的计算机可执行指令对输入信息进行处理以生成输出信息,将输出信息临时或者永久地存储在存储器604中,然后通过输出接口605将输出信息传送到输出设备606;输出设备606将输出信息输出到音频参数调整设备的外部供用户使用。Specifically, the input device 601 receives input information from the outside and transmits the input information to the central processing unit 603 through the input interface 602; the central processing unit 603 processes the input information based on the computer executable instructions stored in the memory 604 to generate output information, temporarily or permanently stores the output information in the memory 604, and then transmits the output information to the output device 606 through the output interface 605; the output device 606 outputs the output information to the outside of the audio parameter adjustment device for user use.

也就是说,图6所示的音频参数调整设备也可以被实现为包括:存储有计算机可执行指令的存储器;以及处理器,该处理器在执行计算机可执行指令时可以实现结合本发明实例描述的音频参数调整方法。That is, the audio parameter adjustment device shown in FIG. 6 may also be implemented to include: a memory storing computer executable instructions; and a processor, which can implement the audio parameter adjustment method described in conjunction with the example of the present invention when executing the computer executable instructions.

在一个实施例中,图6所示的音频参数调整设备包括:存储器604,用于存储程序;处理器603,用于运行存储器中存储的程序,以执行本发明实施例提供的音频参数调整方法。In one embodiment, the audio parameter adjustment device shown in FIG. 6 includes: a memory 604 for storing programs; and a processor 603 for running the programs stored in the memory to execute the audio parameter adjustment method provided in the embodiment of the present invention.

本发明实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序指令;该计算机程序指令被处理器执行时实现本发明实施例提供的音频参数调整方法。The embodiment of the present invention further provides a computer-readable storage medium, on which computer program instructions are stored; when the computer program instructions are executed by a processor, the audio parameter adjustment method provided by the embodiment of the present invention is implemented.

需要明确的是,本发明并不局限于上文所描述并在图中示出的特定配置和处理。为了简明起见,这里省略了对已知方法的详细描述。在上述实施例中,描述和示出了若干具体的步骤作为示例。但是,本发明的方法过程并不限于所描述和示出的具体步骤,本领域的技术人员可以在领会本发明的精神后,做出各种改变、修改和添加,或者改变步骤之间的顺序。It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

以上所述的结构框图中所示的功能块可以实现为硬件、软件、固件或者它们的组合。当以硬件方式实现时,其可以例如是电子电路、专用集成电路(Application SpecificIntegrated Circuit,ASIC)、适当的固件、插件、功能卡等等。当以软件方式实现时,本发明的元素是被用于执行所需任务的程序或者代码段。程序或者代码段可以存储在机器可读介质中,或者通过载波中携带的数据信号在传输介质或者通信链路上传送。“机器可读介质”可以包括能够存储或传输信息的任何介质。机器可读介质的例子包括电子电路、半导体存储器设备、只读存储器(Read-Only Memory,ROM)、闪存、可擦除ROM(EROM)、软盘、CD-ROM、光盘、硬盘、光纤介质、射频(Radio Frequency,RF)链路,等等。代码段可以经由诸如因特网、内联网等的计算机网络被下载。The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

还需要说明的是,本发明中提及的示例性实施例,基于一系列的步骤或者装置描述一些方法或系统。但是,本发明不局限于上述步骤的顺序,也就是说,可以按照实施例中提及的顺序执行步骤,也可以不同于实施例中的顺序,或者若干步骤同时执行。It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.

以上所述,仅为本发明的具体实施方式,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、模块和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。应理解,本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.

Claims (5)

1.一种音频参数调整的方法,其特征在于,应用于音频播放设备,包括:1. A method for adjusting audio parameters, characterized in that it is applied to an audio playback device, comprising: 获取正在播放的音频中预设时间段内的音频的频域数据;Obtain frequency domain data of the audio within a preset time period in the audio being played; 根据第一预设门限,对所述频域数据进行滤波,获得第一频域数据;According to a first preset threshold, filtering the frequency domain data to obtain first frequency domain data; 根据第二预设门限,对所述第一频域数据进行滤波,获得第二频域数据,所述第一预设门限小于所述第二预设门限;filtering the first frequency domain data according to a second preset threshold to obtain second frequency domain data, wherein the first preset threshold is less than the second preset threshold; 根据所述第二频域数据和预设调整参数,调整所述音频播放设备的音频参数,其中,所述预设调整参数包括预设频宽和增益参数;Adjusting audio parameters of the audio playback device according to the second frequency domain data and preset adjustment parameters, wherein the preset adjustment parameters include preset bandwidth and gain parameters; 所述根据所述第二频域数据和预设调整参数,调整所述音频播放设备的音频参数,包括:The step of adjusting the audio parameters of the audio playback device according to the second frequency domain data and the preset adjustment parameters includes: 获取所述第二频域数据的频宽;Acquire the frequency bandwidth of the second frequency domain data; 若所述第二频域数据的频宽大于所述预设频宽,则获取所述第二频域数据所在频段;If the bandwidth of the second frequency domain data is greater than the preset bandwidth, obtaining the frequency band where the second frequency domain data is located; 根据所述增益参数,调高所述第二频域数据所在频段的音频参数;According to the gain parameter, increasing the audio parameter of the frequency band where the second frequency domain data is located; 若所述第二频域数据的频宽小于或等于所述预设频宽,则获取所述第一频域数据所在频段;If the bandwidth of the second frequency domain data is less than or equal to the preset bandwidth, obtaining the frequency band where the first frequency domain data is located; 根据所述增益参数,调高所述第一频域数据所在频段的音频参数。According to the gain parameter, the audio parameter of the frequency band where the first frequency domain data is located is increased. 2.根据权利要求1所述的方法,其特征在于,所述获取正在播放的音频中预设时间段内的音频的频域数据,包括:2. The method according to claim 1, wherein obtaining frequency domain data of the audio in a preset time period of the audio being played comprises: 获取正在播放的音频中预设时间段内的音频的时域数据;Obtain the time domain data of the audio within a preset time period in the audio being played; 对所述时域数据进行傅里叶变换得到所述频域数据。Performing Fourier transform on the time domain data to obtain the frequency domain data. 3.一种音频参数调整的装置,其特征在于,所述装置包括:3. A device for adjusting audio parameters, characterized in that the device comprises: 获取模块,用于获取正在播放的音频中预设时间段内的音频的频域数据;An acquisition module, used to acquire frequency domain data of the audio in a preset time period in the audio being played; 滤波模块,用于根据第一预设门限,对所述频域数据进行滤波,获得第一频域数据;以及,根据第二预设门限,对所述第一频域数据进行滤波,获得第二频域数据,所述第一预设门限小于所述第二预设门限;a filtering module, configured to filter the frequency domain data according to a first preset threshold to obtain first frequency domain data; and filter the first frequency domain data according to a second preset threshold to obtain second frequency domain data, wherein the first preset threshold is less than the second preset threshold; 调参模块,用于根据所述第二频域数据和预设调整参数,提高音频播放设备的音频参数,其中,所述预设调整参数包括预设频宽和增益参数;A parameter adjustment module, configured to improve audio parameters of the audio playback device according to the second frequency domain data and preset adjustment parameters, wherein the preset adjustment parameters include preset bandwidth and gain parameters; 所述调参模块,还用于获取所述第二频域数据的频宽;The parameter adjustment module is further used to obtain the frequency bandwidth of the second frequency domain data; 若所述第二频域数据的频宽大于所述预设频宽,则所述调参模块,还用于获取所述第二频域数据所在频段;根据所述增益参数,调高所述第二频域数据所在频段的音频参数;If the bandwidth of the second frequency domain data is greater than the preset bandwidth, the parameter adjustment module is further used to obtain the frequency band where the second frequency domain data is located; and increase the audio parameter of the frequency band where the second frequency domain data is located according to the gain parameter; 若所述第二频域数据的频宽小于或等于所述预设频宽,则所述调参模块,还用于获取所述第一频域数据所在频段;根据所述增益参数,调高所述第一频域数据所在频段的音频参数。If the bandwidth of the second frequency domain data is less than or equal to the preset bandwidth, the parameter adjustment module is further used to obtain the frequency band where the first frequency domain data is located; and increase the audio parameters of the frequency band where the first frequency domain data is located according to the gain parameter. 4.一种音频参数调整设备,其特征在于,所述设备包括:处理器,以及存储有计算机程序指令的存储器;4. An audio parameter adjustment device, characterized in that the device comprises: a processor, and a memory storing computer program instructions; 所述处理器读取并执行所述计算机程序指令,以实现如权利要求1-2任意一项所述的音频参数调整方法。The processor reads and executes the computer program instructions to implement the audio parameter adjustment method according to any one of claims 1-2. 5.一种计算机存储介质,其特征在于,所述计算机存储介质上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现如权利要求1-2任意一项所述的音频参数调整方法。5. A computer storage medium, characterized in that computer program instructions are stored on the computer storage medium, and when the computer program instructions are executed by a processor, the audio parameter adjustment method according to any one of claims 1 to 2 is implemented.
CN202010487821.8A 2020-06-02 2020-06-02 Method, device, equipment and computer storage medium for adjusting audio parameters Active CN113763972B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010487821.8A CN113763972B (en) 2020-06-02 2020-06-02 Method, device, equipment and computer storage medium for adjusting audio parameters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010487821.8A CN113763972B (en) 2020-06-02 2020-06-02 Method, device, equipment and computer storage medium for adjusting audio parameters

Publications (2)

Publication Number Publication Date
CN113763972A CN113763972A (en) 2021-12-07
CN113763972B true CN113763972B (en) 2024-07-02

Family

ID=78782779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010487821.8A Active CN113763972B (en) 2020-06-02 2020-06-02 Method, device, equipment and computer storage medium for adjusting audio parameters

Country Status (1)

Country Link
CN (1) CN113763972B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104078050A (en) * 2013-03-26 2014-10-01 杜比实验室特许公司 Device and method for audio classification and audio processing
CN104079247A (en) * 2013-03-26 2014-10-01 杜比实验室特许公司 Equalizer controller and control method

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10276180B2 (en) * 2014-07-21 2019-04-30 Honeywell International Inc. Audio command adaptive processing system and method
CN104735528A (en) * 2015-03-02 2015-06-24 青岛海信电器股份有限公司 Sound effect matching method and device
US20170060520A1 (en) * 2015-09-01 2017-03-02 AudioCommon, Inc. Systems and methods for dynamically editable social media
CN105959792B (en) * 2016-04-28 2019-12-17 宇龙计算机通信科技(深圳)有限公司 Playing control method, device and system
CN106131751B (en) * 2016-08-31 2019-09-13 深圳市麦吉通科技有限公司 Audio processing method and audio output device
CN207854102U (en) * 2018-02-12 2018-09-11 咪咕音乐有限公司 Audio control device and microphone
CN108647006A (en) * 2018-05-14 2018-10-12 深圳市零度智控科技有限公司 Sound equipment play mode method of adjustment, stereo set and computer readable storage medium
CN108683969A (en) * 2018-05-14 2018-10-19 深圳市零度智控科技有限公司 Volume and audio method of adjustment, stereo set and computer readable storage medium
US10262674B1 (en) * 2018-06-26 2019-04-16 Capital One Services, Llc Doppler microphone processing for conference calls

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104078050A (en) * 2013-03-26 2014-10-01 杜比实验室特许公司 Device and method for audio classification and audio processing
CN104079247A (en) * 2013-03-26 2014-10-01 杜比实验室特许公司 Equalizer controller and control method

Also Published As

Publication number Publication date
CN113763972A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
CN112562624B (en) Active noise reduction filter design method, noise reduction method, system and electronic equipment
CN111798852B (en) Voice wakeup recognition performance test method, device, system and terminal equipment
CN112261229B (en) Bone conduction call equipment testing method, device and system
CN109360562A (en) Echo cancel method, device, medium and voice awakening method and equipment
CN113949968B (en) A frequency response correction method, electronic equipment and signal processing method
CN111796790B (en) A sound effect adjustment method, device, readable storage medium and terminal equipment
CN113555030B (en) Audio signal processing method, device and equipment
CN112562625B (en) Active noise reduction filter design method, noise reduction method, system and electronic equipment
WO2020083575A1 (en) Tuning method, manufacturing method, computer-readable storage medium and tuning system
WO2015058484A1 (en) Noise reducing earphone and noise reducing method thereof
US10984779B2 (en) Audio adjustment method and associated audio adjustment device for active noise cancellation
WO2023060793A1 (en) Noise reduction method, chip, chip module, and device
CN113763972B (en) Method, device, equipment and computer storage medium for adjusting audio parameters
CN116405823A (en) Intelligent audio denoising enhancement method for bone conduction earphone
CN109600697A (en) Method and device for determining terminal play quality
CN108605191B (en) Abnormal sound detection method and device
CN114866899B (en) Headset noise reduction method, headset device and computer readable storage medium
CN115022767A (en) Earphone wind noise reduction method and device, earphone and computer readable storage medium
CN114120951A (en) Adaptive noise reduction method, system, device and storage medium
CN109286869A (en) Sound effect adjustment method and device suitable for headphones
CN114613380B (en) A recording method, device, equipment and storage medium
CN114697801B (en) Audio glasses and audio signal processing method and storage medium thereof
CN118555530B (en) Hearing aid control method and system for treating severe tinnitus by multiple composite tones
CN111654798B (en) A method and system for automatically debugging a loudspeaker
CN116612737A (en) Method and system for generating audiometer narrowband masking noise

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant