A frequency response correction method, electronic equipment and signal processing method

By obtaining and correcting the differences in frequency response curves of electronic devices, selecting and applying target filter groups, the problem of noise reduction effect and consistency caused by differences in frequency response of devices is solved, achieving more efficient noise reduction performance and cost reduction.

CN113949968BActive Publication Date: 2024-10-011MORE ACOUSTIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111047136.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-07
Publication Date
2024-10-01
Estimated Expiration
2041-09-07

AI Technical Summary

Technical Problem

In the existing technology, the frequency response correction method of electronic devices cannot effectively solve the problems of poor noise reduction effect caused by differences in frequency response curves of different devices, poor consistency of ANC noise reduction performance and high product defective rate, and the cost is also high.

Method used

By obtaining the difference in frequency response curves of the device to be corrected and the standard device, the target filter is selected for correction processing, and the correction is iteratively performed until the frequency response difference is within the preset range, forming a target filter group to achieve accurate correction.

Benefits of technology

The noise reduction effect and noise reduction performance consistency are improved, product defect rates and costs are reduced, and the target filter group can be used for subsequent reuse, further reducing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113949968B_ABST
    Figure CN113949968B_ABST
Patent Text Reader

Abstract

The present application provides a frequency response correction method, an electronic device, and a signal processing method for an audio output device. The method includes: obtaining a first frequency response curve of a device to be corrected and a second frequency response curve of a standard device; subtracting the first frequency response curve from the second frequency response curve to obtain a frequency response difference curve; selecting a target filter according to the symmetry of the region with the largest absolute gain value in the frequency response difference curve; using the target filter to correct the frequency response difference curve to obtain a corrected frequency response difference curve; when the maximum gain value in the corrected frequency response difference curve is not within a preset range, using the corrected frequency response difference curve as the next frequency response difference curve to be corrected, and returning to the step: selecting a target filter; when the maximum gain value in the corrected frequency response difference curve is within a preset range, obtaining a target filter group. The present application can improve the noise reduction effect and the consistency of noise reduction performance, thereby reducing product defective rate and cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of frequency response, and in particular, relates to a frequency response correction method, an electronic device, and a signal processing method for an audio output device. Background Art

[0002] At present, the frequency response correction of electronic devices mainly uses the total gain of the feedforward active noise reduction filter and the feedback active noise reduction filter to reduce the impact of the frequency response change of the device on the ANC (Active Noise Control) effect, thereby achieving a good noise reduction effect. However, this frequency response correction method is to directly calibrate according to a unified frequency response standard, while in fact the frequency response curves of different devices may be different, which will lead to poor noise reduction effect, poor consistency of ANC noise reduction performance, high product defect rate, and high corresponding cost. Summary of the invention

[0003] The embodiments of the present application provide a frequency response correction method, an electronic device, and a readable storage medium, which can solve the problems of poor noise reduction effect, poor consistency of ANC noise reduction performance, high product defect rate, and corresponding high cost.

[0004] In a first aspect, an embodiment of the present application provides a frequency response correction method, comprising:

[0005] Obtaining a first frequency response curve of the device to be calibrated and a second frequency response curve of the standard device;

[0006] Subtracting the first frequency response curve from the second frequency response curve to obtain a frequency response difference curve;

[0007] Selecting a target filter according to the symmetry of the region with the largest absolute gain value in the frequency response difference curve;

[0008] Using the target filter to perform correction processing on the frequency response difference curve to obtain a corrected frequency response difference curve;

[0009] When the maximum gain value in the corrected frequency response difference curve is not within the preset range, the corrected frequency response difference curve is used as the frequency response difference curve to be corrected in the next step, and the process returns to the step of selecting a target filter according to the symmetry of the region with the maximum absolute gain value in the frequency response difference curve;

[0010] When the maximum gain value in the corrected frequency response difference curve is within the preset range, a target filter group is obtained, where the target filter group includes at least one target filter.

[0011] Further, selecting a target filter according to the symmetry of the region with the largest absolute gain value in the frequency response difference curve includes:

[0012] Determine a target area with a maximum absolute gain value in the frequency response difference curve;

[0013] According to the symmetry of the target area, a target filter applicable to the target area is determined.

[0014] Further, selecting a target filter according to the symmetry of the region with the largest absolute gain value in the frequency response difference curve includes:

[0015] Dividing the frequency response difference curve into frequency response difference curves of different frequency ranges;

[0016] For the frequency response difference curves in different frequency ranges, respectively determining corresponding target areas with the maximum absolute gain value;

[0017] Determine a target filter applicable to the target area according to the symmetry of the target area;

[0018] The different frequency ranges include at least two frequency ranges.

[0019] Furthermore, determining the target area with the maximum absolute gain value in the frequency response difference curve includes:

[0020] Performing average gain filtering processing on the frequency response difference curve to obtain a processed frequency response difference curve;

[0021] Determine the maximum point of the absolute value of the gain of the processed frequency response difference curve;

[0022] Taking the maximum value point as a reference, searching for the first extreme value point to the left to obtain the first extreme value point, and searching for the first extreme value point to the right to obtain the second extreme value point;

[0023] The area between the first extreme value point and the second extreme value point is used as the target area with the maximum absolute value of gain.

[0024] Further, determining a target filter applicable to the target area according to the symmetry of the target area includes:

[0025] Calculating a mean square error of the target area;

[0026] If the value of the mean square error is lower than a preset threshold, the target filter is a peak filter or a notch filter;

[0027] If the value of the mean square error is higher than the preset threshold, the target filter is a high shelf filter or a low shelf filter.

[0028] Furthermore, the preset range is ±0.5dB.

[0029] Furthermore, the device to be calibrated is a microphone or a speaker.

[0030] In a second aspect, an embodiment of the present application provides a signal processing method for an audio output device, the method comprising:

[0031] Collect noisy signals through microphone;

[0032] Using a microphone filter group, performing microphone frequency response correction filtering processing on the noisy signal, wherein the microphone filter group is a filter group obtained by the method described in any one of the first aspects above, using a microphone as a device to be corrected and a standard microphone as a standard device;

[0033] and / or

[0034] Collect noisy signals through speakers;

[0035] A speaker filter group is used to perform speaker frequency response correction filtering processing on the signal input to the speaker, wherein the speaker filter group is a filter group obtained by the method described in any one of the first aspects above, with the speaker as the device to be corrected and the standard speaker as the standard device.

[0036] Furthermore, the method further comprises:

[0037] Collect the first band noise signal through the call microphone;

[0038] Using a call microphone filter group, performing microphone frequency response correction filtering processing on the first noise signal;

[0039] collecting a second noise signal through a feedforward microphone;

[0040] Using a feedforward microphone filter bank, performing microphone frequency response correction filtering processing on the second noisy signal;

[0041] Performing noise reduction filtering on the second noisy signal after correction filtering;

[0042] The third band noise signal is collected by a feedback microphone;

[0043] Using a feedback microphone filter bank, performing microphone frequency response correction filtering processing on the third noise band signal;

[0044] Performing noise reduction filtering on the third noisy signal after correction filtering;

[0045] If an audio signal is received, EQ adjustment is performed;

[0046] Mixing the signals input to the loudspeaker to obtain a mixed signal, wherein the signals input to the loudspeaker include the first signal or the first signal and the second signal, wherein the first signal includes a signal processed by noise reduction filtering, and the second signal is the audio signal after EQ adjustment;

[0047] The speaker filter bank is used to perform speaker frequency response correction filtering processing on the mixed signal.

[0048] Furthermore, the method further comprises:

[0049] Collect the first band noise signal through the call microphone;

[0050] Using a call microphone filter group, filtering the first noise signal;

[0051] Collect a second noisy signal through a feedforward microphone, and perform noise reduction filtering, microphone frequency response correction filtering, and speaker frequency response correction filtering on the second noisy signal, wherein the microphone frequency response correction filtering is implemented by using a feedforward microphone filter group, and the speaker frequency response correction filtering is implemented by using the speaker filter group;

[0052] Collect the third noise band signal through the feedback microphone, and perform noise reduction filtering, microphone frequency response correction filtering and speaker frequency response correction filtering on the third noise band signal, wherein the microphone frequency response correction filtering is implemented by using the feedback microphone filter group, and the speaker frequency response correction filtering is implemented by using the speaker filter group;

