CN106817324B - Frequency response correction method and device - Google Patents

Frequency response correction method and device Download PDF

Info

Publication number
CN106817324B
CN106817324B CN201510852446.1A CN201510852446A CN106817324B CN 106817324 B CN106817324 B CN 106817324B CN 201510852446 A CN201510852446 A CN 201510852446A CN 106817324 B CN106817324 B CN 106817324B
Authority
CN
China
Prior art keywords
signal
sound signal
sound
frequency
excitation
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
CN201510852446.1A
Other languages
Chinese (zh)
Other versions
CN106817324A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510852446.1A priority Critical patent/CN106817324B/en
Publication of CN106817324A publication Critical patent/CN106817324A/en
Application granted granted Critical
Publication of CN106817324B publication Critical patent/CN106817324B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/02Details ; arrangements for supplying electrical power along data transmission lines
    • H04L25/0202Channel estimation
    • H04L25/022Channel estimation of frequency response
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/006Networks other than PSTN/ISDN providing telephone service, e.g. Voice over Internet Protocol (VoIP), including next generation networks with a packet-switched transport layer

Abstract

The invention discloses a frequency response correction method, and belongs to the field of mobile communication. The method comprises the following steps: acquiring a sound signal to be corrected; acquiring the signal frequency and the signal amplitude of the sound signal; acquiring a target gain value of each frequency band of the sound signal from a corresponding relation between the signal amplitude and the gain value of the frequency band according to the signal frequency and the signal amplitude, wherein the target gain value of each frequency band is the gain value corresponding to the signal frequency and the signal amplitude; the audio signal is corrected based on the target gain values for the respective frequency bands of the audio signal. According to the invention, the gain value is respectively set for each frequency band sound signal under each signal amplitude, and the gain value is used for carrying out frequency response correction on the sound signal of the corresponding frequency band and the corresponding amplitude, so that the frequency response correction result is more stable, and the frequency response correction effect is improved.

Description

