WO2023016208A1 - Audio signal compensation method and apparatus, earbud, and storage medium - Google Patents
Audio signal compensation method and apparatus, earbud, and storage medium Download PDFInfo
- Publication number
- WO2023016208A1 WO2023016208A1 PCT/CN2022/106733 CN2022106733W WO2023016208A1 WO 2023016208 A1 WO2023016208 A1 WO 2023016208A1 CN 2022106733 W CN2022106733 W CN 2022106733W WO 2023016208 A1 WO2023016208 A1 WO 2023016208A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- compensation
- frequency points
- audio signal
- detection frequency
- detection
- Prior art date
Links
- 230000005236 sound signal Effects 0.000 title claims abstract description 281
- 238000000034 method Methods 0.000 title claims abstract description 86
- 238000001514 detection method Methods 0.000 claims abstract description 270
- 238000012360 testing method Methods 0.000 claims abstract description 64
- 238000012074 hearing test Methods 0.000 claims description 100
- 238000013507 mapping Methods 0.000 claims description 28
- 230000003993 interaction Effects 0.000 claims description 23
- 230000004044 response Effects 0.000 claims description 23
- 230000008569 process Effects 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 12
- 238000012937 correction Methods 0.000 claims description 8
- 238000012549 training Methods 0.000 claims description 5
- 238000009499 grossing Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 20
- 230000000694 effects Effects 0.000 description 15
- 230000035945 sensitivity Effects 0.000 description 14
- 230000009286 beneficial effect Effects 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 208000016354 hearing loss disease Diseases 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000001914 filtration Methods 0.000 description 3
- 238000012076 audiometry Methods 0.000 description 2
- 230000008447 perception Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000011295 pitch Substances 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 239000011435 rock Substances 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R29/00—Monitoring arrangements; Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
- H04R3/04—Circuits for transducers, loudspeakers or microphones for correcting frequency response
Definitions
- the present application relates to the technical field of audio processing, in particular to an audio signal compensation method and device, earphones, and storage media.
- the earphone can compensate the output audio signal according to the differences in the hearing characteristics of different users.
- traditional audio signal compensation schemes often require complex hearing detection and parameter calculation processes, making the process of audio signal compensation extremely slow and reducing the efficiency of audio signal compensation.
- the embodiment of the present application discloses an audio signal compensation method and device, an earphone, and a storage medium, which can conveniently and quickly determine compensation parameters required for audio signal compensation, thereby improving the efficiency of audio signal compensation.
- the first aspect of the embodiment of the present application discloses an audio signal compensation method, which is applied to earphones, the earphones include speakers, and the method includes:
- the compensation parameters corresponding to the N detection frequency points are determined, and the compensation parameters are used to correspond to the N detection frequency points respectively for the target audio signal to be output. Compensation is performed on the frequency bands respectively, wherein the N and M are both positive integers, and the M is less than or equal to the N, and the N detection frequency points include the M detection frequency points.
- the second aspect of the embodiment of the present application discloses an audio signal compensation device, which is applied to an earphone, the earphone includes a speaker, and the audio signal compensation device includes:
- An output unit configured to respectively output test audio signals corresponding to M detection frequency points through the speaker, and obtain hearing test results respectively corresponding to the M detection frequency points fed back to the test audio signal;
- the determination unit is configured to determine compensation parameters corresponding to each of the N detection frequency points according to the hearing detection results corresponding to the M detection frequency points, and the compensation parameters are used for the target audio signal to be output when it is in relation to the N detection frequency points. Compensation is performed on the respective frequency bands corresponding to the detection frequency points, wherein the N and M are both positive integers, and the M is less than or equal to the N, and the N detection frequency points include the M detection frequency points .
- the third aspect of the embodiment of the present application discloses an earphone, including a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor realizes the implementation of the present application. For example, all or part of the steps in any audio signal compensation method disclosed in the first aspect.
- the fourth aspect of the embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, wherein, when the computer program is executed by a processor, any audio signal compensation as disclosed in the first aspect of the embodiment of the present application is realized. All or part of the steps in the method.
- FIG. 1A is a schematic diagram of an application scenario of the audio signal compensation method disclosed in the embodiment of the present application.
- FIG. 1B is a schematic diagram of another application scenario of the audio signal compensation method disclosed in the embodiment of the present application.
- Fig. 2 is a schematic structural diagram of an earphone disclosed in an embodiment of the present application.
- FIG. 3 is a schematic flowchart of an audio signal compensation method disclosed in an embodiment of the present application.
- Fig. 4 is a schematic flowchart of another audio signal compensation method disclosed in the embodiment of the present application.
- FIG. 5 is a schematic diagram of a frequency response of a target compensation filter disclosed in an embodiment of the present application.
- Fig. 6 is a schematic diagram of the effect of audio signal compensation by the target compensation filter shown in Fig. 5;
- FIG. 7 is a schematic diagram of the frequency response of another target compensation filter disclosed in the embodiment of the present application.
- Fig. 8 is a schematic diagram of the effect of audio signal compensation by the target compensation filter shown in Fig. 7;
- FIG. 9 is a schematic flowchart of another audio signal compensation method disclosed in the embodiment of the present application.
- FIG. 10 is a schematic diagram of an interface of a terminal device outputting adjustment interaction information disclosed in an embodiment of the present application.
- Fig. 11 is a modular schematic diagram of an audio signal compensation device disclosed in an embodiment of the present application.
- Fig. 12 is a schematic modular diagram of an earphone disclosed in an embodiment of the present application.
- the embodiment of the present application discloses an audio signal compensation method and device, an earphone, and a storage medium, which can conveniently and quickly determine compensation parameters required for audio signal compensation, thereby improving the efficiency of audio signal compensation.
- Figure 1A is a schematic diagram of an application scenario of the audio signal compensation method disclosed in the embodiment of the application
- Figure 1B is another application scenario of the audio signal compensation method disclosed in the embodiment of the application schematic diagram.
- the application scenario may include a user 10 and an earphone 20, and the user 10 may independently perform a hearing test through the earphone 20, so that the earphone 20 may obtain the corresponding hearing test result of the user 10, and then the earphone 20 may obtain the corresponding hearing test result according to the hearing test result.
- a corresponding compensation parameter is determined, and corresponding audio signal compensation is implemented based on the compensation parameter.
- the earphone 20 can detect the target audio signal to be output at different detection frequencies according to the hearing characteristics of the user 10 (for example, there are different degrees of hearing impairment, different sensitivities to audio signals of different frequencies, etc.). Different degrees of compensation are performed on the frequency bands corresponding to the points, so that the compensated target audio signal can be more suitable for the hearing characteristics of the user 10, which helps to improve the listening effect of the user 10 when receiving the target audio signal (for example, can hear clearer and more comfortable).
- the user 10 may interact with the earphone 20 and send a hearing detection instruction to the earphone 20 to trigger the earphone 20 to start hearing detection.
- the hearing test can be performed using test audio signals corresponding to M (M is a positive integer) detection frequency points
- the M detection frequency points can be preset, and can respectively correspond to a certain frequency range, that is, each frequency range representative frequency points in the
- the above detection frequency points may include low and medium frequency points such as 500 Hz, 1000 Hz, and 2000 Hz, and may also include high frequency points such as 4000 Hz, 6000 Hz, and 8000 Hz.
- the earphone 20 can respectively output the test audio signals corresponding to the above-mentioned M detection frequency points, and respectively collect the feedback situation of the user 10 for each test audio signal, based on which the hearing characteristics of the user in different frequency bands (that is, the hearing characteristics of the user) can be analyzed. Sensitivity of audio signals in different frequency bands) to conduct a more comprehensive evaluation to obtain the corresponding hearing test results; at the same time, setting a fixed number of detection frequency points is also conducive to reducing the number of detection times and saving detection time.
- the earphone 20 can respectively output the test audio signals corresponding to the above-mentioned M detection frequency points through its built-in speakers, and then can respectively obtain the hearing detection signals fed back by the test audio signals corresponding to the M detection frequency points. result.
- the earphone 20 can determine the compensation parameters corresponding to each of the N (N is a positive integer) detection frequency points according to the hearing test results corresponding to the above M detection frequency points, and the compensation parameters can be used for output Compensation is performed on the target audio signal of the target audio signal in frequency bands corresponding to the N detected frequency points respectively.
- the aforementioned N and M also need to meet the condition that M is less than or equal to N, that is, the N detection frequency points targeted by the earphone 20 when determining the compensation parameters may include other The M detection frequency points for hearing detection.
- the compensation parameters required for compensating the target audio signal can be determined quickly and conveniently, which avoids the complicated process required for hearing detection and parameter calculation by professional doctors or users themselves in related technologies , and can efficiently determine compensation parameters corresponding to multiple detection frequency points, thereby greatly improving the efficiency of audio signal compensation.
- the earphone 20 can also be connected to the terminal device 30, so that when the above-mentioned hearing test needs to be performed on the user 10, the user 10 can also interact with the terminal device 30, so as to pass the terminal device 30 to the
- the earphone 20 issues a hearing test instruction, and triggers the earphone 20 to start hearing test.
- the above-mentioned terminal device 30 may include various devices or systems with wireless communication functions, such as mobile phones, smart wearable devices, vehicle-mounted terminals, tablet computers, PCs (Personal Computers, personal computers), PDAs (Personal Digital Assistants, personal digital assistant), etc., are not specifically limited in this embodiment of the application.
- the earphone 20 when the earphone 20 obtains the hearing test result fed back by the user 10 for the test audio signal, it may obtain the hearing test result fed back directly by the user 10 through the earphone 20; or the terminal device 30 may obtain the feedback from the user 10. After the hearing test result, the earphone 20 communicates with the terminal device 30 again to obtain the hearing test result sent by the terminal device 30 .
- the earphone 20 may also be provided with a feedback microphone and a feedforward microphone in addition to a speaker.
- FIG. 2 is a schematic structural diagram of an earphone 20 disclosed in an embodiment of the present application.
- the earphone 20 may include a speaker 21 , a feedback microphone 22 and a feedforward microphone 23 .
- its feedback microphone 22 can be between the speaker 21 and the user 10
- its feedforward microphone 23 can be arranged behind the speaker 21 (that is, when the user wears the earphone, the feedforward microphone is in the between the speaker and the external environment).
- the feedback microphone 22 can be used to receive the audio signal output by the speaker 21 and the echo, noise, etc. inside the earphone 20, while the feedforward microphone 23 can be used to collect ambient sound, so as to cooperate to realize ANC (Active Noise Cancellation) , Active Noise Reduction) and other functions to assist the above hearing detection and audio signal compensation steps, so as to improve the accuracy and reliability of audio signal compensation.
- ANC Active Noise Cancellation
- Active Noise Reduction Active Noise Reduction
- FIG. 3 is a schematic flowchart of an audio signal compensation method disclosed in an embodiment of the present application.
- the method may be applied to the above-mentioned earphone, and the earphone may include a loudspeaker.
- the audio signal compensation method may include the following steps:
- the earphone in order to perform corresponding audio signal compensation according to the user's hearing characteristics (such as different degrees of hearing impairment, different sensitivities to audio signals of different frequencies, etc.), it is necessary to first obtain the user's corresponding hearing Test results. Specifically, after the user puts on the earphone, the earphone can output test audio signals corresponding to a plurality of detection frequency points through its built-in speaker, and the user can respectively give feedback on each test audio signal, so that the earphone can obtain the user's target audio frequency respectively. Hearing test results respectively corresponding to the multiple detection frequency points fed back by the multiple detection frequency points.
- the earphone may be set with M detection frequency points, where M is a positive integer.
- M is a positive integer.
- the earphone can determine the corresponding M test audio signals based on the above M detection frequency points .
- the test audio signal may include pure tone signals at various detection frequency points (such as 500 Hz, 1000 Hz, etc.), that is, audio signals that only consist of audio signal components corresponding to the detection frequency points and do not contain audio signal components of other frequencies. Using the pure tone signal as the test audio signal can accurately determine the hearing sensitivity of the user at each detection frequency point through the subsequent hearing detection process.
- the test audio signal in the form of an electrical signal can be converted into a corresponding sound wave vibration through its speaker, so as to output each test audio signal to the user respectively, so that In the subsequent steps, the feedback of whether the user listens to each test audio signal is obtained, and then the hearing test result fed back by the user for each test audio signal is obtained.
- the earphone obtains the hearing detection result for the feedback of the above-mentioned test audio signal, it can be realized through interaction with the user, that is, based on whether the user listens to the feedback of the test audio signal corresponding to a certain detection frequency point, determine whether the hearing test result is related to the test audio signal.
- the above-mentioned hearing test result may include the subjective judgment information of whether the user listens to the test audio signal, and may also include the critical sound intensity further determined according to the above-mentioned subjective judgment information (that is, when the user just can hear the test audio signal, the test audio sound level of the signal), the audible sound level range, etc.
- the user when the user obtains the above-mentioned feedback hearing test result only through the earphone, it may be realized by detecting the user's operation on the earphone.
- user operations on the headset may include touch operations, voice operations, mobile operations, and the like.
- the user listens to the test audio signal, he can touch the specified touch point on the earphone, so that when the earphone detects the touch operation on the above-mentioned specified touch point, it can determine the hearing ability of the user to hear the test audio signal. state, and then obtain the corresponding hearing test results.
- the voice command of "heard” can be issued directly; and when the user does not listen to the test audio signal, the voice command of "not heard” can be directly issued, so that the earphone
- the detected voice commands can be analyzed to determine whether the user has heard the test audio signal.
- the user can also move, rotate or shake the head in different directions according to whether the test audio signal is heard or not, so that the earphone can detect its own motion state through the sensor to determine whether the corresponding user listens to the test audio signal or not. to test the hearing status of the audio signal.
- the head can be tilted to the left so that the earphone can detect the trend of moving to the left; when the user does not listen to the test audio signal, the head can be tilted to the right to make The earphone detects a tendency to move to the right, and then the earphone can determine the audiometry result fed back by the user for the test audio signal according to the detected movement tendency.
- the head when the user listens to the test audio signal, the head can be turned horizontally to the left (or horizontally to the right); when the user does not listen to the test audio signal, the head can be turned horizontally to the right ( or turn horizontally to the left), so that the earphone can determine the hearing test result fed back by the user to the test audio signal according to the motion trajectory detected by the earphone.
- the head when the user listens to the test audio signal, the head can be shaken back and forth (i.e. nodding); The audiometry result fed back by the user to the test audio signal can be determined according to the detected motion direction or frequency.
- the user when the user obtains the above-mentioned feedback hearing test result through a terminal device communicatively connected with the earphone, it may also be realized by obtaining user operations on the terminal device.
- user operations on the terminal device may include touch operations, button click operations, and the like.
- the terminal device detects the above user operation, it may determine whether the user has heard the hearing state of the test audio signal according to the user operation, and send the hearing state to the earphone. On this basis, the earphone can further obtain the hearing detection result fed back to the above-mentioned test audio signal according to the hearing state it receives.
- the compensation parameters corresponding to the N detection frequency points determine the compensation parameters corresponding to the N detection frequency points respectively, and the compensation parameters are used for the target audio signal to be output at the respective corresponding to the N detection frequency points Compensation is performed on frequency bands respectively, where N and M are both positive integers, and M is less than or equal to N, and the N detection frequency points may include the aforementioned M detection frequency points.
- the earphone after the earphone obtains the hearing test results corresponding to the above M detection frequency points, it can analyze the hearing test results through its built-in processor, and then determine N detection frequency points based on the analysis Corresponding compensation parameters.
- N is also a positive integer, and the value of M above is smaller than the value of N.
- the N detection frequency points targeted by the earphone when determining the compensation parameters correspond to the M detection frequency points targeted by the hearing test, and the earphone can obtain The M hearing test results for each of the M hearing test results are used to determine the compensation parameters corresponding to the M test frequency points.
- the N detection frequency points targeted by the earphone when determining the compensation parameters may include the M detection frequency points targeted for the hearing test, and other frequency points not tested for hearing. One or more frequency points detected. Therefore, after the earphone determines the compensation parameters corresponding to the M detection frequency points respectively according to the obtained M hearing test results, it can further determine that the above N detection frequency points are not included in the M detection frequency points. Compensation parameters corresponding to other frequency points in , so that compensation parameters corresponding to more detection frequency points can be quickly determined, so as to improve the efficiency of subsequent audio signal compensation.
- the hearing test results corresponding to the above M detection frequency points can represent the user's hearing sensitivity to different frequency components of the audio signal (ie, the frequency components corresponding to the above M detection frequency points). For example, if it is determined according to the hearing test result that the user's hearing sensitivity at a certain detection frequency point is low, that is, the user is not easy to hear the audio signal of the frequency component, then the frequency component of the audio signal can be enhanced subsequently; If it is determined according to the hearing test results that the user's hearing sensitivity at a certain detected frequency point is too high, that is, the user is easily stimulated by the audio signal of this frequency component, then the frequency component of the audio signal can be retained or weakened.
- the compensation measures taken are determined by the above-mentioned N
- the compensation parameters corresponding to each of the detection frequency points are determined, which may or may not be related to the user's hearing sensitivity to different frequency components of the audio signal.
- the above-mentioned compensation parameters may include filter parameters (such as tap coefficients for configuring filters, or specific gain coefficients, center frequencies, etc.), so that the earphones can be based on the compensation parameters corresponding to each of the N detection frequency points, Corresponding filters are respectively configured to perform compensation filtering on frequency bands corresponding to each detection frequency point.
- filter parameters such as tap coefficients for configuring filters, or specific gain coefficients, center frequencies, etc.
- the audio signal of a specific frequency band when it is necessary to compensate the audio signal of a specific frequency band, it can be compensated and filtered by configuring a band-pass filter or a band-stop filter of the corresponding frequency band; when it is necessary to perform more complex compensation for audio signals of multiple frequency bands
- FIR Finite Impulse Response, finite-length unit impulse response
- IIR Infinite Impulse Response, infinite-length unit impulse response
- the compensation parameters corresponding to the same or even more frequency points can be determined according to the hearing test results of the earphones for several detection frequency points, and then the determined compensation parameters can be It is used to compensate the signal components of each frequency band of the target audio signal in the frequency bands corresponding to the corresponding frequency points.
- the compensation parameters required for compensating the target audio signal can be determined conveniently and quickly, which not only avoids the complicated process of hearing detection and parameter calculation by professional doctors or users themselves in related technologies, but also can efficiently Compensation parameters corresponding to multiple detection frequency points are accurately determined, thereby improving the efficiency of compensating audio signals.
- FIG. 4 is a schematic flowchart of another audio signal compensation method disclosed in an embodiment of the present application.
- the method may be applied to the above-mentioned earphone, and the earphone may include a speaker and a feedback microphone.
- the audio signal compensation method may include the following steps:
- the compensation parameters corresponding to the N detection frequency points determine the compensation parameters corresponding to the N detection frequency points respectively, and the compensation parameters are used for the target audio signal to be output at the respective corresponding to the N detection frequency points Compensation is performed on frequency bands respectively, where N and M are both positive integers, and M is less than or equal to N, and the N detection frequency points may include the aforementioned M detection frequency points.
- step 402 and step 404 are similar to the above-mentioned step 302 and step 304 . It should be noted that, if the aforementioned M is equal to N, the N detection frequency points targeted by the earphone when determining the compensation parameters correspond to the M detection frequency points targeted by the hearing test, then the earphone can be based on The obtained M hearing test results are used to determine the compensation parameters corresponding to the above M detected frequency points respectively.
- the hearing test result corresponding to a certain detection frequency point may include a sound intensity threshold
- the sound intensity threshold may be the critical sound intensity at which the user can hear the test audio signal corresponding to the detection frequency point (that is, the user just the sound level at which the test audio signal can be heard).
- the earphone can query the compensation parameters corresponding to each detection frequency point based on the sound intensity thresholds corresponding to the above M detection frequency points through table lookup; in other embodiments, the earphone can also Using the mapping relationship between the sound intensity threshold and the compensation parameter, the sound intensity thresholds corresponding to the above M detection frequency points are respectively substituted into the corresponding mapping relationship to calculate the compensation parameters corresponding to each detection frequency point.
- the earphone may have a built-in compensation mapping table, and the compensation mapping table may include mapping relationships between sound intensity thresholds and compensation parameters corresponding to each detected frequency point.
- the earphone obtains the hearing test results corresponding to the above-mentioned M detection frequency points, it can use the sound intensity threshold included in the hearing test results, that is, according to the sound intensity corresponding to the M detection frequency points. Threshold, the compensation parameters corresponding to the M detection frequency points are respectively queried on the compensation mapping table.
- the compensation parameters corresponding to the M detection frequency points can be quickly obtained, thereby speeding up the efficiency of subsequent configuration of the compensation filter based on the compensation parameters, and further improving the response to the target audio signal through the compensation filter. Compensation efficiency.
- the earphone before the earphone queries the compensation parameters through the above-mentioned compensation mapping table, it can also divide the obtained hearing test results into different compensation levels, and then determine the corresponding compensation level according to the sound intensity thresholds of different compensation levels. parameter.
- the earphone can respectively determine the compensation levels that match the sound intensity thresholds according to the sound intensity thresholds corresponding to the above M detection frequency points, and then based on the compensation levels corresponding to the M detection frequency points, in the compensation The compensation parameters corresponding to the M detection frequency points are respectively queried on the mapping table. It can be understood that, for different compensation levels, the compensation degree of the audio signal compensation performed by the earphone may be different.
- the hearing test result when the hearing test result indicates that the user's hearing impairment is relatively large, it may be determined that the compensation level matching the hearing test result is a relatively high compensation level, so that the subsequent output When the target audio signal is compensated, a larger gain factor, a smaller quality factor, etc. can be provided.
- a lower compensation level when the hearing test result indicates that the user's hearing impairment is relatively small, a lower compensation level can be determined accordingly, so that a smaller gain can be provided when compensating the target audio signal to be output subsequently coefficients, larger quality factors, etc.
- the above-mentioned compensation mapping table may be obtained by using a sample data set for training, and the sample data set includes sample sound intensity thresholds and sample compensation parameters respectively corresponding to a plurality of sample frequency points. Therefore, using the above-mentioned compensation mapping table, based on the experimental experience of a large number of sample data, the accuracy of the determined compensation parameters (especially the gain coefficient) corresponding to each detection frequency point can be improved, so that the target audio signal can be detected at each detection frequency. Perform more accurate compensation (especially gain compensation) on the frequency band corresponding to the point to improve the user's listening experience.
- the earphone can also make differential adjustments to the compensation parameters corresponding to each detected frequency point based on the user's sensitivity to different frequency audio signals.
- the headset can set the gain coefficient corresponding to the frequency points with better hearing characteristics of the user (that is, the user's higher sensitivity) as an attenuating gain coefficient, such as taking a negative value and subtracting the specified gain adjustment coefficient etc.; at the same time, the gain coefficient corresponding to the frequency points with poor hearing characteristics of the user (that is, the user's low sensitivity) can also be set as an enhanced gain coefficient, such as taking a positive value, adding a specified gain adjustment coefficient, and the like. Therefore, the earphone can not only flexibly adjust the target audio signal to be output, but also realize overall audio signal processing, so that the compensated system frequency response curve is smoother and the sound quality is more comfortable.
- the earphone can still set default compensation parameters.
- the hearing test results corresponding to the above M detection frequency points all belong to the first range (for example, the sound intensity thresholds corresponding to the M detection frequency points belong to the same threshold range)
- the earphone can use the N detection frequency points
- the compensation parameters corresponding to the respective frequency points are determined as default parameters. Still taking the gain coefficient as an example, configuring the target compensation filter based on the default gain coefficient can compensate the target audio signal to be output to a certain extent, so that the user can clearly feel the effect of optimized compensation and further improve the user experience.
- the earphone can also perform corresponding weighting processing on the above-mentioned hearing test results in advance for different detection frequency points, so that when the compensation parameters corresponding to each detection frequency point are subsequently determined according to the hearing test results, it can be realized. Adjusting the compensation parameters above has a similar effect.
- the earphone can assign certain weights to the corresponding hearing test results for detection frequency points such as 4000 Hz and 6000 Hz, so that corresponding compensation filters can be conveniently configured to adjust the frequency bands where the difference in hearing characteristics among the crowd is generally not obvious. Achieve targeted compensation.
- it is not only beneficial to reflect the difference before and after audio signal compensation, but also beneficial to realize personalized and customized audio signal compensation, and further improve user experience.
- the above-mentioned compensation parameters include compensation filter parameters, and N target compensation filters are respectively configured according to the compensation filter parameters corresponding to the above-mentioned N detection frequency points, wherein the center frequencies of the N target compensation filters are respectively related to the N There is a one-to-one correspondence between the detection frequency points.
- the target compensation filter may include an infinite-length unit impulse response IIR filter.
- the second-order IIR filter can be expressed by the difference equation shown in Formula 1 as follows:
- a i and b i can be calculated using different calculation methods according to the type of the second-order IIR filter adopted, and both a i and b i can be calculated with the center frequency f 0 of the compensation filter (with the above N Corresponding to the detection frequency point), the sampling rate f s of the target audio signal to be output, the gain coefficient Gain value of the compensation filter, and the quality factor Q value of the compensation filter.
- the above-mentioned filter type of the second-order IIR filtering may include a Lowshelf Filter, a Highshelf Filter, a Peaking Filter, etc., which are not specifically limited in this embodiment of the present application.
- the headset can directly obtain each The compensation parameter corresponding to the frequency point is detected, and a corresponding compensation filter is configured according to the compensation parameter, so as to compensate the target audio signal to be output by the speaker.
- N target compensation filters respectively perform nonlinear compensation on the frequency bands centered on the N detection frequency points on the target audio signal to be output.
- the earphone may cascade the above-mentioned N target compensation filters, and perform nonlinear compensation on the target audio signal to be output through the cascaded N target compensation filters.
- FIG. 5 is a schematic diagram of the frequency response of a target compensation filter disclosed in the embodiment of the present application
- FIG. A schematic diagram of the effect of signal compensation, wherein the dotted line in FIG. 6 represents the system frequency response before filter compensation, and the solid line represents the system frequency response after filter compensation.
- the aforementioned target compensation filter may be an overall filter obtained by cascading the aforementioned N target compensation filters. As shown in FIG.
- the earphone can perform non-linear compensation for the target audio signal to be output in the above-mentioned frequency bands, which not only improves the flexibility of compensating the target audio signal, but also helps to achieve targeted and refined hearing characteristics for different users. Compensation, which improves the accuracy and effectiveness of audio signal compensation.
- the earphone may firstly perform smooth adjustment on the N target compensation filters according to the hearing test results respectively corresponding to the above M detection frequency points. For example, if the hearing test result corresponding to a certain detection frequency point indicates that the hearing characteristics of the user at the detection frequency point are poor (that is, the user's sensitivity is low), the compensation parameter corresponding to the detection frequency point can be set to enhance The compensation parameter can be used to adjust the signal enhancement of the target audio signal in the frequency band corresponding to the detection frequency point; higher sensitivity), then the compensation parameter corresponding to the detection frequency point can be set as an attenuation compensation parameter, so as to adjust the signal attenuation of the target audio signal in the frequency band corresponding to the detection frequency point.
- Figure 7 is a schematic diagram of the frequency response of a target compensation filter disclosed in the embodiment of the present application
- Figure 8 is the effect of audio signal compensation by the target compensation filter shown in Figure 7
- the above-mentioned target compensation filter may also be an overall filter obtained by cascading the above-mentioned N target compensation filters. It can be seen that, compared with FIG. 5 , the frequency response curve of the target compensation filter in FIG. 7 is smoother, and the frequency response curve of the compensated system in FIG. 8 is also smoother than that in FIG. 6 , indicating that a smoother compensation effect has been achieved.
- the compensation parameters corresponding to the same or even more frequency points can be determined according to the hearing test results of the earphones for several detection frequency points, and then the determined compensation parameters can be It is used to compensate the signal components of each frequency band of the target audio signal in the corresponding frequency bands of the corresponding frequency points, so that the compensation parameters required for compensating the target audio signal can be determined conveniently and quickly, and the audio signal is improved. Compensation efficiency; In addition, by looking up the table to determine the compensation parameters corresponding to each detection frequency point, the compensation parameters corresponding to multiple detection frequency points can be quickly obtained, and then the efficiency of subsequent compensation filter configuration based on the compensation parameters can be accelerated. It is beneficial to further improve the efficiency of correspondingly compensating the target audio signal through the compensation filter.
- FIG. 9 is a schematic flowchart of another audio signal compensation method disclosed in an embodiment of the present application.
- the method can be applied to the above-mentioned earphone, and the earphone can include a speaker, a feedback microphone, and a feed-forward microphone.
- the audio signal compensation method may include the following steps:
- step 902 is similar to the above-mentioned step 302 and will not be repeated here.
- step 904 is similar to step 304 above. It should be noted that since the compensation parameters corresponding to the first frequency points can be used to further determine the compensation parameters corresponding to the second frequency points other than the above-mentioned M detection frequency points in subsequent steps, when selecting the above-mentioned M detection frequency points , that is, selection and setting can be performed based on the corresponding relationship between the second frequency point and the first frequency point.
- the compensation parameters corresponding to the first frequency points are further determined to be the compensation parameters corresponding to the remaining second frequency points (ie, 500 Hz, 2000 Hz, 4000 Hz, 8000 Hz).
- the compensation parameters corresponding to the 1000Hz frequency point the compensation parameters corresponding to the adjacent 500Hz and 2000Hz frequency points can be determined; according to the compensation parameters corresponding to the 6000Hz frequency point, the adjacent 4000Hz and 8000Hz frequency points can be determined Corresponding compensation parameters.
- the compensation parameter corresponding to the first frequency point determine the compensation parameter corresponding to the second frequency point, where the second frequency point is a frequency point other than the above M frequency points among the N detection frequency points, where M less than N.
- the earphone when M ⁇ N, after the earphone determines the compensation parameters corresponding to the above-mentioned M detection frequency points according to the obtained M hearing test results, the earphone can further determine which of the above-mentioned N detection frequency points The compensation parameters corresponding to other frequency points not included in the M detection frequency points can quickly determine the compensation parameters corresponding to more detection frequency points, which is beneficial to reduce the number of detection times and save detection time.
- the compensation parameter corresponding to the second frequency point based on the compensation parameter corresponding to the first frequency point, it is necessary to determine the above-mentioned first frequency point and the second frequency point as related frequency points (for example, adjacent detection frequency points points, detection frequency points with multiplier relationship, etc.), and calculate based on the corresponding relationship of compensation parameters between the two.
- the corresponding relationship of the compensation parameters of the relevant frequency points can be obtained through a specified functional relationship operation, and can also be obtained on the basis of a large amount of data training.
- the earphone can also perform compensation adjustment for the third frequency point, so as to improve the fineness of compensation for the audio signal.
- the third frequency point may be one or more frequency points in the above M detected frequency points.
- the earphone can determine a first attenuation parameter that matches the compensation parameter corresponding to the third frequency point, and the first attenuation parameter can be used for Configure the first attenuation filter corresponding to the third frequency point.
- the compensated target audio signal at the frequency band corresponding to the third frequency point can be compensated by the first attenuation filter.
- the attenuation correction is performed on the frequency band to reduce the excessive gain of the target audio signal caused by the above-mentioned target compensation filter.
- the earphone may further determine the second attenuation parameter according to the compensation parameters corresponding to the multiple third frequency points.
- the second attenuation parameter may be used to configure a second attenuation filter corresponding to the continuous compensation frequency band formed by the above-mentioned plurality of third frequency points.
- the attenuation-corrected target audio signal can be adjusted in the above-mentioned continuous compensation frequency band through the second attenuation filter An overall smoothing process is performed to further reduce the excessive gain of the target audio signal caused by the above-mentioned multiple target compensation filters.
- the accuracy of audio signal compensation can be further improved, especially the overall gain of the target compensation filter can be effectively avoided from overflowing unexpectedly, thereby ensuring the compensation of the target audio signal. reliability.
- the above user information may include one or more of age information, occupation information, style preference information, and use period information.
- the above style preference information refers to the audio style preferred by the user, such as pure music, metal, rock and so on.
- the above usage period information may include the status, duration, frequency, etc. of the user using the earphone at different periods.
- an earphone may acquire user information of a user of the terminal device from a terminal device connected thereto as user information corresponding to the wearer of the earphone.
- the headset can obtain the user's age information from the above-mentioned terminal device, and then determine the compensation level matching the age information in subsequent steps (for example, different age groups correspond to different compensation levels) , and further obtain the compensation parameter corresponding to the compensation level, so as to perform personalized compensation on the target audio signal to be output, so that the target audio signal conforming to the age characteristics of the user can be output, and the user experience can be further improved.
- the compensation adjustment parameters determined based on the above user information may be used to adjust the compensation parameters corresponding to each of the N detection frequency points.
- different compensation adjustment parameters may correspond to different types of filters, which are cascaded before or after the compensation filter configured by the above compensation parameters, so as to realize the adjustment effect of the compensation parameters.
- the filter corresponding to the above-mentioned compensation adjustment parameters may include one or more of a Lowshelf Filter, a Highshelf Filter, and a Peaking Filter.
- the earphone can also be cascaded with a limiter Limiter to perform limiting processing, thereby preventing the gain overflow of the target audio signal and effectively ensuring the safety of the speaker.
- personalized sound effect compensation can be performed based on user information, further improving the flexibility of audio signal compensation.
- the adjustment interaction information may include one or more of image information, sound information, and vibration information.
- the adjustment interaction information may include a static or dynamic picture (which may include text) describing the sound perception, which is used to display the real-time sound perception state (such as soft, exciting, etc.) of the target audio signal to be output after the headphone compensates the target audio signal.
- audio compensation status (such as whether the compensation function is turned on, what type of compensation function is turned on, etc.); it can also include a prompt voice output before outputting the target audio signal, which is used to prompt whether the headset has turned on the audio signal compensation function; it may also include outputting a vibration prompt while outputting the target audio signal, so as to form a multi-dimensional audio compensation effect display and further enhance the user experience.
- FIG. 10 is a schematic diagram of an interface of a terminal device outputting adjustment interaction information disclosed in an embodiment of the present application.
- the terminal device 30 may output adjustment interaction information in the form of an image on its screen 310 .
- the adjustment interaction information may be displayed on the upper half of the screen 310 of the terminal device 30 as shown in icon 311 (available for resident display); it may also be displayed on the lower half of the screen 310 as shown in icon 312 (available in on screen off).
- the above-mentioned icons 311 and 312 may include text information ("XX" may represent descriptive text of different pitches), image information, and graphic information. It can be understood that the adjustment interaction information shown in FIG.
- the adjustment interaction information shown by icon 311 and the adjustment interaction information shown by icon 312 can be displayed separately or simultaneously, and the terminal device 30 can also output other types of Adjust the interactive information, so that the personalized audio compensation status can be displayed to the user, bringing a more diverse user experience.
- the compensation parameters corresponding to the same or even more frequency points can be determined according to the hearing test results of the earphones for several detection frequency points, and then the determined compensation parameters can be It is used to compensate the signal components of each frequency band of the target audio signal in the corresponding frequency bands of the corresponding frequency points, so that the compensation parameters required for compensating the target audio signal can be determined conveniently and quickly, and the audio signal is improved.
- the accuracy of audio signal compensation can be further improved, especially to effectively avoid the overall gain of the target compensation filter from overflowing unexpectedly, thereby ensuring the The reliability of compensation for the target audio signal; in addition, personalized sound compensation can be performed based on user information, which further improves the flexibility of audio signal compensation.
- FIG. 11 is a modular schematic diagram of an audio signal compensation device disclosed in an embodiment of the present application.
- the audio signal compensation device may be applied to the above-mentioned earphone, and the earphone may include a speaker.
- the audio signal compensation device may include an output unit 1101 and a determination unit 1102, wherein:
- the output unit 1101 is configured to respectively output the test audio signals corresponding to the M detection frequency points through the speaker, and respectively obtain the hearing test results fed back by the test audio signals corresponding to the M detection frequency points;
- the determining unit 1102 is configured to determine compensation parameters corresponding to each of the N detection frequency points according to the hearing test results corresponding to the above M detection frequency points, and the compensation parameters are used for the target audio signal to be output when it is in relation to the N detection frequency points. Compensation is performed on frequency bands corresponding to the respective points, wherein N and M are both positive integers, and M is less than or equal to N, and the N detection frequency points may include the aforementioned M detection frequency points.
- the compensation parameters corresponding to the same or more frequency points can be determined according to the hearing test results of the earphones for several detection frequency points, and then the determined compensation parameters can be It is used to compensate the signal components of each frequency band of the target audio signal in the frequency bands corresponding to the corresponding frequency points.
- the compensation parameters required for compensating the target audio signal can be determined conveniently and quickly, which not only avoids the complicated process of hearing detection and parameter calculation by professional doctors or users themselves in related technologies, but also can efficiently Compensation parameters corresponding to multiple detection frequency points are accurately determined, thereby improving the efficiency of compensating audio signals.
- the above-mentioned compensation parameters may include compensation filter parameters
- the audio signal compensation device may also include a filter configuration unit and a compensation unit not shown, wherein:
- the filter configuration unit is used to configure N target compensation filters respectively according to the compensation filter parameters corresponding to the N detection frequency points, wherein the center frequencies of the N target compensation filters correspond to the N detection frequencies respectively. ;
- the compensation unit is used to perform non-linear compensation on the target audio signal to be output in the frequency band centered on N detection frequency points through N target compensation filters, so as to improve the flexibility of compensating the target audio signal, It helps to achieve targeted and refined compensation according to the hearing characteristics of different users, and also improves the accuracy and effectiveness of audio signal compensation.
- the above-mentioned compensation unit can also be specifically configured to cascade N target compensation filters, and perform nonlinear compensation on the target audio signal to be output through the cascaded N target compensation filters.
- the compensation unit may include the following steps when cascading N target compensation filters:
- the adjusted N target compensation filters are cascaded.
- the above-mentioned target compensation filter may include an infinite-length unit impulse response IIR filter.
- the above-mentioned IIR filter may include a second-order IIR filter, and include one or more of a Lowshelf Filter, a Highshelf Filter, and a Peaking Filter.
- cascading the adjusted N target compensation filters can make the frequency response curve of the overall filter obtained after cascading smoother, which is conducive to improving the overall sound quality of the target audio signal
- the above determining unit 1102 may include a first determining subunit and a second determining subunit not shown, wherein:
- the first determination subunit is configured to determine the compensation parameter corresponding to the first frequency point according to the hearing test result corresponding to the first frequency point, where the first frequency point is one or more frequency points among the M detection frequency points;
- the second determination subunit is used to determine the compensation parameter corresponding to the second frequency point according to the compensation parameter corresponding to the first frequency point, and the second frequency point is other frequency points except M frequency points among the N detection frequency points .
- the sound intensity threshold is the critical sound intensity at which the user can respectively hear the test audio signals corresponding to the M detection frequency points.
- the above determination unit 1102 may include an unillustrated query subunit, which may be used to query the compensation corresponding to the M detection frequency points on the compensation mapping table according to the respective sound intensity thresholds corresponding to the M detection frequency points. Parameters, wherein the compensation mapping table includes the mapping relationship between sound intensity thresholds corresponding to each detection frequency point and compensation parameters.
- the above compensation mapping table may be obtained by training using a sample data set, and the sample data set includes sample sound intensity thresholds and sample compensation parameters corresponding to a plurality of sample frequency points respectively.
- the compensation parameters corresponding to the M detection frequency points are respectively queried on the compensation mapping table.
- the compensation parameters corresponding to multiple detection frequency points can be quickly obtained, which in turn can speed up the efficiency of subsequent compensation filter configuration based on the compensation parameters, which is conducive to further improvement.
- the efficiency with which the target audio signal is compensated accordingly by the compensation filter can be quickly obtained, which in turn can speed up the efficiency of subsequent compensation filter configuration based on the compensation parameters, which is conducive to further improvement.
- the determining unit 1102 may further include a third determining subunit not shown in the figure, and the third determining subunit may be used for if the M detection frequency points are respectively If the corresponding hearing test results all belong to the first range, the compensation parameters corresponding to each of the N detected frequency points are determined as default parameters. Configuring the target compensation filter based on the default gain coefficient can compensate the target audio signal to be output to a certain extent, so that the user can clearly feel the effect of optimized compensation, further improving the user experience.
- the audio signal compensation device may further include a first attenuation unit not shown in the figure, and the first attenuation unit may determine that when the compensation parameter corresponding to the third frequency point is greater than the first parameter threshold, The compensation parameters corresponding to the three frequency points match the first attenuation parameter, the first attenuation parameter is used to configure the first attenuation filter corresponding to the third frequency point, and the first attenuation filter is used for the target audio signal to be output according to the compensation parameter After compensation is performed on the frequency band corresponding to the third frequency point, the attenuation correction is performed on the compensated target audio signal through the first attenuation filter on the frequency band corresponding to the third frequency point, wherein the third frequency point is M detection One or more of the frequency bins.
- the audio signal compensation device may further include a second attenuation unit not shown, and the first attenuation unit may be used to determine a second attenuation parameter according to compensation parameters corresponding to multiple third frequency points,
- the second attenuation parameter is used to configure the second attenuation filter corresponding to the continuous compensation frequency band formed by a plurality of third frequency points, and the second attenuation filter is used to pass the first attenuation filter corresponding to each of the plurality of third frequency points,
- the overall smoothing process is performed on the attenuation-corrected target audio signal in continuous compensation frequency bands through the second attenuation filter.
- the accuracy of audio signal compensation can be further improved by finely adjusting the compensation parameters for the third frequency point, especially to effectively avoid the overall Unexpected overflow of gain ensures reliable compensation of the target audio signal.
- the audio signal compensation device may also include an information acquisition unit not shown, wherein:
- An information acquisition unit configured to acquire user information corresponding to the wearer of the earphone after the determination unit determines the compensation parameters corresponding to each of the N detection frequency points;
- the determination unit is further configured to determine the compensation adjustment parameters corresponding to the hearing test results according to the user information, and adjust the compensation parameters corresponding to the N detection frequency points according to the compensation adjustment parameters.
- the above user information may include one or more of age information, occupation information, style preference information, and use period information.
- the audio signal compensation device may also include a sending unit not shown, wherein:
- the above determining unit is also used to determine the personalized adjustment level according to the compensation adjustment parameter and the compensation parameter after determining the compensation adjustment parameter corresponding to the hearing test result;
- the above-mentioned information obtaining unit is also used to obtain the adjustment interaction information corresponding to the personalized adjustment level;
- the sending unit is configured to send the adjustment interaction information to the terminal device connected to the headset, and trigger the terminal device to output the adjustment interaction information.
- the compensation parameters corresponding to the same or more frequency points can be determined according to the hearing test results of the earphones for several detection frequency points, and then the determined compensation parameters can be It is used to compensate the signal components of each frequency band of the target audio signal in the corresponding frequency bands of the corresponding frequency points, so that the compensation parameters required for compensating the target audio signal can be determined conveniently and quickly, and the audio signal is improved.
- the accuracy of audio signal compensation can be further improved, especially to effectively avoid the overall gain of the target compensation filter from overflowing unexpectedly, thereby ensuring the The reliability of compensation for the target audio signal; in addition, personalized sound compensation can be performed based on user information, which further improves the flexibility of audio signal compensation.
- FIG. 12 is a schematic modular diagram of an earphone disclosed in an embodiment of the present application.
- the headset may include:
- a memory 1201 storing executable program codes
- processor 1202 coupled to the memory 1201;
- the processor 1202 invokes the executable program code stored in the memory 1201 to execute all or part of the steps in any audio signal compensation method described in the above-mentioned embodiments.
- the embodiment of the present application further discloses a computer-readable storage medium, which stores a computer program for electronic data exchange, wherein the computer program enables the computer to execute any audio signal compensation method described in the above-mentioned embodiments All or some of the steps in .
- the embodiments of the present application further disclose a computer program product.
- the computer program product When the computer program product is run on a computer, the computer can execute all or part of the steps in any audio signal compensation method described in the above embodiments.
- ROM read-only Memory
- RAM random access memory
- PROM programmable read-only memory
- EPROM Erasable Programmable Read Only Memory
- OTPROM One-time Programmable Read-Only Memory
- EEPROM Electronically Erasable Programmable Read-Only Memory
- CD-ROM Compact Disc Read-Only Memory
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Otolaryngology (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
An audio signal compensation method and apparatus, an earbud, and a storage medium. The method is applied to the earbud. The earbud comprises a loudspeaker. The method comprises: respectively outputting, by means of the loudspeaker, test audio signals corresponding to M detection frequency points, and respectively obtaining hearing detection results fed back for the test audio signals corresponding to the M detection frequency points; and determining compensation parameters respectively corresponding to N detection frequency points according to the hearing detection results respectively corresponding to the M detection frequency points, the compensation parameters being used for respectively compensating, on frequency bands respectively corresponding to the N detection frequency points, a target audio signal to be output, wherein N and M are both positive integers, M is less than or equal to N, and the N detection frequency points may comprise the M detection frequency points. By implementing embodiments of the present application, compensation parameters required for compensating the audio signal can be conveniently and quickly determined, thereby improving the efficiency of audio signal compensation.
Description
本申请要求于2021年8月13日提交、申请号为202110928003.1、发明名称为“音频信号补偿方法及装置、耳机、存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on August 13, 2021, with the application number 202110928003.1, and the title of the invention is "Audio signal compensation method and device, earphone, storage medium", the entire content of which is incorporated by reference in this application middle.
本申请涉及音频处理技术领域,尤其涉及一种音频信号补偿方法及装置、耳机、存储介质。The present application relates to the technical field of audio processing, in particular to an audio signal compensation method and device, earphones, and storage media.
当前,在用户使用耳机听音乐、看视频(即耳机输出视频所对应的音频信号)、进行通话等场景下,该耳机可以根据不同用户自身听力特性的差异,对输出的音频信号进行一定的补偿。然而,在实践中发现,传统的音频信号补偿方案往往需要进行复杂的听力检测和参数计算流程,使得实现音频信号补偿的过程极其缓慢,降低了对音频信号进行补偿的效率。At present, in scenarios where users use earphones to listen to music, watch videos (that is, the audio signal corresponding to the earphone output video), and make a call, the earphone can compensate the output audio signal according to the differences in the hearing characteristics of different users. . However, it is found in practice that traditional audio signal compensation schemes often require complex hearing detection and parameter calculation processes, making the process of audio signal compensation extremely slow and reducing the efficiency of audio signal compensation.
发明内容Contents of the invention
本申请实施例公开了一种音频信号补偿方法及装置、耳机、存储介质,能够便捷快速地确定对音频信号进行补偿所需的补偿参数,从而提升了对音频信号进行补偿的效率。The embodiment of the present application discloses an audio signal compensation method and device, an earphone, and a storage medium, which can conveniently and quickly determine compensation parameters required for audio signal compensation, thereby improving the efficiency of audio signal compensation.
本申请实施例第一方面公开一种音频信号补偿方法,应用于耳机,所述耳机包括扬声器,所述方法包括:The first aspect of the embodiment of the present application discloses an audio signal compensation method, which is applied to earphones, the earphones include speakers, and the method includes:
通过所述扬声器分别输出M个检测频率点对应的测试音频信号,并分别获取针对所述M个检测频率点对应的测试音频信号反馈的听力检测结果;Outputting test audio signals corresponding to M detection frequency points respectively through the speakers, and respectively obtaining hearing detection results fed back to the test audio signals corresponding to the M detection frequency points;
根据所述M个检测频率点分别对应的听力检测结果,确定N个检测频率点各自对应的补偿参数,所述补偿参数用于对待输出的目标音频信号在与所述N个检测频率点各自对应的频段上分别进行补偿,其中,所述N及M均为正整数,且所述M小于或等于所述N,所述N个检测频率点包括所述M个检测频率点。According to the hearing test results respectively corresponding to the M detection frequency points, the compensation parameters corresponding to the N detection frequency points are determined, and the compensation parameters are used to correspond to the N detection frequency points respectively for the target audio signal to be output. Compensation is performed on the frequency bands respectively, wherein the N and M are both positive integers, and the M is less than or equal to the N, and the N detection frequency points include the M detection frequency points.
本申请实施例第二方面公开一种音频信号补偿装置,应用于耳机,所述耳机包括扬声器,所述音频信号补偿装置包括:The second aspect of the embodiment of the present application discloses an audio signal compensation device, which is applied to an earphone, the earphone includes a speaker, and the audio signal compensation device includes:
输出单元,用于通过所述扬声器分别输出M个检测频率点对应的测试音频信号,并获取针对所述测试音频信号反馈的所述M个检测频率点分别对应的听力检测结果;An output unit, configured to respectively output test audio signals corresponding to M detection frequency points through the speaker, and obtain hearing test results respectively corresponding to the M detection frequency points fed back to the test audio signal;
确定单元,用于根据所述M个检测频率点分别对应的听力检测结果,确定N个检测频率点各自对应的补偿参数,所述补偿参数用于对待输出的目标音频信号在与所述N个检测频率点各自对应的频段上分别进行补偿,其中,所述N及M均为正整数,且所述M小于或等于所述N,所述N个检测频率点包括所述M个检测频率点。The determination unit is configured to determine compensation parameters corresponding to each of the N detection frequency points according to the hearing detection results corresponding to the M detection frequency points, and the compensation parameters are used for the target audio signal to be output when it is in relation to the N detection frequency points. Compensation is performed on the respective frequency bands corresponding to the detection frequency points, wherein the N and M are both positive integers, and the M is less than or equal to the N, and the N detection frequency points include the M detection frequency points .
本申请实施例第三方面公开了一种耳机,包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器实现如本申请实施例第一方面公开的任意一种音频信号补偿方法中的全部或部分步骤。The third aspect of the embodiment of the present application discloses an earphone, including a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor realizes the implementation of the present application. For example, all or part of the steps in any audio signal compensation method disclosed in the first aspect.
本申请实施例第四方面公开了一种计算机可读存储介质,其存储计算机程序,其中,所述计算机程序被处理器执行时实现如本申请实施例第一方面公开的任意一种音频信号补偿方法中的全部或部分步骤。The fourth aspect of the embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, wherein, when the computer program is executed by a processor, any audio signal compensation as disclosed in the first aspect of the embodiment of the present application is realized. All or part of the steps in the method.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和 有益效果将从说明书、附图以及权利要求书中体现。The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features and beneficial effects of the present application will emerge from the description, drawings and claims.
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图进行简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the accompanying drawings that need to be used in the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.
图1A是本申请实施例公开的音频信号补偿方法的一种应用场景示意图;FIG. 1A is a schematic diagram of an application scenario of the audio signal compensation method disclosed in the embodiment of the present application;
图1B是本申请实施例公开的音频信号补偿方法的另一种应用场景示意图;FIG. 1B is a schematic diagram of another application scenario of the audio signal compensation method disclosed in the embodiment of the present application;
图2是本申请实施例公开的一种耳机的结构示意图;Fig. 2 is a schematic structural diagram of an earphone disclosed in an embodiment of the present application;
图3是本申请实施例公开的一种音频信号补偿方法的流程示意图;FIG. 3 is a schematic flowchart of an audio signal compensation method disclosed in an embodiment of the present application;
图4是本申请实施例公开的另一种音频信号补偿方法的流程示意图;Fig. 4 is a schematic flowchart of another audio signal compensation method disclosed in the embodiment of the present application;
图5是本申请实施例公开的一种目标补偿滤波器的频率响应示意图;FIG. 5 is a schematic diagram of a frequency response of a target compensation filter disclosed in an embodiment of the present application;
图6是由图5所示的目标补偿滤波器进行音频信号补偿的效果示意图;Fig. 6 is a schematic diagram of the effect of audio signal compensation by the target compensation filter shown in Fig. 5;
图7是本申请实施例公开的另一种目标补偿滤波器的频率响应示意图;FIG. 7 is a schematic diagram of the frequency response of another target compensation filter disclosed in the embodiment of the present application;
图8是由图7所示的目标补偿滤波器进行音频信号补偿的效果示意图;Fig. 8 is a schematic diagram of the effect of audio signal compensation by the target compensation filter shown in Fig. 7;
图9是本申请实施例公开的又一种音频信号补偿方法的流程示意图;FIG. 9 is a schematic flowchart of another audio signal compensation method disclosed in the embodiment of the present application;
图10是本申请实施例公开的一种终端设备输出调整交互信息的界面示意图;FIG. 10 is a schematic diagram of an interface of a terminal device outputting adjustment interaction information disclosed in an embodiment of the present application;
图11是本申请实施例公开的一种音频信号补偿装置的模块化示意图;Fig. 11 is a modular schematic diagram of an audio signal compensation device disclosed in an embodiment of the present application;
图12是本申请实施例公开的一种耳机的模块化示意图。Fig. 12 is a schematic modular diagram of an earphone disclosed in an embodiment of the present application.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整的描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
需要说明的是,本申请实施例的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "comprising" and "having" and any variations thereof in the embodiments of the present application are intended to cover non-exclusive inclusion, for example, a process, method, system, product, or process that includes a series of steps or units. The apparatus is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to the process, method, product or apparatus.
本申请实施例公开了一种音频信号补偿方法及装置、耳机、存储介质,能够便捷快速地确定对音频信号进行补偿所需的补偿参数,从而提升了对音频信号进行补偿的效率。The embodiment of the present application discloses an audio signal compensation method and device, an earphone, and a storage medium, which can conveniently and quickly determine compensation parameters required for audio signal compensation, thereby improving the efficiency of audio signal compensation.
以下将结合附图进行详细描述。A detailed description will be given below in conjunction with the accompanying drawings.
请一并参阅图1A及图1B,图1A是本申请实施例公开的音频信号补偿方法的一种应用场景示意图,图1B则是本申请实施例公开的音频信号补偿方法的另一种应用场景示意图。如图1A所示,该应用场景可以包括用户10及耳机20,用户10可以通过该耳机20自主进行听力检测,以使该耳机20获取用户10对应的听力检测结果,进而可以根据该听力检测结果确定相应的补偿参数,并基于该补偿参数实现相应的音频信号补偿。通过实现上述音频信号补偿,该耳机20可以针对用户10的听力特性(例如存在不同程度的听力损伤、对不同频率的音频信号具有不同的敏感度等),对待输出的目标音频信号在不同检测频率点对应的频段上分别进行不同程度的补偿,以使得补偿后的目标音频信号能够更贴合用户10的听力特性,有助于提升用户10接收目标音频信号时的听音效果(例如可以听得更清晰、 更舒适)。Please refer to Figure 1A and Figure 1B together, Figure 1A is a schematic diagram of an application scenario of the audio signal compensation method disclosed in the embodiment of the application, and Figure 1B is another application scenario of the audio signal compensation method disclosed in the embodiment of the application schematic diagram. As shown in FIG. 1A, the application scenario may include a user 10 and an earphone 20, and the user 10 may independently perform a hearing test through the earphone 20, so that the earphone 20 may obtain the corresponding hearing test result of the user 10, and then the earphone 20 may obtain the corresponding hearing test result according to the hearing test result. A corresponding compensation parameter is determined, and corresponding audio signal compensation is implemented based on the compensation parameter. By realizing the above-mentioned audio signal compensation, the earphone 20 can detect the target audio signal to be output at different detection frequencies according to the hearing characteristics of the user 10 (for example, there are different degrees of hearing impairment, different sensitivities to audio signals of different frequencies, etc.). Different degrees of compensation are performed on the frequency bands corresponding to the points, so that the compensated target audio signal can be more suitable for the hearing characteristics of the user 10, which helps to improve the listening effect of the user 10 when receiving the target audio signal (for example, can hear clearer and more comfortable).
示例性地,当需要对用户10进行听力检测,以进行相应的音频信号补偿时,用户10可以与耳机20进行交互,向该耳机20发出听力检测指令,以触发该耳机20开始进行听力检测。具体地,该听力检测可以利用M(M为正整数)个检测频率点对应的测试音频信号进行,该M个检测频率点可以预先设定,并且可以分别对应一定的频率范围,即各个频率范围内具有代表性的频率点。举例来说,上述检测频率点可包括500Hz、1000Hz、2000Hz等中低频频率点,也可以包括4000Hz、6000Hz、8000Hz等高频频率点。在此基础上,耳机20可以分别输出上述M个检测频率点对应的测试音频信号,并分别采集用户10针对各个测试音频信号的反馈情况,据此来对用户在不同频段的听力特性(即对不同频段的音频信号的敏感性)进行较为全面的评估,得到相应的听力检测结果;同时,设置固定数量的检测频率点,也有利于减少检测次数,节省检测时间。Exemplarily, when it is necessary to perform hearing detection on the user 10 to perform corresponding audio signal compensation, the user 10 may interact with the earphone 20 and send a hearing detection instruction to the earphone 20 to trigger the earphone 20 to start hearing detection. Specifically, the hearing test can be performed using test audio signals corresponding to M (M is a positive integer) detection frequency points, the M detection frequency points can be preset, and can respectively correspond to a certain frequency range, that is, each frequency range representative frequency points in the For example, the above detection frequency points may include low and medium frequency points such as 500 Hz, 1000 Hz, and 2000 Hz, and may also include high frequency points such as 4000 Hz, 6000 Hz, and 8000 Hz. On this basis, the earphone 20 can respectively output the test audio signals corresponding to the above-mentioned M detection frequency points, and respectively collect the feedback situation of the user 10 for each test audio signal, based on which the hearing characteristics of the user in different frequency bands (that is, the hearing characteristics of the user) can be analyzed. Sensitivity of audio signals in different frequency bands) to conduct a more comprehensive evaluation to obtain the corresponding hearing test results; at the same time, setting a fixed number of detection frequency points is also conducive to reducing the number of detection times and saving detection time.
在本申请实施例中,耳机20可以通过其内置的扬声器分别输出上述M个检测频率点对应的测试音频信号,继而可以分别获取针对该M个检测频率点对应的测试音频信号所反馈的听力检测结果。在此基础上,该耳机20可以根据上述M个检测频率点分别对应的听力检测结果,确定出N(N为正整数)个检测频率点各自对应的补偿参数,该补偿参数可以用于对待输出的目标音频信号在与该N个检测频率点各自对应的频段上分别进行补偿。需要说明的是,上述的N及M除了均为正整数之外,还需满足M小于或等于N的条件,即该耳机20在确定补偿参数时所针对的N个检测频率点,可以包括其进行听力检测时所针对的M个检测频率点。In the embodiment of the present application, the earphone 20 can respectively output the test audio signals corresponding to the above-mentioned M detection frequency points through its built-in speakers, and then can respectively obtain the hearing detection signals fed back by the test audio signals corresponding to the M detection frequency points. result. On this basis, the earphone 20 can determine the compensation parameters corresponding to each of the N (N is a positive integer) detection frequency points according to the hearing test results corresponding to the above M detection frequency points, and the compensation parameters can be used for output Compensation is performed on the target audio signal of the target audio signal in frequency bands corresponding to the N detected frequency points respectively. It should be noted that, besides being positive integers, the aforementioned N and M also need to meet the condition that M is less than or equal to N, that is, the N detection frequency points targeted by the earphone 20 when determining the compensation parameters may include other The M detection frequency points for hearing detection.
通过实施本申请实施例,能够根据耳机20针对若干检测频率点(即上述M个检测频率点)的听力检测结果,确定出相同乃至更多频率点(即上述N个检测频率点)所对应的补偿参数,进而可以将所确定出的补偿参数用于在相应的频率点各自对应的频段上,对目标音频信号的各频段信号分量进行补偿。基于这一相对简洁的流程,即可便捷快速地确定出对目标音频信号进行补偿所需的补偿参数,既避免了相关技术中需要专业医师或用户自身进行听力检测和参数计算所需的复杂流程,又能够高效地确定多个检测频率点对应的补偿参数,从而大大提升了对音频信号进行补偿的效率。By implementing the embodiment of the present application, according to the hearing detection results of the earphone 20 for several detection frequency points (that is, the above-mentioned M detection frequency points), it is possible to determine the same or even more frequency points (that is, the above-mentioned N detection frequency points) corresponding Compensation parameters, and then the determined compensation parameters can be used to compensate the signal components of each frequency band of the target audio signal in the frequency bands corresponding to the corresponding frequency points. Based on this relatively simple process, the compensation parameters required for compensating the target audio signal can be determined quickly and conveniently, which avoids the complicated process required for hearing detection and parameter calculation by professional doctors or users themselves in related technologies , and can efficiently determine compensation parameters corresponding to multiple detection frequency points, thereby greatly improving the efficiency of audio signal compensation.
可选地,如图1B所示,耳机20还可以与终端设备30连接,从而当需要对用户10进行上述听力检测时,用户10还可以与终端设备30进行交互,以通过该终端设备30向耳机20发出听力检测指令,并触发该耳机20开始进行听力检测。示例性地,上述终端设备30可以包括具备无线通信功能的各类设备或系统,如手机、智能可穿戴设备、车载终端、平板电脑、PC(Personal Computer,个人电脑)、PDA(Personal Digital Assistant,个人数字助理)等,本申请实施例中不作具体限定。需要说明的是,耳机20在获取用户10针对测试音频信号反馈的听力检测结果时,可以是获取用户10直接通过该耳机20反馈的听力检测结果;也可以是由终端设备30获取用户10反馈的听力检测结果之后,耳机20再与该终端设备30进行通信,获取该终端设备30发送的上述听力检测结果。Optionally, as shown in FIG. 1B, the earphone 20 can also be connected to the terminal device 30, so that when the above-mentioned hearing test needs to be performed on the user 10, the user 10 can also interact with the terminal device 30, so as to pass the terminal device 30 to the The earphone 20 issues a hearing test instruction, and triggers the earphone 20 to start hearing test. Exemplarily, the above-mentioned terminal device 30 may include various devices or systems with wireless communication functions, such as mobile phones, smart wearable devices, vehicle-mounted terminals, tablet computers, PCs (Personal Computers, personal computers), PDAs (Personal Digital Assistants, personal digital assistant), etc., are not specifically limited in this embodiment of the application. It should be noted that when the earphone 20 obtains the hearing test result fed back by the user 10 for the test audio signal, it may obtain the hearing test result fed back directly by the user 10 through the earphone 20; or the terminal device 30 may obtain the feedback from the user 10. After the hearing test result, the earphone 20 communicates with the terminal device 30 again to obtain the hearing test result sent by the terminal device 30 .
需要说明的是,在本申请实施例中,耳机20除了包括扬声器之外,还可以设置有反馈麦克风以及前馈麦克风。示例性地,请参阅图2,图2是本申请实施例公开的一种耳机20的结构示意图。如图2所示,该耳机20可以包括扬声器21、反馈麦克风22以及前馈麦克风23。其中,当用户10佩戴该耳机20时,其反馈麦克风22可以处于扬声器21与用户10之间,其前馈麦克风23则可以设置于扬声器21后方(即当用户佩戴该耳机时,前馈麦克风处于扬声器与外界环境之间)。可以理解,该反馈麦克风22可以用于接收扬声器21所输出的音频信号以及耳机20内部的回声、噪声等,而前馈麦克风23则可以用于采集环境音,从而可以配合实现ANC(Active Noise Cancellation,主动降噪)等各种功能,辅助进行上 述的听力检测及音频信号补偿步骤,以提升对音频信号进行补偿的准确性和可靠性。It should be noted that, in the embodiment of the present application, the earphone 20 may also be provided with a feedback microphone and a feedforward microphone in addition to a speaker. For example, please refer to FIG. 2 , which is a schematic structural diagram of an earphone 20 disclosed in an embodiment of the present application. As shown in FIG. 2 , the earphone 20 may include a speaker 21 , a feedback microphone 22 and a feedforward microphone 23 . Wherein, when the user 10 wears the earphone 20, its feedback microphone 22 can be between the speaker 21 and the user 10, and its feedforward microphone 23 can be arranged behind the speaker 21 (that is, when the user wears the earphone, the feedforward microphone is in the between the speaker and the external environment). It can be understood that the feedback microphone 22 can be used to receive the audio signal output by the speaker 21 and the echo, noise, etc. inside the earphone 20, while the feedforward microphone 23 can be used to collect ambient sound, so as to cooperate to realize ANC (Active Noise Cancellation) , Active Noise Reduction) and other functions to assist the above hearing detection and audio signal compensation steps, so as to improve the accuracy and reliability of audio signal compensation.
请参阅图3,图3是本申请实施例公开的一种音频信号补偿方法的流程示意图,该方法可以应用于上述的耳机,该耳机可以包括扬声器。如图3所示,该音频信号补偿方法可以包括以下步骤:Please refer to FIG. 3 . FIG. 3 is a schematic flowchart of an audio signal compensation method disclosed in an embodiment of the present application. The method may be applied to the above-mentioned earphone, and the earphone may include a loudspeaker. As shown in Figure 3, the audio signal compensation method may include the following steps:
302、通过扬声器分别输出M个检测频率点对应的测试音频信号,并分别获取针对该M个检测频率点对应的测试音频信号反馈的听力检测结果。302. Output test audio signals corresponding to the M detection frequency points respectively through the loudspeaker, and respectively obtain hearing test results fed back to the test audio signals corresponding to the M detection frequency points.
在本申请实施例中,为针对用户的听力特性(例如存在不同程度的听力损伤、对不同频率的音频信号具有不同的敏感度等)进行相应的音频信号补偿,需要先获取该用户对应的听力检测结果。具体地,在用户佩戴上耳机之后,该耳机可以通过其内置的扬声器输出多个检测频率点对应的测试音频信号,用户可以分别针对每个测试音频信号进行反馈,以使该耳机分别获取用户针对上述多个检测频率点所反馈的上述多个检测频率点分别对应的听力检测结果。In the embodiment of the present application, in order to perform corresponding audio signal compensation according to the user's hearing characteristics (such as different degrees of hearing impairment, different sensitivities to audio signals of different frequencies, etc.), it is necessary to first obtain the user's corresponding hearing Test results. Specifically, after the user puts on the earphone, the earphone can output test audio signals corresponding to a plurality of detection frequency points through its built-in speaker, and the user can respectively give feedback on each test audio signal, so that the earphone can obtain the user's target audio frequency respectively. Hearing test results respectively corresponding to the multiple detection frequency points fed back by the multiple detection frequency points.
示例性地,该耳机可以设置有M个检测频率点,其中,M为正整数。当需要对用户进行听力检测时(如用户初次佩戴该耳机、每隔一定时长对该耳机进行校准等场景),该耳机可以基于上述M个检测频率点,分别确定出相应的M个测试音频信号。该测试音频信号可以包括各个检测频率点(如500Hz、1000Hz等)上的纯音信号,即仅由该检测频率点对应的音频信号分量组成,而不包含其他频率的音频信号分量的音频信号。采用纯音信号作为测试音频信号,可以通过后续的听力检测过程准确地判断出用户在各个检测频率点上的听力敏感程度。进一步地,耳机在确定出上述M个检测频率点对应的测试音频信号之后,可以通过其扬声器将电信号形式的测试音频信号转换为相应的声波震动,从而分别向用户输出各个测试音频信号,以便于在后续的步骤中获取用户是否收听到各个测试音频信号的反馈,进而得到用户针对各个测试音频信号反馈的听力检测结果。Exemplarily, the earphone may be set with M detection frequency points, where M is a positive integer. When it is necessary to perform a hearing test on the user (such as when the user wears the earphone for the first time and calibrates the earphone at certain intervals), the earphone can determine the corresponding M test audio signals based on the above M detection frequency points . The test audio signal may include pure tone signals at various detection frequency points (such as 500 Hz, 1000 Hz, etc.), that is, audio signals that only consist of audio signal components corresponding to the detection frequency points and do not contain audio signal components of other frequencies. Using the pure tone signal as the test audio signal can accurately determine the hearing sensitivity of the user at each detection frequency point through the subsequent hearing detection process. Further, after the earphone has determined the test audio signals corresponding to the above-mentioned M detection frequency points, the test audio signal in the form of an electrical signal can be converted into a corresponding sound wave vibration through its speaker, so as to output each test audio signal to the user respectively, so that In the subsequent steps, the feedback of whether the user listens to each test audio signal is obtained, and then the hearing test result fed back by the user for each test audio signal is obtained.
在此基础上,耳机在获取针对上述测试音频信号反馈的听力检测结果时,可以通过与用户的交互实现,即基于用户是否收听到某一检测频率点对应的测试音频信号的反馈,确定与该检测频率点对应的听力检测结果。其中,上述听力检测结果可以包括用户是否收听到测试音频信号的主观判断信息,也可以包括根据上述主观判断信息进一步确定出的临界声音强度(即用户恰好能收听到测试音频信号时,该测试音频信号的声音强度)、可收听的声音强度范围等。On this basis, when the earphone obtains the hearing detection result for the feedback of the above-mentioned test audio signal, it can be realized through interaction with the user, that is, based on whether the user listens to the feedback of the test audio signal corresponding to a certain detection frequency point, determine whether the hearing test result is related to the test audio signal. The hearing test result corresponding to the detection frequency point. Wherein, the above-mentioned hearing test result may include the subjective judgment information of whether the user listens to the test audio signal, and may also include the critical sound intensity further determined according to the above-mentioned subjective judgment information (that is, when the user just can hear the test audio signal, the test audio sound level of the signal), the audible sound level range, etc.
在一种实施例中,当用户仅通过耳机获取上述反馈的听力检测结果时,可以通过检测针对该耳机的用户操作来实现。示例性地,针对该耳机的用户操作可以包括触控操作、语音操作、移动操作等。In an embodiment, when the user obtains the above-mentioned feedback hearing test result only through the earphone, it may be realized by detecting the user's operation on the earphone. Exemplarily, user operations on the headset may include touch operations, voice operations, mobile operations, and the like.
例如,当用户收听到测试音频信号时,可以触摸该耳机上指定的触控点,从而该耳机在检测到针对上述指定触控点的触控操作时,可以确定用户收听到测试音频信号的听力状态,进而获取相应的听力检测结果。For example, when the user listens to the test audio signal, he can touch the specified touch point on the earphone, so that when the earphone detects the touch operation on the above-mentioned specified touch point, it can determine the hearing ability of the user to hear the test audio signal. state, and then obtain the corresponding hearing test results.
又例如,当用户收听到测试音频信号时,可以直接发出“听到”的语音指令;而当用户未收听到测试音频信号时,则可以直接发出“没听到”的语音指令,从而该耳机可以对其检测到的语音指令进行解析,以确定用户是否收听到测试音频信号的情况。For another example, when the user listens to the test audio signal, the voice command of "heard" can be issued directly; and when the user does not listen to the test audio signal, the voice command of "not heard" can be directly issued, so that the earphone The detected voice commands can be analyzed to determine whether the user has heard the test audio signal.
再例如,用户还可以根据是否收听到测试音频信号的不同情况,进行不同方向的头部移动、转动或晃动等,从而该耳机可以通过传感器检测其自身的运动状态,以确定相应的用户是否收听到测试音频信号的听力状态。具体举例来说,当用户收听到测试音频信号时,可以使头部左倾,以使耳机检测到向左移动的趋势;当用户未收听到测试音频信号时,则可以使头部右倾,以使该耳机检测到向右移动的趋势,进而耳机可以根据其检测到的移动趋势确定用户针对测试音频信号反馈的听力检测结果。又举例来说,当用户收听到测试音 频信号时,可以使头部朝左水平转动(或朝右水平转动);当用户未收听到测试音频信号时,则可以使头部朝右水平转动(或朝左水平转动),从而耳机可以根据其检测到的运动轨迹来确定用户针对测试音频信号反馈的听力检测结果。再举例来说,当用户收听到测试音频信号时,可以使头部前后晃动(即点头);当用户未收听到测试音频信号时,则可以使头部左右晃动(即摇头),从而耳机也可以根据其检测到的运动方向或频率,来确定用户针对测试音频信号反馈的听力检测结果。For another example, the user can also move, rotate or shake the head in different directions according to whether the test audio signal is heard or not, so that the earphone can detect its own motion state through the sensor to determine whether the corresponding user listens to the test audio signal or not. to test the hearing status of the audio signal. Specifically, for example, when the user listens to the test audio signal, the head can be tilted to the left so that the earphone can detect the trend of moving to the left; when the user does not listen to the test audio signal, the head can be tilted to the right to make The earphone detects a tendency to move to the right, and then the earphone can determine the audiometry result fed back by the user for the test audio signal according to the detected movement tendency. For another example, when the user listens to the test audio signal, the head can be turned horizontally to the left (or horizontally to the right); when the user does not listen to the test audio signal, the head can be turned horizontally to the right ( or turn horizontally to the left), so that the earphone can determine the hearing test result fed back by the user to the test audio signal according to the motion trajectory detected by the earphone. For another example, when the user listens to the test audio signal, the head can be shaken back and forth (i.e. nodding); The audiometry result fed back by the user to the test audio signal can be determined according to the detected motion direction or frequency.
在另一种实施例中,当用户还通过与耳机通信连接的终端设备来获取上述反馈的听力检测结果时,也可以通过获取针对该终端设备的用户操作来实现。示例性地,针对该终端设备的用户操作可以包括触控操作、按钮点击操作等。当终端设备检测到上述用户操作时,可以根据该用户操作确定用户是否收听到测试音频信号的听力状态,并将该听力状态发送至耳机。在此基础上,耳机可以根据其接收到的听力状态,进一步获取针对上述测试音频信号反馈的听力检测结果。In another embodiment, when the user obtains the above-mentioned feedback hearing test result through a terminal device communicatively connected with the earphone, it may also be realized by obtaining user operations on the terminal device. Exemplarily, user operations on the terminal device may include touch operations, button click operations, and the like. When the terminal device detects the above user operation, it may determine whether the user has heard the hearing state of the test audio signal according to the user operation, and send the hearing state to the earphone. On this basis, the earphone can further obtain the hearing detection result fed back to the above-mentioned test audio signal according to the hearing state it receives.
304、根据上述M个检测频率点分别对应的听力检测结果,确定N个检测频率点各自对应的补偿参数,该补偿参数用于对待输出的目标音频信号在与该N个检测频率点各自对应的频段上分别进行补偿,其中,N及M均为正整数,且M小于或等于N,该N个检测频率点可以包括上述M个检测频率点。304. According to the hearing test results corresponding to the above M detection frequency points, determine the compensation parameters corresponding to the N detection frequency points respectively, and the compensation parameters are used for the target audio signal to be output at the respective corresponding to the N detection frequency points Compensation is performed on frequency bands respectively, where N and M are both positive integers, and M is less than or equal to N, and the N detection frequency points may include the aforementioned M detection frequency points.
在本申请实施例中,耳机在获取上述M个检测频率点分别对应的听力检测结果之后,可以通过其内置的处理器对该听力检测结果进行分析,进而基于分析情况确定出N个检测频率点对应的补偿参数。其中,N也为正整数,且上述M的值小于N的值。In the embodiment of the present application, after the earphone obtains the hearing test results corresponding to the above M detection frequency points, it can analyze the hearing test results through its built-in processor, and then determine N detection frequency points based on the analysis Corresponding compensation parameters. Wherein, N is also a positive integer, and the value of M above is smaller than the value of N.
在一些实施例中,若M=N,则该耳机在确定补偿参数时所针对的N个检测频率点与其进行听力检测时所针对的M个检测频率点一一对应,该耳机可以根据其获取的M个听力检测结果,分别确定上述M个检测频率点各自对应的补偿参数。In some embodiments, if M=N, then the N detection frequency points targeted by the earphone when determining the compensation parameters correspond to the M detection frequency points targeted by the hearing test, and the earphone can obtain The M hearing test results for each of the M hearing test results are used to determine the compensation parameters corresponding to the M test frequency points.
在另一些实施例中,若M<N,则该耳机在确定补偿参数时所针对的N个检测频率点,可以包括其进行听力检测时所针对的M个检测频率点,以及其他未进行听力检测的一个或多个频率点。从而,该耳机在根据其获取的M个听力检测结果分别确定出上述M个检测频率点各自对应的补偿参数之后,还可以进一步确定上述N个检测频率点中未包含在该M个检测频率点中的其他频率点对应的补偿参数,从而可以快速地确定出更多检测频率点对应的补偿参数,以提升后续对音频信号进行补偿的效率。In some other embodiments, if M<N, the N detection frequency points targeted by the earphone when determining the compensation parameters may include the M detection frequency points targeted for the hearing test, and other frequency points not tested for hearing. One or more frequency points detected. Therefore, after the earphone determines the compensation parameters corresponding to the M detection frequency points respectively according to the obtained M hearing test results, it can further determine that the above N detection frequency points are not included in the M detection frequency points. Compensation parameters corresponding to other frequency points in , so that compensation parameters corresponding to more detection frequency points can be quickly determined, so as to improve the efficiency of subsequent audio signal compensation.
需要说明的是,上述M个检测频率点分别对应的听力检测结果,可以表征用户对于音频信号不同频率分量(即上述M个检测频率点各自对应的频率分量)的听力敏感度。示例性地,若根据听力检测结果确定出用户在某一检测频率点的听力敏感度较低,即用户不易听到该频率分量的音频信号,则后续可以针对音频信号的该频率分量进行增强;若根据听力检测结果确定出用户在某一检测频率点的听力敏感程度过高,即用户容易受到该频率分量的音频信号刺激,则后续可以针对音频信号的该频率分量进行保留或削弱。可以理解,上述增强、保留或削弱音频信号的措施,仅仅是对音频信号的补偿措施的部分示例,在实际应用中还可以进行各种不同程度和方式的补偿,所采取的补偿措施由上述N个检测频率点各自对应的补偿参数确定,其与用户对音频信号不同频率分量的听力敏感度可以相关(包括正相关或负相关),也可以不相关。It should be noted that the hearing test results corresponding to the above M detection frequency points can represent the user's hearing sensitivity to different frequency components of the audio signal (ie, the frequency components corresponding to the above M detection frequency points). For example, if it is determined according to the hearing test result that the user's hearing sensitivity at a certain detection frequency point is low, that is, the user is not easy to hear the audio signal of the frequency component, then the frequency component of the audio signal can be enhanced subsequently; If it is determined according to the hearing test results that the user's hearing sensitivity at a certain detected frequency point is too high, that is, the user is easily stimulated by the audio signal of this frequency component, then the frequency component of the audio signal can be retained or weakened. It can be understood that the above-mentioned measures to enhance, retain or weaken the audio signal are only some examples of the compensation measures for the audio signal, and various degrees and methods of compensation can also be performed in practical applications. The compensation measures taken are determined by the above-mentioned N The compensation parameters corresponding to each of the detection frequency points are determined, which may or may not be related to the user's hearing sensitivity to different frequency components of the audio signal.
示例性地,上述补偿参数可以包括滤波器参数(如用于配置滤波器的抽头系数,或具体的增益系数、中心频率等),从而该耳机可以根据N个检测频率点各自对应的补偿参数,分别配置相应的滤波器来对各个检测频率点对应的频段进行补偿滤波。具体举例来说,当需要对特定频段的音频信号进行补偿时,可以通过配置相应频带的带通滤波器或带阻滤波器进行补偿滤波;当需要对多个频段的音频信号进行较复杂的补偿时,也可以通过配置级 联的FIR(Finite Impulse Response,有限长单位冲激响应)滤波器或IIR(Infinite Impulse Response,无限长单位冲激响应)滤波器来进行相应的补偿滤波。Exemplarily, the above-mentioned compensation parameters may include filter parameters (such as tap coefficients for configuring filters, or specific gain coefficients, center frequencies, etc.), so that the earphones can be based on the compensation parameters corresponding to each of the N detection frequency points, Corresponding filters are respectively configured to perform compensation filtering on frequency bands corresponding to each detection frequency point. For example, when it is necessary to compensate the audio signal of a specific frequency band, it can be compensated and filtered by configuring a band-pass filter or a band-stop filter of the corresponding frequency band; when it is necessary to perform more complex compensation for audio signals of multiple frequency bands When, you can also perform corresponding compensation filtering by configuring cascaded FIR (Finite Impulse Response, finite-length unit impulse response) filters or IIR (Infinite Impulse Response, infinite-length unit impulse response) filters.
可见,实施上述实施例所描述的音频信号补偿方法,能够根据耳机针对若干检测频率点的听力检测结果,确定出相同乃至更多频率点所对应的补偿参数,进而可以将所确定出的补偿参数用于在相应的频率点各自对应的频段上,对目标音频信号的各频段信号分量进行补偿。基于上述简洁的流程,即可便捷快速地确定出对目标音频信号进行补偿所需的补偿参数,既避免了相关技术中需要专业医师或用户自身进行听力检测和参数计算的复杂流程,又能够高效地确定多个检测频率点对应的补偿参数,从而提升了对音频信号进行补偿的效率。It can be seen that, implementing the audio signal compensation method described in the above embodiment, the compensation parameters corresponding to the same or even more frequency points can be determined according to the hearing test results of the earphones for several detection frequency points, and then the determined compensation parameters can be It is used to compensate the signal components of each frequency band of the target audio signal in the frequency bands corresponding to the corresponding frequency points. Based on the above-mentioned concise process, the compensation parameters required for compensating the target audio signal can be determined conveniently and quickly, which not only avoids the complicated process of hearing detection and parameter calculation by professional doctors or users themselves in related technologies, but also can efficiently Compensation parameters corresponding to multiple detection frequency points are accurately determined, thereby improving the efficiency of compensating audio signals.
请参阅图4,图4是本申请实施例公开的另一种音频信号补偿方法的流程示意图,该方法可以应用于上述的耳机,该耳机可以包括扬声器以及反馈麦克风。如图4所示,该音频信号补偿方法可以包括以下步骤:Please refer to FIG. 4 . FIG. 4 is a schematic flowchart of another audio signal compensation method disclosed in an embodiment of the present application. The method may be applied to the above-mentioned earphone, and the earphone may include a speaker and a feedback microphone. As shown in Figure 4, the audio signal compensation method may include the following steps:
402、通过扬声器分别输出M个检测频率点对应的测试音频信号,并分别获取针对该M个检测频率点对应的测试音频信号反馈的听力检测结果。402. Output test audio signals corresponding to M detection frequency points respectively through the loudspeaker, and respectively obtain hearing detection results fed back to the test audio signals corresponding to the M detection frequency points.
404、根据上述M个检测频率点分别对应的听力检测结果,确定N个检测频率点各自对应的补偿参数,该补偿参数用于对待输出的目标音频信号在与该N个检测频率点各自对应的频段上分别进行补偿,其中,N及M均为正整数,且M小于或等于N,该N个检测频率点可以包括上述M个检测频率点。404. According to the hearing test results corresponding to the above-mentioned M detection frequency points, determine the compensation parameters corresponding to the N detection frequency points respectively, and the compensation parameters are used for the target audio signal to be output at the respective corresponding to the N detection frequency points Compensation is performed on frequency bands respectively, where N and M are both positive integers, and M is less than or equal to N, and the N detection frequency points may include the aforementioned M detection frequency points.
其中,步骤402以及步骤404与上述步骤302以及步骤304类似。需要说明的是,若上述M等于N的时候,该耳机在确定补偿参数时所针对的N个检测频率点与其进行听力检测时所针对的M个检测频率点一一对应,则该耳机可以根据其获取的M个听力检测结果,分别确定上述M个检测频率点各自对应的补偿参数。Wherein, step 402 and step 404 are similar to the above-mentioned step 302 and step 304 . It should be noted that, if the aforementioned M is equal to N, the N detection frequency points targeted by the earphone when determining the compensation parameters correspond to the M detection frequency points targeted by the hearing test, then the earphone can be based on The obtained M hearing test results are used to determine the compensation parameters corresponding to the above M detected frequency points respectively.
在本申请实施例中,某一检测频率点对应的听力检测结果可以包括声音强度阈值,该声音强度阈值可以为用户能够听到该检测频率点对应的测试音频信号的临界声音强度(即用户恰好能听到该测试音频信号的声音强度)。在一些实施例中,该耳机可以通过查表的方式,基于上述M个检测频率点对应的声音强度阈值,分别查询各个检测频率点对应的补偿参数;在另一些实施例中,该耳机也可以利用声音强度阈值与补偿参数之间的映射关系式,分别将上述M个检测频率点对应的声音强度阈值代入相应的映射关系式,以计算得到各个检测频率点对应的补偿参数。In the embodiment of the present application, the hearing test result corresponding to a certain detection frequency point may include a sound intensity threshold, and the sound intensity threshold may be the critical sound intensity at which the user can hear the test audio signal corresponding to the detection frequency point (that is, the user just the sound level at which the test audio signal can be heard). In some embodiments, the earphone can query the compensation parameters corresponding to each detection frequency point based on the sound intensity thresholds corresponding to the above M detection frequency points through table lookup; in other embodiments, the earphone can also Using the mapping relationship between the sound intensity threshold and the compensation parameter, the sound intensity thresholds corresponding to the above M detection frequency points are respectively substituted into the corresponding mapping relationship to calculate the compensation parameters corresponding to each detection frequency point.
具体地,以查表为例,该耳机可以内置有补偿映射表,该补偿映射表可以包括各个检测频率点分别对应的声音强度阈值及补偿参数之间的映射关系。在此基础上,该耳机在获取上述M个检测频率点分别对应的听力检测结果之后,可以根据该听力检测结果中所包括的声音强度阈值,即根据该M个检测频率点各自对应的声音强度阈值,在补偿映射表上分别查询该M个检测频率点对应的补偿参数。通过实施上述查表的方法,可以快速获取M个检测频率点各自对应的补偿参数,从而可以加快后续基于该补偿参数配置补偿滤波器的效率,并进一步提升通过补偿滤波器对目标音频信号进行相应补偿的效率。Specifically, taking table lookup as an example, the earphone may have a built-in compensation mapping table, and the compensation mapping table may include mapping relationships between sound intensity thresholds and compensation parameters corresponding to each detected frequency point. On this basis, after the earphone obtains the hearing test results corresponding to the above-mentioned M detection frequency points, it can use the sound intensity threshold included in the hearing test results, that is, according to the sound intensity corresponding to the M detection frequency points. Threshold, the compensation parameters corresponding to the M detection frequency points are respectively queried on the compensation mapping table. By implementing the above table look-up method, the compensation parameters corresponding to the M detection frequency points can be quickly obtained, thereby speeding up the efficiency of subsequent configuration of the compensation filter based on the compensation parameters, and further improving the response to the target audio signal through the compensation filter. Compensation efficiency.
在一些实施例中,该耳机在通过上述补偿映射表查询补偿参数之前,还可以对其获取的听力检测结果划分不同的补偿等级,进而可以根据不同补偿等级的声音强度阈值,确定出相应的补偿参数。示例性地,该耳机可以根据上述M个检测频率点各自对应的声音强度阈值,分别确定与该声音强度阈值匹配的补偿等级,然后可以基于该M个检测频率点各自对应的补偿等级,在补偿映射表上分别查询该M个检测频率点对应的补偿参数。可以理解,对于不同的补偿等级,该耳机进行音频信号补偿的补偿程度可以有所差异。示例性地,在一些实施例中,当听力检测结果表示该用户的听力损伤较大时,可以相应地确定与该听力 检测结果匹配的补偿等级为较高的补偿等级,从而在后续对待输出的目标音频信号进行补偿时,可以提供较大的增益系数、较小的品质因素等。在另一些实施例中,当听力检测结果表示该用户的听力损伤较小时,则可以相应地确定较低的补偿等级,从而在后续对待输出的目标音频信号进行补偿时,可以提供较小的增益系数、较大的品质因素等。In some embodiments, before the earphone queries the compensation parameters through the above-mentioned compensation mapping table, it can also divide the obtained hearing test results into different compensation levels, and then determine the corresponding compensation level according to the sound intensity thresholds of different compensation levels. parameter. Exemplarily, the earphone can respectively determine the compensation levels that match the sound intensity thresholds according to the sound intensity thresholds corresponding to the above M detection frequency points, and then based on the compensation levels corresponding to the M detection frequency points, in the compensation The compensation parameters corresponding to the M detection frequency points are respectively queried on the mapping table. It can be understood that, for different compensation levels, the compensation degree of the audio signal compensation performed by the earphone may be different. Exemplarily, in some embodiments, when the hearing test result indicates that the user's hearing impairment is relatively large, it may be determined that the compensation level matching the hearing test result is a relatively high compensation level, so that the subsequent output When the target audio signal is compensated, a larger gain factor, a smaller quality factor, etc. can be provided. In some other embodiments, when the hearing test result indicates that the user's hearing impairment is relatively small, a lower compensation level can be determined accordingly, so that a smaller gain can be provided when compensating the target audio signal to be output subsequently coefficients, larger quality factors, etc.
其中,上述补偿映射表可以是利用样本数据集进行训练得到的,该样本数据集包括多个样本频率点分别对应的样本声音强度阈值及样本补偿参数。从而,利用上述补偿映射表,可以基于大量样本数据的实验经验,提升所确定出的各个检测频率点对应的补偿参数(尤其是增益系数)的准确性,从而可以对目标音频信号在各个检测频率点对应的频段上进行更准确的补偿(尤其是增益补偿),以提升用户的听觉体验。Wherein, the above-mentioned compensation mapping table may be obtained by using a sample data set for training, and the sample data set includes sample sound intensity thresholds and sample compensation parameters respectively corresponding to a plurality of sample frequency points. Therefore, using the above-mentioned compensation mapping table, based on the experimental experience of a large number of sample data, the accuracy of the determined compensation parameters (especially the gain coefficient) corresponding to each detection frequency point can be improved, so that the target audio signal can be detected at each detection frequency. Perform more accurate compensation (especially gain compensation) on the frequency band corresponding to the point to improve the user's listening experience.
作为一种可选的实施方式,根据用户反馈的上述听力检测结果,该耳机还可以基于用户对不同频率音频信号的敏感性的差异,对各个检测频率点对应的补偿参数进行差异化的调整。以增益系数为例,该耳机可以将用户听力特性较好(即用户敏感性较高)的频率点对应的增益系数设置为衰减性的增益系数,例如取负值、减去指定的增益调整系数等;同时也可以将用户听力特性较差(即用户敏感性较低)的频率点对应的增益系数设置为增强性的增益系数,例如取正值、加上指定的增益调整系数等。从而,该耳机既可以灵活地调整其待输出的目标音频信号,又能够实现整体性的音频信号处理,使得补偿后的系统频响曲线更平滑,音质更舒适。As an optional implementation, according to the hearing test result fed back by the user, the earphone can also make differential adjustments to the compensation parameters corresponding to each detected frequency point based on the user's sensitivity to different frequency audio signals. Taking the gain coefficient as an example, the headset can set the gain coefficient corresponding to the frequency points with better hearing characteristics of the user (that is, the user's higher sensitivity) as an attenuating gain coefficient, such as taking a negative value and subtracting the specified gain adjustment coefficient etc.; at the same time, the gain coefficient corresponding to the frequency points with poor hearing characteristics of the user (that is, the user's low sensitivity) can also be set as an enhanced gain coefficient, such as taking a positive value, adding a specified gain adjustment coefficient, and the like. Therefore, the earphone can not only flexibly adjust the target audio signal to be output, but also realize overall audio signal processing, so that the compensated system frequency response curve is smoother and the sound quality is more comfortable.
在某些实施例中,即便用户反馈的听力检测结果表示该用户对不同频率音频信号的敏感性相似或相同,该耳机仍可以设置默认的补偿参数。示例性地,若上述M个检测频率点分别对应的听力检测结果均属于第一范围(如该M个检测频率点对应的声音强度阈值属于相同的阈值范围),则该耳机可以将N个检测频率点各自对应的补偿参数均确定为默认参数。仍以增益系数为例,基于默认的增益系数配置目标补偿滤波器,可以对待输出的目标音频信号进行一定的补偿,从而使得用户明显可以感受到优化补偿的效果,进一步提升了用户体验。In some embodiments, even if the hearing test results fed back by the user indicate that the user has similar or the same sensitivity to audio signals of different frequencies, the earphone can still set default compensation parameters. Exemplarily, if the hearing test results corresponding to the above M detection frequency points all belong to the first range (for example, the sound intensity thresholds corresponding to the M detection frequency points belong to the same threshold range), then the earphone can use the N detection frequency points The compensation parameters corresponding to the respective frequency points are determined as default parameters. Still taking the gain coefficient as an example, configuring the target compensation filter based on the default gain coefficient can compensate the target audio signal to be output to a certain extent, so that the user can clearly feel the effect of optimized compensation and further improve the user experience.
在一些实施例中,该耳机也可以针对不同的检测频率点,预先对上述听力检测结果进行相应的加权处理,从而可以在后续根据听力检测结果确定各个检测频率点对应的补偿参数时,实现与上述调整补偿参数类似的效果。示例性地,该耳机可以针对4000Hz、6000Hz等检测频率点为其对应的听力检测结果赋予一定的权重,从而可以方便地配置相应的补偿滤波器,以对人群中听力特性差异普遍不明显的频段实现针对性的补偿。通过实施上述方法,不仅有利于体现音频信号补偿前后的差异,同时也有利于实现个性化、定制化的音频信号补偿,进一步提升用户体验。In some embodiments, the earphone can also perform corresponding weighting processing on the above-mentioned hearing test results in advance for different detection frequency points, so that when the compensation parameters corresponding to each detection frequency point are subsequently determined according to the hearing test results, it can be realized. Adjusting the compensation parameters above has a similar effect. For example, the earphone can assign certain weights to the corresponding hearing test results for detection frequency points such as 4000 Hz and 6000 Hz, so that corresponding compensation filters can be conveniently configured to adjust the frequency bands where the difference in hearing characteristics among the crowd is generally not obvious. Achieve targeted compensation. By implementing the above method, it is not only beneficial to reflect the difference before and after audio signal compensation, but also beneficial to realize personalized and customized audio signal compensation, and further improve user experience.
406、上述补偿参数包括补偿滤波器参数,根据上述N个检测频率点各自对应的补偿滤波器参数,分别配置N个目标补偿滤波器,其中,N个目标补偿滤波器的中心频率分别与该N个检测频率点一一对应。406. The above-mentioned compensation parameters include compensation filter parameters, and N target compensation filters are respectively configured according to the compensation filter parameters corresponding to the above-mentioned N detection frequency points, wherein the center frequencies of the N target compensation filters are respectively related to the N There is a one-to-one correspondence between the detection frequency points.
在本申请实施例中,目标补偿滤波器可以包括无限长单位冲激响应IIR滤波器。示例性地,当采用二阶IIR滤波器作为目标补偿滤波器时,该二阶IIR滤波器可以通过公式1所示的差分方程表示如下:In the embodiment of the present application, the target compensation filter may include an infinite-length unit impulse response IIR filter. Exemplarily, when a second-order IIR filter is used as the target compensation filter, the second-order IIR filter can be expressed by the difference equation shown in Formula 1 as follows:
公式1:Formula 1:
其中,a
i和b
i可以根据所采用的二阶IIR滤波器的类型而采用不同的计算方式计算得 到,且a
i和b
i均可以与补偿滤波器的中心频率f
0(与上述N个检测频率点对应)、待输出的目标音频信号的采样率f
s、该补偿滤波器的增益系数Gain值以及该补偿滤波器的品质因素Q值相关。可选地,上述二阶IIR滤波的滤波器类型可以包括低频搁架滤波器Lowshelf Filter、高频搁架滤波器Highshelf Filter、峰值滤波器Peaking Filter等,本申请实施例中不作具体限定。
Among them, a i and b i can be calculated using different calculation methods according to the type of the second-order IIR filter adopted, and both a i and b i can be calculated with the center frequency f 0 of the compensation filter (with the above N Corresponding to the detection frequency point), the sampling rate f s of the target audio signal to be output, the gain coefficient Gain value of the compensation filter, and the quality factor Q value of the compensation filter. Optionally, the above-mentioned filter type of the second-order IIR filtering may include a Lowshelf Filter, a Highshelf Filter, a Peaking Filter, etc., which are not specifically limited in this embodiment of the present application.
可选地,若在该耳机出厂前确定出上述补偿参数(例如根据人工经验或大数据分析结果,针对若干典型、常见的听力检测结果提前指定相应的补偿参数),则该耳机可以直接获取各个检测频率点对应的补偿参数,并根据该补偿参数配置相应的补偿滤波器,以用于对上述扬声器待输出的目标音频信号进行补偿。Optionally, if the above-mentioned compensation parameters are determined before the headset leaves the factory (for example, according to manual experience or big data analysis results, corresponding compensation parameters are specified in advance for several typical and common hearing test results), the headset can directly obtain each The compensation parameter corresponding to the frequency point is detected, and a corresponding compensation filter is configured according to the compensation parameter, so as to compensate the target audio signal to be output by the speaker.
408、通过该N个目标补偿滤波器,对待输出的目标音频信号在以上述N个检测频率点为中心的频段上分别进行非线性补偿。408 . Through the N target compensation filters, respectively perform nonlinear compensation on the frequency bands centered on the N detection frequency points on the target audio signal to be output.
在本申请实施例中,该耳机可以将上述N个目标补偿滤波器进行级联,并通过级联后的N个目标补偿滤波器对待输出的目标音频信号进行非线性补偿。示例性地,请一并参阅图5及图6,图5是本申请实施例公开的一种目标补偿滤波器的频率响应示意图,而图6是由图5所示的目标补偿滤波器进行音频信号补偿的效果示意图,其中,图6中的虚线表示进行滤波补偿前的系统频率响应,实线则表示进行滤波补偿后的系统频率响应。可以理解,上述目标补偿滤波器可以是将上述N个目标补偿滤波器级联后所得到的整体滤波器。如图5所示,由于该目标补偿滤波器在各个检测频率点对应的频段上的幅度响应是非线性的,其相应的补偿效果也可以呈现非线性的差异。例如,在图5中频率点A处对应的补偿较小,则相应地在图6中频率点A附近的滤波补偿效果不明显;图5中频率点B处对应的补偿较大,则相应地在图6中频率点B附近的滤波补偿较明显。从而,该耳机可以对待输出的目标音频信号在上述各个频段进行非线性的补偿,既提升了对目标音频信号进行补偿的灵活性,也有助于针对不同用户的听力特性实现针对性、精细化的补偿,提升了音频信号补偿的准确性和有效性。In the embodiment of the present application, the earphone may cascade the above-mentioned N target compensation filters, and perform nonlinear compensation on the target audio signal to be output through the cascaded N target compensation filters. Exemplarily, please refer to FIG. 5 and FIG. 6 together. FIG. 5 is a schematic diagram of the frequency response of a target compensation filter disclosed in the embodiment of the present application, and FIG. A schematic diagram of the effect of signal compensation, wherein the dotted line in FIG. 6 represents the system frequency response before filter compensation, and the solid line represents the system frequency response after filter compensation. It can be understood that the aforementioned target compensation filter may be an overall filter obtained by cascading the aforementioned N target compensation filters. As shown in FIG. 5 , since the magnitude response of the target compensation filter in the frequency band corresponding to each detection frequency point is nonlinear, its corresponding compensation effect may also present a nonlinear difference. For example, if the compensation corresponding to frequency point A in Figure 5 is relatively small, then the filter compensation effect near frequency point A in Figure 6 is not obvious; if the compensation corresponding to frequency point B in Figure 5 is large, then correspondingly In Fig. 6, the filter compensation near the frequency point B is more obvious. Therefore, the earphone can perform non-linear compensation for the target audio signal to be output in the above-mentioned frequency bands, which not only improves the flexibility of compensating the target audio signal, but also helps to achieve targeted and refined hearing characteristics for different users. Compensation, which improves the accuracy and effectiveness of audio signal compensation.
进一步地,该耳机在将上述N个目标补偿滤波器进行级联时,还可以根据上述M个检测频率点分别对应的听力检测结果,先对该N个目标补偿滤波器进行平滑调整。示例性地,若某一检测频率点对应的听力检测结果表示用户在该检测频率点的听力特性较差(即用户敏感性较低),则可以将该检测频率点对应的补偿参数设置为增强性的补偿参数,以对目标音频信号在该检测频率点对应的频段进行信号增强调整;若某一检测频率点对应的听力检测结果表示用户在该检测频率点的听力特性较好(即用户敏感性较高),则可以将该检测频率点对应的补偿参数设置为衰减性的补偿参数,以对目标音频信号在该检测频率点对应的频段进行信号衰减调整。在进行上述平滑调整(包括信号增强调整或信号衰减调整)之后,该耳机可以将调整后的N个目标补偿滤波器进行级联,以使级联后所得到的整体滤波器的频响曲线更加平滑,从而有利于提升目标音频信号的整体音质,进一步提升音频信号补偿效果。请一并参阅图7及图8,图7是本申请实施例公开的一种目标补偿滤波器的频率响应示意图,而图8是由图7所示的目标补偿滤波器进行音频信号补偿的效果示意图,其中,图8中的虚线表示进行滤波补偿前的系统频率响应,实线则表示进行滤波补偿后的系统频率响应。可以理解,上述目标补偿滤波器也可以是将上述N个目标补偿滤波器级联后所得到的整体滤波器。可见,相对于图5,图7中的目标补偿滤波器的频响曲线更平滑,则图8中补偿后的系统频率响应曲线相对于图6也更平滑,表示实现了更平滑的补偿效果。Further, when cascading the above N target compensation filters, the earphone may firstly perform smooth adjustment on the N target compensation filters according to the hearing test results respectively corresponding to the above M detection frequency points. For example, if the hearing test result corresponding to a certain detection frequency point indicates that the hearing characteristics of the user at the detection frequency point are poor (that is, the user's sensitivity is low), the compensation parameter corresponding to the detection frequency point can be set to enhance The compensation parameter can be used to adjust the signal enhancement of the target audio signal in the frequency band corresponding to the detection frequency point; higher sensitivity), then the compensation parameter corresponding to the detection frequency point can be set as an attenuation compensation parameter, so as to adjust the signal attenuation of the target audio signal in the frequency band corresponding to the detection frequency point. After the above smooth adjustment (including signal enhancement adjustment or signal attenuation adjustment), the earphone can cascade the adjusted N target compensation filters, so that the frequency response curve of the overall filter obtained after cascading is more accurate. smooth, so as to help improve the overall sound quality of the target audio signal, and further enhance the audio signal compensation effect. Please refer to Figure 7 and Figure 8 together, Figure 7 is a schematic diagram of the frequency response of a target compensation filter disclosed in the embodiment of the present application, and Figure 8 is the effect of audio signal compensation by the target compensation filter shown in Figure 7 A schematic diagram, wherein the dotted line in FIG. 8 represents the system frequency response before filter compensation, and the solid line represents the system frequency response after filter compensation. It can be understood that the above-mentioned target compensation filter may also be an overall filter obtained by cascading the above-mentioned N target compensation filters. It can be seen that, compared with FIG. 5 , the frequency response curve of the target compensation filter in FIG. 7 is smoother, and the frequency response curve of the compensated system in FIG. 8 is also smoother than that in FIG. 6 , indicating that a smoother compensation effect has been achieved.
可见,实施上述实施例所描述的音频信号补偿方法,能够根据耳机针对若干检测频率 点的听力检测结果,确定出相同乃至更多频率点所对应的补偿参数,进而可以将所确定出的补偿参数用于在相应的频率点各自对应的频段上,对目标音频信号的各频段信号分量进行补偿,从而可以便捷快速地确定出对目标音频信号进行补偿所需的补偿参数,提升了对音频信号进行补偿的效率;此外,通过查表的方式确定各个检测频率点对应的补偿参数,可以快速获取多个检测频率点各自对应的补偿参数,进而可以加快后续基于该补偿参数配置补偿滤波器的效率,有利于进一步提升通过补偿滤波器对目标音频信号进行相应补偿的效率。It can be seen that, implementing the audio signal compensation method described in the above embodiment, the compensation parameters corresponding to the same or even more frequency points can be determined according to the hearing test results of the earphones for several detection frequency points, and then the determined compensation parameters can be It is used to compensate the signal components of each frequency band of the target audio signal in the corresponding frequency bands of the corresponding frequency points, so that the compensation parameters required for compensating the target audio signal can be determined conveniently and quickly, and the audio signal is improved. Compensation efficiency; In addition, by looking up the table to determine the compensation parameters corresponding to each detection frequency point, the compensation parameters corresponding to multiple detection frequency points can be quickly obtained, and then the efficiency of subsequent compensation filter configuration based on the compensation parameters can be accelerated. It is beneficial to further improve the efficiency of correspondingly compensating the target audio signal through the compensation filter.
请参阅图9,图9是本申请实施例公开的又一种音频信号补偿方法的流程示意图,该方法可以应用于上述的耳机,该耳机可以包括扬声器、反馈麦克风以及前馈麦克风。如图9所示,该音频信号补偿方法可以包括以下步骤:Please refer to FIG. 9 . FIG. 9 is a schematic flowchart of another audio signal compensation method disclosed in an embodiment of the present application. The method can be applied to the above-mentioned earphone, and the earphone can include a speaker, a feedback microphone, and a feed-forward microphone. As shown in Figure 9, the audio signal compensation method may include the following steps:
902、通过扬声器分别输出M个检测频率点对应的测试音频信号,并分别获取针对该M个检测频率点对应的测试音频信号反馈的听力检测结果。902. Output test audio signals corresponding to the M detection frequency points respectively through the loudspeaker, and respectively acquire hearing detection results fed back to the test audio signals corresponding to the M detection frequency points.
其中,步骤902与上述步骤302类似,此处不再赘述。Wherein, step 902 is similar to the above-mentioned step 302 and will not be repeated here.
904、根据第一频率点对应的听力检测结果,确定该第一频率点对应的补偿参数,该第一频率点为上述M个检测频率点中的一个或多个频率点;904. Determine a compensation parameter corresponding to the first frequency point according to the hearing test result corresponding to the first frequency point, where the first frequency point is one or more frequency points among the M detection frequency points;
其中,步骤904与上述步骤304类似。需要说明的是,由于第一频率点对应的补偿参数可用于在后续步骤中进一步确定上述M个检测频率点之外的第二频率点对应的补偿参数,因此在选取上述M个检测频率点时,即可基于第二频率点与第一频率点之间的对应关系进行选取和设置。Wherein, step 904 is similar to step 304 above. It should be noted that since the compensation parameters corresponding to the first frequency points can be used to further determine the compensation parameters corresponding to the second frequency points other than the above-mentioned M detection frequency points in subsequent steps, when selecting the above-mentioned M detection frequency points , that is, selection and setting can be performed based on the corresponding relationship between the second frequency point and the first frequency point.
示例性地,若根据第一频率点对应的补偿参数,可以进一步确定其相邻的若干频率点所对应的增益系数,则在全部需进行听力检测的N(M<N)个检测频率点中,可以间隔地挑选M个检测频率点作为优先确定补偿参数的第一频率点。具体举例来说,若上述N个检测频率点分别为500Hz、1000Hz、2000Hz、4000Hz、6000Hz、8000Hz,此时N=6。在此基础上,可以取M=2,例如分别将1000Hz、6000Hz两个频率点作为第一频率点,则耳机在确定出该第一频率点对应的补偿参数之后,可以在后续步骤中根据该第一频率点对应的补偿参数,进一步确定剩下的第二频率点(即500Hz、2000Hz、4000Hz、8000Hz)对应的补偿参数。例如,根据1000Hz频率点对应的补偿参数,可以确定相邻的500Hz及2000Hz两个频率点对应的补偿参数;根据6000Hz频率点对应的补偿参数,则可以确定相邻的4000Hz、8000Hz两个频率点对应的补偿参数。For example, if according to the compensation parameters corresponding to the first frequency point, the gain coefficients corresponding to several adjacent frequency points can be further determined, then in all the N (M<N) detection frequency points that need to be tested for hearing , M detection frequency points may be selected at intervals as the first frequency point for preferentially determining compensation parameters. For example, if the above N detection frequency points are 500 Hz, 1000 Hz, 2000 Hz, 4000 Hz, 6000 Hz and 8000 Hz respectively, then N=6. On this basis, M=2 can be taken. For example, two frequency points of 1000Hz and 6000Hz are respectively used as the first frequency point. The compensation parameters corresponding to the first frequency points are further determined to be the compensation parameters corresponding to the remaining second frequency points (ie, 500 Hz, 2000 Hz, 4000 Hz, 8000 Hz). For example, according to the compensation parameters corresponding to the 1000Hz frequency point, the compensation parameters corresponding to the adjacent 500Hz and 2000Hz frequency points can be determined; according to the compensation parameters corresponding to the 6000Hz frequency point, the adjacent 4000Hz and 8000Hz frequency points can be determined Corresponding compensation parameters.
906、根据第一频率点对应的补偿参数,确定第二频率点对应的补偿参数,该第二频率点为N个检测频率点中除上述M个频率点之外的其他频率点,其中,M小于N。906. According to the compensation parameter corresponding to the first frequency point, determine the compensation parameter corresponding to the second frequency point, where the second frequency point is a frequency point other than the above M frequency points among the N detection frequency points, where M less than N.
在本申请实施例中,当M<N时,耳机在根据其获取的M个听力检测结果分别确定出上述M个检测频率点各自对应的补偿参数之后,可以进一步确定上述N个检测频率点中未包含在该M个检测频率点中的其他频率点对应的补偿参数,从而可以快速地确定出更多检测频率点对应的补偿参数,利于减少检测次数,节省检测时间。In the embodiment of the present application, when M<N, after the earphone determines the compensation parameters corresponding to the above-mentioned M detection frequency points according to the obtained M hearing test results, the earphone can further determine which of the above-mentioned N detection frequency points The compensation parameters corresponding to other frequency points not included in the M detection frequency points can quickly determine the compensation parameters corresponding to more detection frequency points, which is beneficial to reduce the number of detection times and save detection time.
需要说明的是,为了基于第一频率点对应的补偿参数确定出第二频率点对应的补偿参数,需要将上述第一频率点和第二频率点确定为相关频率点(例如相邻的检测频率点、有倍频关系的检测频率点等),并基于两者之间的补偿参数对应关系进行计算。其中,相关频率点的补偿参数对应关系可以通过指定的函数关系运算得到,也可以在大量数据训练的基础上获得。通过实施上述方法,仅需针对少量频率点进行听力检测,即可确定出大量频率点对应的补偿参数以用于进行音频信号补偿,有效提升了对音频信号进行补偿的效率和便捷性。It should be noted that, in order to determine the compensation parameter corresponding to the second frequency point based on the compensation parameter corresponding to the first frequency point, it is necessary to determine the above-mentioned first frequency point and the second frequency point as related frequency points (for example, adjacent detection frequency points points, detection frequency points with multiplier relationship, etc.), and calculate based on the corresponding relationship of compensation parameters between the two. Among them, the corresponding relationship of the compensation parameters of the relevant frequency points can be obtained through a specified functional relationship operation, and can also be obtained on the basis of a large amount of data training. By implementing the above method, only a small number of frequency points need to be tested for hearing, and compensation parameters corresponding to a large number of frequency points can be determined for audio signal compensation, which effectively improves the efficiency and convenience of audio signal compensation.
作为一种可选的实施方式,耳机还可以针对第三频率点进行补偿调整,以提升了对音 频信号进行补偿的精细程度。其中,第三频率点可以为上述M个检测频率点中的一个或多个频率点。As an optional implementation manner, the earphone can also perform compensation adjustment for the third frequency point, so as to improve the fineness of compensation for the audio signal. Wherein, the third frequency point may be one or more frequency points in the above M detected frequency points.
在一些实施例中,若第三频率点对应的补偿参数大于第一参数阈值,则耳机可以确定与该第三频率点对应的补偿参数匹配的第一衰减参数,该第一衰减参数可以用于配置该第三频率点对应的第一衰减滤波器。当耳机根据上述补偿参数对待输出的目标音频信号在与该第三频率点对应的频段上进行补偿之后,可以通过该第一衰减滤波器对补偿后的目标音频信号在该第三频率点对应的频段上进行衰减校正,以降低上述目标补偿滤波器对目标音频信号所带来的过度增益。In some embodiments, if the compensation parameter corresponding to the third frequency point is greater than the first parameter threshold, the earphone can determine a first attenuation parameter that matches the compensation parameter corresponding to the third frequency point, and the first attenuation parameter can be used for Configure the first attenuation filter corresponding to the third frequency point. After the earphone compensates the target audio signal to be output in the frequency band corresponding to the third frequency point according to the above compensation parameters, the compensated target audio signal at the frequency band corresponding to the third frequency point can be compensated by the first attenuation filter. The attenuation correction is performed on the frequency band to reduce the excessive gain of the target audio signal caused by the above-mentioned target compensation filter.
在另一些实施例中,若连续多个第三频率点对应的补偿参数大于第一参数阈值,则耳机还可以根据该多个第三频率点对应的补偿参数,进一步确定第二衰减参数,该第二衰减参数可以用于配置与上述多个第三频率点构成的连续补偿频段对应的第二衰减滤波器。当耳机分别通过上述多个第三频率点各自对应的第一衰减滤波器对目标音频信号进行衰减校正之后,可以通过该第二衰减滤波器对衰减校正后的目标音频信号在上述连续补偿频段上进行整体平滑处理,以进一步降低上述多个目标补偿滤波器对目标音频信号所带来的过度增益。In some other embodiments, if the compensation parameters corresponding to multiple consecutive third frequency points are greater than the first parameter threshold, the earphone may further determine the second attenuation parameter according to the compensation parameters corresponding to the multiple third frequency points. The second attenuation parameter may be used to configure a second attenuation filter corresponding to the continuous compensation frequency band formed by the above-mentioned plurality of third frequency points. After the earphone performs attenuation correction on the target audio signal through the first attenuation filters corresponding to each of the above-mentioned multiple third frequency points, the attenuation-corrected target audio signal can be adjusted in the above-mentioned continuous compensation frequency band through the second attenuation filter An overall smoothing process is performed to further reduce the excessive gain of the target audio signal caused by the above-mentioned multiple target compensation filters.
通过针对上述第三频率点进行精细化的补偿参数调整,可以进一步提高音频信号补偿的准确性,特别是能够有效避免目标补偿滤波器的整体增益意外溢出,从而确保了对目标音频信号进行补偿的可靠性。By finely adjusting the compensation parameters for the third frequency point above, the accuracy of audio signal compensation can be further improved, especially the overall gain of the target compensation filter can be effectively avoided from overflowing unexpectedly, thereby ensuring the compensation of the target audio signal. reliability.
908、获取耳机的佩戴者对应的用户信息。908. Acquire user information corresponding to the wearer of the headset.
示例性地,上述用户信息可以包括年龄信息、职业信息、风格喜好信息、使用时段信息中的一种或多种。其中,上述风格喜好信息,指的是用户喜好的音频风格,如纯音乐、金属、摇滚等。上述使用时段信息,则可以包括用户在不同时段使用耳机的状态、时长、频率等。耳机在获取其佩戴者对应的用户信息之后,可以在后续步骤中针对不同的用户信息进行相应的音频信号补偿,或者针对已经确定的补偿参数进行个性化的调整,从而可以实现个性化的音频信号补偿。Exemplarily, the above user information may include one or more of age information, occupation information, style preference information, and use period information. Wherein, the above style preference information refers to the audio style preferred by the user, such as pure music, metal, rock and so on. The above usage period information may include the status, duration, frequency, etc. of the user using the earphone at different periods. After the headset obtains the user information corresponding to the wearer, it can perform corresponding audio signal compensation for different user information in subsequent steps, or perform personalized adjustments for the determined compensation parameters, so that personalized audio signals can be realized. compensate.
具体举例来说,耳机可以从与其连接的终端设备获取该终端设备的使用者的用户信息,来作为该耳机的佩戴者对应的用户信息。以上述用户信息包括年龄信息为例,耳机可以从上述终端设备获取用户的年龄信息,进而可以在后续步骤中确定与该年龄信息匹配的补偿等级(例如不同的年龄段对应于不同的补偿等级),并进一步获取该补偿等级对应的补偿参数,以用于对待输出的目标音频信号进行个性化补偿,从而可以输出符合用户年龄特点的目标音频信号,进一步提升用户的使用体验。Specifically, for example, an earphone may acquire user information of a user of the terminal device from a terminal device connected thereto as user information corresponding to the wearer of the earphone. Taking the above-mentioned user information including age information as an example, the headset can obtain the user's age information from the above-mentioned terminal device, and then determine the compensation level matching the age information in subsequent steps (for example, different age groups correspond to different compensation levels) , and further obtain the compensation parameter corresponding to the compensation level, so as to perform personalized compensation on the target audio signal to be output, so that the target audio signal conforming to the age characteristics of the user can be output, and the user experience can be further improved.
910、根据该用户信息,确定与上述听力检测结果对应的补偿调整参数,并根据该补偿调整参数对上述N个检测频率点各自对应的补偿参数进行调整。910. According to the user information, determine a compensation adjustment parameter corresponding to the hearing test result, and adjust the compensation parameters corresponding to each of the N detection frequency points according to the compensation adjustment parameter.
在本申请实施例中,基于上述用户信息确定出的补偿调整参数,可以用于对上述N个检测频率点各自对应的补偿参数进行调整。示例性地,不同补偿调整参数可以对应于不同类型的滤波器,用于级联在上述补偿参数所配置的补偿滤波器之前或之后,以实现对该补偿参数的调整效果。示例性地,上述补偿调整参数对应的滤波器可以包括低频搁架滤波器Lowshelf Filter、高频搁架滤波器Highshelf Filter、峰值滤波器Peaking Filter中的一种或多种。In the embodiment of the present application, the compensation adjustment parameters determined based on the above user information may be used to adjust the compensation parameters corresponding to each of the N detection frequency points. Exemplarily, different compensation adjustment parameters may correspond to different types of filters, which are cascaded before or after the compensation filter configured by the above compensation parameters, so as to realize the adjustment effect of the compensation parameters. Exemplarily, the filter corresponding to the above-mentioned compensation adjustment parameters may include one or more of a Lowshelf Filter, a Highshelf Filter, and a Peaking Filter.
可选地,在对上述N个检测频率点各自对应的补偿参数进行调整之后,该耳机还可以级联一个限幅器Limiter来进行限幅处理,从而可以防止目标音频信号增益溢出,有效地保障了扬声器的安全。Optionally, after adjusting the compensation parameters corresponding to the above-mentioned N detection frequency points, the earphone can also be cascaded with a limiter Limiter to perform limiting processing, thereby preventing the gain overflow of the target audio signal and effectively ensuring the safety of the speaker.
通过实施上述方法,可以基于用户信息进行个性化的音效补偿,进一步提升了进行音 频信号补偿的灵活性。By implementing the above method, personalized sound effect compensation can be performed based on user information, further improving the flexibility of audio signal compensation.
912、根据上述补偿调整参数及补偿参数,确定个性化调整类型。912. Determine a personalized adjustment type according to the above compensation adjustment parameters and compensation parameters.
914、获取该个性化调整类型对应的调整交互信息。914. Acquire adjustment interaction information corresponding to the personalized adjustment type.
其中,不同的补偿调整参数及补偿参数,可以与不同的个性化调整类型相匹配,而上述个性化调整类型还可以与指定的调整交互信息相匹配。示例性地,上述调整交互信息可以包括图像信息、声音信息及震动信息中的一种或多种。举例来说,该调整交互信息可以包括形容音感的静态或动态图片(可包括文字),用于显示耳机对待输出的目标音频信号进行补偿后,该目标音频信号的实时音感状态(如柔和、激昂等)或音频补偿状态(如是否已开启补偿功能、开启何种类型的补偿功能等);也可以包括在输出目标音频信号前所输出的提示语音,用于提示该耳机是否已开启音频信号补偿的功能;还可以包括在输出目标音频信号的同时一并输出的震动提示等,以用于形成多维度的音频补偿效果展示,进一步提升用户的使用体验。Wherein, different compensation adjustment parameters and compensation parameters can be matched with different personalized adjustment types, and the above-mentioned personalized adjustment types can also be matched with specified adjustment interaction information. Exemplarily, the adjustment interaction information may include one or more of image information, sound information, and vibration information. For example, the adjustment interaction information may include a static or dynamic picture (which may include text) describing the sound perception, which is used to display the real-time sound perception state (such as soft, exciting, etc.) of the target audio signal to be output after the headphone compensates the target audio signal. etc.) or audio compensation status (such as whether the compensation function is turned on, what type of compensation function is turned on, etc.); it can also include a prompt voice output before outputting the target audio signal, which is used to prompt whether the headset has turned on the audio signal compensation function; it may also include outputting a vibration prompt while outputting the target audio signal, so as to form a multi-dimensional audio compensation effect display and further enhance the user experience.
916、将该调整交互信息发送至与耳机连接的终端设备,并触发该终端设备输出调整交互信息。916. Send the adjustment interaction information to the terminal device connected to the headset, and trigger the terminal device to output the adjustment interaction information.
示例性地,请参阅图10,图10是本申请实施例公开的一种终端设备输出调整交互信息的界面示意图。如图10所示,终端设备30可以在其屏幕310上输出图像形式的调整交互信息。该调整交互信息可以如图标311所示,显示在终端设备30的屏幕310的上半屏(可用于常驻显示);也可以如图标312所示,显示在该屏幕310的下半屏(可用于熄屏显示)。上述图标311及图标312可以包括文字信息(“XX”可以代表不同音感的描述文字),也可以包括图像信息,还可以包括图文信息等。可以理解,图10所示的调整交互信息仅是一些示例,图标311所示的调整交互信息和图标312所示的调整交互信息可以单独显示,也可以同时显示,终端设备30还可以输出其他类型的调整交互信息,从而可以向用户展示个性化的音频补偿状态,带来更多样化的使用体验。For example, please refer to FIG. 10 . FIG. 10 is a schematic diagram of an interface of a terminal device outputting adjustment interaction information disclosed in an embodiment of the present application. As shown in FIG. 10 , the terminal device 30 may output adjustment interaction information in the form of an image on its screen 310 . The adjustment interaction information may be displayed on the upper half of the screen 310 of the terminal device 30 as shown in icon 311 (available for resident display); it may also be displayed on the lower half of the screen 310 as shown in icon 312 (available in on screen off). The above-mentioned icons 311 and 312 may include text information ("XX" may represent descriptive text of different pitches), image information, and graphic information. It can be understood that the adjustment interaction information shown in FIG. 10 is only some examples, and the adjustment interaction information shown by icon 311 and the adjustment interaction information shown by icon 312 can be displayed separately or simultaneously, and the terminal device 30 can also output other types of Adjust the interactive information, so that the personalized audio compensation status can be displayed to the user, bringing a more diverse user experience.
可见,实施上述实施例所描述的音频信号补偿方法,能够根据耳机针对若干检测频率点的听力检测结果,确定出相同乃至更多频率点所对应的补偿参数,进而可以将所确定出的补偿参数用于在相应的频率点各自对应的频段上,对目标音频信号的各频段信号分量进行补偿,从而可以便捷快速地确定出对目标音频信号进行补偿所需的补偿参数,提升了对音频信号进行补偿的效率;此外,通过针对上述第三频率点进行精细化的补偿参数调整,可以进一步提高音频信号补偿的准确性,特别是能够有效避免目标补偿滤波器的整体增益意外溢出,从而确保了对目标音频信号进行补偿的可靠性;此外,还可以基于用户信息进行个性化的音效补偿,进一步提升了进行音频信号补偿的灵活性。It can be seen that, implementing the audio signal compensation method described in the above embodiment, the compensation parameters corresponding to the same or even more frequency points can be determined according to the hearing test results of the earphones for several detection frequency points, and then the determined compensation parameters can be It is used to compensate the signal components of each frequency band of the target audio signal in the corresponding frequency bands of the corresponding frequency points, so that the compensation parameters required for compensating the target audio signal can be determined conveniently and quickly, and the audio signal is improved. Compensation efficiency; In addition, by finely adjusting the compensation parameters for the above-mentioned third frequency point, the accuracy of audio signal compensation can be further improved, especially to effectively avoid the overall gain of the target compensation filter from overflowing unexpectedly, thereby ensuring the The reliability of compensation for the target audio signal; in addition, personalized sound compensation can be performed based on user information, which further improves the flexibility of audio signal compensation.
请参阅图11,图11是本申请实施例公开的一种音频信号补偿装置的模块化示意图,该音频信号补偿装置可以应用于上述的耳机,该耳机可以包括扬声器。如图11所示,该音频信号补偿装置可以包括输出单元1101以及确定单元1102,其中:Please refer to FIG. 11 . FIG. 11 is a modular schematic diagram of an audio signal compensation device disclosed in an embodiment of the present application. The audio signal compensation device may be applied to the above-mentioned earphone, and the earphone may include a speaker. As shown in Figure 11, the audio signal compensation device may include an output unit 1101 and a determination unit 1102, wherein:
输出单元1101,用于通过扬声器分别输出M个检测频率点对应的测试音频信号,并分别获取针对该M个检测频率点分别对应的测试音频信号反馈的听力检测结果;The output unit 1101 is configured to respectively output the test audio signals corresponding to the M detection frequency points through the speaker, and respectively obtain the hearing test results fed back by the test audio signals corresponding to the M detection frequency points;
确定单元1102,用于根据上述M个检测频率点分别对应的听力检测结果,确定N个检测频率点各自对应的补偿参数,该补偿参数用于对待输出的目标音频信号在与该N个检测频率点各自对应的频段上分别进行补偿,其中,N及M均为正整数,且M小于或等于N,该N个检测频率点可以包括上述M个检测频率点。The determining unit 1102 is configured to determine compensation parameters corresponding to each of the N detection frequency points according to the hearing test results corresponding to the above M detection frequency points, and the compensation parameters are used for the target audio signal to be output when it is in relation to the N detection frequency points. Compensation is performed on frequency bands corresponding to the respective points, wherein N and M are both positive integers, and M is less than or equal to N, and the N detection frequency points may include the aforementioned M detection frequency points.
可见,采用上述实施例所描述的音频信号补偿装置,能够根据耳机针对若干检测频率点的听力检测结果,确定出相同乃至更多频率点所对应的补偿参数,进而可以将所确定出 的补偿参数用于在相应的频率点各自对应的频段上,对目标音频信号的各频段信号分量进行补偿。基于上述简洁的流程,即可便捷快速地确定出对目标音频信号进行补偿所需的补偿参数,既避免了相关技术中需要专业医师或用户自身进行听力检测和参数计算的复杂流程,又能够高效地确定多个检测频率点对应的补偿参数,从而提升了对音频信号进行补偿的效率。It can be seen that by using the audio signal compensation device described in the above embodiments, the compensation parameters corresponding to the same or more frequency points can be determined according to the hearing test results of the earphones for several detection frequency points, and then the determined compensation parameters can be It is used to compensate the signal components of each frequency band of the target audio signal in the frequency bands corresponding to the corresponding frequency points. Based on the above-mentioned concise process, the compensation parameters required for compensating the target audio signal can be determined conveniently and quickly, which not only avoids the complicated process of hearing detection and parameter calculation by professional doctors or users themselves in related technologies, but also can efficiently Compensation parameters corresponding to multiple detection frequency points are accurately determined, thereby improving the efficiency of compensating audio signals.
在一种实施例中,上述补偿参数可以包括补偿滤波器参数,该音频信号补偿装置还可以包括未图示的滤波器配置单元和补偿单元,其中:In an embodiment, the above-mentioned compensation parameters may include compensation filter parameters, and the audio signal compensation device may also include a filter configuration unit and a compensation unit not shown, wherein:
滤波器配置单元,用于根据N个检测频率点各自对应的补偿滤波器参数,分别配置N个目标补偿滤波器,其中,N个目标补偿滤波器的中心频率分别与N个检测频率一一对应;The filter configuration unit is used to configure N target compensation filters respectively according to the compensation filter parameters corresponding to the N detection frequency points, wherein the center frequencies of the N target compensation filters correspond to the N detection frequencies respectively. ;
补偿单元,用于通过N个目标补偿滤波器,对待输出的目标音频信号在以N个检测频率点为中心的频段上分别进行非线性补偿,从而可以提升对目标音频信号进行补偿的灵活性,有助于针对不同用户的听力特性实现针对性、精细化的补偿,也提升了音频信号补偿的准确性和有效性。The compensation unit is used to perform non-linear compensation on the target audio signal to be output in the frequency band centered on N detection frequency points through N target compensation filters, so as to improve the flexibility of compensating the target audio signal, It helps to achieve targeted and refined compensation according to the hearing characteristics of different users, and also improves the accuracy and effectiveness of audio signal compensation.
其中,上述补偿单元具体还可以用于将N个目标补偿滤波器进行级联,并通过级联后的N个目标补偿滤波器对待输出的目标音频信号进行非线性补偿。Wherein, the above-mentioned compensation unit can also be specifically configured to cascade N target compensation filters, and perform nonlinear compensation on the target audio signal to be output through the cascaded N target compensation filters.
示例性地,上述补偿单元在将N个目标补偿滤波器进行级联时,可以包括以下步骤:Exemplarily, the compensation unit may include the following steps when cascading N target compensation filters:
根据M个检测频率点分别对应的听力检测结果,对N个目标补偿滤波器进行平滑调整,平滑调整包括信号增强调整或信号衰减调整;Smoothly adjust the N target compensation filters according to the hearing test results corresponding to the M detection frequency points, and the smooth adjustment includes signal enhancement adjustment or signal attenuation adjustment;
将调整后的N个目标补偿滤波器进行级联。The adjusted N target compensation filters are cascaded.
需要说明的是,上述目标补偿滤波器可以包括无限长单位冲激响应IIR滤波器。在一些实施例中,上述IIR滤波器可以包括二阶IIR滤波器,且包括低频搁架滤波器Lowshelf Filter、高频搁架滤波器Highshelf Filter、峰值滤波器Peaking Filter中的一种或多种。It should be noted that the above-mentioned target compensation filter may include an infinite-length unit impulse response IIR filter. In some embodiments, the above-mentioned IIR filter may include a second-order IIR filter, and include one or more of a Lowshelf Filter, a Highshelf Filter, and a Peaking Filter.
可见,采用上述实施例所描述的音频信号补偿装置,将调整后的N个目标补偿滤波器进行级联,可以使得级联后所得到的整体滤波器的频响曲线更加平滑,从而有利于提升目标音频信号的整体音质,It can be seen that, using the audio signal compensation device described in the above embodiment, cascading the adjusted N target compensation filters can make the frequency response curve of the overall filter obtained after cascading smoother, which is conducive to improving the overall sound quality of the target audio signal,
在一种实施例中,若上述M的值小于N,则上述确定单元1102可以包括未图示的第一确定子单元及第二确定子单元,其中:In one embodiment, if the value of the above M is less than N, the above determining unit 1102 may include a first determining subunit and a second determining subunit not shown, wherein:
第一确定子单元,用于根据第一频率点对应的听力检测结果,确定第一频率点对应的补偿参数,第一频率点为M个检测频率点中的一个或多个频率点;The first determination subunit is configured to determine the compensation parameter corresponding to the first frequency point according to the hearing test result corresponding to the first frequency point, where the first frequency point is one or more frequency points among the M detection frequency points;
第二确定子单元,用于根据第一频率点对应的补偿参数,确定第二频率点对应的补偿参数,第二频率点为N个检测频率点中除M个频率点之外的其他频率点。The second determination subunit is used to determine the compensation parameter corresponding to the second frequency point according to the compensation parameter corresponding to the first frequency point, and the second frequency point is other frequency points except M frequency points among the N detection frequency points .
可见,采用上述实施例所描述的音频信号补偿装置,仅需针对少量频率点进行听力检测,即可确定出大量频率点对应的补偿参数以用于进行音频信号补偿,有效提升了对音频信号进行补偿的效率和便捷性。It can be seen that by using the audio signal compensation device described in the above embodiments, only a small number of frequency points need to be tested for hearing, and compensation parameters corresponding to a large number of frequency points can be determined for audio signal compensation, which effectively improves the audio signal performance. Efficiency and convenience of compensation.
在一种实施例中,若上述M的值等于N,且上述听力检测结果包括声音强度阈值,该声音强度阈值为用户分别能够听到M个检测频率点对应的测试音频信号的临界声音强度,则上述确定单元1102可以包括未图示的查询子单元,该查询子单元可以用于根据M个检测频率点各自对应的声音强度阈值,在补偿映射表上分别查询M个检测频率点对应的补偿参数,其中,补偿映射表包括各个检测频率点分别对应的声音强度阈值及补偿参数之间的映射关系。In one embodiment, if the value of the above-mentioned M is equal to N, and the above-mentioned hearing test result includes a sound intensity threshold, the sound intensity threshold is the critical sound intensity at which the user can respectively hear the test audio signals corresponding to the M detection frequency points, Then the above determination unit 1102 may include an unillustrated query subunit, which may be used to query the compensation corresponding to the M detection frequency points on the compensation mapping table according to the respective sound intensity thresholds corresponding to the M detection frequency points. Parameters, wherein the compensation mapping table includes the mapping relationship between sound intensity thresholds corresponding to each detection frequency point and compensation parameters.
需要说明的是,上述补偿映射表可以是利用样本数据集进行训练得到的,样本数据集包括多个样本频率点分别对应的样本声音强度阈值及样本补偿参数。It should be noted that the above compensation mapping table may be obtained by training using a sample data set, and the sample data set includes sample sound intensity thresholds and sample compensation parameters corresponding to a plurality of sample frequency points respectively.
示例性地,上述查询子单元在补偿映射表上分别查询M个检测频率点对应的补偿参数 时,具体可以执行以下步骤:Exemplarily, when the above-mentioned query subunit respectively queries the compensation parameters corresponding to the M detection frequency points on the compensation mapping table, the following steps can be specifically performed:
根据M个检测频率点各自对应的声音强度阈值,分别确定与声音强度阈值匹配的补偿等级;According to the respective sound intensity thresholds corresponding to the M detection frequency points, respectively determine the compensation level matching the sound intensity threshold;
基于M个检测频率点各自对应的补偿等级,在补偿映射表上分别查询M个检测频率点对应的补偿参数。Based on the respective compensation levels corresponding to the M detection frequency points, the compensation parameters corresponding to the M detection frequency points are respectively queried on the compensation mapping table.
可见,通过查表的方式确定各个检测频率点对应的补偿参数,可以快速获取多个检测频率点各自对应的补偿参数,进而可以加快后续基于该补偿参数配置补偿滤波器的效率,有利于进一步提升通过补偿滤波器对目标音频信号进行相应补偿的效率。It can be seen that by looking up the table to determine the compensation parameters corresponding to each detection frequency point, the compensation parameters corresponding to multiple detection frequency points can be quickly obtained, which in turn can speed up the efficiency of subsequent compensation filter configuration based on the compensation parameters, which is conducive to further improvement. The efficiency with which the target audio signal is compensated accordingly by the compensation filter.
在一种实施例中,若上述M的值等于N,则上述确定单元1102还可以包括未图示的的第三确定子单元,该第三确定子单元可以用于若M个检测频率点分别对应的听力检测结果均属于第一范围,则将N个检测频率点各自对应的补偿参数确定为默认参数。基于默认的增益系数配置目标补偿滤波器,可以对待输出的目标音频信号进行一定的补偿,从而使得用户明显可以感受到优化补偿的效果,进一步提升了用户体验。In one embodiment, if the value of M above is equal to N, then the determining unit 1102 may further include a third determining subunit not shown in the figure, and the third determining subunit may be used for if the M detection frequency points are respectively If the corresponding hearing test results all belong to the first range, the compensation parameters corresponding to each of the N detected frequency points are determined as default parameters. Configuring the target compensation filter based on the default gain coefficient can compensate the target audio signal to be output to a certain extent, so that the user can clearly feel the effect of optimized compensation, further improving the user experience.
在一种实施例中,该音频信号补偿装置还可以包括未图示的第一衰减单元,该第一衰减单元可以在第三频率点对应的补偿参数大于第一参数阈值时,确定与该第三频率点对应的补偿参数匹配的第一衰减参数,第一衰减参数用于配置第三频率点对应的第一衰减滤波器,第一衰减滤波器用于在根据补偿参数对待输出的目标音频信号在与第三频率点对应的频段上进行补偿后,通过第一衰减滤波器对补偿后的目标音频信号在与第三频率点对应的频段上进行衰减校正,其中,第三频率点为M个检测频率点中的一个或多个频率点。In an embodiment, the audio signal compensation device may further include a first attenuation unit not shown in the figure, and the first attenuation unit may determine that when the compensation parameter corresponding to the third frequency point is greater than the first parameter threshold, The compensation parameters corresponding to the three frequency points match the first attenuation parameter, the first attenuation parameter is used to configure the first attenuation filter corresponding to the third frequency point, and the first attenuation filter is used for the target audio signal to be output according to the compensation parameter After compensation is performed on the frequency band corresponding to the third frequency point, the attenuation correction is performed on the compensated target audio signal through the first attenuation filter on the frequency band corresponding to the third frequency point, wherein the third frequency point is M detection One or more of the frequency bins.
在一种实施例中,该音频信号补偿装置还可以包括未图示的第二衰减单元,该第一衰减单元可以用于根据多个第三频率点对应的补偿参数,确定第二衰减参数,第二衰减参数用于配置与多个第三频率点构成的连续补偿频段对应的第二衰减滤波器,第二衰减滤波器用于在通过多个第三频率点各自对应的第一衰减滤波器,分别对补偿后的目标音频信号在与多个第三频率点对应的频段上进行衰减校正后,通过第二衰减滤波器对衰减校正后的目标音频信号在连续补偿频段上进行整体平滑处理。In an embodiment, the audio signal compensation device may further include a second attenuation unit not shown, and the first attenuation unit may be used to determine a second attenuation parameter according to compensation parameters corresponding to multiple third frequency points, The second attenuation parameter is used to configure the second attenuation filter corresponding to the continuous compensation frequency band formed by a plurality of third frequency points, and the second attenuation filter is used to pass the first attenuation filter corresponding to each of the plurality of third frequency points, After attenuation correction is performed on the compensated target audio signal in frequency bands corresponding to multiple third frequency points, the overall smoothing process is performed on the attenuation-corrected target audio signal in continuous compensation frequency bands through the second attenuation filter.
可见,采用上述实施例所描述的音频信号补偿装置,通过针对上述第三频率点进行精细化的补偿参数调整,可以进一步提高音频信号补偿的准确性,特别是能够有效避免目标补偿滤波器的整体增益意外溢出,从而确保了对目标音频信号进行补偿的可靠性。It can be seen that by adopting the audio signal compensation device described in the above embodiment, the accuracy of audio signal compensation can be further improved by finely adjusting the compensation parameters for the third frequency point, especially to effectively avoid the overall Unexpected overflow of gain ensures reliable compensation of the target audio signal.
在一种实施例中,该音频信号补偿装置还可以包括未图示的信息获取单元,其中:In an embodiment, the audio signal compensation device may also include an information acquisition unit not shown, wherein:
信息获取单元,用于在上述确定单元确定出N个检测频率点各自对应的补偿参数之后,获取耳机的佩戴者对应的用户信息;An information acquisition unit, configured to acquire user information corresponding to the wearer of the earphone after the determination unit determines the compensation parameters corresponding to each of the N detection frequency points;
上述确定单元,还用于根据用户信息,确定与听力检测结果对应的补偿调整参数,并根据补偿调整参数对N个检测频率点各自对应的补偿参数进行调整。The determination unit is further configured to determine the compensation adjustment parameters corresponding to the hearing test results according to the user information, and adjust the compensation parameters corresponding to the N detection frequency points according to the compensation adjustment parameters.
其中,上述用户信息可以包括年龄信息、职业信息、风格喜好信息、使用时段信息中的一种或多种。Wherein, the above user information may include one or more of age information, occupation information, style preference information, and use period information.
在一种实施例中,该音频信号补偿装置还可以包括未图示的发送单元,其中:In an embodiment, the audio signal compensation device may also include a sending unit not shown, wherein:
上述确定单元,还用于在确定除与听力检测结果对应的补偿调整参数之后,根据补偿调整参数及补偿参数,确定个性化调整等级;The above determining unit is also used to determine the personalized adjustment level according to the compensation adjustment parameter and the compensation parameter after determining the compensation adjustment parameter corresponding to the hearing test result;
上述信息获取单元,还用于获取个性化调整等级对应的调整交互信息;The above-mentioned information obtaining unit is also used to obtain the adjustment interaction information corresponding to the personalized adjustment level;
发送单元,用于将调整交互信息发送至与耳机连接的终端设备,并触发终端设备输出调整交互信息。The sending unit is configured to send the adjustment interaction information to the terminal device connected to the headset, and trigger the terminal device to output the adjustment interaction information.
可见,采用上述实施例所描述的音频信号补偿装置,能够根据耳机针对若干检测频率点的听力检测结果,确定出相同乃至更多频率点所对应的补偿参数,进而可以将所确定出 的补偿参数用于在相应的频率点各自对应的频段上,对目标音频信号的各频段信号分量进行补偿,从而可以便捷快速地确定出对目标音频信号进行补偿所需的补偿参数,提升了对音频信号进行补偿的效率;此外,通过针对上述第三频率点进行精细化的补偿参数调整,可以进一步提高音频信号补偿的准确性,特别是能够有效避免目标补偿滤波器的整体增益意外溢出,从而确保了对目标音频信号进行补偿的可靠性;此外,还可以基于用户信息进行个性化的音效补偿,进一步提升了进行音频信号补偿的灵活性。It can be seen that by using the audio signal compensation device described in the above embodiments, the compensation parameters corresponding to the same or more frequency points can be determined according to the hearing test results of the earphones for several detection frequency points, and then the determined compensation parameters can be It is used to compensate the signal components of each frequency band of the target audio signal in the corresponding frequency bands of the corresponding frequency points, so that the compensation parameters required for compensating the target audio signal can be determined conveniently and quickly, and the audio signal is improved. Compensation efficiency; In addition, by finely adjusting the compensation parameters for the above-mentioned third frequency point, the accuracy of audio signal compensation can be further improved, especially to effectively avoid the overall gain of the target compensation filter from overflowing unexpectedly, thereby ensuring the The reliability of compensation for the target audio signal; in addition, personalized sound compensation can be performed based on user information, which further improves the flexibility of audio signal compensation.
请参阅图12,图12是本申请实施例公开的一种耳机的模块化示意图。如图12所示,该耳机可以包括:Please refer to FIG. 12 . FIG. 12 is a schematic modular diagram of an earphone disclosed in an embodiment of the present application. As shown in Figure 12, the headset may include:
存储有可执行程序代码的存储器1201;A memory 1201 storing executable program codes;
与存储器1201耦合的处理器1202;a processor 1202 coupled to the memory 1201;
其中,处理器1202调用存储器1201中存储的可执行程序代码,可以执行上述实施例所描述的任意一种音频信号补偿方法中的全部或部分步骤。Wherein, the processor 1202 invokes the executable program code stored in the memory 1201 to execute all or part of the steps in any audio signal compensation method described in the above-mentioned embodiments.
此外,本申请实施例进一步公开了一种计算机可读存储介质,其存储用于电子数据交换的计算机程序,其中,该计算机程序使得计算机可以执行上述实施例所描述的任意一种音频信号补偿方法中的全部或部分步骤。In addition, the embodiment of the present application further discloses a computer-readable storage medium, which stores a computer program for electronic data exchange, wherein the computer program enables the computer to execute any audio signal compensation method described in the above-mentioned embodiments All or some of the steps in .
此外,本申请实施例进一步公开一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机可以执行上述实施例所描述的任意一种音频信号补偿方法中的全部或部分步骤。In addition, the embodiments of the present application further disclose a computer program product. When the computer program product is run on a computer, the computer can execute all or part of the steps in any audio signal compensation method described in the above embodiments.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes read-only Memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read-only memory (Programmable Read-only Memory, PROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc (Compact Disc Read-Only Memory, CD-ROM) or other optical disk storage, magnetic disk storage, tape storage, or any other computer-readable medium that can be used to carry or store data.
以上对本申请实施例公开的一种音频信号补偿方法及装置、耳机、存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。An audio signal compensation method and device, earphone, and storage medium disclosed in the embodiments of the present application have been described above in detail. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application. The descriptions of the above embodiments are only used To help understand the method and its core idea of this application; at the same time, for those of ordinary skill in the art, according to the idea of this application, there will be changes in the specific implementation and application scope. In summary, this specification The content should not be construed as a limitation of the application.
Claims (34)
- 一种音频信号补偿方法,其特征在于,应用于耳机,所述耳机包括扬声器,所述方法包括:An audio signal compensation method, characterized in that it is applied to earphones, the earphones include loudspeakers, and the method includes:通过所述扬声器分别输出M个检测频率点对应的测试音频信号,并分别获取针对所述M个检测频率点对应的测试音频信号反馈的听力检测结果;Outputting test audio signals corresponding to M detection frequency points respectively through the speakers, and respectively obtaining hearing detection results fed back to the test audio signals corresponding to the M detection frequency points;根据所述M个检测频率点分别对应的听力检测结果,确定N个检测频率点各自对应的补偿参数,所述补偿参数用于对待输出的目标音频信号在与所述N个检测频率点各自对应的频段上分别进行补偿,其中,所述N及M均为正整数,且所述M小于或等于所述N,所述N个检测频率点包括所述M个检测频率点。According to the hearing test results respectively corresponding to the M detection frequency points, the compensation parameters corresponding to the N detection frequency points are determined, and the compensation parameters are used to correspond to the N detection frequency points respectively for the target audio signal to be output. Compensation is performed on the frequency bands respectively, wherein the N and M are both positive integers, and the M is less than or equal to the N, and the N detection frequency points include the M detection frequency points.
- 根据权利要求1所述的方法,其特征在于,所述补偿参数包括补偿滤波器参数,在所述根据所述M个检测频率点分别对应的听力检测结果,确定N个检测频率点各自对应的补偿参数之后,所述方法还包括:The method according to claim 1, wherein the compensation parameters include compensation filter parameters, and according to the hearing test results corresponding to the M detection frequency points, determine the corresponding After compensating the parameters, the method also includes:根据所述N个检测频率点各自对应的补偿滤波器参数,分别配置N个目标补偿滤波器,其中,所述N个目标补偿滤波器的中心频率分别与所述N个检测频率点一一对应;According to the respective compensation filter parameters corresponding to the N detection frequency points, configure N target compensation filters respectively, wherein the center frequencies of the N target compensation filters correspond to the N detection frequency points one-to-one, respectively. ;通过所述N个目标补偿滤波器,对待输出的目标音频信号在以所述N个检测频率点为中心的频段上分别进行非线性补偿。Through the N target compensation filters, the target audio signal to be output is respectively subjected to non-linear compensation in frequency bands centered on the N detection frequency points.
- 根据权利要求2所述的方法,其特征在于,所述通过所述N个目标补偿滤波器,对待输出的目标音频信号在以所述N个检测频率点为中心的频段上分别进行非线性补偿,包括:The method according to claim 2, characterized in that, through the N target compensation filters, the target audio signal to be output is respectively nonlinearly compensated in the frequency band centered on the N detection frequency points ,include:将所述N个目标补偿滤波器进行级联,并通过级联后的所述N个目标补偿滤波器对待输出的目标音频信号进行非线性补偿。The N target compensation filters are cascaded, and nonlinear compensation is performed on the target audio signal to be output through the N target compensation filters after cascading.
- 根据权利要求3所述的方法,其特征在于,所述将所述N个目标补偿滤波器进行级联,包括:The method according to claim 3, wherein said cascading said N target compensation filters comprises:根据所述M个检测频率点分别对应的听力检测结果,对所述N个目标补偿滤波器进行平滑调整,所述平滑调整包括信号增强调整或信号衰减调整;Smoothly adjust the N target compensation filters according to the hearing test results respectively corresponding to the M detection frequency points, where the smooth adjustment includes signal enhancement adjustment or signal attenuation adjustment;将调整后的所述N个目标补偿滤波器进行级联。The adjusted N target compensation filters are cascaded.
- 根据权利要求2所述的方法,其特征在于,所述目标补偿滤波器包括无限长单位冲激响应IIR滤波器。The method according to claim 2, wherein the target compensation filter comprises an infinite-length unit impulse response (IIR) filter.
- 根据权利要求5所述的方法,其特征在于,所述IIR滤波器包括二阶IIR滤波器,且包括低频搁架滤波器Lowshelf Filter、高频搁架滤波器Highshelf Filter、峰值滤波器Peaking Filter中的一种或多种。The method according to claim 5, wherein the IIR filter comprises a second-order IIR filter, and comprises a low-frequency shelf filter Lowshelf Filter, a high-frequency shelf filter Highshelf Filter, and a peak filter Peaking Filter one or more of .
- 根据权利要求1至6任一项所述的方法,其特征在于,所述M小于所述N,所述根据所述M个检测频率点分别对应的听力检测结果,确定N个检测频率点各自对应的补偿参数,包括:The method according to any one of claims 1 to 6, wherein the M is smaller than the N, and the N detection frequency points are determined according to the hearing test results respectively corresponding to the M detection frequency points. The corresponding compensation parameters include:根据第一频率点对应的听力检测结果,确定所述第一频率点对应的补偿参数,所述第一频率点为所述M个检测频率点中的一个或多个频率点;Determine the compensation parameter corresponding to the first frequency point according to the hearing test result corresponding to the first frequency point, where the first frequency point is one or more frequency points in the M detection frequency points;根据所述第一频率点对应的补偿参数,确定第二频率点对应的补偿参数,所述第二频率点为所述N个检测频率点中除所述M个频率点之外的其他频率点。According to the compensation parameter corresponding to the first frequency point, determine the compensation parameter corresponding to the second frequency point, where the second frequency point is a frequency point other than the M frequency points among the N detection frequency points .
- 根据权利要求1至6任一项所述的方法,其特征在于,所述M等于所述N,所述听力检测结果包括声音强度阈值,所述声音强度阈值为用户分别能够听到所述M个检测频率点对应的测试音频信号的临界声音强度,所述根据所述M个检测频率点分别对应的听力检测结果,确定N个检测频率点各自对应的补偿参数,包括:The method according to any one of claims 1 to 6, wherein the M is equal to the N, and the hearing test result includes a sound intensity threshold, and the sound intensity threshold is that the user can hear the M respectively. The critical sound intensity of the test audio signal corresponding to the detection frequency points, according to the hearing test results corresponding to the M detection frequency points, determine the respective compensation parameters corresponding to the N detection frequency points, including:根据所述M个检测频率点各自对应的声音强度阈值,在补偿映射表上分别查询所述 M个检测频率点对应的补偿参数,其中,所述补偿映射表包括各个检测频率点分别对应的声音强度阈值及补偿参数之间的映射关系。According to the sound intensity thresholds corresponding to each of the M detection frequency points, the compensation parameters corresponding to the M detection frequency points are respectively queried on the compensation mapping table, wherein the compensation mapping table includes the sound corresponding to each detection frequency point The mapping relationship between intensity threshold and compensation parameters.
- 根据权利要求8所述的方法,其特征在于,所述补偿映射表是利用样本数据集进行训练得到的,所述样本数据集包括多个样本频率点分别对应的样本声音强度阈值及样本补偿参数。The method according to claim 8, wherein the compensation mapping table is obtained by using a sample data set for training, and the sample data set includes sample sound intensity thresholds and sample compensation parameters respectively corresponding to a plurality of sample frequency points .
- 根据权利要求8所述的方法,其特征在于,所述根据所述M个检测频率点各自对应的声音强度阈值,在补偿映射表上分别查询所述M个检测频率点对应的补偿参数,包括:The method according to claim 8, wherein the compensation parameters corresponding to the M detection frequency points are respectively queried on the compensation mapping table according to the sound intensity thresholds corresponding to the M detection frequency points, including :根据所述M个检测频率点各自对应的声音强度阈值,分别确定与所述声音强度阈值匹配的补偿等级;According to the sound intensity thresholds corresponding to each of the M detection frequency points, respectively determine the compensation level matching the sound intensity threshold;基于所述M个检测频率点各自对应的补偿等级,在补偿映射表上分别查询所述M个检测频率点对应的补偿参数。Based on the respective compensation levels corresponding to the M detection frequency points, the compensation parameters corresponding to the M detection frequency points are respectively queried in the compensation mapping table.
- 根据权利要求1至6任一项所述的方法,其特征在于,所述M等于所述N,所述根据所述M个检测频率点分别对应的听力检测结果,确定N个检测频率点各自对应的补偿参数,包括:The method according to any one of claims 1 to 6, wherein the M is equal to the N, and the N detection frequency points are determined according to the hearing test results respectively corresponding to the M detection frequency points. The corresponding compensation parameters include:若所述M个检测频率点分别对应的听力检测结果均属于第一范围,则将N个检测频率点各自对应的补偿参数确定为默认参数。If the hearing test results respectively corresponding to the M detection frequency points all belong to the first range, then the compensation parameters corresponding to the N detection frequency points are determined as default parameters.
- 根据权利要求1至6任一项所述的方法,其特征在于,在所述根据所述M个检测频率点分别对应的听力检测结果,确定N个检测频率点各自对应的补偿参数之后,所述方法还包括:The method according to any one of claims 1 to 6, characterized in that, after determining the compensation parameters corresponding to each of the N detection frequency points according to the hearing test results respectively corresponding to the M detection frequency points, the The method also includes:若第三频率点对应的补偿参数大于第一参数阈值,则确定与所述第三频率点对应的补偿参数匹配的第一衰减参数,所述第一衰减参数用于配置所述第三频率点对应的第一衰减滤波器,所述第一衰减滤波器用于在根据所述补偿参数对待输出的目标音频信号在与所述第三频率点对应的频段上进行补偿后,通过所述第一衰减滤波器对补偿后的目标音频信号在与所述第三频率点对应的频段上进行衰减校正,其中,所述第三频率点为所述M个检测频率点中的一个或多个频率点。If the compensation parameter corresponding to the third frequency point is greater than the first parameter threshold, determine a first attenuation parameter that matches the compensation parameter corresponding to the third frequency point, and the first attenuation parameter is used to configure the third frequency point a corresponding first attenuation filter, the first attenuation filter is used to pass the first attenuation The filter performs attenuation correction on the compensated target audio signal in a frequency band corresponding to the third frequency point, where the third frequency point is one or more frequency points in the M detected frequency points.
- 根据权利要求12所述的方法,其特征在于,所述第三频率点包括多个,在所述若第三频率点对应的补偿参数大于第一参数阈值,则确定与所述第三频率点对应的补偿参数匹配的第一衰减参数之后,所述方法还包括:The method according to claim 12, wherein the third frequency point includes multiple points, and if the compensation parameter corresponding to the third frequency point is greater than the first parameter threshold, it is determined that the compensation parameter corresponding to the third frequency point is After the corresponding compensation parameter matches the first attenuation parameter, the method further includes:根据多个所述第三频率点对应的补偿参数,确定第二衰减参数,所述第二衰减参数用于配置与多个所述第三频率点构成的连续补偿频段对应的第二衰减滤波器,所述第二衰减滤波器用于在通过多个所述第三频率点各自对应的第一衰减滤波器,分别对所述补偿后的目标音频信号在与多个所述第三频率点对应的频段上进行衰减校正后,通过所述第二衰减滤波器对衰减校正后的目标音频信号在所述连续补偿频段上进行整体平滑处理。Determine a second attenuation parameter according to compensation parameters corresponding to a plurality of third frequency points, and the second attenuation parameter is used to configure a second attenuation filter corresponding to a continuous compensation frequency band formed by a plurality of third frequency points , the second attenuation filter is used to pass through the first attenuation filters corresponding to each of the plurality of third frequency points, respectively to the compensated target audio signal at the corresponding to the plurality of third frequency points After the attenuation correction is performed on the frequency band, an overall smoothing process is performed on the continuous compensation frequency band on the attenuation-corrected target audio signal through the second attenuation filter.
- 根据权利要求1至6任一项所述的方法,其特征在于,在所述根据所述M个检测频率点分别对应的听力检测结果,确定N个检测频率点各自对应的补偿参数之后,所述方法还包括:The method according to any one of claims 1 to 6, characterized in that, after determining the compensation parameters corresponding to each of the N detection frequency points according to the hearing test results respectively corresponding to the M detection frequency points, the The method also includes:获取所述耳机的佩戴者对应的用户信息;Obtaining user information corresponding to the wearer of the headset;根据所述用户信息,确定与所述听力检测结果对应的补偿调整参数,并根据所述补偿调整参数对所述N个检测频率点各自对应的补偿参数进行调整。According to the user information, a compensation adjustment parameter corresponding to the hearing test result is determined, and the compensation parameters corresponding to each of the N detection frequency points are adjusted according to the compensation adjustment parameter.
- 根据权利要求14所述的方法,其特征在于,所述用户信息包括年龄信息、职业信息、风格喜好信息、使用时段信息中的一种或多种。The method according to claim 14, wherein the user information includes one or more of age information, occupation information, style preference information, and use period information.
- 根据权利要求14所述的方法,其特征在于,在所述根据所述用户信息,确定与 所述听力检测结果对应的补偿调整参数之后,所述方法还包括:The method according to claim 14, wherein, after determining the compensation adjustment parameter corresponding to the hearing test result according to the user information, the method further comprises:根据所述补偿调整参数及所述补偿参数,确定个性化调整类型;determining a personalized adjustment type according to the compensation adjustment parameter and the compensation parameter;获取所述个性化调整类型对应的调整交互信息;Obtain adjustment interaction information corresponding to the personalized adjustment type;将所述调整交互信息发送至与所述耳机连接的终端设备,并触发所述终端设备输出所述调整交互信息。sending the adjustment interaction information to a terminal device connected to the headset, and triggering the terminal device to output the adjustment interaction information.
- 一种音频信号补偿装置,其特征在于,应用于耳机,所述耳机包括扬声器,所述音频信号补偿装置包括:An audio signal compensation device is characterized in that it is applied to an earphone, the earphone includes a loudspeaker, and the audio signal compensation device includes:输出单元,用于通过所述扬声器分别输出M个检测频率点对应的测试音频信号,并分别获取针对所述M个检测频率点对应的测试音频信号反馈的听力检测结果;An output unit, configured to respectively output test audio signals corresponding to M detection frequency points through the speaker, and respectively obtain hearing test results fed back from the test audio signals corresponding to the M detection frequency points;确定单元,用于根据所述M个检测频率点分别对应的听力检测结果,确定N个检测频率点各自对应的补偿参数,所述补偿参数用于对待输出的目标音频信号在与所述N个检测频率点各自对应的频段上分别进行补偿,其中,所述N及M均为正整数,且所述M小于或等于所述N,所述N个检测频率点包括所述M个检测频率点。The determination unit is configured to determine compensation parameters corresponding to each of the N detection frequency points according to the hearing detection results corresponding to the M detection frequency points, and the compensation parameters are used for the target audio signal to be output when it is in relation to the N detection frequency points. Compensation is performed on the respective frequency bands corresponding to the detection frequency points, wherein the N and M are both positive integers, and the M is less than or equal to the N, and the N detection frequency points include the M detection frequency points .
- 根据权利要求17所述的音频信号补偿装置,其特征在于,所述补偿参数包括补偿滤波器参数,所述音频信号补偿装置还包括:The audio signal compensation device according to claim 17, wherein the compensation parameters include compensation filter parameters, and the audio signal compensation device further comprises:滤波器配置单元,用于在所述确定单元根据所述M个检测频率点分别对应的听力检测结果,确定N个检测频率点各自对应的补偿参数之后,根据所述N个检测频率点各自对应的补偿滤波器参数,分别配置N个目标补偿滤波器,其中,所述N个目标补偿滤波器的中心频率分别与所述N个检测频率点一一对应;A filter configuration unit, configured to determine the compensation parameters corresponding to each of the N detection frequency points according to the hearing test results respectively corresponding to the M detection frequency points by the determination unit, and then according to the respective corresponding compensation parameters of the N detection frequency points The parameters of the compensation filter are respectively configured with N target compensation filters, wherein the center frequencies of the N target compensation filters are in one-to-one correspondence with the N detection frequency points respectively;补偿单元,用于通过所述N个目标补偿滤波器,对待输出的目标音频信号在以所述N个检测频率点为中心的频段上分别进行非线性补偿。The compensation unit is configured to use the N target compensation filters to respectively perform nonlinear compensation on the frequency band centered on the N detection frequency points for the target audio signal to be output.
- 根据权利要求18所述的音频信号补偿装置,其特征在于,所述补偿单元在用于通过所述N个目标补偿滤波器,对待输出的目标音频信号在以所述N个检测频率点为中心的频段上分别进行非线性补偿时,包括:The audio signal compensation device according to claim 18, wherein the compensation unit is used for passing through the N target compensation filters, and the target audio signal to be output is centered on the N detection frequency points When nonlinear compensation is performed on the frequency bands respectively, including:将所述N个目标补偿滤波器进行级联,并通过级联后的所述N个目标补偿滤波器对待输出的目标音频信号进行非线性补偿。The N target compensation filters are cascaded, and nonlinear compensation is performed on the target audio signal to be output through the N target compensation filters after cascading.
- 根据权利要求19所述的音频信号补偿装置,其特征在于,所述补偿单元在用于将所述N个目标补偿滤波器进行级联时,包括:The audio signal compensation device according to claim 19, wherein when the compensation unit is used to cascade the N target compensation filters, it includes:根据所述M个检测频率点分别对应的听力检测结果,对所述N个目标补偿滤波器进行平滑调整,所述平滑调整包括信号增强调整或信号衰减调整;Smoothly adjust the N target compensation filters according to the hearing test results respectively corresponding to the M detection frequency points, where the smooth adjustment includes signal enhancement adjustment or signal attenuation adjustment;将调整后的所述N个目标补偿滤波器进行级联。The adjusted N target compensation filters are cascaded.
- 根据权利要求18所述的音频信号补偿装置,其特征在于,所述目标补偿滤波器包括无限长单位冲激响应IIR滤波器。The audio signal compensation device according to claim 18, wherein the target compensation filter comprises an infinite-length unit impulse response (IIR) filter.
- 根据权利要求21所述的音频信号补偿装置,其特征在于,所述IIR滤波器包括二阶IIR滤波器,且包括低频搁架滤波器Lowshelf Filter、高频搁架滤波器Highshelf Filter、峰值滤波器Peaking Filter中的一种或多种。The audio signal compensation device according to claim 21, wherein the IIR filter includes a second-order IIR filter, and includes a low-frequency shelf filter Lowshelf Filter, a high-frequency shelf filter Highshelf Filter, and a peak filter One or more of Peaking Filter.
- 根据权利要求17至22任一项所述的音频信号补偿装置,其特征在于,所述M小于所述N,所述确定单元在用于根据所述M个检测频率点分别对应的听力检测结果,确定N个检测频率点各自对应的补偿参数时,包括:The audio signal compensation device according to any one of claims 17 to 22, wherein the M is smaller than the N, and the determination unit is used for hearing test results corresponding to the M detection frequency points , when determining the compensation parameters corresponding to each of the N detection frequency points, including:根据第一频率点对应的听力检测结果,确定所述第一频率点对应的补偿参数,所述第一频率点为所述M个检测频率点中的一个或多个频率点;Determine the compensation parameter corresponding to the first frequency point according to the hearing test result corresponding to the first frequency point, where the first frequency point is one or more frequency points in the M detection frequency points;根据所述第一频率点对应的补偿参数,确定第二频率点对应的补偿参数,所述第二频率点为所述N个检测频率点中除所述M个频率点之外的其他频率点。According to the compensation parameter corresponding to the first frequency point, determine the compensation parameter corresponding to the second frequency point, where the second frequency point is a frequency point other than the M frequency points among the N detection frequency points .
- 根据权利要求17至22任一项所述的音频信号补偿装置,其特征在于,所述M等于所述N,所述听力检测结果包括声音强度阈值,所述声音强度阈值为用户分别能够听到所述M个检测频率点对应的测试音频信号的临界声音强度,所述确定单元在用于根据所述M个检测频率点分别对应的听力检测结果,确定N个检测频率点各自对应的补偿参数时,包括:The audio signal compensation device according to any one of claims 17 to 22, wherein the M is equal to the N, and the hearing test result includes a sound intensity threshold, and the sound intensity threshold is a value that the user can hear respectively. The critical sound intensity of the test audio signal corresponding to the M detection frequency points, the determination unit is used to determine the compensation parameters corresponding to each of the N detection frequency points according to the hearing test results corresponding to the M detection frequency points , including:根据所述M个检测频率点各自对应的声音强度阈值,在补偿映射表上分别查询所述M个检测频率点对应的补偿参数,其中,所述补偿映射表包括各个检测频率点分别对应的声音强度阈值及补偿参数之间的映射关系。According to the sound intensity thresholds corresponding to each of the M detection frequency points, the compensation parameters corresponding to the M detection frequency points are respectively queried on the compensation mapping table, wherein the compensation mapping table includes the sound corresponding to each detection frequency point The mapping relationship between intensity threshold and compensation parameters.
- 根据权利要求24所述的音频信号补偿装置,其特征在于,所述补偿映射表是利用样本数据集进行训练得到的,所述样本数据集包括多个样本频率点分别对应的样本声音强度阈值及样本补偿参数。The audio signal compensation device according to claim 24, wherein the compensation mapping table is obtained by using a sample data set for training, and the sample data set includes sample sound intensity thresholds corresponding to a plurality of sample frequency points and Sample compensation parameters.
- 根据权利要求24所述的音频信号补偿装置,其特征在于,所述确定单元在用于根据所述M个检测频率点各自对应的声音强度阈值,在补偿映射表上分别查询所述M个检测频率点对应的补偿参数时,包括:The audio signal compensation device according to claim 24, wherein the determining unit is used to respectively query the M detection frequency points on the compensation mapping table according to the corresponding sound intensity thresholds of the M detection frequency points. The compensation parameters corresponding to the frequency points include:根据所述M个检测频率点各自对应的声音强度阈值,分别确定与所述声音强度阈值匹配的补偿等级;According to the sound intensity thresholds corresponding to each of the M detection frequency points, respectively determine the compensation level matching the sound intensity threshold;基于所述M个检测频率点各自对应的补偿等级,在补偿映射表上分别查询所述M个检测频率点对应的补偿参数。Based on the respective compensation levels corresponding to the M detection frequency points, the compensation parameters corresponding to the M detection frequency points are respectively queried in the compensation mapping table.
- 根据权利要求17至22任一项所述的音频信号补偿装置,其特征在于,所述M等于所述N,所述确定单元在用于根据所述M个检测频率点分别对应的听力检测结果,确定N个检测频率点各自对应的补偿参数时,包括:The audio signal compensation device according to any one of claims 17 to 22, wherein the M is equal to the N, and the determination unit is used for hearing test results respectively corresponding to the M detection frequency points , when determining the compensation parameters corresponding to each of the N detection frequency points, including:若所述M个检测频率点分别对应的听力检测结果均属于第一范围,则将N个检测频率点各自对应的补偿参数确定为默认参数。If the hearing test results respectively corresponding to the M detection frequency points all belong to the first range, then the compensation parameters corresponding to the N detection frequency points are determined as default parameters.
- 根据权利要求17至22任一项所述的音频信号补偿装置,其特征在于,所述音频信号补偿装置还包括:The audio signal compensation device according to any one of claims 17 to 22, wherein the audio signal compensation device further comprises:第一衰减单元,用于在所述确定单元根据所述M个检测频率点分别对应的听力检测结果,确定N个检测频率点各自对应的补偿参数之后,若第三频率点对应的补偿参数大于第一参数阈值,则确定与所述第三频率点对应的补偿参数匹配的第一衰减参数,所述第一衰减参数用于配置所述第三频率点对应的第一衰减滤波器,所述第一衰减滤波器用于在根据所述补偿参数对待输出的目标音频信号在与所述第三频率点对应的频段上进行补偿后,通过所述第一衰减滤波器对补偿后的目标音频信号在与所述第三频率点对应的频段上进行衰减校正,其中,所述第三频率点为所述M个检测频率点中的一个或多个频率点。The first attenuation unit is configured to, after the determination unit determines the compensation parameters corresponding to the N detection frequency points respectively according to the hearing test results corresponding to the M detection frequency points, if the compensation parameter corresponding to the third frequency point is greater than The first parameter threshold is to determine the first attenuation parameter matching the compensation parameter corresponding to the third frequency point, the first attenuation parameter is used to configure the first attenuation filter corresponding to the third frequency point, the The first attenuation filter is used to perform compensation on the frequency band corresponding to the third frequency point on the target audio signal to be output according to the compensation parameter, and to use the first attenuation filter to compensate the target audio signal after compensation. Attenuation correction is performed on a frequency band corresponding to the third frequency point, where the third frequency point is one or more frequency points in the M detected frequency points.
- 根据权利要求28所述的音频信号补偿装置,其特征在于,所述第三频率点包括多个,所述音频信号补偿装置还包括:The audio signal compensation device according to claim 28, wherein the third frequency point includes multiple points, and the audio signal compensation device further includes:第二衰减单元,用于在所述第一衰减单元确定与所述第三频率点对应的补偿参数匹配的第一衰减参数之后,根据多个所述第三频率点对应的补偿参数,确定第二衰减参数,所述第二衰减参数用于配置与多个所述第三频率点构成的连续补偿频段对应的第二衰减滤波器,所述第二衰减滤波器用于在通过多个所述第三频率点各自对应的第一衰减滤波器,分别对所述补偿后的目标音频信号在与多个所述第三频率点对应的频段上进行衰减校正后,通过所述第二衰减滤波器对衰减校正后的目标音频信号在所述连续补偿频段上进行整体平滑处理。The second attenuation unit is configured to determine the first attenuation parameter according to a plurality of compensation parameters corresponding to the third frequency point after the first attenuation unit determines the first attenuation parameter matching the compensation parameter corresponding to the third frequency point. Two attenuation parameters, the second attenuation parameter is used to configure a second attenuation filter corresponding to the continuous compensation frequency band formed by a plurality of the third frequency points, and the second attenuation filter is used to pass through a plurality of the third frequency points The first attenuation filters corresponding to the three frequency points respectively perform attenuation correction on the compensated target audio signal in the frequency bands corresponding to a plurality of the third frequency points, and pass through the second attenuation filter to The attenuation-corrected target audio signal is subjected to an overall smoothing process on the continuous compensation frequency band.
- 根据权利要求17至22任一项所述的音频信号补偿装置,其特征在于,所述音频信号补偿装置还包括:The audio signal compensation device according to any one of claims 17 to 22, wherein the audio signal compensation device further comprises:信息获取单元,用于在所述确定单元根据所述M个检测频率点分别对应的听力检测结果,确定N个检测频率点各自对应的补偿参数之后,获取所述耳机的佩戴者对应的用户信息;An information acquisition unit, configured to acquire user information corresponding to the wearer of the earphone after the determination unit determines the compensation parameters corresponding to the N detection frequency points according to the hearing test results corresponding to the M detection frequency points respectively ;所述确定单元,还用于根据所述用户信息,确定与所述听力检测结果对应的补偿调整参数,并根据所述补偿调整参数对所述N个检测频率点各自对应的补偿参数进行调整。The determination unit is further configured to determine a compensation adjustment parameter corresponding to the hearing test result according to the user information, and adjust the compensation parameters corresponding to each of the N detection frequency points according to the compensation adjustment parameter.
- 根据权利要求30所述的音频信号补偿装置,其特征在于,所述用户信息包括年龄信息、职业信息、风格喜好信息、使用时段信息中的一种或多种。The audio signal compensation device according to claim 30, wherein the user information includes one or more of age information, occupation information, style preference information, and use period information.
- 根据权利要求30所述的音频信号补偿装置,其特征在于,所述确定单元,还用于在根据所述用户信息,确定与所述听力检测结果对应的补偿调整参数之后,根据所述补偿调整参数及所述补偿参数,确定个性化调整类型;The audio signal compensation device according to claim 30, wherein the determining unit is further configured to, after determining the compensation adjustment parameter corresponding to the hearing test result according to the user information, adjust the compensation parameter according to the compensation adjustment parameter. parameters and the compensation parameters to determine the type of personalized adjustment;所述信息获取单元,还用于获取所述个性化调整类型对应的调整交互信息;The information acquiring unit is further configured to acquire adjustment interaction information corresponding to the personalized adjustment type;所述音频信号补偿装置还包括:The audio signal compensation device also includes:发送单元,用于将所述调整交互信息发送至与所述耳机连接的终端设备,并触发所述终端设备输出所述调整交互信息。A sending unit, configured to send the adjustment interaction information to a terminal device connected to the headset, and trigger the terminal device to output the adjustment interaction information.
- 一种耳机,其特征在于,包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器实现如权利要求1至16任一项所述的音频信号补偿方法。An earphone, characterized in that it includes a memory and a processor, and a computer program is stored in the memory, and when the computer program is executed by the processor, the processor realizes any one of claims 1 to 16. The audio signal compensation method.
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至16任一项所述的音频信号补偿方法。A computer-readable storage medium on which a computer program is stored, wherein the computer program implements the audio signal compensation method according to any one of claims 1 to 16 when executed by a processor.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110928003.1 | 2021-08-13 | ||
CN202110928003.1A CN115706885A (en) | 2021-08-13 | 2021-08-13 | Audio signal compensation method and device, earphone and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023016208A1 true WO2023016208A1 (en) | 2023-02-16 |
Family
ID=85181065
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/106733 WO2023016208A1 (en) | 2021-08-13 | 2022-07-20 | Audio signal compensation method and apparatus, earbud, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115706885A (en) |
WO (1) | WO2023016208A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116249062A (en) * | 2023-05-08 | 2023-06-09 | 深圳市英唐数码科技有限公司 | Hearing-aid equipment state intelligent quality inspection method, system and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105050014A (en) * | 2015-06-01 | 2015-11-11 | 邹采荣 | Hearing-aid device and method based on smart phone |
US20170046120A1 (en) * | 2015-06-29 | 2017-02-16 | Audeara Pty Ltd. | Customizable Personal Sound Delivery System |
CN110012406A (en) * | 2019-04-10 | 2019-07-12 | 深圳湃声声学科技有限公司 | Acoustic signal processing method, device, processor and ossiphone |
US20190274595A1 (en) * | 2018-03-10 | 2019-09-12 | Staton Techiya, Llc | Method to estimate hearing impairment compensation function |
CN112887877A (en) * | 2021-01-28 | 2021-06-01 | 歌尔科技有限公司 | Audio parameter setting method and device, electronic equipment and storage medium |
-
2021
- 2021-08-13 CN CN202110928003.1A patent/CN115706885A/en active Pending
-
2022
- 2022-07-20 WO PCT/CN2022/106733 patent/WO2023016208A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105050014A (en) * | 2015-06-01 | 2015-11-11 | 邹采荣 | Hearing-aid device and method based on smart phone |
US20170046120A1 (en) * | 2015-06-29 | 2017-02-16 | Audeara Pty Ltd. | Customizable Personal Sound Delivery System |
US20190274595A1 (en) * | 2018-03-10 | 2019-09-12 | Staton Techiya, Llc | Method to estimate hearing impairment compensation function |
CN110012406A (en) * | 2019-04-10 | 2019-07-12 | 深圳湃声声学科技有限公司 | Acoustic signal processing method, device, processor and ossiphone |
CN112887877A (en) * | 2021-01-28 | 2021-06-01 | 歌尔科技有限公司 | Audio parameter setting method and device, electronic equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116249062A (en) * | 2023-05-08 | 2023-06-09 | 深圳市英唐数码科技有限公司 | Hearing-aid equipment state intelligent quality inspection method, system and medium |
CN116249062B (en) * | 2023-05-08 | 2023-07-25 | 深圳市英唐数码科技有限公司 | Hearing-aid equipment state intelligent quality inspection method, system and medium |
Also Published As
Publication number | Publication date |
---|---|
CN115706885A (en) | 2023-02-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113676803B (en) | Active noise reduction method and device | |
US8059833B2 (en) | Method of compensating audio frequency response characteristics in real-time and a sound system using the same | |
CN109524016B (en) | Audio processing method and device, electronic equipment and storage medium | |
WO2022218093A1 (en) | Audio signal compensation method and apparatus, earphone, and storage medium | |
JP2011061422A (en) | Information processing apparatus, information processing method, and program | |
EP3038255B1 (en) | An intelligent volume control interface | |
WO2024032133A1 (en) | Method and apparatus for auditory testing, electronic device, and storage medium | |
EP2705672B1 (en) | Method for determining an impedance of an electroacoustic transducer and for operating an audio playback device | |
US11871193B2 (en) | Microphone system | |
US20230292076A1 (en) | Dynamics Processing Effect Architecture | |
WO2022247494A1 (en) | Audio signal compensation method and apparatus, earphones, and storage medium | |
WO2023016208A1 (en) | Audio signal compensation method and apparatus, earbud, and storage medium | |
KR20190012003A (en) | Electronic device and method for adjusting gain of digital audio signal based on hearing recognition characteristics | |
CN111770404A (en) | Recording method, recording device, electronic equipment and readable storage medium | |
CN114501224A (en) | Sound playing method and device, wearable device and storage medium | |
CN104966524A (en) | Audio processing method and audio processing system | |
WO2024001463A1 (en) | Audio signal processing method and apparatus, and electronic device, computer-readable storage medium and computer program product | |
KR20150049915A (en) | Earphone apparatus having hearing character protecting function of an individual | |
US11653137B2 (en) | Method at an electronic device involving a hearing device | |
CN113507668B (en) | Variable-bandwidth intelligent control method, audio equipment and readable storage medium | |
US20200211578A1 (en) | Mixed-reality audio intelligibility control | |
US7907737B2 (en) | Acoustic apparatus | |
US20230099275A1 (en) | Method and system for context-dependent automatic volume compensation | |
WO2023020208A1 (en) | Audio signal processing method and apparatus, earphones, and storage medium | |
WO2024093536A1 (en) | Audio signal processing method and apparatus, audio playback device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22855191 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 22855191 Country of ref document: EP Kind code of ref document: A1 |