[0053] If an audio signal is received, EQ adjustment is performed;

[0054] The speaker filter group is used to perform speaker frequency response correction filtering processing on the audio signal after EQ adjustment.

[0055] Furthermore, the method further comprises:

[0056] Collect the first band noise signal through the call microphone;

[0057] Using a call microphone filter group, performing microphone frequency response correction filtering processing on the first noise signal;

[0058] Collecting a second noisy signal through a feedforward microphone, and performing noise reduction filtering and microphone frequency response correction filtering on the second noisy signal, wherein the microphone frequency response correction filtering is achieved by using a feedforward microphone filter group;

[0059] Collecting a third noise band signal through a feedback microphone, performing noise reduction filtering and microphone frequency response correction filtering on the third noise band signal, wherein the microphone frequency response correction filtering is achieved by using a feedback microphone filter group;

[0060] If an audio signal is received, EQ adjustment is performed;

[0061] Mixing the signals input to the loudspeaker to obtain a mixed signal, wherein the signals input to the loudspeaker include the first signal or the first signal and the second signal, wherein the first signal includes a filtered signal, and the second signal is the audio signal after EQ adjustment;

[0062] The speaker filter bank is used to perform speaker frequency response correction filtering processing on the mixed signal.

[0063] Furthermore, the method further comprises:

[0064] The first noise signal is collected by a feedforward microphone and subjected to noise reduction filtering processing;

[0065] The second noise signal is collected through a feedback microphone and subjected to noise reduction filtering processing;

[0066] If an audio signal is received, EQ adjustment is performed;

[0067] Mixing the signals input to the loudspeaker to obtain a mixed signal, wherein the signals input to the loudspeaker include the first signal or the first signal and the second signal, wherein the first signal includes a signal processed by noise reduction filtering, and the second signal is the audio signal after EQ adjustment;

[0068] The speaker filter bank is used to perform speaker frequency response correction filtering processing on the mixed signal.

[0069] Furthermore, the method further comprises:

[0070] Collect the first band noise signal through the call microphone;

[0071] Using a call microphone filter group, performing microphone frequency response correction filtering processing on the first noise signal;

[0072] collecting a second noise signal through a feedforward microphone;

[0073] Using a feedforward microphone filter bank, performing microphone frequency response correction filtering processing on the second noisy signal;

[0074] Performing noise reduction filtering on the second noisy signal after correction filtering;

[0075] collecting a third-band noise signal through a feedback microphone, and performing noise reduction filtering on the third-band noise signal;

[0076] If an audio signal is received, EQ adjustment is performed;

[0077] Mixing the signals input to the loudspeaker to obtain a mixed signal, wherein the signals input to the loudspeaker include the first signal or the first signal and the second signal, wherein the first signal includes a filtered signal, and the second signal is the audio signal after EQ adjustment;

[0078] The speaker filter bank is used to perform speaker frequency response correction filtering processing on the mixed signal.

[0079] Furthermore, the method further comprises:

[0080] Collect the first band noise signal through the call microphone;

[0081] Using a call microphone filter group, performing microphone frequency response correction filtering processing on the first noise signal;

[0082] Collecting a second noisy signal through a feedforward microphone, and performing noise reduction filtering and microphone frequency response correction filtering on the second noisy signal, wherein the microphone frequency response correction filtering is achieved by using a feedforward microphone filter group;

[0083] collecting a third noise band signal through a feedback microphone, and performing noise reduction filtering on the third noise band signal;

[0084] If an audio signal is received, EQ adjustment is performed;

[0085] Mixing the signals input to the loudspeaker to obtain a mixed signal, wherein the signals input to the loudspeaker include the first signal or the first signal and the second signal, wherein the first signal includes a filtered signal, and the second signal is the audio signal after EQ adjustment;

[0086] The speaker filter bank is used to perform speaker frequency response correction filtering processing on the mixed signal.

[0087] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements a method as described in any one of the above-mentioned first aspects.

[0088] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method as described in any one of the above-mentioned first aspects is implemented.

[0089] In a fifth aspect, an embodiment of the present application provides an audio output device, which, when executed, implements the method as described in any one of the above-mentioned second aspects.

[0090] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0091] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0092] The embodiment of the present application obtains a first frequency response curve of the device to be corrected and a second frequency response curve of the standard device; subtracts the first frequency response curve from the second frequency response curve to obtain a frequency response difference curve; selects a target filter according to the symmetry of the region with the largest absolute gain value in the frequency response difference curve; uses the target filter to correct the frequency response difference curve to obtain a corrected frequency response difference curve; when the maximum gain value in the corrected frequency response difference curve is not within a preset range, the corrected frequency response difference curve is used as the next frequency response difference curve to be corrected, and returns to the step: selects a target filter according to the symmetry of the region with the largest absolute gain value in the frequency response difference curve; when the maximum gain value in the corrected frequency response difference curve is within a preset range, a target filter group is obtained, the target filter group includes at least one target filter, and can be corrected according to the frequency response curve characteristics of the device itself, so as to accurately correct the frequency response curve, thereby improving the noise reduction effect and the consistency of the noise reduction performance, thereby reducing the product defect rate and cost; and at the same time, the target filter group is obtained, which can be easily reused in the future, further reducing the cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0093] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0094] Figure 1 is a flow chart of a frequency response correction method provided by an embodiment of the present application;

[0095] Figure 2 yes Figure 1 An effect example diagram of the frequency response correction method;

[0096] Figure 3 yes Figure 1 Another effect example diagram of the frequency response correction method;

[0097] Figure 4is a flow chart of a frequency response correction method provided by another embodiment of the present application;

[0098] Figure 5 It is a flowchart of a signal processing method of an audio output device provided in an embodiment of the present application;

[0099] Figure 6 It is a schematic diagram of an application scenario provided by an embodiment of the present application;

[0100] Figure 7 is a schematic diagram of an application scenario provided by another embodiment of the present application;

[0101] Figure 8 yes Figure 7 Schematic diagram of the frequency response correction process;

[0102] Fig. 9 is a schematic diagram of an application scenario provided by another embodiment of the present application;

[0103] Fig.10 yes Fig. 9 Schematic diagram of the frequency response correction process;

[0104] Fig.11 is a schematic diagram of an application scenario provided by another embodiment of the present application;

[0105] Fig.12 is a schematic diagram of an application scenario provided by another embodiment of the present application;

[0106] Fig.13 is a schematic diagram of an application scenario provided by another embodiment of the present application;

[0107] Fig.14 yes Fig.13 Schematic diagram of the frequency response correction process;

[0108] Fig.15 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0109] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0110] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0111] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0112] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0113] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0114] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0115] Figure 1 FIG. 1 is a flow chart of a frequency response correction method provided in an embodiment of the present application. Figure 1 As shown, the method is applied in the production test stage of an electronic device, and the exemplary electronic device may be a speaker, a microphone or an earphone.

[0116] Specifically include:

[0117] S101: Acquire a first frequency response curve of the device to be calibrated and a second frequency response curve of a standard device.

[0118] The first frequency response curve is obtained by using the acoustic test software to generate a sweep signal to perform a frequency response test on the device to be corrected, and then testing it with the test equipment. The second frequency response curve is obtained by using the acoustic test software to generate a sweep signal to perform a frequency response test on the standard device, and then testing it with the test equipment.

[0119] For example, the test equipment can be an IEC711 artificial ear. If the device to be calibrated is a call microphone, the corresponding standard device is a standard call microphone; if the device to be calibrated is a feedforward microphone, the corresponding standard device is a standard feedforward microphone; if the device to be calibrated is a feedback microphone, the corresponding standard device is a standard feedback microphone; if the device to be calibrated is a speaker, the corresponding standard device is a standard speaker.

[0120] S102: Subtract the first frequency response curve from the second frequency response curve to obtain a frequency response difference curve.

[0121] Specifically, numerical subtraction is performed on the points on the first frequency response curve and the points on the second frequency response curve corresponding to the same frequency, and after traversing all frequencies, the points obtained by the subtraction constitute a frequency response difference curve.

[0122] S103: Select a target filter according to the symmetry of the region with the largest absolute gain value in the frequency response difference curve.

