Calibration method and device for active noise reduction system of wearable device, storage medium, and terminal
By adjusting the filter coefficient of the active noise reduction system in the wearable device, rapid calibration is achieved based on the difference between the noise test and the passive noise reduction level, solving the problem of long traditional debugging cycles, improving efficiency and being suitable for a variety of applications. Filter type.
Patent Information
- Application Number
- CN202110603032.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-31
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-05-31
AI Technical Summary
The traditional active noise reduction system has a long debugging cycle and low debugging efficiency. It requires multiple mold openings and a large amount of debugging and verification to determine the benchmark coefficient. Due to different device models and wearing methods, the debugging cycle will be further extended.
By turning on the active noise reduction system in the wearable device, playing the noise test signal and collecting the signal, calculating the secondary path estimate, measuring the passive noise reduction level, configuring the initial parameters, and adjusting the filter coefficient until the active noise reduction level is the same as the passive noise reduction level. When the horizontal difference is within the preset interval, the filter coefficient is obtained as the calibration coefficient.
Realizes one-click adaptive filter coefficient calibration for the active noise reduction system of wearable devices, shortens the debugging cycle, improves design efficiency, and is suitable for single feedforward, single feedback or hybrid filters, expanding the scope of application .
Smart Images

Figure CN113345401B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of audio signal processing, and in particular to a calibration method and device, a storage medium, and a terminal for an active noise reduction system of a wearable device. Background Art
[0002] Wearable devices that process audio, such as headphones, usually include an active noise cancellation (ANC) system, which uses speakers to play sound waves that are inversely proportional to ambient noise to neutralize the noise, thereby achieving a noise reduction effect. Currently, most wearable devices on the market need to determine the baseline coefficient of the filter in the active noise cancellation system through debugging before leaving the factory, so that the filter can be calibrated according to the baseline coefficient.
[0003] However, in the actual debugging process, due to the influence of factors such as the model and wearing method of wearable devices such as headphones, multiple mold openings and a large amount of debugging and verification are required to determine the benchmark coefficient, and the debugging cycle can take several months. If it is found in a debugging and verification link that the calibration coefficient obtained by the previous iteration is not applicable, it is necessary to start debugging from the beginning, and the cycle will be further extended.
[0004] In summary, the traditional debugging cycle of the active noise reduction system is long and the debugging efficiency is low. Summary of the invention
[0005] The technical problem solved by the present invention is how to shorten the debugging period of an active noise reduction system and improve the debugging efficiency.
[0006] To solve the above problems, an embodiment of the present invention provides a calibration method for an active noise reduction system of a wearable device, wherein the wearable device includes an active noise reduction system, and the active noise reduction system includes: an audio playback module, which is used to play an input audio signal; a sound collection module, which is used to collect the audio signal played by the audio playback module or the audio signal played by an external playback module; a filter, which is used to filter the audio signal collected by the sound collection module to obtain a noise reduction signal; an adaptive module, which is used to adjust the coefficient of the filter; characterized in that the method includes: turning on the active noise reduction system, controlling the audio playback module to play a noise test signal, and collecting the noise through the sound collection module The invention relates to a method for detecting a passive noise reduction device of the wearable device and a method for detecting a passive noise reduction device of the wearable device. The method comprises the steps of: detecting a noise test signal; calculating a secondary path estimate of the active noise reduction system; stopping playing the noise test signal, turning off the active noise reduction system, playing ambient noise through an external playback module, and measuring the passive noise reduction level of the wearable device; configuring initial parameters of the active noise reduction system, wherein the initial parameters include the secondary path estimate; turning on the active noise reduction system, controlling the audio playback module to play the noise reduction signal and measuring the active noise reduction level of the wearable device; when the difference between the active noise reduction level and the passive noise reduction level is within a preset value interval and the coefficient of the filter converges, obtaining the coefficient of the filter as a calibration coefficient, wherein the calibration coefficient is used to calibrate the filter.
[0007] Optionally, calculating the secondary path estimate of the active noise reduction system includes: estimating a transfer function of the secondary path based on a noise test signal played by the audio playback module and a noise test signal collected by the sound collection module to obtain the secondary path estimate.
[0008] Optionally, the sound collection module includes an error microphone, and the secondary path estimation of the active noise reduction system is calculated according to the following formula: S(n+1)=S(n)+2μe(n)spk(n); wherein n is used to represent the time, the value of n is a positive integer, S(n) is the secondary path estimation obtained by adaptive modeling of the secondary path corresponding to the time n, S(n+1) is the secondary path estimation obtained by adaptive modeling of the secondary path corresponding to the time n+1, μ is a fixed step size factor, spk(n) is the noise test signal played by the audio playback module, and e(n) is the intermediate error signal; wherein e(n)=d(n)-spk(n)S T (n); d(n) is the noise test signal collected by the error microphone, S T (n) is the transposed matrix of S(n).
[0009] Optionally, the sound collection module also includes a reference microphone, the filter is an FxLMS filter, and the filter coefficient convergence formula is as follows: W(n+1)=W(n)+2μm(n)x^(n); wherein n is used to represent the moment, the value of n is a positive integer, W(n) is the filter coefficient corresponding to the moment n, W(n+1) is the filter coefficient corresponding to the moment n+1, μ is a fixed step factor, m(n) is an intermediate error signal, and x^(n) is the signal collected by the reference microphone after passing through the secondary path; wherein x^(n)=x(n)S T (n); S(n) is the secondary path estimation obtained by adaptive modeling of the secondary path corresponding to time n, and x(n) is the signal collected by the reference microphone; m(n) = f(n) + x(n)W T (n); f(n) is the signal after x(n) passes through the main path, W T (n) is the transposed matrix of W(n).
[0010] Optionally, the passive noise reduction level of the wearable device is measured by measuring a passive noise reduction curve of the wearable device, and the active noise reduction level of the wearable device is measured by measuring an active noise reduction curve of the wearable device.
[0011] Optionally, the filter includes a single feedforward filter, a single feedback filter, or a feedforward plus feedback hybrid filter.
[0012] Optionally, after obtaining the coefficients of the filter as calibration coefficients, the method further includes: obtaining multiple groups of calibration coefficients for multiple wearable devices, and determining comprehensive coefficients for calibrating active noise reduction modules for the multiple wearable devices based on the multiple groups of calibration coefficients.
[0013] Optionally, the audio playback module is controlled to play the noise test signal in a soundproofing environment.
[0014] The embodiment of the present invention further provides a calibration device for an active noise reduction system of a wearable device, wherein the wearable device includes an active noise reduction system, and the active noise reduction system includes: an audio playback module, which is used to play an input audio signal; a sound collection module, which is used to collect an audio signal played by the audio playback module or an audio signal played by an external playback module; a filter, which is used to filter the signal collected by the sound collection module to obtain a noise reduction signal; an adaptive module, which is used to adjust the coefficient of the filter; the calibration device includes: a noise test signal playback module, which is used to turn on the active noise reduction system, control the audio playback module to play the noise test signal, and collect the noise test signal through the sound collection module; a secondary path estimation module, which is used to calculate the secondary path of the active noise reduction system a passive noise reduction curve measurement module, used to stop playing the noise test signal, turn off the active noise reduction system, play the ambient noise through the external playback module, and measure the passive noise reduction level of the wearable device; an initial parameter configuration module, used to configure the initial parameters of the active noise reduction system, the initial parameters including the secondary path estimation; an active noise reduction level measurement module, used to turn on the active noise reduction system, control the audio playback module to play the noise reduction signal and measure the active noise reduction level of the wearable device; a calibration coefficient acquisition module, used to obtain the coefficient of the filter as the calibration coefficient when the difference between the active noise reduction level and the passive noise reduction level is within a preset value interval and the coefficient of the filter converges, wherein the calibration coefficient is used to calibrate the filter.
[0015] A storage medium stores a computer program, which, when executed by a processor, executes the steps of a calibration method for an active noise reduction system of a wearable device.
[0016] A computer device includes a calibration device for an active noise reduction system of a wearable device, or includes a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor runs the computer program, the processor executes the steps of any one of the calibration methods for the active noise reduction system of the wearable device.
[0017] Compared with the prior art, the technical solution of the embodiment of the present invention has the following beneficial effects:
[0018] The calibration method of the active noise reduction system of the wearable device provided in the embodiment of the present invention uses the secondary path estimation, convergence step size, order, etc. of the active noise reduction system corresponding to the same model of the wearable device as the initial parameters, controls the difference between the active noise reduction level and the passive noise reduction level of the wearable device of the same model to be within the preset value interval, and when the filter coefficient converges, obtains the calibration coefficient of the filter corresponding to the model for production line calibration of the wearable device of the model. Thus, one-key adaptive filter coefficient calibration can be achieved under the model of the same wearable device, which greatly improves the efficiency of filter design and reduces the debugging cycle compared to the complex process of transfer function measurement, calculation, and verification in traditional calibration. Furthermore, since the calibration coefficient is obtained based on the active noise reduction level and passive noise reduction level of the wearable device of the same model, it is not affected by the filter type, so the method can be applicable to a single feedforward filter or a single feedback filter or a hybrid filter of feedforward and feedback, and has a wider range of application.
[0019] Optionally, the transfer function of the secondary path may be estimated offline to obtain the secondary path estimate of the active noise reduction system; or, the secondary path estimate of the active noise reduction system may be calculated online through adaptive modeling of the secondary path.
[0020] Furthermore, wearable devices of different models can be replaced and the above calibration method can be executed to obtain the calibration coefficients corresponding to each model. The average value or truncated mean can be calculated by combining multiple sets of calibration coefficients to obtain filter coefficients that can reflect the models of multiple wearable devices, thereby making the filter coefficients used for calibration more universal. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A schematic diagram of the structure of an active noise reduction system according to an embodiment of the present invention;
[0022] Figure 2 A schematic diagram of a flow chart of a calibration method for an active noise reduction system of a wearable device according to an embodiment of the present invention;
[0023] Figure 3 is a schematic structural diagram of another active noise reduction system according to an embodiment of the present invention;
[0024] Figure 4 The present invention is a schematic structural diagram of a calibration device for an active noise reduction system of a wearable device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] Those skilled in the art should understand that the debugging of active noise reduction systems of wearable devices such as headphones is generally carried out by calculating the transfer function to obtain the reference coefficient of active noise reduction. If the active noise reduction system of the headphones adopts a feedforward filter, the measured main path transfer function is represented by P(z) and the secondary path transfer function is represented by S(z), so that the filter coefficient can be calculated as W(z) = P(z) / S(z). In the actual debugging process, since parameters such as P(z) and S(z) are greatly affected by factors such as differences in models of wearable devices such as headphones and differences in user wear methods, multiple mold openings and a large amount of debugging verification are required to determine the reference coefficient, resulting in a long debugging cycle and low debugging efficiency.
[0026] In order to shorten the debugging period of the active noise reduction system and improve the debugging efficiency, an embodiment of the present invention provides a wearable device including an active noise reduction system 10. Figure 1 , Figure 1 Schematic diagram of the structure of the active noise reduction system 10. The active noise reduction system 10 includes: an audio playback module 101, which is used to play the input audio signal. A sound collection module 102, which is used to collect the audio signal played by the audio playback module 101 or the audio signal played by the external playback module 11. A filter 103, which is used to filter the audio signal collected by the sound collection module 102 to generate a noise reduction signal. The filter may include a single feedforward filter or a single feedback filter or a hybrid filter of feedforward and feedback. An adaptive module 104, which is used to adjust the coefficient of the filter 103.
[0027] Among them, the wearable device is a wearable device that needs to perform audio processing, which may include various types of headphones (such as headphones, in-ear headphones, Bluetooth headphones, etc.), and other wearable devices that include active noise reduction systems. The audio playback module 101 in the active noise reduction system 10 can be used to play the generated noise reduction signal to achieve the function of active noise reduction; the audio playback module 101 can also be used to play other sound signals, such as the sound signal sent to the audio playback module 101 by the control module of the wearable device (such as a central processing unit (CPU)). The audio playback module 101 may include devices such as speakers and amplifiers.
[0028] See also Figure 2 , Figure 2 A calibration method for an active noise reduction system of a wearable device is provided in an embodiment of the present invention. The calibration method involves Figure 1The active noise reduction system 10, the calibration method is executed by a terminal such as a computer to obtain a calibration coefficient in the filter design stage of the active noise reduction system, the terminal can be connected to a wearable device to control the opening and closing of the active noise reduction system to execute the method, and the terminal is also connected to an external playback module 11 to control the external playback module 11 to play ambient noise. The method includes the following steps S201 to S205, which are described in detail as follows.
[0029] Optionally, before starting to execute the step S201, the wearable device (such as headphones, etc.) is correctly worn on the artificial ear, and the correct wearing means that the wearable device is worn at a correct angle to ensure good sealing between the wearable device and the artificial ear.
[0030] Step S201 , turning on the active noise reduction system 10 , controlling the audio playing module 101 to play a noise test signal, and collecting the noise test signal through the sound collecting module 102 .
[0031] The noise test signal may be a white noise test signal, a pink noise test signal, or other preset noise signals. Optionally, the terminal sends a noise test signal to the wearable device, and the control module of the wearable device controls the audio playback module 101 to play the noise test signal, and the sound collection module 102 can collect the noise test signal.
[0032] Step S202 , calculating a secondary path estimate of the active noise reduction system 10 .
[0033] The secondary path estimation is an estimation value of the secondary path transfer function of the active noise reduction system 10 .
[0034] Step S203, stop playing the noise test signal, turn off the active noise reduction system 10, play the ambient noise through the external playing module 11, and measure the passive noise reduction level of the wearable device.
[0035] The terminal controls the audio playback module 101 of the wearable device to stop playing the noise test signal and turns off the active noise reduction system 10, that is, the active noise reduction function of the wearable device is disabled. At this time, the wearable device can only perform passive noise reduction. Among them, passive noise reduction refers to the noise reduction capability of the wearable device after the active noise reduction system is turned off, which mainly refers to isolating the ear from external noise through sound insulation materials.
[0036] Optionally, the passive noise reduction level of the wearable device is measured by measuring a passive noise reduction curve of the wearable device. Optionally, the passive noise reduction curve is measured by an external measuring device, and the passive noise reduction level can also be a parameter that can reflect the passive noise reduction capability of the wearable device, which is related to factors such as the material and shape of the sound insulation material.
[0037] Optionally, if there is a need for multi-scene noise reduction, environmental noises of different scenes may be played, so as to obtain calibration coefficients of the filter 103 in different scenes.
[0038] Step S204 , configuring initial parameters of the active noise reduction system 10 , wherein the initial parameters include the secondary path estimation.
[0039] Optionally, the initial parameters may include, in addition to the secondary path estimation, preset values such as convergence step size and order, etc. The secondary path estimation is configured in the adaptive module 104 .
[0040] Step S205, turning on the active noise reduction system 10, controlling the audio playback module 101 to play the noise reduction signal and measuring the active noise reduction level of the wearable device.
[0041] After starting the active noise reduction system 10, the adaptive module 104 is enabled, and the adaptive module 104 can adjust the coefficient of the filter 103 according to the noise reduction situation of the wearable device. The active noise reduction level refers to the noise reduction capability of the wearable device after the active noise reduction system 10 is turned on. Optionally, the noise reduction level can be a parameter that can reflect the noise reduction capability of the wearable device after the active noise reduction system 10 is turned on.
[0042] Optionally, the active noise reduction level of the wearable device is measured by measuring an active noise reduction curve of the wearable device, wherein the active noise reduction curve is a noise reduction curve of the wearable device after the active noise reduction system 10 is turned on, measured by an external measuring device.
[0043] Optionally, the active noise reduction curve and the passive noise reduction curve are curves drawn with frequency as the horizontal axis and the volume of noise reduction as the vertical axis.
[0044] Step S206 , when the difference between the active noise reduction level and the passive noise reduction level is within a preset value interval and the coefficient of the filter 103 converges, the coefficient of the filter 103 is obtained as a calibration coefficient, wherein the calibration coefficient is used to calibrate the filter 103 .
[0045] Among them, the preset value interval is used to represent the noise reduction capability that the active noise reduction system 10 needs to achieve, and the specific value of the preset value interval is set according to the experimental data. The coefficient of the filter 103 converges, that is, the capability of the filter 103 tends to be stable, and the filter coefficient at this time is obtained as the calibration coefficient. When producing or testing the wearable device, the calibration coefficient can be obtained to calibrate the filter of the wearable device active noise reduction system 10.
[0046] pass Figure 2 The method described uses the secondary path estimation, convergence step size, order, etc. of the active noise reduction system 10 corresponding to the same model of the wearable device as the initial parameters, controls the difference between the active noise reduction level and the passive noise reduction level of the wearable device of the same model to be within the preset value interval, and when the filter coefficient converges, obtains the calibration coefficient of the filter corresponding to the model for production line calibration of the wearable device of the model. As a result, one-click adaptive filter coefficient calibration can be achieved under the model of the same wearable device, which greatly improves the efficiency of filter design and reduces the debugging cycle compared to the complex process of transfer function measurement, calculation, and verification in traditional calibration. Furthermore, since the calibration coefficient is obtained based on the active noise reduction level and passive noise reduction level of the wearable device of the same model, it is not affected by the filter type, so the method can be applied to a single feedforward filter or a single feedback filter or a hybrid filter of feedforward and feedback, and has a wider range of applications.
[0047] In one embodiment, the calculating of the secondary path estimation of the active noise reduction system 10 in step S202 may include: estimating the transfer function of the secondary path according to the noise test signal played by the audio playing module and the noise test signal collected by the sound collecting module to obtain the secondary path estimation.
[0048] Optionally, the noise test signal played by the audio playing module 101 and the noise test signal collected by the sound collecting module 102 are respectively obtained. The secondary path estimation is obtained by performing Wiener estimation on the transfer function of the secondary path.
[0049] Optionally, performing Wiener estimation on the transfer function of the secondary path to obtain the secondary path estimation includes: measuring the noise test signal played by the audio playback module 101 (i.e., the input signal of the secondary path, denoted as y(n)) and the noise test signal collected by the sound collection module 102 (i.e., the output signal of the secondary path, denoted as y'(n)); obtaining the autocorrelation matrix R of the input signal of the secondary path according to the following formula (1): yy According to the following formula (2), the cross-correlation matrix r of the input signal of the secondary path and the output signal of the secondary path is obtained: yy’ ; The secondary path estimate S'(n) is obtained according to the following formula (3).
[0050] R yy =E[y(n)y T (n)] (1)
[0051] r yy’ =E[y(n)y'(n)] (2)
[0052] S'(n)=R yy -1 r yy’ (3)
[0053] Among them, E() is the mathematical expectation of the value in the brackets, y T (n) is the transposed matrix of y(n), and the value of n is a positive integer.
[0054] The solution of this embodiment can calculate the secondary path estimation in an offline manner, and the secondary path estimation value does not change with the change of the adaptive module 104.
[0055] In one embodiment, see Figure 1 and Figure 3 , Figure 3 is a schematic diagram of the structure of another active noise reduction system 30, Figure 1 The sound collection module 102 in the embodiment includes an error microphone 1021, which is used to collect the audio signal played by the audio playing module 101. The calculation of the secondary path estimation of the active noise reduction system described in step S302 is implemented according to the following formula (4):
[0056] S(n+1)=S(n)+2μe(n)spk(n) (4)
[0057] Wherein, e(n) in formula (4) is the intermediate error signal, which is calculated as shown in the following formula (5):
[0058] e(n)=d(n)-spk(n)S T (n) (5)
[0059] Wherein, n is used to represent the time, the value of n is a positive integer, S(n) is the secondary path estimation obtained by the adaptive modeling of the secondary path corresponding to the time n, S(n+1) is the secondary path estimation obtained by the adaptive modeling of the secondary path corresponding to the time n+1, μ is a fixed step size factor, spk(n) is the noise test signal played by the audio playback module, d(n) is the noise test signal collected by the error microphone, S T (n) is the transposed matrix of S(n).
[0060] The adaptive modeling is a process of estimating the secondary path transfer function using an adaptive filter. The adaptive modeling method can refer to the existing modeling method and will not be described in detail here. In this embodiment, the secondary path estimation of the active noise reduction system can be calculated online according to the above formula through the adaptive modeling of the secondary path.
[0061] In one embodiment, please continue to see Figure 3 The sound collection module 102 further includes a reference microphone 1022, which is used to collect sound signals generated outside the wearable device, such as the audio signal played by the external playback module 11 or the noise signal in the environment. The filter is a filtered-x least mean square (FxLMS) filter, and the filter coefficients converge as shown in the following formula (6):
[0062] W(n+1)=W(n)+2μm(n)x^(n) (6)
[0063] x^(n) is the signal collected by the reference microphone after passing through the secondary path, which can be obtained according to formula (7):
[0064] x^(n)=x(n)S T (n) (7)
[0065] m(n) is the intermediate error signal, which can be obtained according to formula (8):
[0066] m(n)=f(n)+x(n)W T (n) (8)
[0067] Where n is used to represent the time, the value of n is a positive integer, W(n) is the filter coefficient corresponding to the time n, W(n+1) is the filter coefficient corresponding to the time n+1, μ is the fixed step size factor, f(n) is the signal after x(n) passes through the main path, W T (n) is the transposed matrix of W(n), S(n) is the secondary path estimation obtained by adaptive modeling of the secondary path corresponding to time n, and x(n) is the signal collected by the reference microphone.
[0068] It should be noted that the filter 103 in the active noise reduction system 10 can adopt other algorithms, such as the least mean square error (Least Mean Square, LMS for short), the normalized least mean squares (Normalized least mean squares, NLMS for short), the variable step least mean square error (variable step least mean square, VSLMS for short) and other algorithms, and the corresponding convergence methods can be referred to the existing solutions, which will not be repeated here.
[0069] Optional, Figure 3 The active noise reduction system 30 may also include a downsampling module 1-301, which is used to downsample the audio signal collected by the error microphone 1021, and output the downsampled audio signal to the filter 103; the active noise reduction system 30 may also include a downsampling module 2-302, which is used to downsample the audio signal collected by the reference microphone 1022, and output the downsampled audio signal to the filter 103; the downsampling module 1 and the downsampling module 2 downsample the received signal to the working sampling rate of the filter 103 and the adaptive module 104. The active noise reduction system 30 may also include an upsampling module 303, which is used to upsample the generated noise reduction signal, and send the upsampled audio signal to the audio playback module 101, so as to be played in the sound cavity of the wearable device (such as the earphone sound cavity, etc.), interfere with the noise transmitted from the external environment to the sound cavity, and achieve the purpose of active noise reduction.
[0070] Figure 3 For other modules of the active noise reduction system 30, please refer to Figure 1 The relevant instructions in will not be repeated here.
[0071] In one embodiment, Figure 2 After obtaining the coefficient of the filter as the calibration coefficient in step S206, the method further includes: obtaining multiple groups of calibration coefficients for multiple wearable devices, and determining comprehensive coefficients for calibrating the active noise reduction modules of the multiple wearable devices according to the multiple groups of calibration coefficients.
[0072] Among them, according to steps S201 to S206, a single model of the wearable device can be calibrated once. In order to make the calibrated filter coefficients universal for models of multiple wearable devices, the model can be replaced to repeat steps S201 to S206. Finally, multiple sets of calibration coefficients corresponding to the multiple models are obtained, and the average value or truncated mean is calculated by combining the multiple sets of calibration coefficients, so as to obtain the filter coefficients reflecting the models of multiple wearable devices, that is, the comprehensive coefficient.
[0073] In one embodiment, the audio playing module 101 is controlled to play the noise test signal in a soundproof environment, that is, step S201 is performed in a soundproof room or soundproof box environment to avoid the influence of external interfering sound signals.
[0074] See also Figure 4The embodiment of the present invention further provides a calibration device 40 for an active noise reduction system of a wearable device, comprising: a noise test signal playing module 401, used to start the active noise reduction system, control the audio playing module to play the noise test signal, and collect the noise test signal through the sound collecting module; a secondary path estimation module 402, used to calculate the secondary path estimation of the active noise reduction system; a passive noise reduction curve measurement module 403, used to stop playing the noise test signal, turn off the active noise reduction system, play the ambient noise through the external playing module, and measure the passive noise reduction level of the wearable device. ; An initial parameter configuration module 404 is used to configure the initial parameters of the active noise reduction system, wherein the initial parameters include the secondary path estimation; an active noise reduction level measurement module 405 is used to turn on the active noise reduction system, control the audio playback module to play the noise reduction signal and measure the active noise reduction level of the wearable device; a calibration coefficient acquisition module 406 is used to obtain the coefficient of the filter as a calibration coefficient when the difference between the active noise reduction level and the passive noise reduction level is within a preset value interval and the coefficient of the filter converges, wherein the calibration coefficient is used to calibrate the filter.
[0075] Figure 4 The calibration device 40 involves Figure 1 The active noise reduction system 10 or Figure 3 The active noise reduction system 30 and the calibration device 40 may be arranged on a terminal side such as a computer.
[0076] For more information about the working principle and working method of the calibration device 40 for the active noise reduction system of the wearable device, please refer to Figures 1 to 3 The description of the calibration method of the active noise reduction system of the wearable device will not be repeated here.
[0077] In a specific implementation, the calibration device 40 of the active noise reduction system of the above-mentioned wearable device can correspond to a chip with a calibration function of the active noise reduction system of the wearable device, or to a chip with a data processing function, such as a system-on-a-chip (SOC), a baseband chip, etc.; or to a chip module in the UE that includes a calibration function chip of the active noise reduction system of the wearable device; or to a chip module with a data processing function chip, or to a terminal.
[0078] In a specific implementation, each module / unit included in each device or product described in the above embodiments may be a software module / unit or a hardware module / unit, or may be partly a software module / unit and partly a hardware module / unit.
[0079] For example, for each device or product applied to or integrated in a chip, each module / unit contained therein may be implemented in the form of hardware such as circuits, or at least some of the modules / units may be implemented in the form of software programs, which run on a processor integrated inside the chip, and the remaining (if any) modules / units may be implemented in the form of hardware such as circuits; for each device or product applied to or integrated in a chip module, each module / unit contained therein may be implemented in the form of hardware such as circuits, and different modules / units may be located in the same component (such as a chip, circuit module, etc.) or different components of the chip module, or at least some of the modules / units may be implemented in the form of software programs. The element can be implemented in the form of a software program, which runs on a processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in the terminal, the various modules / units contained therein can be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or in different components in the terminal, or, at least some modules / units can be implemented in the form of a software program, which runs on a processor integrated inside the terminal, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits.
[0080] The embodiment of the present invention further provides a storage medium having a computer program stored thereon, wherein the computer program is executed when the processor is running. Figures 1 to 3 The steps of any method for calibrating an active noise reduction system of a wearable device. The storage medium may be a computer-readable storage medium, for example, may include a non-volatile memory or a non-transitory memory, and may also include an optical disk, a mechanical hard disk, a solid-state hard disk, etc.
[0081] The embodiment of the present invention further provides a terminal, comprising a calibration device for an active noise reduction system of a wearable device, or comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor executes a calibration procedure when executing the computer program. Figures 1 to 3 The steps of any one of the calibration methods for an active noise reduction system of a wearable device.
[0082] Specifically, in the embodiment of the present invention, the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0083] It should also be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM) and direct rambus RAM (DR RAM).
[0084] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article indicates that the associated objects before and after are in an "or" relationship.
[0085] The "plurality" appearing in the embodiments of the present application refers to two or more.
[0086] The first, second, etc. descriptions appearing in the embodiments of the present application are only used for illustration and distinction of the description objects. There is no order, nor do they indicate any special limitation on the number of devices in the embodiments of the present application, and cannot constitute any limitation on the embodiments of the present application.
[0087] The "connection" that appears in the embodiments of the present application refers to various connection methods such as direct connection or indirect connection to achieve communication between devices, and the embodiments of the present application do not impose any limitations on this.
[0088] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.
Claims
1. A calibration method for an active noise reduction system of a wearable device, wherein the wearable device comprises an active noise reduction system, and the active noise reduction system comprises: An audio playback module, used to play input audio signals; A sound collection module, used to collect the audio signal played by the audio playback module or the audio signal played by the external playback module; a filter, used to filter the audio signal collected by the sound collection module to obtain a noise reduction signal; An adaptive module is used to adjust the coefficients of the filter; wherein the method comprises: Turn on the active noise reduction system in an anechoic room or anechoic box environment, control the audio playback module to play the noise test signal, and collect the noise test signal through the sound collection module; calculating a secondary path estimate for the active noise reduction system; Stop playing the noise test signal, turn off the active noise reduction system, play the ambient noise through the external playback module, and measure the passive noise reduction level of the wearable device; Configuring initial parameters of the active noise reduction system, the initial parameters including the secondary path estimation; turning on the active noise reduction system, controlling the audio playback module to play the noise reduction signal and measuring the active noise reduction level of the wearable device; When the difference between the active noise reduction level and the passive noise reduction level is within a preset value interval and the coefficient of the filter converges, the coefficient of the filter is obtained as a calibration coefficient, wherein the calibration coefficient is used to calibrate the filter.
2. The method according to claim 1, characterized in that The calculating a secondary path estimate of the active noise reduction system comprises: The transfer function of the secondary path is estimated according to the noise test signal played by the audio playing module and the noise test signal collected by the sound collecting module to obtain the secondary path estimation.
3. The method according to claim 1, characterized in that The sound collection module includes an error microphone, and the secondary path estimation of the active noise reduction system is calculated according to the following formula: S(n+1)=S(n)+2μe(n)spk(n); Wherein, n is used to represent a moment, the value of n is a positive integer, S(n) is the secondary path estimation obtained by adaptive modeling of the secondary path corresponding to moment n, S(n+1) is the secondary path estimation obtained by adaptive modeling of the secondary path corresponding to moment n+1, μ is a fixed step size factor, spk(n) is the noise test signal played by the audio playback module, and e(n) is the intermediate error signal; Where, e(n) = d(n) - spk(n)S T (n); d(n) is the noise test signal collected by the error microphone, S T (n) is the transposed matrix of S(n).
4. The method according to any one of claims 1 to 3, characterized in that: The sound collection module also includes a reference microphone, the filter is an FxLMS filter, and the filter coefficient convergence formula is as follows: W(n+1)=W(n)+2μm(n)x^(n); Wherein, n is used to represent the time, the value of n is a positive integer, W(n) is the filter coefficient corresponding to the time n, W(n+1) is the filter coefficient corresponding to the time n+1, μ is the fixed step size factor, m(n) is the intermediate error signal, and x^(n) is the signal collected by the reference microphone after passing through the secondary path; Where x^(n)=x(n)S T (n); S(n) is the secondary path estimation obtained by adaptive modeling of the secondary path corresponding to time n, and x(n) is the signal collected by the reference microphone; m(n)=f(n)+x(n)W T (n); f(n) is the signal after x(n) passes through the main path, W T (n) is the transposed matrix of W(n).
5. The method according to claim 1, characterized in that The passive noise reduction level of the wearable device is measured by measuring the passive noise reduction curve of the wearable device, and the active noise reduction level of the wearable device is measured by measuring the active noise reduction curve of the wearable device.
6. The method according to claim 1, characterized in that The filter is a single feedforward filter, a single feedback filter or a feedforward plus feedback hybrid filter.
7. The method according to claim 1, characterized in that After obtaining the coefficients of the filter as calibration coefficients, the method further includes: Acquire multiple groups of calibration coefficients of the multiple wearable devices, and determine comprehensive coefficients for calibrating active noise reduction modules of the multiple wearable devices according to the multiple groups of calibration coefficients.
8. The method according to claim 1, characterized in that The audio playing module is controlled to play the noise test signal in a soundproofing environment.
9. A calibration device for an active noise reduction system of a wearable device, which executes the method according to any one of claims 1 to 8, wherein the wearable device comprises an active noise reduction system, and the active noise reduction system comprises: An audio playback module, used to play input audio signals; A sound collection module, used to collect the audio signal played by the audio playback module or the audio signal played by the external playback module; a filter, used to filter the signal collected by the sound collection module to obtain a noise reduction signal; An adaptive module, used to adjust the coefficients of the filter; characterized in that the calibration device comprises: A noise test signal playing module, used to start the active noise reduction system in an anechoic room or anechoic box environment, control the audio playing module to play the noise test signal, and collect the noise test signal through the sound collection module; A secondary path estimation module for calculating a secondary path estimate of the active noise reduction system; A passive noise reduction curve measurement module, used to stop playing the noise test signal, turn off the active noise reduction system, play the ambient noise through the external playback module, and measure the passive noise reduction level of the wearable device; An initial parameter configuration module, used to configure initial parameters of the active noise reduction system, the initial parameters including the secondary path estimation; An active noise reduction level measurement module, used to turn on the active noise reduction system, control the audio playback module to play the noise reduction signal and measure the active noise reduction level of the wearable device; A calibration coefficient acquisition module is used to acquire the coefficient of the filter as a calibration coefficient when the difference between the active noise reduction level and the passive noise reduction level is within a preset value interval and the coefficient of the filter converges, wherein the calibration coefficient is used to calibrate the filter.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are performed.
11. A computer device, comprising the apparatus according to claim 9, or comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, wherein: When the processor runs the computer program, the steps of the method according to any one of claims 1 to 8 are performed.