Frequency response correction method and device
Technical Field
The present invention relates to the field of mobile communications, and in particular, to a method and an apparatus for correcting a frequency response.
Background
With the development of communication technology, the application range of network communication has become wider and wider, and different from the traditional telephone service, the voice signal of network communication is transmitted through the network, and the bandwidth range of the voice signal is wider than that of the voice signal of the traditional telephone service, but the acoustic device in the voice communication device only performs frequency response correction on the narrow bandwidth range of the voice signal of the traditional telephone service before leaving the factory to reduce signal distortion, so that the frequency response correction of the acoustic device in the voice communication device before leaving the factory cannot meet the signal distortion requirement of the wide-bandwidth voice signal in network communication, and therefore, the frequency response correction of the voice signal in network communication is required to reduce signal distortion.
In the related art, a method for correcting a frequency response of a voice signal in a network call generally includes that a voice signal of one frequency corresponds to a unique gain value, and the gain value is used to correct the voice signal to be corrected of the corresponding frequency, so as to reduce signal distortion.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
the frequency response characteristics of the acoustic devices under the sound signals with the same frequency but different amplitudes are different, however, in the related art, the sound signals with different amplitudes and the same frequency are corrected by using the same gain value, which may cause the result of frequency response correction to be unstable and the effect of frequency response correction to be poor.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for frequency response correction. The technical scheme is as follows:
in one aspect, a method for correcting frequency response is provided, where the method includes:
acquiring a sound signal to be corrected;
acquiring the signal frequency and the signal amplitude of the sound signal;
acquiring a target gain value of each frequency band of the sound signal from a corresponding relation between a signal amplitude and a gain value of the frequency band according to the signal frequency and the signal amplitude, wherein the target gain value of each frequency band is a gain value corresponding to the signal frequency and the signal amplitude;
and correcting the sound signal according to the target gain value of each frequency band of the sound signal.
In another aspect, a frequency response correction apparatus is provided, the apparatus including:
6. an apparatus for frequency response correction, the apparatus comprising:
the first acquisition module is used for acquiring a sound signal to be corrected;
the second acquisition module is used for acquiring the signal frequency and the signal amplitude of the sound signal acquired by the first acquisition module;
a third obtaining module, configured to obtain, according to the signal frequency and the signal amplitude obtained by the second obtaining module, a target gain value of each frequency band of the sound signal from a correspondence between a signal amplitude and a gain value of the frequency band, where the target gain value of each frequency band is a gain value corresponding to the signal frequency and the signal amplitude;
and the correction module is used for correcting the sound signal acquired by the first acquisition module according to the target gain value of each frequency band of the sound signal acquired by the third acquisition module.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the gain value is set for each frequency band sound signal under each signal amplitude value, and the gain value is used for carrying out frequency response correction on the sound signal of the corresponding frequency band and the corresponding amplitude value, so that the frequency response correction result is more stable, and the frequency response correction effect is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a process of processing a voice signal in a conventional telephone service according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a process of voice signal processing in a network call according to an embodiment of the present invention.
Fig. 3 is a flowchart of a frequency response correction method according to an embodiment of the present invention.
Fig. 4 is a flowchart of a frequency response correction method according to an embodiment of the present invention.
Fig. 5A and 5B are schematic diagrams of excitation sound signals provided by the embodiment of the invention.
Fig. 6 shows the corresponding relationship between the amplitude of the excitation sound signal and the amplitude of the sound signal in 4 frequency bands according to the embodiment of the present invention.
Fig. 7A is a flowchart of processing a voice signal in an uplink process of the voice signal in a network call according to an embodiment of the present invention.
Fig. 7B is a flowchart illustrating processing of a voice signal during a downlink process of the voice signal in the network call according to an embodiment of the present invention.
Fig. 8 is a frequency response curve before and after the frequency response correction according to the embodiment of the present invention.
Fig. 9 is a schematic structural diagram of a frequency response correction apparatus according to an embodiment of the present invention.
Fig. 10 is a schematic structural diagram of a frequency response correction apparatus according to an embodiment of the present invention.
Fig. 11 is a block diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention provides a frequency response correction method, which is suitable for correcting the frequency response of a sound signal in a voice call, in particular for correcting the frequency response of the sound signal in a network call.
As shown in fig. 1, in a conventional telephone service, during a downlink process of a sound signal, an antenna 110 of a voice communication device receives the sound signal, the received sound signal is demodulated and frequency-response-corrected by a baseband chip 120, the sound signal after the frequency-response-correction processing is transmitted to an audio Codec chip 130 for digital-to-analog conversion, the audio Codec chip 130 converts the sound signal after the frequency-response-correction processing into an analog sound signal, and the analog sound signal is transmitted to an electroacoustic device 140, so as to generate a sound, and during the downlink process of the sound signal, the electroacoustic device 140 may be a sound generating device such as a speaker or an earphone. In the uplink process of the sound signal, the electroacoustic device 140 collects sound data and converts the sound data into an analog sound signal, the analog sound signal is transmitted to the audio Codec chip 130, the audio Codec chip 130 performs analog-to-digital conversion to convert the sound signal into a sound signal, the sound signal is a digital signal, the sound signal is transmitted to the baseband chip 120, the baseband chip 120 performs modulation and frequency correction on the sound signal, the antenna 110 transmits the sound signal subjected to the frequency correction, and in the uplink process of the sound signal, the electroacoustic device 140 may be a pickup device such as a microphone.
Since the voice communication device only performs frequency response correction on the narrow-bandwidth range of the voice signal of the traditional telephone service before leaving the factory, the frequency response correction processing of the baseband chip 120 cannot meet the distortion requirement of the wide-bandwidth range voice signal in the network communication, and therefore, other frequency response correction links must be added in the network communication.
As shown in fig. 2, in the network call, during the downlink process of the voice signal, the antenna 110 of the voice call device receives the voice signal, the received voice signal is demodulated by the baseband chip 120, the demodulated voice signal is transmitted to the application processor 150, the application processor 150 performs the frequency response correction processing, the frequency response corrected voice signal is directly transmitted to the audio Codec chip 130, or the demodulated voice signal is transmitted to the audio Codec chip 130 through the baseband chip 120, the audio Codec chip 130 performs the digital-to-analog conversion on the voice signal to obtain the analog voice signal, and the analog voice signal is transmitted to the electroacoustic device 140, so as to generate the voice. In the uplink process of the sound signal, the electroacoustic device 140 collects sound data and converts the sound data into an analog sound signal, the analog sound signal is transmitted to the audio Codec chip 130, the audio Codec chip 130 performs analog-to-digital conversion to convert the sound data into a sound signal, the sound signal is a digital signal, the sound signal is directly transmitted to the application processor 150, or the sound signal is transmitted to the application processor 150 through the baseband chip 120, the application processor 150 performs frequency response correction processing, the sound signal after the frequency response correction processing is transmitted to the baseband chip 120 to be modulated, and then the sound signal is transmitted through the antenna 110.
Fig. 3 is a flow chart illustrating a method of frequency response correction, as shown in fig. 1, according to an exemplary embodiment, including the following steps.
310. A sound signal to be corrected is acquired.
320. And acquiring the signal frequency and the signal amplitude of the sound signal.
330. And acquiring a target gain value of each frequency band of the sound signal from the corresponding relation between the signal amplitude and the gain value of the frequency band according to the signal frequency and the signal amplitude, wherein the target gain value of each frequency band is the gain value corresponding to the signal frequency and the signal amplitude.
340. The audio signal is corrected based on the target gain values for the respective frequency bands of the audio signal.
In summary, in the frequency response correction method provided in this embodiment, the gain values are respectively set for the sound signals in each frequency band under each signal amplitude, and the gain values are used to perform frequency response correction on the sound signals in the corresponding frequency band and corresponding amplitude, so that the frequency response correction result is more stable, and the frequency response correction effect is improved.
In a first possible implementation manner, before the obtaining of the sound signal to be corrected, the frequency response correction method further includes:
acquiring an excitation sound signal, wherein the excitation sound signal is divided into a plurality of frequency bands and is composed of a plurality of sections of sinusoidal signals, and the amplitude of signals in each section of sinusoidal signals increases progressively;
converting the excitation sound signal into an excitation digital signal;
comparing the plurality of amplitudes of the excitation sound signal with the plurality of amplitudes of the excitation digital signal for each frequency band in the excitation digital signal, and calculating a gain value corresponding to each excitation digital signal amplitude in each frequency band.
In a second possible implementation, the correcting the sound signal according to the target gain values of the respective frequency bands of the sound signal includes:
when the sound signal is the sound signal received by the sound generation module, a preset gain constant is adopted to gain the signal amplitude of the sound signal, and the signal amplitude after the gain is corrected by adopting the target gain value of each frequency band of the sound signal.
In a third possible embodiment, the acquiring of the sound signal to be corrected comprises:
receiving an analog sound signal collected by a pickup module, and carrying out analog-to-digital conversion on the analog sound signal to obtain a sound signal to be corrected; or the like, or, alternatively,
and acquiring the sound signal received by the sound generation module to obtain the sound signal to be corrected.
In a fourth possible embodiment, correcting the sound signal according to the target gain values of the respective frequency bands of the sound signal includes:
and performing gain processing on the signal amplitude of each frequency band in the sound signal according to the target gain value of each frequency band of the sound signal to obtain a correction signal of the sound signal.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
Fig. 4 is a flow chart illustrating a frequency response correction method according to an exemplary embodiment, as shown in fig. 2, the frequency response correction method including the following steps.
410. The method comprises the steps of obtaining an excitation sound signal, dividing the excitation sound signal into a plurality of frequency bands, wherein the excitation sound signal is composed of a plurality of sections of sinusoidal signals, and the amplitude of signals in each section of the sinusoidal signals is increased progressively.
The frequency of the voice signal of the network call can reach 4kHz, even 8kHz, which exceeds the narrow-band wide range of the traditional telephone service, in order to correct the frequency response of the network call signal, the gain value corresponding to the amplitude of each excitation voice signal under each frequency band needs to be calculated, firstly, the network call voice signal can be 0 to the maximum frequency width FmaxThe frequency band of (a) is divided into a plurality of sub-bands, the central frequency point of each sub-band is fc (i), wherein i is a band number, i is 1, 2, 3, and … …, the frequencies of the plurality of frequency bands of the excitation sound signal are respectively fc (i), each frequency band of the excitation sound signal is a sinusoidal signal, and the signal amplitude of the sinusoidal signal in each frequency band increases.
For example, for a network call, the maximum bandwidth of the sound signal may be 8kHz, a frequency band from 0 to 8kHz may be equally divided into 16 sub-bands, the center frequency point of each sub-band is 250Hz, 750Hz, 1250Hz, 1750Hz, 2250Hz, 2750Hz, 3250Hz, 3750Hz, 4250Hz, 4750Hz, 5250Hz, 5750Hz, 6250Hz, 6750Hz, 7250Hz, 7750Hz, the excitation sound signal may include 16 frequency bands, the frequencies of the 16 frequency bands are the center frequency points of the 16 sub-bands respectively,the 16 frequency bands of the excitation sound signal are all sinusoidal signals, and the signal amplitude of the sinusoidal signal in each frequency band is linearly increased, for example, the signal amplitude in the first period of the sinusoidal signal is 5, the signal amplitude in the second period is 10, and the signal amplitude in the third period is 15 … …, as shown in fig. 5A and 5B, which are schematic diagrams of the excitation sound signal, it should be noted that the above-mentioned sub-band division method is merely exemplary, and is not restrictive to the present invention, and in practical application, the frequency band can be set from 0 to the maximum frequency band F as requiredmaxThe frequency band of the excitation sound signal may be divided into any number of sub-frequency bands, and may also be divided into unequal divisions in addition to the equal divisions, which is not specifically limited by the present invention, and the manner in which the amplitude of the sinusoidal signal in each segment of the excitation sound signal is increased is also only exemplary and is not limiting to the present invention.
It should be noted that, in the network call, both the sound pickup module and the sound module may execute step 410, but the specific process of executing step 410 by the sound pickup module and the sound module is slightly different. For the sound pickup module, the sound pickup module collects the excitation sound signals played by the standard sound production equipment, so that the excitation sound signals are acquired, and for the sound production module, the sound production module plays the excitation sound signals, and the standard sound pickup equipment collects the excitation sound signals played by the sound production module, so that the excitation sound signals are acquired.
It should be noted that, steps 420 and 430 described below may also be executed by the sound pickup module or the sound generation module, and the specific technical processes executed by the sound pickup module and the sound generation module are similar, so that the present invention only takes the example of the sound pickup module executing steps 420 and 430 as an example for explanation, and the technical processes of the sound generation module executing steps 420 and 430 will not be described again.
420. The excitation sound signal is converted into an excitation digital signal.
Since the sound signal to be corrected, which needs to be frequency-response corrected, is a digital signal in the subsequent sound signal frequency-response correction process, before calculating the gain value in step 430, the excitation sound signal needs to be analog-to-digital converted into an excitation digital signal, which includes multiple segments of signals with frequencies fc (i), where fc (i) and fc (i) are in a one-to-one correspondence relationship.
430. Comparing the plurality of amplitudes of the excitation sound signal with the plurality of amplitudes of the excitation digital signal for each frequency band in the excitation digital signal, and calculating a gain value corresponding to each excitation digital signal amplitude in each frequency band.
Because of the performance limitation of electronic devices of the sound pickup module or the sound production module, such as an operational amplifier, a power amplifier and the like, the signal amplitude of the sound signal collected by the sound pickup module or played by the sound production module is changed compared with the original sound signal amplitude, therefore, in each frequency band of the excitation digital signal, the amplitudes of the excitation digital signal are changed, namely signal distortion is generated, compared with the amplitudes of the excitation digital signal, and in each frequency band of the excitation digital signal, comparing the plurality of amplitudes of the excitation sound signal with the plurality of amplitudes of the excitation digital signal, calculating a gain value corresponding to each of the amplitudes of the excitation sound signal in each frequency band, therefore, the gain value is utilized to carry out frequency response correction on the sound signals to be corrected with different frequencies and different amplitudes, and the signal distortion in the network communication is reduced.
For example, in the frequency band of the excitation digital signal with the frequency of 250Hz, the amplitude of the excitation sound signal may be 10, 15, 20, 25, 30, and the amplitude of the excitation digital signal may be 5, 9, 15, 20, 18, and then in the frequency band of the excitation digital signal with the frequency of 250Hz, the gain value corresponding to the excitation digital signal with the amplitude of 5 is 2, the gain value corresponding to the amplitude of 9 is 1.67, the gain value corresponding to the amplitude of 15 is 1.33, the gain value corresponding to the amplitude of 20 is 1.25, and the gain value corresponding to the amplitude of 18 is 1.67.
Of course, the gain value may also be a compensation value, and in the above example, in the frequency band where the frequency of the excitation digital signal is 250Hz, the compensation value corresponding to the excitation digital signal with the amplitude of 5 is 5, the compensation value corresponding to the excitation digital signal with the amplitude of 9 is 6, the compensation value corresponding to the excitation digital signal with the amplitude of 15 is 5, the compensation value corresponding to the excitation digital signal with the amplitude of 20 is 5, and the compensation value corresponding to the excitation digital signal with the amplitude of 18 is 12. In addition, in the above step 430, only the plurality of amplitudes of the excitation sound signal and the plurality of amplitudes of the corresponding excitation digital signal are stored in correspondence in each frequency band of the excitation digital signal, and when frequency response correction is performed, the correspondence relationship is queried, and frequency response correction is performed on the sound signal to be corrected according to the correspondence relationship, as shown in fig. 6, namely, the correspondence relationship between the excitation sound signal amplitude and the sound signal amplitude when i is 4, i is 7, i is 9, and i is 11, where the abscissa is the excitation sound signal amplitude and the ordinate is the excitation digital signal amplitude, and correspondingly, in the above example, the excitation sound signal amplitude corresponding to the excitation digital signal amplitude of 5 is 10, the excitation sound signal amplitude corresponding to the excitation digital signal amplitude of 9 is 15, the excitation sound signal amplitude corresponding to the excitation digital signal amplitude of 15 is 20, the excitation digital signal amplitude of 20 corresponds to an excitation sound signal amplitude of 25, and the excitation digital signal amplitude of 18 corresponds to an excitation sound signal amplitude of 30.
In an embodiment of the present invention, before comparing the amplitudes of the excitation sound signal with the amplitudes of the excitation digital signal, step 430 further includes time-aligning the excitation sound signal with the excitation digital signal to ensure that the corresponding relationship between the amplitudes of the excitation sound signal and the amplitudes of the excitation digital signal is accurate, thereby ensuring the correct calculation of the gain values and the accuracy of the frequency response correction in the subsequent steps.
It should be noted that, in a specific frequency response correction process, the gain value corresponding to the amplitude of each excitation digital signal in each frequency band may have been obtained by calculation, and therefore, in the specific frequency response correction process, the contents of steps 410 to 430 may not be executed.
440. A sound signal to be corrected is acquired.
Step 440 can also be executed by the sound pickup module or the vocalization module, where the sound pickup module executes step 440 when performing frequency response correction on the uplink sound signal of the network call, and the vocalization module executes step 440 when performing frequency response correction on the downlink sound signal of the network call, as shown in fig. 7A and 7B. Similarly, the specific process of the sound pickup module and the sound generation module to perform step 440 is slightly different, and for the sound pickup module, the process of acquiring the sound signal to be corrected may be: receiving an analog sound signal collected by a pickup module, and carrying out analog-to-digital conversion on the analog sound signal to obtain a sound signal to be corrected; for the sound generation module, the process of acquiring the sound signal to be corrected may be: and acquiring the sound signal received by the sound generation module to obtain the sound signal to be corrected.
It should be noted that steps 450 to 470 described below may also be performed by the sound pickup module or the sound generation module, and the specific technical processes performed by the sound pickup module and the sound generation module are similar, so that the present invention only takes the example of the sound pickup module performing steps 450 to 470 as an example, and the technical processes of the sound generation module performing steps 450 to 470 will not be described again.
450. And acquiring the signal frequency and the signal amplitude of the sound signal.
In an embodiment of the present invention, the sound signal may include a plurality of signal frequencies, and each signal frequency has a corresponding signal amplitude, and step 450 may be to obtain a sub-band to which each signal frequency belongs, and obtain a corresponding signal amplitude for each signal frequency. As shown in the above example, the frequency band from 0 to 8kHz is equally divided into 16 sub-bands, the central frequency point of each sub-band is 250Hz, 750Hz, 1250Hz, 1750Hz, 2250Hz, 2750Hz, 3250Hz, 3750Hz, 4250Hz, 4750Hz, 5250Hz, 5750Hz, 6250Hz, 6750Hz, 7250Hz, 7750Hz, and the frequency of the sound signal obtained in step 450 may be 220Hz and 720Hz, the sub-band to which 220Hz belongs is the sub-band whose central frequency point is 250Hz, and the sub-band to which 720Hz belongs is the sub-band whose central frequency point is 750 Hz.
460. And acquiring a target gain value of each frequency band of the sound signal from the corresponding relation between the signal amplitude and the gain value of the frequency band according to the signal frequency and the signal amplitude, wherein the target gain value of each frequency band is the gain value corresponding to the signal frequency and the signal amplitude.
Step 430 calculates gain values corresponding to the amplitude values of the excitation digital signals in each frequency band, so as to establish mapping relationships between the amplitude values of the signals and the gain values in different frequency bands, and if the signal frequency and the signal amplitude value of the sound signal are obtained in step 450, the mapping relationships between the amplitude values of the signals and the gain values in the different frequency bands can be inquired through the signal frequency and the signal amplitude value, and target gain values of the frequency bands of the sound signal can be obtained.
Of course, the target gain value may also be a compensation value or directly correct the amplitude of the sound signal, and the invention is not limited thereto.
470. And performing gain processing on the signal amplitude of each frequency band in the sound signal according to the target gain value of each frequency band of the sound signal to obtain a correction signal of the sound signal.
For example, if the signal amplitude of a certain frequency band of the audio signal is 10 and the target gain value is 2, the signal amplitude of the audio signal becomes 20 after the gain processing, and the gain processing of the signal amplitudes of other frequency bands of the audio signal is similar to the above example.
Of course, the target gain value may be a compensation value or directly an amplitude value of the corrected audio signal, for example, if the signal amplitude value of a certain frequency band of the audio signal is 10 and the target compensation value is 10, the signal amplitude value of the audio signal becomes 20 after the processing; if the signal amplitude of a certain frequency band of the audio signal is 10 and the amplitude of the corresponding corrected audio signal is 20, the signal amplitude of the audio signal becomes 20 after the processing.
As shown in fig. 8, the frequency response curves of the sound generating apparatus before and after the frequency response correction are shown, where line 1 represents the frequency response curve after the frequency response correction, and line 2 represents the frequency response curve before the frequency response correction, it can be seen that the frequency response curve is flatter after the frequency response correction, that is, the signal distortion is reduced after the frequency response correction.
In an embodiment of the present invention, when the sound signal is a sound signal received by the sound generation module, a preset gain constant is used to gain the signal amplitude of the sound signal, and the signal amplitude after the gain is corrected by using the target gain values of the different frequency bands.
The preset gain constant is set by a skilled person, and the present invention is not limited to this. In the sound production module, before the target gain value is used to correct the signal amplitude of the sound signal, a preset gain constant can be adopted to gain the signal amplitude of the sound signal, so as to improve or reduce the loudness of the sound signal, and a user can listen to the sound signal clearly.
In summary, in the frequency response correction method provided in this embodiment, the gain values are respectively set for the sound signals in each frequency band under each signal amplitude, and the gain values are used to perform frequency response correction on the sound signals in the corresponding frequency band and corresponding amplitude, so that the frequency response correction result is more stable, and the frequency response correction effect is improved.
Fig. 9 is a block diagram illustrating a frequency response correction apparatus 900 according to an example embodiment. Referring to fig. 9, the apparatus includes a first acquisition module 910, a second acquisition module 920, a third acquisition module 930, and a correction module 940.
The first obtaining module 910 is configured to obtain a sound signal to be corrected.
In an embodiment of the present invention, the first obtaining module 910 is configured to receive an analog sound signal collected by the sound pickup module, perform analog-to-digital conversion on the analog sound signal, and obtain a sound signal to be corrected; or the like, or, alternatively,
and acquiring the sound signal received by the sound generation module to obtain the sound signal to be corrected.
The second obtaining module 920 is configured to obtain a signal frequency and a signal amplitude of the sound signal obtained by the first obtaining module 910;
the third obtaining module 930, configured to obtain, according to the signal frequency and the signal amplitude obtained by the second obtaining module 920, a target gain value of each frequency band of the sound signal from a corresponding relationship between a signal amplitude and a gain value of the frequency band, where the target gain value of each frequency band is a gain value corresponding to the signal frequency and the signal amplitude.
The correcting module 940 is configured to correct the sound signal acquired by the first acquiring module according to the target gain values of the frequency bands of the sound signal acquired by the third acquiring module 930.
In an embodiment of the present invention, the correcting module 940 is configured to, when the sound signal is a sound signal received by the sound generating module, gain the signal amplitude of the sound signal by using a preset gain constant, and correct the signal amplitude after the gain is performed by using a target gain value of each frequency band of the sound signal.
In an embodiment of the present invention, the correcting module 940 is configured to perform gain processing on the signal amplitude in each frequency band of the sound signal according to the target gain value of each frequency band of the sound signal, so as to obtain a corrected signal of the sound signal.
Referring to fig. 10, in another embodiment of the present invention, another frequency response correction apparatus 1000 is further provided, which is based on the structure of the embodiment in fig. 9, and further includes a fourth obtaining module 950, a converting module 960, and a calculating module 970.
The fourth obtaining module 950 is configured to obtain an excitation sound signal, where the excitation sound signal is divided into a plurality of frequency bands, and the excitation sound signal is composed of a plurality of segments of sinusoidal signals, and the amplitude of the signal in each segment of the sinusoidal signal increases progressively.
The converting module 960 is configured to convert the excitation sound signal acquired by the fourth acquiring module 950 into an excitation digital signal.
The calculating module 970 is configured to compare the amplitudes of the excitation sound signal acquired by the fourth acquiring module 950 with the amplitudes of the excitation digital signal converted by the converting module for each frequency band in the excitation digital signal converted by the converting module, and calculate a gain value corresponding to each amplitude of the excitation digital signal in each frequency band.
In summary, the frequency response correction device provided in this embodiment sets the gain value for each frequency band sound signal under each signal amplitude respectively, and performs frequency response correction for the sound signal corresponding to the frequency band and the corresponding amplitude by using the gain value, so that the frequency response correction result is more stable, and the frequency response correction effect is improved.
It should be noted that: in the frequency response correction device provided in the above embodiment, only the division of the functional modules is illustrated when performing the frequency response correction, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the frequency response correction device and the frequency response correction method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
The present embodiment provides a terminal, which can be used to execute the frequency response correction method provided in the above embodiments. Referring to fig. 11, the terminal 1100 includes:
terminal 1100 can include RF (Radio Frequency) circuitry 1110, memory 1120 including one or more computer-readable storage media, input unit 1130, display unit 1140, sensors 1150, audio circuitry 1160, WiFi (Wireless Fidelity) module 1170, processor 1180 including one or more processing cores, and power supply 1190. Those skilled in the art will appreciate that the terminal structure shown in fig. 11 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
RF circuit 1110 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink messages from a base station and then processing the received downlink messages by one or more processors 1180; in addition, data relating to uplink is transmitted to the base station. In general, RF circuitry 1110 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 1110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
The memory 1120 may be used to store software programs and modules, and the processor 1180 may execute various functional applications and data processing by operating the software programs and modules stored in the memory 1120. The memory 1120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 1100, and the like. Further, the memory 1120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 1120 may also include a memory controller to provide the processor 1180 and the input unit 1130 access to the memory 1120.
The input unit 1130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, input unit 1130 may include a touch-sensitive surface 1131 as well as other input devices 1132. Touch-sensitive surface 1131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 1131 (e.g., operations by a user on or near the touch-sensitive surface 1131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a preset program. Alternatively, touch-sensitive surface 1131 may include two portions, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1180, and can receive and execute commands sent by the processor 1180. Additionally, touch-sensitive surface 1131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 1130 may include other input devices 1132 in addition to the touch-sensitive surface 1131. In particular, other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1140 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal 1100, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 1140 may include a Display panel 1141, and optionally, the Display panel 1141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 1131 may cover display panel 1141, and when touch operation is detected on or near touch-sensitive surface 1131, the touch operation is transmitted to processor 1180 to determine the type of touch event, and processor 1180 then provides corresponding visual output on display panel 1141 according to the type of touch event. Although in FIG. 11, touch-sensitive surface 1131 and display panel 1141 are two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 1131 and display panel 1141 may be integrated to implement input and output functions.
The terminal 1100 can also include at least one sensor 1150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 1141 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 1141 and/or the backlight when the terminal 1100 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal 1100, detailed descriptions thereof are omitted.
Audio circuitry 1160, speakers 1161, and microphone 1162 may provide an audio interface between a user and terminal 1100. The audio circuit 1160 may transmit the electrical signal converted from the received audio data to the speaker 1161, and convert the electrical signal into a sound signal for output by the speaker 1161; on the other hand, the microphone 1162 converts the collected sound signal into an electric signal, receives it by the audio circuit 1160, converts it into audio data, processes it by the audio data output processor 1180, and transmits it to, for example, another terminal via the RF circuit 1110, or outputs it to the memory 1120 for further processing. Audio circuitry 1160 may also include an earbud jack to provide peripheral headset communication with terminal 1100.
WiFi belongs to short-distance wireless transmission technology, and the terminal 1100 can help the user send and receive e-mails, browse web pages, access streaming media, etc. through the WiFi module 1170, and it provides the user with wireless broadband internet access. Although fig. 11 shows the WiFi module 1170, it is understood that it does not belong to the essential constitution of the terminal 1100, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1180 is a control center of the terminal 1100, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal 1100 and processes data by operating or executing software programs and/or modules stored in the memory 1120 and calling data stored in the memory 1120, thereby performing overall monitoring of the mobile phone. Optionally, processor 1180 may include one or more processing cores; preferably, the processor 1180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated within processor 1180.
Terminal 1100 can also include a power supply 1190 (e.g., a battery) for providing power to various components, which can be logically coupled to processor 1180 via a power management system that can be configured to manage charging, discharging, and power consumption. Power supply 1190 may also include one or more dc or ac power supplies, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, or any other component.
Although not shown, the terminal 1100 may further include a camera, a bluetooth module, etc., which will not be described herein. In this embodiment, the display unit of the terminal is a touch screen display, and the terminal further includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs include instructions for: acquiring a sound signal to be corrected; acquiring the signal frequency and the signal amplitude of the sound signal; acquiring a target gain value of each frequency band of the sound signal from a corresponding relation between the signal amplitude and the gain value of the frequency band according to the signal frequency and the signal amplitude, wherein the target gain value of each frequency band is the gain value corresponding to the signal frequency and the signal amplitude; the audio signal is corrected based on the target gain values for the respective frequency bands of the audio signal.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (9)

1. A method for frequency response correction, the method comprising:
acquiring a sound signal to be corrected;
acquiring the signal frequency and the signal amplitude of the sound signal;
acquiring a target gain value of each frequency band of the sound signal from a corresponding relationship between a signal amplitude and a gain value of the frequency band according to the signal frequency and the signal amplitude, wherein the target gain value of each frequency band is a gain value corresponding to the signal frequency and the signal amplitude, and acquiring the corresponding relationship comprises: acquiring an excitation sound signal, wherein the excitation sound signal is divided into a plurality of frequency bands and is composed of a plurality of sections of sinusoidal signals, and the amplitude of signals in each section of sinusoidal signals increases progressively; converting the excitation sound signal into an excitation digital signal; after the excitation sound signals and the excitation digital signals are aligned in time, comparing a plurality of amplitudes of the excitation sound signals with a plurality of amplitudes of the corresponding excitation digital signals in each frequency band of the excitation digital signals, and calculating gain values corresponding to the amplitudes of the excitation sound signals in each frequency band;
and correcting the sound signal according to the target gain value of each frequency band of the sound signal.
2. The method of claim 1, wherein correcting the sound signal according to the target gain values of the respective frequency bands of the sound signal comprises:
and when the sound signal is the sound signal received by the sound generation module, a preset gain constant is adopted to gain the signal amplitude of the sound signal, and the signal amplitude after the gain is corrected by adopting the target gain value of each frequency band of the sound signal.
3. The method of claim 1, wherein obtaining the sound signal to be corrected comprises:
receiving an analog sound signal collected by a pickup module, and carrying out analog-to-digital conversion on the analog sound signal to obtain a sound signal to be corrected; or the like, or, alternatively,
and acquiring the sound signal received by the sound generation module to obtain the sound signal to be corrected.
4. The method according to any one of claims 1 to 3, wherein correcting the sound signal according to the target gain values of the respective frequency bands of the sound signal comprises:
and performing gain processing on the signal amplitude of each frequency band in the sound signal according to the target gain value of each frequency band of the sound signal to obtain a correction signal of the sound signal.
5. An apparatus for frequency response correction, the apparatus comprising:
the first acquisition module is used for acquiring a sound signal to be corrected;
the second acquisition module is used for acquiring the signal frequency and the signal amplitude of the sound signal acquired by the first acquisition module;
a third obtaining module, configured to obtain, according to the signal frequency and the signal amplitude obtained by the second obtaining module, a target gain value of each frequency band of the sound signal from a correspondence between signal amplitudes and gain values of the frequency bands, where the target gain value of each frequency band is a gain value corresponding to the signal frequency and the signal amplitude, and the correspondence includes: acquiring an excitation sound signal, wherein the excitation sound signal is divided into a plurality of frequency bands and is composed of a plurality of sections of sinusoidal signals, and the amplitude of signals in each section of sinusoidal signals increases progressively; converting the excitation sound signal into an excitation digital signal; after the excitation sound signals and the excitation digital signals are aligned in time, comparing a plurality of amplitudes of the excitation sound signals with a plurality of amplitudes of the corresponding excitation digital signals in each frequency band of the excitation digital signals, and calculating gain values corresponding to the amplitudes of the excitation sound signals in each frequency band;
and the correction module is used for correcting the sound signal acquired by the first acquisition module according to the target gain value of each frequency band of the sound signal acquired by the third acquisition module.
6. The apparatus of claim 5, wherein the correction module is configured to:
and when the sound signal is the sound signal received by the sound generation module, a preset gain constant is adopted to gain the signal amplitude of the sound signal, and the signal amplitude after the gain is corrected by adopting the target gain value of each frequency band of the sound signal.
7. The apparatus of claim 5, wherein the first obtaining module is configured to:
receiving an analog sound signal collected by a pickup module, and carrying out analog-to-digital conversion on the analog sound signal to obtain a sound signal to be corrected; or the like, or, alternatively,
and acquiring the sound signal received by the sound generation module to obtain the sound signal to be corrected.
8. The apparatus of any of claims 5-7, wherein the correction module is configured to:
and performing gain processing on the signal amplitude of each frequency band in the sound signal according to the target gain value of each frequency band of the sound signal to obtain a correction signal of the sound signal.
9. A computer-readable storage medium characterized by: the computer-readable storage medium stores a computer program executable by a processor to perform the frequency response correction method of any one of claims 1-4.
CN201510852446.1A 2015-11-30 2015-11-30 Frequency response correction method and device Active CN106817324B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510852446.1A CN106817324B (en) 2015-11-30 2015-11-30 Frequency response correction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510852446.1A CN106817324B (en) 2015-11-30 2015-11-30 Frequency response correction method and device

Publications (2)

Publication Number Publication Date
CN106817324A CN106817324A (en) 2017-06-09
CN106817324B true CN106817324B (en) 2020-09-11

Family

ID=59156827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510852446.1A Active CN106817324B (en) 2015-11-30 2015-11-30 Frequency response correction method and device

Country Status (1)

Country Link
CN (1) CN106817324B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107527624B (en) * 2017-07-17 2021-03-09 北京捷通华声科技股份有限公司 Voiceprint recognition method and device
CN111294711A (en) * 2019-07-18 2020-06-16 展讯通信(上海)有限公司 Signal processing method and device
CN112151050B (en) * 2020-08-26 2022-11-11 宁波方太厨具有限公司 Sound quality adjusting method for electric appliance noise and range hood

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101421781A (en) * 2006-04-04 2009-04-29 杜比实验室特许公司 Calculating and adjusting the perceived loudness and/or the perceived spectral balance of an audio signal
CN101599747A (en) * 2008-05-05 2009-12-09 晨星软件研发(深圳)有限公司 Sound volume control device and method
CN102149034A (en) * 2009-12-09 2011-08-10 三星电子株式会社 Sound enhancement apparatus and method
CN102414746A (en) * 2009-05-06 2012-04-11 杜比实验室特许公司 Adjusting the loudness of an audio signal with perceived spectral balance preservation
CN103259898A (en) * 2013-04-18 2013-08-21 华为终端有限公司 Self-adaption frequency response adjusting method and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7797065B2 (en) * 2005-05-02 2010-09-14 Texas Instruments Incorporated Automute detection in digital audio amplifiers
JP2007165943A (en) * 2005-12-09 2007-06-28 Funai Electric Co Ltd Digital television receiver
WO2009039897A1 (en) * 2007-09-26 2009-04-02 Fraunhofer - Gesellschaft Zur Förderung Der Angewandten Forschung E.V. Apparatus and method for extracting an ambient signal in an apparatus and method for obtaining weighting coefficients for extracting an ambient signal and computer program
CN101222228B (en) * 2007-12-19 2010-04-14 无锡辐导微电子有限公司 Analog digital A/D converting circuit structure used for broad band communication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101421781A (en) * 2006-04-04 2009-04-29 杜比实验室特许公司 Calculating and adjusting the perceived loudness and/or the perceived spectral balance of an audio signal
CN101599747A (en) * 2008-05-05 2009-12-09 晨星软件研发(深圳)有限公司 Sound volume control device and method
CN102414746A (en) * 2009-05-06 2012-04-11 杜比实验室特许公司 Adjusting the loudness of an audio signal with perceived spectral balance preservation
CN102149034A (en) * 2009-12-09 2011-08-10 三星电子株式会社 Sound enhancement apparatus and method
CN103259898A (en) * 2013-04-18 2013-08-21 华为终端有限公司 Self-adaption frequency response adjusting method and terminal

Also Published As

Publication number Publication date
CN106817324A (en) 2017-06-09

Similar Documents

Publication Publication Date Title
CN107393548B (en) Method and device for processing voice information collected by multiple voice assistant devices
CN111835488B (en) Method for determining mapping of antenna port and terminal
CN106782613B (en) Signal detection method and device
CN107993672B (en) Frequency band expanding method and device
CN107219951B (en) Touch screen control method and device, storage medium and terminal equipment
CN107172671B (en) Channel switching method, device, storage medium and terminal
CN104393848A (en) Method and device for adjusting volume
CN106506437B (en) Audio data processing method and device
CN110519793B (en) Measurement reporting method, measurement configuration method, terminal and network side equipment
CN108492837B (en) Method, device and storage medium for detecting audio burst white noise
CN107122036B (en) Method and device for adjusting frequency of central processing unit
CN106817324B (en) Frequency response correction method and device
CN110099434B (en) Power adjustment method, terminal equipment and computer readable storage medium
CN110022405B (en) Radio frequency parameter adjusting method, device and storage medium
CN107317828B (en) File downloading method and device
CN111615198A (en) Resource determining method, resource indicating method, terminal and network side equipment
CN113286335A (en) Frequency point switching method and device, storage medium and access point
CN116994596A (en) Howling suppression method and device, storage medium and electronic equipment
JP7352560B2 (en) CSI resource type determination method, terminal and network device
CN108391208B (en) Signal switching method, device, terminal, earphone and computer readable storage medium
CN105159655B (en) Behavior event playing method and device
CN105635379B (en) Noise suppression method and device
CN111510075B (en) Voltage adjustment method and device of power amplifier and electronic equipment
CN106210325B (en) Method, device and terminal for setting incoming call ringtone of social application
CN108600129B (en) Signal processing method and mobile terminal

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
GR01 Patent grant