[0123] Specifically, first, determine the target area with the largest absolute gain value in the frequency response difference curve.

[0124] First, the frequency response difference curve is subjected to average gain filtering to obtain a processed frequency response difference curve. The average gain filtering reduces the gain difference between the first frequency response curve and the second frequency response, thereby providing a basis for gain fine-tuning and reducing power consumption.

[0125] Next, the maximum point of the absolute gain value of the processed frequency response difference curve is determined.

[0126] Then, based on the maximum value point, search for the first extreme point to the left to obtain the first extreme point, and search for the first extreme point to the right to obtain the second extreme point;

[0127] Finally, the area between the first extreme point and the second extreme point is taken as the target area with the maximum absolute value of gain.

[0128] For example, after average gain filtering, the maximum value point in the frequency response difference curve is found: A(f A , gain A ), gain A The value of can be positive or negative, gain A Is a positive number. AThe value of is a positive number. Taking A as the reference, perform a regional search to the left area to find the first extreme point where the curve drops to the left and then rises from A, and take this first extreme point as the first extreme point; then perform a regional search to the right area to find the first extreme point where the curve drops to the right and then rises from A, and take this first extreme point as the second extreme point, and then take the area between the first extreme point and the second extreme point as the target area with the largest absolute value of gain.

[0129] If gain A The value of is negative. Taking A as the reference, perform area traversal to the left area to find the first extreme point where the curve rises to the left and then falls from A, and take this first extreme point as the first extreme point; then perform area traversal to the right area to find the first extreme point where the curve rises to the right and then falls from A, and take this first extreme point as the second extreme point, and then take the area between the first extreme point and the second extreme point as the target area with the largest absolute value of gain.

[0130] Second, according to the symmetry of the target area, determine the target filter applicable to the target area;

[0131] Specifically, the mean square error of the target area is calculated;

[0132] If the value of the mean square error is lower than a preset threshold, the target filter is a peak filter or a notch filter;

[0133] If the value of the mean square error is higher than a preset threshold, the target filter is a high shelf filter or a low shelf filter.

[0134] The mean square error formula is: Among them, k i With k i ' are two points x that are symmetrical about the axis i , x i ' is the slope, and n is the number of symmetric points.

[0135] The preset threshold is set according to the fitting effect between the first frequency response curve and the second frequency response curve, so as to achieve a better final fitting effect.

[0136] For example, to facilitate subsequent data processing, the target area is moved by an amount equal to f A The distance between A and the first extreme value makes A coincide with the ordinate axis, that is, coincide with the y axis, and A is on the y axis. Set the area between A and the first extreme value point as the left area. If the frequency response difference curve of the left area meets the grad=f 左 (f0), then the slope in the left region is calculated as Where f0 is the horizontal coordinate value. Set the area between A and the second extreme point as the right area. If the frequency response difference curve of the right area meets grad=f 右(f0), the slope in the right region is calculated as Among them, f0 is the horizontal coordinate value.

[0137] If gardf 左 (f0)=-gradf 右 (f0), the frequency response difference curve of the left and right areas is symmetrical about the y-axis, the mean square error is lower than the preset threshold, and the peak filter or notch filter is selected as the target filter.

[0138] If gardf 左 (f0)≠-gradf 右 (f0), the frequency response difference curve of the left and right areas is asymmetric about the y-axis, and then the mean square error of the target area is calculated. If the mean square error is lower than the preset threshold, the peak filter or the notch filter is selected as the target filter, and the parameter values ​​of the peak filter or the notch filter are obtained at the same time, including the gain value, the center frequency value and the shape factor value. If the value of the mean square error is higher than the preset threshold, the high-shelf filter or the low-shelf filter is selected as the target filter, and the optimal parameter value is selected within the preset parameter value range of each type of parameter, so as to obtain the optimal parameter value of the high-shelf filter or the low-shelf filter, including the optimal gain value, the optimal center frequency value and the optimal shape factor value. The optimal parameter value is the parameter value that makes the maximum gain value of the frequency response difference curve closer to the preset range.

[0139] S104: using the target filter to perform correction processing on the frequency response difference curve to obtain a corrected frequency response difference curve.

[0140] Specifically, a peak filter or a notch filter is used to correct the frequency response difference curve;

[0141] Alternatively, use a high shelf filter or a low shelf filter to correct the frequency response difference curve.

[0142] S105: When the maximum gain value in the corrected frequency response difference curve is not within the preset range, the corrected frequency response difference curve is used as the next frequency response difference curve to be corrected, and the process returns to step S103. Step S103 is to select a target filter according to the symmetry of the region with the maximum absolute gain value in the frequency response difference curve.

[0143] Correspondingly, after returning to step S103, steps S103-S104 are repeatedly executed.

[0144] The preset range is ±0.5dB, but is not limited thereto.

[0145] Specifically, after each calibration, it is determined whether the maximum gain value in the frequency response difference curve after calibration is within the preset range. If it is not within the preset range, the frequency response difference curve obtained by the calibration at that time is used as the frequency response difference curve to be calibrated in the next step, and the target filter is reselected according to the symmetry of the region with the maximum absolute gain value of the frequency response difference curve to be calibrated in the next step, and then the reselected target filter is used to calibrate the frequency response difference curve to be calibrated in the next step, so that the maximum gain value in the frequency response difference curve after calibration is within the preset range through continuous iterative calibration.

[0146] S106: When the maximum gain value in the corrected frequency response difference curve is within a preset range, a target filter group is obtained, where the target filter group includes at least one target filter.

[0147] When the maximum gain value in the corrected frequency response difference curve is within the preset range, the first frequency response curve and the second frequency response curve are basically overlapped. After iterative correction, the target filter group is obtained. Since one target filter corresponds to a set of parameter values, the parameter values ​​include gain values, center frequency values ​​and shape factor values, at least one set of parameter values ​​is also obtained.

[0148] Figure 2 yes Figure 1 An example of the effect of the frequency response correction method. Figure 2 As shown, after steps S101-S106, the original frequency response difference curve 1 is corrected by the corrected filtered frequency response curve 2, that is, the corrected filtered frequency response curve 2 formed by the iterative target filter is corrected, and the maximum gain value of the corrected frequency response difference curve 3 is within the preset range, thereby achieving accurate correction.

[0149] Figure 3 yes Figure 1 Another example of the effect of the frequency response correction method. Figure 3 As shown, after steps S101 to S106, the first frequency response curve 4 is corrected, and the corrected first frequency response curve 5 is substantially overlapped with the second frequency response curve 6, thereby achieving accurate correction.

[0150] In this embodiment, a first frequency response curve of the device to be corrected and a second frequency response curve of the standard device are obtained; the first frequency response curve and the second frequency response curve are subtracted to obtain a frequency response difference curve; a target filter is selected according to the symmetry of the region with the largest absolute gain value in the frequency response difference curve; the frequency response difference curve is corrected using the target filter to obtain a corrected frequency response difference curve; when the maximum gain value in the corrected frequency response difference curve is not within a preset range, the corrected frequency response difference curve is used as the next frequency response difference curve to be corrected, and the process returns to the step of selecting a target filter according to the symmetry of the region with the largest absolute gain value in the frequency response difference curve; when the maximum gain value in the corrected frequency response difference curve is within a preset range, a target filter group is obtained, the target filter group includes at least one target filter, and can be corrected according to the frequency response curve characteristics of the device itself, so as to accurately correct the frequency response curve, thereby improving the noise reduction effect and the consistency of the noise reduction performance, thereby reducing the product defect rate and cost; and the target filter group is obtained at the same time, which can be easily reused in the future, further reducing the cost.

[0151] In another embodiment, according to actual software and hardware conditions, the target area may be corrected only once without iterative correction.

[0152] Figure 4 FIG. 1 is a flow chart of a frequency response correction method provided by another embodiment of the present application. As an example but not a limitation. Figure 4 As shown, the method is applied in the production test stage of electronic devices.

[0153] The step of selecting a target filter according to the symmetry of the region with the largest absolute gain value in the frequency response difference curve comprises:

[0154] S201: Divide the frequency response difference curve into frequency response difference curves of different frequency ranges.

[0155] The different frequency ranges include at least two frequency ranges.

[0156] S202: for frequency response difference curves in different frequency ranges, respectively determine corresponding target areas with the maximum absolute gain value.

