Self-test method, device and medium for active noise reduction system
The preset test signal is played through the speaker and fast Fourier transform, which solves the problem of time-consuming detection of active noise reduction system, and achieves fast and comprehensive detection and fault location.
Patent Information
- Application Number
- CN202211540930.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-02
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2042-12-02
AI Technical Summary
The detection methods of existing active noise reduction systems are time-consuming and insufficient, making it difficult to quickly locate faults.
The preset test signal is played through the speaker, and the microphone synchronously collects the target audio signal, and performs fast Fourier transformation to extract frequency domain features to determine whether the microphone and speaker are working normally.
A fast and comprehensive detection of active noise reduction system is realized, which can quickly locate faults and improve detection efficiency.
Smart Images

Figure CN116132900B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a detection method, device and medium, and in particular to a self-detection method, device and medium for an active noise reduction system. Background Art
[0002] Active noise reduction is a noise control technology that can effectively reduce the level of low-frequency noise. An active noise reduction system usually consists of a control board, a microphone, and a speaker. To ensure the noise reduction effect, the active noise reduction system usually includes multiple microphones and multiple speakers to form multiple noise reduction channels. Before the product is assembled and shipped, it is necessary to test whether each component is working properly, that is, to perform a self-test on the system. In addition, when the active noise reduction system fails, engineers need to quickly locate the problem, and there is also a need for rapid testing. The usual practice is to let multiple speakers in the active noise reduction system play sound in turn, let the microphone recollect the signal, and then test and compare the microphone signal. Although this method is simple and easy to understand, when the number of speakers is large, the test is time-consuming and the test items are not sufficient. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to overcome the defect of the prior art that the active noise reduction system cannot be quickly detected, and to provide a self-detection method, device and medium for the active noise reduction system that can achieve rapid and comprehensive detection.
[0004] The present invention solves the above technical problems through the following technical solutions: a self-test method for an active noise reduction system, wherein the active noise reduction system includes at least one microphone and at least one speaker, and is characterized in that:
[0005] The at least one speaker plays a corresponding preset test signal; the at least one microphone synchronously collects at least one target audio signal;
[0006] The target audio signal is windowed and Fast Fourier Transformation (FFT) is performed at a preset resolution to convert it into the target spectrum;
[0007] Extracting frequency domain features of a preset test signal under fast Fourier transform at the preset resolution;
[0008] Whether the at least one microphone and the at least one speaker operate normally is determined according to whether the target frequency spectrum includes the frequency domain characteristics of the preset test signal.
[0009] Preferably, the self-test method further comprises determining whether the gain of the microphone meets the standard according to whether the maximum amplitude of the at least one target audio signal falls within a preset range.
[0010] Preferably, judging whether the at least one microphone and the at least one speaker are operating normally is performed according to whether the target spectrum contains the frequency domain characteristics of the preset test signal, specifically:
[0011] If the target spectrum of any microphone contains all the frequency domain characteristics of the preset test signal of any speaker, it means that the speaker is working properly;
[0012] If the target spectra of some microphones contain all the frequency domain features of the preset test signals corresponding to all the speakers, but the target spectra of some microphones do not contain them, it means that the microphones are faulty;
[0013] If the target spectra of all microphones do not detect the frequency domain characteristics of the preset test signal corresponding to any speaker, and the speaker is indeed not making any sound, then all the speakers are damaged;
[0014] If the frequency domain characteristics of the preset test signal corresponding to any loudspeaker are not detected in the target frequency spectrum of all microphones, and the loudspeaker does make a sound, then all the microphones are damaged.
[0015] Preferably, before the at least one speaker plays the respective corresponding preset test signal, the method further comprises generating the respective corresponding preset test signal for the at least one speaker;
[0016] The preset test signal includes at least three superimposed single-frequency sinusoidal signals of different frequencies, and the at least three single-frequency sinusoidal signals of different frequencies include at least one high frequency, one medium frequency and one low frequency, and the frequencies of the at least three single-frequency sinusoidal signals of different frequencies of each preset test signal are different.
[0017] Preferably, the self-test method further comprises: collecting ambient sound by a microphone to obtain a reference audio signal;
[0018] The reference audio signal is windowed and converted into a reference frequency domain signal by fast Fourier transform with preset resolution.
[0019] The reference frequency domain signal is subtracted from the target spectrum, and then it is determined whether the target spectrum contains the frequency domain characteristics of the preset test signal.
[0020] Preferably, extracting the frequency domain features of the preset test signal under the fast Fourier transform of the preset resolution specifically includes calculating each frequency peak value of the preset test signal under the fast Fourier transform of the preset resolution.
[0021] Preferably, whether the target spectrum contains the frequency domain characteristics of the preset test signal; specifically
[0022] A peak-finding algorithm is used to search for peaks in the target spectrum. If the value corresponding to the frequency peak in the preset test signal or its adjacent value is determined to be a peak, it is determined that the target spectrum contains the frequency peak, that is, contains the frequency domain feature.
[0023] Preferably, among the at least three single-frequency sinusoidal signals included in each preset test signal, there is no multiple relationship between the frequencies of the single-frequency sinusoidal signals.
[0024] Preferably, the frequency bandwidth of all preset test signals is mHz, and the frequency of the fast Fourier transform of the preset resolution is rHz, and the number of all single-frequency sine signals of all preset test signals is M×j, and the above satisfies 0.01(m / r)≤M×J≤0.1(m / r), where j is the number of speakers, and M is the number of corresponding single-frequency sine signals in the preset test signal of each speaker.
[0025] Another aspect of the present invention discloses a self-test device for an active noise reduction system, which is characterized by comprising:
[0026] A control unit controls at least one speaker to play a corresponding preset test signal;
[0027] A collection unit connected to a microphone to collect target audio signals;
[0028] a first transform unit, configured to perform windowing and fast Fourier transform of a preset resolution on the target audio signal collected by the acquisition unit to convert the signal into a target spectrum;
[0029] A calculation unit, configured to calculate and extract frequency domain features of a preset test signal under a fast Fourier transform of a preset resolution;
[0030] The judging unit judges whether the at least one microphone and the at least one speaker are operating normally according to whether the target spectrum includes the frequency domain characteristics of the preset test signal.
[0031] Preferably, the judging unit comprises a first judging unit for judging whether the target spectrum includes the frequency domain characteristics of the preset test signal, and a second judging unit for judging whether the at least one microphone or the at least one speaker operates normally.
[0032] Preferably, the judgment unit further includes a third judgment unit for judging whether the gain of the microphone meets the standard according to whether the maximum amplitude of the at least one target audio signal falls within a preset range.
[0033] Preferably, the system further comprises a generating unit for generating a corresponding preset test signal for each speaker, and the control unit controls at least one speaker to play the corresponding preset test signal.
[0034] Preferably, it also includes
[0035] An environmental signal acquisition unit, used to connect to a microphone to collect environmental audio signals;
[0036] The second conversion unit is connected to the environmental signal acquisition unit and is used to perform fast Fourier transformation of the environmental audio signal collected by the microphone with a preset resolution and convert it into a reference frequency domain signal.
[0037] Another aspect of the present invention discloses an electronic device, comprising:
[0038] at least one processor; and
[0039] a memory communicatively connected to the at least one processor; wherein,
[0040] The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor to enable the at least one processor to perform the above method.
[0041] According to another aspect of the present invention, a non-transitory computer-readable storage medium storing computer instructions is disclosed, wherein the computer instructions are used to enable the computer to execute the above method.
[0042] The positive progress of the present invention is that the self-test method of the active noise reduction system does not require the addition of other components, and only needs to run the equipment in the noise reduction system by itself to make a judgment. In addition, the test speed is fast and comprehensive. Combined with whether the tester can hear any sound, it can be determined what kind of abnormality exists in the system, and the problematic microphone or speaker can be quickly located, thereby improving detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 Schematic diagram of the process of the self-test method of the active noise reduction system according to Example 1 of the present invention;
[0044] Figure 2 Schematic diagram of the process of the self-test method of the active noise reduction system according to embodiment 2 of the present invention;
[0045] Figure 3 Schematic diagram of the process of the self-test method of the active noise reduction system according to embodiment 3 of the present invention;
[0046] Figure 4 This is a module diagram of a self-test device for an active noise reduction system according to a fourth embodiment of the present invention;
[0047] Figure 5 This is a schematic block diagram of an exemplary electronic device 500 provided in accordance with Embodiment 5 of the present invention. DETAILED DESCRIPTION
[0048] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.
[0049] Example 1
[0050] The first embodiment of the present invention provides a self-test method for an active noise reduction system. The active noise reduction system generally includes at least one speaker and at least one microphone. Preferably, the system includes j speakers and i microphones, wherein the i microphones include ik reference microphones and k error microphones, where i, j, and k are all positive integers. Figure 1 As shown, the method specifically includes the following steps:
[0051] S1, j loudspeakers play their corresponding preset test signals f at the same time j , and the target audio signal d is collected synchronously by i microphones i , the target audio signal corresponding to the i-th microphone is d i , the target audio signal d i is a time-domain signal, representing a mixture of all preset test signals played by j speakers. Each preset test signal includes m single-frequency sinusoidal signals, i.e., each preset test signal is composed of the superposition of m single-frequency sinusoidal signals, and the m single-frequency sinusoidal signals in each preset test signal corresponding to each speaker are different.
[0052] The m single-frequency sinusoidal signals in the preset test signal corresponding to each loudspeaker include at least three (i.e., m ≥ 3). The m single-frequency sinusoidal signals include at least one high-frequency, one mid-frequency, and one low-frequency single-frequency sinusoidal signal. Furthermore, the low-frequency signal should not be a low frequency, such as one below 100 Hz, because the preset test signal will subsequently require a fast Fourier transform with a preset resolution, which has limited resolution, and normal background noise contains relatively high low-frequency signals. Furthermore, the frequencies of the m single-frequency sinusoidal signals in each preset test signal should not be integer multiples of each other, otherwise the test results will be affected by harmonic effects.
[0053] S2, the target audio signal is windowed and fast Fourier transformed with a preset resolution to convert it into the target spectrum; specifically, the target audio signal d i Add window and perform fast Fourier transform with preset resolution to obtain the target spectrum F i ; There are i target audio signals in total, i.e. i target spectra F1, F2...F are converted. i .
[0054] S3, extracting the frequency domain features of the preset test signal under the fast Fourier transform of the preset resolution, specifically extracting the frequency peak of the preset test signal under the fast Fourier transform of the preset resolution.
[0055] This step can be calculated. There are j preset test signals in total. Each preset test signal is composed of m single-frequency sinusoidal signals superimposed. Therefore, its frequency peak is the frequency value position of the m single-frequency signals. Each preset test signal has m frequency peaks. All preset test signals have a total of m×j frequency peaks. For example, the preset test signal f of the speaker with serial number j is j The peak value is [A j1 ,A j2 ,……,A jm ], j is the speaker number, and m is the number of peaks, that is, the number of single-frequency sinusoidal signals.
[0056] S4, judging whether the at least one microphone and the at least one speaker are operating normally according to whether the target spectrum contains the frequency domain characteristics of the preset test signal. Specifically including:
[0057] If the target spectrum of any microphone contains all the frequency domain characteristics of the preset test signal of any speaker, it means that the speaker is working properly;
[0058] If the target spectra of some microphones contain all the frequency domain features of the preset test signals corresponding to all the speakers, but the target spectra of some microphones do not contain them, it means that the microphones are faulty;
[0059] If the target spectra of all microphones do not detect the frequency domain characteristics of the preset test signal corresponding to any speaker, and the speaker is indeed not making any sound, then all the speakers are damaged;
[0060] If the frequency domain characteristics of the preset test signal corresponding to any loudspeaker are not detected in the target frequency spectrum of all microphones, and the loudspeaker does make a sound, then all the microphones are damaged.
[0061] The frequency domain characteristics of the preset test signal are the m frequency peaks [A j1 ,A j2 ,……,A jm Therefore, by judging whether the target spectrum contains the frequency domain peak [A j1 ,A j2 ,……,A jm ] to determine whether the speaker or microphone is working properly.
[0062] Specifically, the peak search algorithm is used to find the target spectrum F i Search for peaks in the frequency peak A. j1 If the corresponding value or its corresponding value is determined to be a peak value, it is considered that the target spectrum contains the frequency peak value, that is, contains the frequency domain feature.
[0063] More specifically,
[0064] If the target spectrum F of any microphone with serial number u is u , including the preset test signal f of any speaker with serial number s s All frequency peaks [A s1 ,A s2 ,……,A sm ], it means that the speaker s is working properly; s is the serial number of the speaker, u is the serial number of the microphone, 1≤u≤i, 1≤s≤j.
[0065] If the target spectrum of microphones numbered 1-3, such as F1, F2, and F3, contains all the frequency peaks of the preset test signals corresponding to all speakers [A 11 ,A 12 ,……,A 1m ]……[A j1 ,A j2 ,……,A jm ], and the target spectrum of some microphones numbered 4-i, such as F4, F5...F i If it is not included, it means that the serial number is F4, F5...F i Some microphones are malfunctioning.
[0066] If the target spectra of all microphones are F1, F2, F3...F i If the frequency peak of the preset test signal corresponding to any speaker is not detected and the speaker does not make any sound, then all speakers are damaged;
[0067] If the target spectra of all microphones are F1, F2, F3...F i If the frequency peak of the preset test signal corresponding to any speaker is not detected and the speaker does make sound, then all microphones are damaged.
[0068] If the frequency bandwidth of all preset test signals is bHz, and the preset frequency of the fast Fourier transform of the preset resolution is cHz, the number of all single-frequency sinusoidal signals of all preset test signals is m×j, and the above satisfies 0.01(b / c)≤m×j≤0.1(b / c), where j is the number of speakers, and m is the number of corresponding single-frequency sinusoidal signals in the preset test signal of each speaker.
[0069] Example 2
[0070] like Figure 2 As shown, the method of this embodiment is basically similar to that of embodiment 1, except that two steps S100 and S104 are added in this embodiment, namely
[0071] Step S100: Generate a corresponding preset test signal f for each speaker. j , j is the speaker number, that is, the test signal corresponding to the j-th speaker is f j Each of the preset test signals includes m single-frequency sinusoidal signals, that is, each preset test signal is composed of m single-frequency sinusoidal signals superimposed, and the m single-frequency sinusoidal signals in each preset test signal corresponding to each loudspeaker are different.
[0072] The m single-frequency sinusoidal signals in the preset test signal corresponding to each loudspeaker include at least three (i.e., m ≥ 3). The m single-frequency sinusoidal signals include at least one high-frequency, one mid-frequency, and one low-frequency single-frequency sinusoidal signal. Furthermore, the low-frequency signal should not be a low frequency, such as one below 100 Hz, because the preset test signal will subsequently require a fast Fourier transform with a preset resolution, which has limited resolution, and normal background noise contains relatively high low-frequency signals. Furthermore, the frequencies of the m single-frequency sinusoidal signals in each preset test signal should not be integer multiples of each other, otherwise the test results will be affected by harmonic effects.
[0073] The step S100 is located before the step S1 , but in the embodiment 1, the step can usually be omitted. For example, the system may have automatically preset a plurality of preset test signals earlier for the sound detection of the speaker.
[0074] Step S104, specifically, according to the target audio signal d i Determine whether the gain level of the microphone meets the standard, specifically determine whether the gain level of the microphone meets the standard, specifically determine the target audio signal d corresponding to the i-th microphone i The maximum amplitude of the microphone is checked to see if it falls within the preset range. If so, the gain level is normal. If it is outside the preset range, the corresponding microphone gain needs to be adjusted. This step can be performed at an appropriate later step and does not necessarily need to be performed at this location. Once the target audio signal is acquired, the microphone gain can be independently determined to be within the required range.
[0075] The step S104 can be located in any step after or after the step S1 , that is, it can be determined separately as long as the target audio signal is generated.
[0076] Example 3
[0077] like Figure 3 As shown, embodiment 3 of the present invention provides a self-test method for an active noise reduction system. The active noise reduction system generally includes at least one speaker and at least one microphone. Preferably, it includes j speakers and i microphones, wherein the i microphones include ik reference microphones and k error microphones, where i, j, and k are all positive integers. Figure 1 As shown, the method specifically includes the following steps:
[0078] S101, collect environmental signals using i microphones to obtain a reference audio signal d i ', the reference audio signal is a time domain signal;
[0079] S102, the reference audio signal d i ' Add window and perform Fast Fourier Transformation (FFT) of preset resolution to obtain the reference frequency domain signal F i ’. Where i is the microphone number.
[0080] The above two steps can be performed at the very beginning or at a suitable position in the subsequent steps.
[0081] S100, generating a corresponding preset test signal f for each speaker j , j is the speaker number, that is, the test signal corresponding to the j-th speaker is f j Each of the preset test signals includes m single-frequency sinusoidal signals, that is, each preset test signal is composed of m single-frequency sinusoidal signals superimposed, and the m single-frequency sinusoidal signals in each preset test signal corresponding to each loudspeaker are different.
[0082] The m single-frequency sinusoidal signals in the preset test signal corresponding to each loudspeaker include at least three (i.e., m ≥ 3). The m single-frequency sinusoidal signals include at least one high-frequency, one mid-frequency, and one low-frequency single-frequency sinusoidal signal. Furthermore, the low-frequency signal should not be a low frequency, such as one below 100 Hz, because the preset test signal will subsequently require a fast Fourier transform with a preset resolution, which has limited resolution, and normal background noise contains relatively high low-frequency signals. Furthermore, the frequencies of the m single-frequency sinusoidal signals in each preset test signal should not be integer multiples of each other, otherwise the test results will be affected by harmonic effects.
[0083] S1, j loudspeakers play their corresponding preset test signals f at the same time j , and the target audio signal d is collected synchronously by i microphones i , the target audio signal corresponding to the i-th microphone is d i , the target audio signal d i is a time domain signal, which is a mixture of all preset test signals played by j speakers.
[0084] S2, the target audio signal is windowed and fast Fourier transformed with a preset resolution to convert it into the target spectrum; specifically, the target audio signal d iAdd window and perform fast Fourier transform with preset resolution to obtain the target spectrum F i ; There are i target audio signals in total, i.e. i target spectra F1, F2...F are converted. i .
[0085] Preferably, after this step, step S103 may be performed to convert the target spectrum F corresponding to the i microphones into i , minus their respective reference frequency domain signals F i ′, the removal of the reference frequency domain signal is equivalent to removing the background noise.
[0086] S3, extracting the frequency domain features of the preset test signal under the fast Fourier transform of the preset resolution, specifically extracting the frequency peak of the preset test signal under the fast Fourier transform of the preset resolution.
[0087] This step can be calculated. There are j preset test signals in total. Each preset test signal is composed of m single-frequency sinusoidal signals superimposed. Therefore, its frequency peak is the frequency value position of the m single-frequency signals. Each preset test signal has m frequency peaks. All preset test signals have a total of m×j frequency peaks. For example, the preset test signal f of the speaker with serial number j is j The peak value is [A j1 ,A j2 ,……,A jm ], j is the speaker number, and m is the number of peaks, that is, the number of single-frequency sinusoidal signals.
[0088] S4, judging whether the at least one microphone and the at least one speaker are operating normally according to whether the target spectrum contains the frequency domain characteristics of the preset test signal. Specifically including:
[0089] If the target spectrum of any microphone contains all the frequency domain characteristics of the preset test signal of any speaker, it means that the speaker is working properly;
[0090] If the target spectra of some microphones contain all the frequency domain features of the preset test signals corresponding to all the speakers, but the target spectra of some microphones do not contain them, it means that the microphones are faulty;
[0091] If the target spectra of all microphones do not detect the frequency domain characteristics of the preset test signal corresponding to any speaker, and the speaker is indeed not making any sound, then all the speakers are damaged;
[0092] If the frequency domain characteristics of the preset test signal corresponding to any loudspeaker are not detected in the target frequency spectrum of all microphones, and the loudspeaker does make a sound, then all the microphones are damaged.
[0093] The frequency domain characteristics of the preset test signal are the m frequency peaks [A j1 ,A j2 ,……,A jm Therefore, by judging whether the target spectrum contains the frequency domain peak [A j1 ,A j2 ,……,A jm ] to determine whether the speaker or microphone is working properly.
[0094] Specifically, the peak search algorithm is used to find the target spectrum F i Search for peaks in the frequency peak A. j1 If the corresponding value or its corresponding value is determined to be a peak value, it is considered that the target spectrum contains the frequency peak value, that is, contains the frequency domain feature.
[0095] More specifically, if the target spectrum F of any microphone numbered u is u , including the preset test signal f of any speaker with serial number s s All frequency peaks [A s1 ,A s2 ,……,A sm ], it means that the speaker s is working properly; s is the serial number of the speaker, u is the serial number of the microphone, 1≤u≤i, 1≤s≤j.
[0096] If the target spectrum of microphones numbered 1-3, such as F1, F2, and F3, contains all the frequency peaks of the preset test signals corresponding to all speakers [A 11 ,A 12 ,……,A 1m ]……[A j1 ,A j2 ,……,A jm ], and the target spectrum of some microphones numbered 4-i, such as F4, F5...F i If it is not included, it means that the serial number is F4, F5...F i Some microphones are malfunctioning.
[0097] If the target spectra of all microphones are F1, F2, F3...F i If the frequency peak of the preset test signal corresponding to any speaker is not detected and the speaker does not make any sound, then all speakers are damaged;
[0098] If the target spectra of all microphones are F1, F2, F3...F i If the frequency peak of the preset test signal corresponding to any speaker is not detected and the speaker does make sound, then all microphones are damaged.
[0099] If the frequency bandwidth of all preset test signals is bHz, and the preset frequency of the fast Fourier transform of the preset resolution is cHz, the number of all single-frequency sine signals of all preset test signals is m×j, and the above satisfies 0.01(b / c)≤m×j≤0.1(b / c), where j is the number of speakers and m is the number of corresponding single-frequency sine signals in the preset test signal of each speaker.
[0100] like Figure 3 As shown, step S101 is preferably located before step S1, that is, it can be located before step S101, or between step S101 and step S1; step S102 is located after step S101, and can also be located before step S1, that is, it can be located before step S101, or between step S101 and step S1; it can also be located between steps S1 and S2, between steps S2 and S3, and between steps S3 and S4, that is, it can be located after step S4 and after step S101; step S103 needs to be located after step S102 and before step S4, therefore, it can also be located between steps S2 and S3, or between S3 and S4.
[0101] Example 4
[0102] like Figure 4 As shown, corresponding to the methods of Examples 1-3, the active noise reduction system self-test device of this embodiment includes a control unit, which controls at least one speaker to play a corresponding preset test signal; for example, if there are j speakers and i microphones, then the j speakers are controlled to play their corresponding preset test signals f respectively. j .
[0103] The acquisition unit is used to connect at least one microphone and synchronously acquire the target audio signals of the microphones respectively; that is, connect i microphones and synchronously acquire the preset test signals received by the microphones and played by j speakers at the same time to obtain i target audio signals d i The target audio signal d i , is a mixture of preset test signals played by j speakers.
[0104] The conversion unit is connected to the acquisition unit and is used to convert the target audio signal d i , add window and perform fast Fourier transform with preset resolution, and convert it into i target spectra F i ;
[0105] A calculation unit, for calculating and extracting frequency domain features of a preset test signal under a fast Fourier transform of a preset resolution;
[0106] The judgment unit is connected to both the transformation unit and the calculation unit, receives the target spectrum converted from the transformation unit and the frequency domain features calculated from the calculation unit, and judges whether the at least one microphone and the at least one speaker are working normally according to whether the target spectrum contains the frequency domain features of the preset test signal.
[0107] The device also includes a generating unit, which generates a corresponding preset test signal f for each speaker. j , and then the control unit controls at least one speaker to play the corresponding preset test signal.
[0108] Each speaker corresponds to a preset test signal. The preset test signal includes at least three superimposed single-frequency sinusoidal signals of different frequencies. The at least three single-frequency sinusoidal signals of different frequencies include at least one high frequency, one mid-frequency, and one low frequency. The at least three single-frequency sinusoidal signals of each preset test signal have different frequencies. Preferably, among the at least three single-frequency sinusoidal signals included in each preset test signal, the frequencies of the single-frequency sinusoidal signals are not multiples of each other.
[0109] Preferably, the judging unit includes a first judging unit for judging whether the target spectrum includes the frequency domain characteristics of the preset test signal, and a second judging unit for judging whether the at least one microphone or the at least one speaker operates normally.
[0110] Preferably, the first judgment unit uses a peak-finding algorithm to find the peak value of the target spectrum F i The peak is searched in the preset test signal. If the value corresponding to the frequency peak in the preset test signal or its adjacent value is determined to be a peak, it is determined that the target spectrum contains the frequency peak, that is, contains the frequency domain feature.
[0111] The second judgment unit judges whether the at least one microphone and the at least one speaker are operating normally, specifically:
[0112] If the target spectrum of any microphone contains all the frequency domain characteristics of the preset test signal of any speaker, and if the target spectrum F of any microphone with serial number u is u , including the preset test signal f of any speaker with serial number s s All frequency peaks [A s1 ,A s2 ,……,A sm ], it means that the speaker s is working properly; s is the serial number of the speaker, u is the serial number of the microphone, 1≤u≤i, 1≤s≤j.
[0113] If the target spectra of some microphones contain all the frequency domain features of the preset test signals corresponding to all speakers, while the target spectra of some microphones do not contain them, it means that the microphones are faulty; for example, it means that the speakers are working properly; specifically, if the target spectra of some microphones numbered 1-3, for example, F1, F2, F3, contain all the frequency peaks of the preset test signals corresponding to all speakers [A 11 ,A 12 ,……,A 1m ]……[A j1 ,A j2 ,……,A jm ], and the target spectrum of some microphones numbered 4-i, such as F4, F5...F i If it is not included, it means that the serial number is F4, F5...F i Some microphones are malfunctioning.
[0114] If the target spectra of all microphones do not detect the frequency domain characteristics of the preset test signal corresponding to any speaker, and the speaker is indeed not making any sound, then all the speakers are damaged;
[0115] If the frequency domain characteristics of the preset test signal corresponding to any loudspeaker are not detected in the target frequency spectrum of all microphones, and the loudspeaker does make a sound, then all the microphones are damaged.
[0116] The frequency domain feature is the peak frequency in the preset test signal.
[0117] The judgment unit further includes a third judgment unit configured to judge whether the gain of the microphone meets the standard according to whether the maximum amplitude of the at least one target audio signal falls within a preset range.
[0118] Preferably, the active noise reduction system self-test device of this embodiment further includes an ambient signal acquisition unit for connecting to a microphone to collect ambient audio signals; a second transformation unit, connected to the ambient signal acquisition unit, for windowing the ambient audio signals collected by the microphone and performing a fast Fourier transform of a preset resolution to convert the signals into a reference frequency domain signal. The ambient signal acquisition unit may also be the acquisition unit, and the second transformation unit may also be the first transformation unit, for windowing the audio time domain signal received by the microphone and performing a preset frequency FFT.
[0119] Example 5
[0120] Figure 5A schematic block diagram of an example electronic device 500 that can be used to implement an embodiment of the present invention is shown. The device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 502 or a computer program loaded from a storage unit 508 into a RAM (Random Access Memory) 503. Various programs and data required for the operation of the device 500 can also be stored in the RAM 503. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An I / O (Input / Output) interface 505 is also connected to the bus 504.
[0121] Various components in device 500 are connected to I / O interface 505, including: an input unit 506, such as a keyboard, mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a magnetic disk, optical disk, etc.; and a communication unit 509, such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows device 500 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0122] The computing unit 501 may be a variety of general and / or specialized processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, CPUs (Central Processing Units), GPUs (Graphic Processing Units), various specialized AIs (Artificial Intelligence Units), and other specialized processors. The computing unit 501 may include an artificial intelligence (AI) computing chip, various computing units that run machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as the self-test method of the active noise reduction system. For example, in some embodiments, the self-test method of the active noise reduction system may be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as the storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the self-test method of the active noise reduction system described above by any other appropriate means (e.g., by means of firmware).
[0123] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0124] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0125] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0126] Although the specific embodiments of the present invention have been described above, it will be understood by those skilled in the art that this is for illustrative purposes only and that the scope of protection of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications fall within the scope of protection of the present invention. Although the specific embodiments of the present invention have been described above, it will be understood by those skilled in the art that this is for illustrative purposes only and that the scope of protection of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications fall within the scope of protection of the present invention.
Claims
1. A self-test method for an active noise reduction system, wherein the active noise reduction system includes at least one microphone and at least one speaker, characterized in that: The at least one speaker plays a corresponding preset test signal; the at least one microphone synchronously collects at least one target audio signal; The target audio signal is windowed and subjected to a Fast Fourier Transformation (FFT) of a preset resolution to convert it into the target spectrum. Extracting frequency domain features of a preset test signal under fast Fourier transform at the preset resolution; determining whether the at least one microphone and the at least one speaker are operating normally according to whether the target spectrum includes the frequency domain characteristics of the preset test signal; Determining whether the at least one microphone and the at least one speaker are operating normally according to whether the target spectrum includes the frequency domain characteristics of the preset test signal is specifically as follows: If the target spectrum of any microphone contains all the frequency domain characteristics of the preset test signal of any speaker, it means that the speaker is working properly; If the target spectra of some microphones contain all the frequency domain features of the preset test signals corresponding to all the speakers, but the target spectra of some microphones do not contain them, it means that the microphones are faulty; If the target spectra of all microphones do not detect the frequency domain characteristics of the preset test signal corresponding to any speaker, and the speaker is indeed not making any sound, then all the speakers are damaged; If the frequency domain characteristics of the preset test signal corresponding to any loudspeaker are not detected in the target frequency spectrum of all microphones, and the loudspeaker does make a sound, then all the microphones are damaged.
2. The active noise reduction system self-test method according to claim 1, wherein: The self-test method further includes determining whether the gain of the microphone meets the standard according to whether the maximum amplitude of the at least one target audio signal falls within a preset range.
3. The active noise reduction system self-test method according to claim 1, wherein: Before the at least one speaker plays the respective corresponding preset test signal, the method further comprises generating the respective corresponding preset test signal for the at least one speaker; The preset test signal includes at least three superimposed single-frequency sinusoidal signals of different frequencies, and the at least three single-frequency sinusoidal signals of different frequencies include at least one high frequency, one medium frequency and one low frequency, and the frequencies of the at least three single-frequency sinusoidal signals of different frequencies of each preset test signal are different.
4. The active noise reduction system self-test method according to claim 1, wherein: The self-test method further comprises: collecting ambient sound by a microphone to obtain a reference audio signal; The reference audio signal is windowed and converted into a reference frequency domain signal by fast Fourier transform with preset resolution. The reference frequency domain signal is subtracted from the target spectrum, and then it is determined whether the target spectrum contains the frequency domain characteristics of the preset test signal.
5. The active noise reduction system self-test method according to claim 1, wherein: Extracting frequency domain features of a preset test signal under fast Fourier transform at the preset resolution; Specifically, it includes calculating each frequency peak value of a preset test signal under fast Fourier transform of a preset resolution.
6. The active noise reduction system self-test method according to claim 5, wherein: Whether the target spectrum contains the frequency domain characteristics of the preset test signal; specifically A peak-finding algorithm is used to search for peaks in the target spectrum. If the value corresponding to the frequency peak in the preset test signal or its adjacent value is determined to be a peak, it is determined that the target spectrum contains the frequency peak, that is, contains the frequency domain feature.
7. The active noise reduction system self-test method according to claim 3, wherein: Among the at least three single-frequency sinusoidal signals included in each preset test signal, there is no multiple relationship between the frequencies of the single-frequency sinusoidal signals.
8. The active noise reduction system self-test method according to claim 1, wherein: The frequency bandwidth of all preset test signals is mHz, and the frequency of the fast Fourier transform of the preset resolution is rHz. The number of all single-frequency sine signals of all preset test signals is M×j, and the above satisfies 0.01(m / r)≤M×J≤0.1(m / r), where j is the number of speakers and M is the number of corresponding single-frequency sine signals in the preset test signal of each speaker.
9. A self-test device for an active noise reduction system, characterized in that: include A control unit controls at least one speaker to play a corresponding preset test signal; A collection unit connected to a microphone to collect target audio signals; a first transform unit, configured to perform windowing and fast Fourier transform of a preset resolution on the target audio signal collected by the acquisition unit to convert the signal into a target spectrum; A calculation unit, configured to calculate and extract frequency domain features of a preset test signal under a fast Fourier transform of a preset resolution; a judging unit, configured to judge whether the at least one microphone and the at least one speaker are operating normally according to whether the target spectrum contains the frequency domain characteristics of the preset test signal; The judgment unit is specifically used for: If the target spectrum of any microphone contains all the frequency domain characteristics of the preset test signal of any speaker, it means that the speaker is working properly; If the target spectra of some microphones contain all the frequency domain features of the preset test signals corresponding to all the speakers, but the target spectra of some microphones do not contain them, it means that the microphones are faulty; If the target spectra of all microphones do not detect the frequency domain characteristics of the preset test signal corresponding to any speaker, and the speaker is indeed not making any sound, then all the speakers are damaged; If the frequency domain characteristics of the preset test signal corresponding to any loudspeaker are not detected in the target frequency spectrum of all microphones, and the loudspeaker does make a sound, then all the microphones are damaged.
10. The active noise reduction system self-test device according to claim 9, characterized in that: The judgment unit includes a first judgment unit for judging whether the target spectrum includes the frequency domain characteristics of the preset test signal, and a second judgment unit for judging whether the at least one microphone or the at least one speaker operates normally.
11. The active noise reduction system self-test device according to claim 10, wherein: The judgment unit further includes a third judgment unit configured to judge whether the gain of the microphone meets the standard according to whether the maximum amplitude of the at least one target audio signal falls within a preset range.
12. The active noise reduction system self-test device according to claim 9, wherein: The system further comprises a generating unit for generating a corresponding preset test signal for each speaker, and the control unit controls at least one speaker to play the corresponding preset test signal.
13. The active noise reduction system self-test device according to claim 9, characterized in that: Also includes An environmental signal acquisition unit, used to connect to a microphone to collect environmental audio signals; The second conversion unit is connected to the environmental signal acquisition unit and is used to perform fast Fourier transformation of the environmental audio signal collected by the microphone with a preset resolution and convert it into a reference frequency domain signal.
14. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.
15. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-8.
Citation Information
Patent Citations
Audio noise reduction method and training method of audio noise reduction model
CN111883091A
Earphone control method and device, noise reduction earphone and storage medium
CN114666702A