[0157] S203: Determine target filters applicable to the corresponding target areas according to the symmetry of the target areas.

[0158] Specifically, the frequency response difference curve can be divided into frequency response difference curves of multiple frequency ranges according to the actual production test stage. For each frequency range of the frequency response difference curve, the corresponding target area with the largest absolute gain value is determined. Then, the corresponding applicable target filter is determined for the symmetry of the target area in each frequency range, and then the target area in each frequency range is corrected using the corresponding target filter. In other words, according to the actual production test stage, the frequency response difference curve can be divided into frequency response difference curves of 2 frequency ranges, frequency response difference curves of 4 frequency ranges, frequency response difference curves of 5 frequency ranges, or frequency response difference curves of 6 frequency ranges, and the number of divisions in the above examples is not limited thereto.

[0159] If limited by on-site hardware and the time of frequency response correction, it is possible to correct only the frequency response difference curves in certain frequency ranges, so that in this case, the frequency response correction can achieve better results.

[0160] For example, the frequency response difference curve may be divided into frequency response difference curves of high, medium and low frequency bands according to the frequency characteristics of the sound signal.

[0161] It should be noted that although the number of divisions is determined based on the frequency characteristics of the sound signal, the frequency ranges of different frequency bands will also be different due to the frequency response characteristics of the device to be corrected. For example: based on the lowest frequency and frequency response changes of the device's quality control frequency response, the frequency range of the high frequency band of the speaker is 3KHz-20KHz, the frequency range of the mid-frequency band is 40Hz-3KHz, and the frequency range of the low frequency band is 5Hz-40Hz. The frequency range of the high frequency band of the microphone is 3KHz-20KHz, the frequency range of the mid-frequency band is 160Hz-3KHz, and the frequency range of the low frequency band is 5Hz-160Hz.

[0162] In this embodiment, the frequency response difference curve is divided into frequency response difference curves of different frequency ranges, and a target filter applicable to the target area is determined according to the symmetry of the target area. The different frequency ranges include at least two frequency ranges, so that more accurate frequency response correction can be achieved, thereby obtaining a better frequency response correction effect.

[0163] Figure 5 FIG. 1 is a flow chart of a signal processing method for an audio output device provided in an embodiment of the present application. As an example and not a limitation, Figure 5 As shown, the method includes:

[0164] S301: Collecting a noisy signal through a microphone.

[0165] Illustratively, the microphone may be a talk microphone, a feedforward microphone, or a feedback microphone.

[0166] S302: Using a microphone filter group, performing microphone frequency response correction filtering processing on the noisy signal, wherein the microphone filter group is a filter group obtained by using a microphone as a device to be corrected and a standard microphone as a standard device through the method of any embodiment applied to the production test stage of an electronic device as described above.

[0167] S303: Collecting a noisy signal through a speaker.

[0168] S304: Use a speaker filter group to perform speaker frequency response correction filtering processing on the signal of the input speaker, wherein the speaker filter group is a filter group obtained by using the speaker as the device to be corrected and the standard speaker as the standard device through the method of any embodiment applied to the production and testing stage of electronic devices as described above.

[0169] This embodiment uses a microphone filter group to perform microphone frequency response correction filtering processing on a noisy signal, thereby achieving correction according to the frequency response curve characteristics of the microphone itself, so as to perform precise frequency response correction filtering processing on the microphone; and uses a speaker filter group to perform speaker frequency response correction filtering processing on a signal input to a speaker, thereby achieving correction according to the frequency response curve characteristics of the speaker itself, so as to perform precise frequency response correction filtering processing on the speaker.

[0170] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0171] Figure 6 This is a schematic diagram of an application scenario provided by an embodiment of the present application. It is used as an example and not as a limitation. Figure 6 As shown, the application scenario includes: a call branch, a feedforward branch, a feedback branch, an audio branch and a speaker branch. The call branch includes a call microphone 10, a microphone gain module 11, a first frequency response correction module 12, an adjustment total gain module 13 and a Bluetooth module 14 connected in sequence.

[0172] The feedforward branch includes a feedforward microphone 20, a microphone gain module 21, a second frequency response correction module 22, a total gain adjustment module 23 and a feedforward noise reduction module 24 which are connected in sequence.

[0173] The feedback branch includes a feedback microphone 30 , a microphone gain module 31 , a third frequency response correction module 32 , a total gain adjustment module 33 and a feedback noise reduction module 34 which are connected in sequence.

[0174] The audio branch includes a first total gain adjustment module 41 and a second total gain adjustment module 43 for receiving an audio signal 40, a music echo compensation module 42 connected to the first total gain adjustment module 41, and a music EQ adjustment module 44 (EQ Equaliser) connected to the second total gain adjustment module 43. The music echo compensation module 42 is connected to the feedback noise reduction module 34.

[0175] The speaker 52 branch includes a speaker frequency response correction module 50 connected to the feedforward noise reduction module 24 , the feedback noise reduction module 34 , and the music EQ adjustment module 44 , a speaker gain module 51 connected to the speaker frequency response correction module 50 , and a speaker 52 connected to the speaker gain module 51 .

[0176] Correspondingly, in the call branch, the first noisy signal is first collected through the call microphone 10, and then the microphone gain module 11 is used to perform gain processing on the first noisy signal, and then the call microphone filter group is used through the first frequency response correction module 12 to perform microphone frequency response correction filtering processing on the first noisy signal. The call microphone filter group includes at least one filter, which is pre-obtained by the method of any embodiment applied to the production and testing stage of electronic devices, using the call microphone as the device to be corrected and the standard call microphone as the standard device, and then sent to the external device through the Bluetooth module 14 after gain adjustment by the total gain module 13.

[0177] In the feedforward branch, the second noisy signal is first collected through the feedforward microphone 20, and then the second noisy signal is gain processed by using the microphone gain module 21, and then the second frequency response correction module 22 uses the feedforward microphone filter group to perform microphone frequency response correction filtering processing on the second noisy signal. The feedforward microphone filter group includes at least one filter, which is pre-obtained by using the feedforward microphone as the device to be corrected and the standard feedforward microphone as the standard device through the method of any embodiment applied to the production and testing stage of electronic devices, and then the gain processing is performed by adjusting the total gain module 23 and the noise reduction filtering is performed by the feedforward noise reduction module 24, and finally output to the speaker frequency response correction module 50, so as to achieve output to the speaker 52.

[0178] In the feedback branch, the third-band noise signal is first collected through the feedback microphone 30, and then the microphone gain module 31 is used to perform gain processing on the third-band noise signal. Then, the third frequency response correction module 32 uses the feedback microphone filter group to perform microphone frequency response correction filtering processing on the third-band noise signal. The feedback microphone filter group includes at least one filter. The feedback microphone filter group is pre-obtained by using the feedback microphone as the device to be corrected and the standard feedback microphone as the standard device through the method of any embodiment applied to the production test stage of the electronic device, and then gain processing is performed by adjusting the total gain module 33.

[0179] If an audio signal is received, the signal after gain processing by adjusting the total gain module 33 is mixed with the signal output by the music echo compensation module 42; if no audio signal is received, the signal after gain processing by adjusting the total gain module 33 is not mixed with the signal output by the music echo compensation module 42. Then, the feedback noise reduction module 34 performs noise reduction filtering processing, and finally outputs it to the speaker frequency response correction module 50, so as to output it to the speaker 52.

[0180] In the speaker branch, the signal input to the speaker 52 is mixed to obtain a mixed signal. The signal input to the speaker 52 includes a first signal or a first signal and a second signal. Correspondingly, the first signal includes a signal processed by noise reduction filtering, specifically including a signal processed by noise reduction filtering in the feedforward branch and a signal processed by noise reduction filtering in the feedback branch. The second signal is an audio signal output by the music EQ adjustment module 44 in the audio branch. Then, the speaker frequency response correction module 50 uses a speaker filter group to perform speaker frequency response correction filtering on the mixed signal. The speaker filter group includes at least one filter. The speaker filter group is pre-obtained by using a speaker as a device to be corrected and a standard speaker as a standard device through the method of any embodiment applied to the production and testing stage of electronic devices. Then, the corrected mixed signal is gain processed by the speaker gain module 51, and finally output to the speaker 52 for playing by the speaker 52.

[0181] In this embodiment, the corresponding filter group used in each branch is obtained according to the frequency response curve characteristics of the device itself, and can accurately calibrate the device to be corrected, thereby improving the noise reduction effect and the consistency of noise reduction performance, thereby reducing the product defect rate and cost; and by separately designing the correction module of each microphone branch, it is easy to analyze and correct the signal, and the speaker frequency response correction module is applied after the noise reduction and before the speaker output signal, so that accurate correction of the speaker can be achieved with only one correction. The structure of this embodiment is conducive to the implementation of software and hardware design.

[0182] Figure 7This is a schematic diagram of an application scenario provided by another embodiment of the present application, which is used as an example rather than a limitation. Figure 7 As shown, the application scenario includes: a call branch, a feedforward branch, a feedback branch, an audio branch and a speaker branch. The call branch includes a call microphone 10, a microphone gain module 11, a first processing module 15, a total gain adjustment module 13 and a Bluetooth module 14 connected in sequence.

[0183] The feedforward branch includes a feedforward microphone 20 , a microphone gain module 21 , a total gain adjustment module 23 and a second processing module 25 which are connected in sequence.

[0184] The feedback branch includes a feedback microphone 30 , a microphone gain module 31 , a total gain adjustment module 33 and a third processing module 35 which are connected in sequence.

[0185] The audio branch includes a first total adjustment gain module 41 and a second total adjustment gain module 43 for receiving an audio signal 40, a music echo compensation module 42 connected to the first total adjustment gain module 41, a fourth processing module 45 connected to the second total adjustment gain module 43, and the music echo compensation module 42 is connected to the third processing module 35.

[0186] The speaker branch includes a speaker gain module 51 connected to the second processing module 25 , the third processing module 35 , and the fourth processing module 45 , and a speaker 52 connected to the speaker gain module 51 .

[0187] Accordingly, Figure 8 yes Figure 7 Schematic diagram of the frequency response correction process. Figure 8 As shown, in the call branch, the following steps are performed: S10: collecting the first noisy signal through the call microphone, S11: using the microphone gain module to perform gain processing on the first noisy signal, S12: using the call microphone filter group through the first processing module to perform microphone frequency response correction filtering processing on the first noisy signal, the microphone filter group includes at least one filter, and the call microphone filter group is pre-obtained by using the call microphone as the device to be calibrated and the standard call microphone as the standard device through any embodiment of the method applied to the production and testing stage of electronic devices, S13: performing gain processing by adjusting the total gain module, S14: sending to the external device through the Bluetooth module.

[0188] In the feedforward branch, the following steps are performed: S20: collecting the second noisy signal through the feedforward microphone, S21-S22: using the microphone gain module and the total gain adjustment module to perform gain processing on the second noisy signal, S23: performing noise reduction filtering processing, microphone frequency response correction filtering processing and speaker frequency response correction filtering processing on the gain-processed second noisy signal through the second processing module, and then outputting it to the speaker gain module to achieve output to the speaker.

[0189] Among them, the microphone frequency response correction filtering processing is realized by using a feedforward microphone filter group, and the speaker frequency response correction filtering processing is realized by using a speaker filter group, the feedforward microphone filter group includes at least one filter, the speaker filter group includes at least one filter, the feedforward microphone filter group is obtained in advance by using a feedforward microphone as a device to be corrected and a standard feedforward microphone as a standard device through the method of any embodiment applied to the production and testing stage of electronic devices, and the speaker filter group is obtained in advance by using a speaker as a device to be corrected and a standard speaker as a standard device through the method of any embodiment applied to the production and testing stage of electronic devices.

[0190] In the feedback branch, the following steps are performed: S30: collecting the third noise signal through the feedback microphone, S31-S32: performing gain processing on the second noise signal using the microphone gain module and the total gain adjustment module.

[0191] S33: If an audio signal is received, then the signal is mixed with the signal output by the music echo compensation module after gain processing; if no audio signal is received, then the signal is mixed with the signal output by the music echo compensation module after gain processing.

[0192] Then, the third processing module performs noise reduction filtering, microphone frequency response correction filtering and speaker frequency response correction filtering, and then outputs to the speaker gain module to achieve output to the speaker.

[0193] The microphone frequency response correction filtering process is implemented by using a feedback microphone filter group, the feedback microphone filter group includes at least one filter, and the speaker frequency response correction filtering process is implemented by using a speaker filter group. The feedback microphone filter group is pre-obtained by using the feedback microphone as the device to be corrected and the standard feedback microphone as the standard device through the method of any embodiment applied to the production test stage of the electronic device.

[0194] In the audio branch, the following steps are performed: S40: If an audio signal is received, the audio signal is EQ-adjusted and speaker frequency response correction filtering is performed through the fourth processing module, wherein the speaker frequency response correction filtering is implemented through the speaker filter group, and then output to the speaker gain module to achieve output to the speaker.

[0195] It should be noted that the speaker filter group used in this embodiment is the same filter group.

[0196] In this embodiment, the filter group used in each branch is obtained according to the frequency response curve characteristics of the device itself, and can accurately calibrate the device to be corrected, thereby improving the noise reduction effect and the consistency of noise reduction performance, thereby reducing product defective rate and cost; and through the processing module, noise reduction filtering and correction filtering are performed simultaneously, which can be convenient for software implementation.

[0197] Fig. 9 This is a schematic diagram of an application scenario provided by another embodiment of the present application, which is used as an example rather than a limitation. Fig. 9 As shown, the application scenario includes: a call branch, a feedforward branch, a feedback branch, an audio branch and a speaker branch. The call branch includes a call microphone 10, a microphone gain module 11, a first processing module 16, a total gain adjustment module 13 and a Bluetooth module 14 connected in sequence.

[0198] The feedforward branch includes a feedforward microphone 20 , a microphone gain module 21 , a total gain adjustment module 23 and a second processing module 26 which are connected in sequence.

[0199] The feedback branch includes a feedback microphone 30 , a microphone gain module 31 , a total gain adjustment module 33 and a third processing module 36 which are connected in sequence.

[0200] The audio branch includes a first total gain adjustment module 41 and a second total gain adjustment module 43 for receiving an audio signal 40, a music echo compensation module 42 connected to the first total gain adjustment module 41, a music EQ adjustment module 44 connected to the second total gain adjustment module 43, and the music echo compensation module 42 is connected to the third processing module 36.

[0201] The speaker branch includes a speaker frequency response correction module 50 connected to the second processing module 26 , the third processing module 36 , and the music EQ adjustment module 44 , a speaker gain module 51 connected to the speaker frequency response correction module 50 , and a speaker 52 connected to the speaker gain module 51 .

[0202] Accordingly, Fig.10 yes Fig. 9 The frequency response correction process diagram is as follows: Fig.10As shown, in the call branch, the following steps are performed: S10: collecting the first noisy signal through the call microphone, S11: using the microphone gain module to perform gain processing on the first noisy signal, S12: using the call microphone filter group through the first processing module to perform microphone frequency response correction filtering processing on the first noisy signal, the call microphone filter group includes at least one filter; the call microphone filter group is pre-obtained by using the call microphone as the device to be calibrated and the standard call microphone as the standard device through any embodiment of the method applied to the production and testing stage of electronic devices, S13: performing gain processing by adjusting the total gain module, S14: sending to the external device through the Bluetooth module.

[0203] In the feedforward branch, the following steps are performed: S20: collect the second noisy signal through the feedforward microphone, S21-S22: use the microphone gain module and the total gain adjustment module to perform gain processing on the second noisy signal, S23: perform noise reduction filtering and microphone frequency response correction filtering on the gain-processed second noisy signal through the second processing module. Specifically, a hybrid filtering process is performed by combining the use of a noise reduction filter group and a feedforward microphone filter group; and then output to the speaker frequency response correction module to achieve output to the speaker.

[0204] The feedforward microphone filter group includes at least one filter, which is pre-obtained by using a feedforward microphone as a device to be calibrated and a standard feedforward microphone as a standard device through the method of any embodiment applied to the production test stage of an electronic device.

[0205] In the feedback branch, the following steps are performed: S30: collecting the third band noise signal through the feedback microphone, S31-S32: performing gain processing on the third band noise signal using the microphone gain module and the total gain adjustment module.

[0206] S33: If an audio signal is received, then the signal is mixed with the signal output by the music echo compensation module after gain processing; if no audio signal is received, then the signal is mixed with the signal output by the music echo compensation module after gain processing.

[0207] Then, the third processing module performs noise reduction filtering and microphone frequency response correction filtering. Specifically, a hybrid filtering is performed by combining a noise reduction filter group and a feedback microphone filter group. The signal is then output to the speaker frequency response correction module to achieve output to the speaker.

[0208] The feedback microphone filter group is pre-obtained by using the feedback microphone as the device to be calibrated and the standard feedback microphone as the standard device through the method of any embodiment applied to the production test stage of the electronic device.

[0209] In the speaker branch, the following steps are performed: S50: Mix the signal input to the speaker to obtain a mixed signal. The signal input to the speaker includes a first signal or a first signal and a second signal. The first signal includes a signal that has been filtered, specifically including a signal filtered in a feedforward branch and a signal filtered in a feedback branch. The second signal is an audio signal adjusted by EQ in an audio branch. Then, the speaker filter group is used through a speaker frequency response correction module to perform speaker frequency response correction filtering on the mixed signal, and output it to a speaker gain module. The speaker filter group is obtained in advance by using a speaker as a device to be corrected and a standard speaker as a standard device through the method of any embodiment of the above-mentioned application in the production and testing stage of electronic devices. S51: Perform gain processing on the corrected mixed signal through a speaker gain module, and then output it to the speaker. S52: Play it through the speaker.

[0210] The filter group used in each branch of the present embodiment is obtained according to the frequency response curve characteristics of the device itself, and can accurately calibrate the device to be corrected, thereby improving the noise reduction effect and the consistency of noise reduction performance, thereby reducing product defective rate and cost; and in the microphone branch, noise reduction processing and correction processing are performed through the processing module, which can be convenient for software implementation, and the structure of the present embodiment can reduce the use of hardware.

[0211] Fig.11 This is a schematic diagram of an application scenario provided by another embodiment of the present application. It is used as an example and not as a limitation. Fig.11 As shown, the application scenario includes: a feedforward branch, a feedback branch, an audio branch and a speaker branch.

[0212] The feedforward branch includes a feedforward microphone 20, a microphone gain module 21, a total gain adjustment module 23 and a feedforward noise reduction module 24 which are connected in sequence.

[0213] The feedback branch includes a feedback microphone 30 , a microphone gain module 31 , an overall gain adjustment module 33 and a feedback noise reduction module 34 which are connected in sequence.

[0214] The audio branch includes a first total gain adjustment module 41 and a second total gain adjustment module 43 for receiving an audio signal 40, a music echo compensation module 42 connected to the first total gain adjustment module 41, a music EQ adjustment module 44 connected to the second total gain adjustment module 43, and the music echo compensation module 42 is connected to the feedback noise reduction module 34.

[0215] The speaker 52 branch includes a speaker frequency response correction module 50 connected to the feedforward noise reduction module 24 , the feedback noise reduction module 34 , and the music EQ adjustment module 44 , a speaker gain module 51 connected to the speaker frequency response correction module 50 , and a speaker 52 connected to the speaker gain module 51 .

[0216] Correspondingly, in the feedforward branch, the second noisy signal is first collected by the feedforward microphone 20, and then the microphone gain module 21 is used to perform gain processing on the second noisy signal, and then the total gain adjustment module 23 is used to perform gain processing and the feedforward noise reduction module 24 is used to perform noise reduction filtering processing, and finally output to the speaker frequency response correction module 50, so as to achieve output to the speaker 52;

[0217] In the feedback branch, the third band noise signal is first collected through the feedback microphone 30, and then the microphone gain module 31 is used to perform gain processing on the third band noise signal. If an audio signal is received, it is mixed with the signal output by the music echo compensation module 42 after gain processing; if no audio signal is received, it is not mixed with the signal output by the music echo compensation module 42 after gain processing. Then, the feedback noise reduction module 34 performs noise reduction filtering processing, and finally outputs it to the speaker frequency response correction module 50, so as to output it to the speaker 52.

[0218] In the speaker branch, the signal input to the speaker is mixed to obtain a mixed signal. The signal input to the speaker includes a first signal or a first signal and a second signal. Correspondingly, the first signal includes a signal processed by noise reduction filtering, specifically including a signal processed by noise reduction filtering in the feedforward branch and a signal processed by noise reduction filtering in the feedback branch. The second signal is an audio signal output by the music EQ adjustment module 44 in the audio branch. Then, the speaker filter group is used through the speaker frequency response correction module 50 to perform speaker frequency response correction filtering on the mixed signal. The speaker filter group includes at least one filter. The speaker filter group is pre-obtained by using a speaker as a device to be corrected and a standard speaker as a standard device through the method of any embodiment applied to the production and testing stage of electronic devices; then, the corrected mixed signal is gain processed by the speaker gain module 51, and finally output to the speaker 52, and played by the speaker 52.

[0219] This embodiment applies the speaker frequency response correction module after noise reduction and before the speaker outputs the signal, so that accurate speaker correction can be achieved with only one correction. The structure of this embodiment is conducive to the implementation of software and hardware design.

[0220] Fig.12 This is a schematic diagram of an application scenario provided by another embodiment of the present application. It is used as an example and not as a limitation. Fig.12 As shown, the application scenario includes: a call branch, a feedforward branch, a feedback branch, an audio branch and a speaker branch. The call branch includes a call microphone 10, a microphone gain module 11, a first frequency response correction module 12, an adjustment total gain module 13 and a Bluetooth module 14 connected in sequence.

[0221] The feedforward branch includes a feedforward microphone 20, a microphone gain module 21, a second frequency response correction module 22, a total gain adjustment module 23 and a feedforward noise reduction module 24 which are connected in sequence.

[0222] The feedback branch includes a feedback microphone 30 , a microphone gain module 31 , an overall gain adjustment module 33 and a feedback noise reduction module 34 which are connected in sequence.

[0223] The audio branch includes a first total gain adjustment module 41 and a second total gain adjustment module 43 for receiving an audio signal 40, a music echo compensation module 42 connected to the first total gain adjustment module 41, a music EQ adjustment module 44 connected to the second total gain adjustment module 43, and the music echo compensation module 42 is connected to the feedback noise reduction module 34.

[0224] The speaker 52 branch includes a speaker frequency response correction module 50 connected to the feedforward noise reduction module 24 , the feedback noise reduction module 34 , and the music EQ adjustment module 44 , a speaker gain module 51 connected to the speaker frequency response correction module 50 , and a speaker 52 connected to the speaker gain module 51 .

[0225] Correspondingly, in the call branch, the first noisy signal is first collected through the call microphone 10, and then the first noisy signal is gain processed using the microphone gain module 11, and then the first frequency response correction module 12 uses the call microphone filter group to perform microphone frequency response correction filtering processing on the first noisy signal. The call microphone filter group includes at least one filter, which is pre-acquired by the method of any embodiment applied to the production and testing stage of electronic devices using the call microphone as the device to be corrected and the standard call microphone as the standard device, and then sent to the external device through the Bluetooth module 14 after gain adjustment by the total gain adjustment module 13.

[0226] In the feedforward branch, the second noisy signal is first collected through the feedforward microphone 20, and then the second noisy signal is gain processed by using the microphone gain module 21, and then the second frequency response correction module 22 uses the feedforward microphone filter group to perform microphone frequency response correction filtering processing on the second noisy signal. The feedforward microphone filter group includes at least one filter, and the feedforward microphone filter group is pre-obtained by using the feedforward microphone as the device to be corrected and the standard feedforward microphone as the standard device through the method of any embodiment applied to the production and testing stage of electronic devices, and then the gain processing is performed by adjusting the total gain module 23 and the noise reduction filtering is performed by the feedforward noise reduction module 24, and finally output to the speaker frequency response correction module 50, so as to achieve output to the speaker 52.

[0227] In the feedback branch, the third band noise signal is first collected through the feedback microphone 30, and then the microphone gain module 31 is used to perform gain processing on the third band noise signal. If an audio signal is received, it is mixed with the signal output by the music echo compensation module 42 after gain processing; if no audio signal is received, it is not mixed with the signal output by the music echo compensation module 42 after gain processing. Then, the feedback noise reduction module 34 performs noise reduction filtering processing, and finally outputs it to the speaker frequency response correction module 50, so as to output it to the speaker 52.

[0228] In the speaker branch, the signal input to the speaker is mixed to obtain a mixed signal. The signal input to the speaker includes a first signal or a first signal and a second signal. Correspondingly, the first signal includes a signal processed by noise reduction filtering, specifically including a signal processed by noise reduction filtering in the feedforward branch and a signal processed by noise reduction filtering in the feedback branch. The second signal is an audio signal output by the music EQ adjustment module 44 in the audio branch. Then, the speaker filter group is used through the speaker frequency response correction module 50 to perform speaker frequency response correction filtering on the mixed signal. The speaker filter group includes at least one filter. The speaker filter group is pre-obtained by using a speaker as a device to be corrected and a standard speaker as a standard device through the method of any embodiment applied to the production and testing stage of electronic devices; then, the corrected mixed signal is gain processed by the speaker gain module 51, and finally output to the speaker 52, and played by the speaker 52.

[0229] The corresponding filter group used in the branch in this embodiment is obtained according to the frequency response curve characteristics of the device itself, and can accurately calibrate the device to be corrected, thereby improving the noise reduction effect and the consistency of noise reduction performance, thereby reducing the product defect rate and cost; and by separately designing the correction module of each microphone branch, it is easy to analyze and correct the signal, and the speaker frequency response correction module is applied after the noise reduction and before the speaker output signal, so that accurate correction of the speaker can be achieved with only one correction. The structure of this embodiment is conducive to the implementation of software and hardware design.

[0230] Fig.13 This is a schematic diagram of an application scenario provided by another embodiment of the present application, which is used as an example rather than a limitation. Fig.13 As shown, the application scenario includes: a call branch, a feedforward branch, a feedback branch, an audio branch and a speaker branch. The call branch includes a call microphone 10, a microphone gain module 11, a first processing module 16, a total gain adjustment module 13 and a Bluetooth module 14 connected in sequence.

[0231] The feedforward branch includes a feedforward microphone 20 , a microphone gain module 21 , a total gain adjustment module 23 and a second processing module 26 which are connected in sequence.

[0232] The feedback branch includes a feedback microphone 30 , a microphone gain module 31 , an overall gain adjustment module 33 and a feedback noise reduction module 34 which are connected in sequence.

[0233] The audio branch includes a first total gain adjustment module 41 and a second total gain adjustment module 43 for receiving an audio signal 40, a music echo compensation module 42 connected to the first total gain adjustment module 41, a music EQ adjustment module 44 connected to the second total gain adjustment module 43, and the music echo compensation module 42 is connected to a feedback noise reduction module.

[0234] The speaker branch includes a speaker frequency response correction module 50 connected to the second processing module 26 , the third processing module 36 , and the music EQ adjustment module 44 , a speaker gain module 51 connected to the speaker frequency response correction module 50 , and a speaker 52 connected to the speaker gain module 51 .

[0235] Accordingly, Fig.14 yes Fig.13 Schematic diagram of the frequency response correction process. Fig.14 As shown, in the call branch, the following steps are performed: S10: collecting the first noisy signal through the call microphone, S11: using the microphone gain module to perform gain processing on the first noisy signal, S12: using the call microphone filter group through the first processing module to perform microphone frequency response correction filtering processing on the first noisy signal, the call microphone filter group includes at least one filter; the call microphone filter group is pre-obtained by using the call microphone as the device to be calibrated and the standard call microphone as the standard device through any of the above-mentioned embodiments of the method applied to the production and testing stage of electronic devices, S13: performing gain processing through the adjusted total gain module, S14: sending to the external device through the Bluetooth module.

[0236] In the feedforward branch, the following steps are performed: S20: collect the second noisy signal through the feedforward microphone, S21-S22: use the microphone gain module and the total gain adjustment module to perform gain processing on the second noisy signal, S23: perform noise reduction filtering processing and microphone frequency response correction filtering processing on the second noisy signal through the second processing module. Specifically, a hybrid filtering processing is performed by combining the use of a noise reduction filter group and a feedforward microphone filter group; and then output to the speaker frequency response correction module to achieve output to the speaker.

[0237] The microphone frequency response correction filtering process is implemented by using a feedforward microphone filter group, the feedforward microphone filter group includes at least one filter, and the feedforward microphone filter group is pre-obtained by using a feedforward microphone as a device to be corrected and a standard feedforward microphone as a standard device through the method of any embodiment applied to the production test stage of an electronic device.

[0238] In the feedback branch, the following steps are performed: S30: collecting the third band noise signal through the feedback microphone, S31-S32: performing gain processing on the third band noise signal using the microphone gain module and the total gain adjustment module.

[0239] S33: If an audio signal is received, then the signal is mixed with the signal output by the music echo compensation module after gain processing; if no audio signal is received, then the signal is mixed with the signal output by the music echo compensation module after gain processing.

[0240] The noise reduction filter is then processed through the feedback noise reduction module and then output to the speaker frequency response correction module to achieve output to the speaker.

[0241] In the speaker branch, the following steps are performed: S50: Mix the input speaker signal to obtain a mixed signal. The input speaker signal includes the first signal or the first signal and the second signal. The first signal includes a filtered signal, specifically including the signal filtered in the feedforward branch and the signal filtered in the feedback branch. The second signal is the audio signal adjusted by EQ in the audio branch. Then, the speaker filter group is used through the speaker frequency response correction module to perform speaker frequency response correction filtering on the mixed signal and output it to the speaker gain module. The speaker filter group is obtained in advance by using the speaker as the device to be corrected and the standard speaker as the standard device through the method of any embodiment applied to the production and testing stage of electronic devices. S51: The corrected mixed signal is gain processed by the speaker gain module and then output to the speaker. S52: Play through the speaker.

[0242] In this embodiment, the filter group used in the branch is obtained according to the frequency response curve characteristics of the device itself, and can accurately calibrate the device to be corrected, thereby improving the noise reduction effect and the consistency of noise reduction performance, thereby reducing product defective rate and cost; and in some microphone branches, noise reduction processing and correction processing are performed through processing modules, which can be facilitated by software implementation, and the structure of this embodiment can reduce the use of hardware.

[0243] It should be noted that the above application scenario embodiments are all application scenarios in the use stage of electronic devices. For example, the electronic device may be headphones or speakers. Among them, the noisy signal collected by the feedback microphone may be a noisy signal after feedforward noise reduction.

[0244] It should be noted that the frequency response correction filtering process is implemented by using the corresponding filter group in the above-mentioned application scenario embodiments, which is implemented by obtaining filter parameter values ​​from the filter group, the parameter values ​​including gain values, center frequency values ​​and shape factor values, and then calculating the corresponding filter coefficients according to the parameter values ​​through an algorithm, and then burning the filter coefficients into the chip of the electronic device. For example, the algorithm can be selected as a fixed-point operation.

[0245] Fig.15 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Fig.15 As shown, the electronic device 6 of this embodiment includes: at least one processor 60 ( Fig.15 Only one is shown in the figure), a memory 61, and a computer program 62 stored in the memory 61 and executable on the at least one processor 60, wherein the processor 60 implements the steps of any of the above-mentioned method embodiments when executing the computer program 62.

[0246] The electronic device 6 may be a computing device such as a desktop computer, a notebook, a palm computer, etc. The electronic device may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will understand that Figure 6 It is only an example of the electronic device 6 and does not constitute a limitation on the electronic device 6. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0247] The processor 60 may be a central processing unit (CPU), or 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 any conventional processor, etc.

[0248] In some embodiments, the memory 61 may be an internal storage unit of the electronic device 6, such as a hard disk or memory of the electronic device 6. In other embodiments, the memory 61 may also be an external storage device of the electronic device 6, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 6. Further, the memory 61 may also include both an internal storage unit of the electronic device 6 and an external storage device. The memory 61 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 61 may also be used to temporarily store data that has been output or is to be output.

[0249] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0250] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0251] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0252] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0253] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / electronic device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0254] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0255] Those of ordinary skill in the art will appreciate that the units, modules, and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0256] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0257] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0258] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A frequency response correction method, characterized in that: include: Obtaining a first frequency response curve of the device to be calibrated and a second frequency response curve of the standard device; Subtracting the first frequency response curve from the second frequency response curve to obtain a frequency response difference curve; The target filter is selected according to the symmetry of the region with the largest absolute gain value in the frequency response difference curve, including: determining the target region with the largest absolute gain value in the frequency response difference curve; calculating the mean square error of the target region; if the mean square error value is lower than a preset threshold, the target filter is a peak filter or a notch filter; if the mean square error value is higher than the preset threshold, the target filter is a high shelf filter or a low shelf filter; Using the target filter to perform correction processing on the frequency response difference curve to obtain a corrected frequency response difference curve; When the maximum gain value in the corrected frequency response difference curve is not within the preset range, the corrected frequency response difference curve is used as the frequency response difference curve to be corrected in the next step, and the process returns to the step of selecting a target filter according to the symmetry of the region with the maximum absolute gain value in the frequency response difference curve; When the maximum gain value in the corrected frequency response difference curve is within the preset range, a target filter group is obtained, where the target filter group includes at least one target filter.

2. The method according to claim 1, characterized in that Selecting a target filter according to the symmetry of the region with the largest absolute gain value in the frequency response difference curve includes: Dividing the frequency response difference curve into frequency response difference curves of different frequency ranges; For the frequency response difference curves in different frequency ranges, respectively determining corresponding target areas with the maximum absolute gain value; Determine a target filter applicable to the target area according to the symmetry of the target area; The different frequency ranges include at least two frequency ranges.

3. The method according to claim 1, characterized in that Determining the target area with the maximum absolute gain value in the frequency response difference curve includes: Performing average gain filtering processing on the frequency response difference curve to obtain a processed frequency response difference curve; Determine the maximum point of the absolute value of the gain of the processed frequency response difference curve; Taking the maximum value point as a reference, searching for the first extreme value point to the left to obtain the first extreme value point, and searching for the first extreme value point to the right to obtain the second extreme value point; The area between the first extreme value point and the second extreme value point is used as the target area with the maximum absolute value of gain.

4. The method according to any one of claims 1 to 3, characterized in that: The preset range is ±0.5dB.

5. The method according to any one of claims 1 to 3, characterized in that: The device to be calibrated is a microphone or a speaker.

6. A signal processing method for an audio output device, characterized in that: The method comprises: Collect noisy signals through microphone; Using a microphone filter group, performing microphone frequency response correction filtering processing on the noisy signal, wherein the microphone filter group is a filter group obtained by the method according to any one of claims 1 to 5, with a microphone as the device to be corrected and a standard microphone as the standard device; and / or Collect noisy signals through speakers; A speaker filter group is used to perform speaker frequency response correction filtering processing on the signal input to the speaker, wherein the speaker filter group is a filter group obtained by the method according to any one of claims 1 to 5, with the speaker as the device to be corrected and the standard speaker as the standard device.

7. The method according to claim 6, characterized in that The method further comprises: Collect the first band noise signal through the call microphone; Using a call microphone filter group, performing microphone frequency response correction filtering processing on the first noise signal; collecting a second noise signal through a feedforward microphone; Using a feedforward microphone filter bank, performing microphone frequency response correction filtering processing on the second noisy signal; Performing noise reduction filtering on the second noisy signal after correction filtering; The third band noise signal is collected by a feedback microphone; Using a feedback microphone filter bank, performing microphone frequency response correction filtering processing on the third noise band signal; Performing noise reduction filtering on the third noisy signal after correction filtering; If an audio signal is received, EQ adjustment is performed; Mixing the signals input to the loudspeaker to obtain a mixed signal, wherein the signals input to the loudspeaker include the first signal or the first signal and the second signal, wherein the first signal includes a signal processed by noise reduction filtering, and the second signal is the audio signal after EQ adjustment; The speaker filter bank is used to perform speaker frequency response correction filtering processing on the mixed signal.

8. The method according to claim 6, characterized in that The method further comprises: Collect the first band noise signal through the call microphone; Using a call microphone filter group, performing microphone frequency response correction filtering processing on the first noise signal; Collect a second noisy signal through a feedforward microphone, and perform noise reduction filtering, microphone frequency response correction filtering, and speaker frequency response correction filtering on the second noisy signal, wherein the microphone frequency response correction filtering is implemented by using a feedforward microphone filter group, and the speaker frequency response correction filtering is implemented by using the speaker filter group; Collect the third noise band signal through the feedback microphone, and perform noise reduction filtering, microphone frequency response correction filtering and speaker frequency response correction filtering on the third noise band signal, wherein the microphone frequency response correction filtering is implemented by using the feedback microphone filter group, and the speaker frequency response correction filtering is implemented by using the speaker filter group; If an audio signal is received, EQ adjustment is performed; The speaker filter group is used to perform speaker frequency response correction filtering processing on the audio signal after EQ adjustment.

9. The method according to claim 6, characterized in that The method further comprises: Collect the first band noise signal through the call microphone; Using a call microphone filter group, performing microphone frequency response correction filtering processing on the first noise signal; Collecting a second noisy signal through a feedforward microphone, and performing noise reduction filtering and microphone frequency response correction filtering on the second noisy signal, wherein the microphone frequency response correction filtering is achieved by using a feedforward microphone filter group; Collecting a third noise band signal through a feedback microphone, performing noise reduction filtering and microphone frequency response correction filtering on the third noise band signal, wherein the microphone frequency response correction filtering is achieved by using a feedback microphone filter group; If an audio signal is received, EQ adjustment is performed; Mixing the signals input to the loudspeaker to obtain a mixed signal, wherein the signals input to the loudspeaker include the first signal or the first signal and the second signal, wherein the first signal includes a filtered signal, and the second signal is the audio signal after EQ adjustment; The speaker filter bank is used to perform speaker frequency response correction filtering processing on the mixed signal.

10. The method according to claim 6, characterized in that The method further comprises: The first noise signal is collected by a feedforward microphone and subjected to noise reduction filtering processing; The second noise signal is collected through a feedback microphone and subjected to noise reduction filtering processing; If an audio signal is received, EQ adjustment is performed; Mixing the signals input to the loudspeaker to obtain a mixed signal, wherein the signals input to the loudspeaker include the first signal or the first signal and the second signal, wherein the first signal includes a signal processed by noise reduction filtering, and the second signal is the audio signal after EQ adjustment; The speaker filter bank is used to perform speaker frequency response correction filtering processing on the mixed signal.

11. The method according to claim 6, characterized in that The method further comprises: Collect the first band noise signal through the call microphone; Using a call microphone filter group, performing microphone frequency response correction filtering processing on the first noise signal; collecting a second noise signal through a feedforward microphone; Using a feedforward microphone filter bank, performing microphone frequency response correction filtering processing on the second noisy signal; Performing noise reduction filtering on the second noisy signal after correction filtering; collecting a third-band noise signal through a feedback microphone, and performing noise reduction filtering on the third-band noise signal; If an audio signal is received, EQ adjustment is performed; Mixing the signals input to the loudspeaker to obtain a mixed signal, wherein the signals input to the loudspeaker include the first signal or the first signal and the second signal, wherein the first signal includes a filtered signal, and the second signal is the audio signal after EQ adjustment; The speaker filter bank is used to perform speaker frequency response correction filtering processing on the mixed signal.

12. The method according to claim 6, characterized in that The method further comprises: Collect the first band noise signal through the call microphone; Using a call microphone filter group, performing microphone frequency response correction filtering processing on the first noise signal; Collecting a second noisy signal through a feedforward microphone, and performing noise reduction filtering and microphone frequency response correction filtering on the second noisy signal, wherein the microphone frequency response correction filtering is achieved by using a feedforward microphone filter group; collecting a third noise band signal through a feedback microphone, and performing noise reduction filtering on the third noise band signal; If an audio signal is received, EQ adjustment is performed; Mixing the signals input to the loudspeaker to obtain a mixed signal, wherein the signals input to the loudspeaker include the first signal or the first signal and the second signal, wherein the first signal includes a filtered signal, and the second signal is the audio signal after EQ adjustment; The speaker filter bank is used to perform speaker frequency response correction filtering processing on the mixed signal.

13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.