A method, apparatus, device and medium for detecting microphone arrays
By performing gain, sequence, and consistency detection on microphone arrays, and utilizing test signals and detection algorithms, the problem of insufficient detection accuracy in existing technologies is solved, thereby improving the performance of microphone arrays and the quality of audio systems.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-13
- Publication Date
- 2026-04-03
AI Technical Summary
Existing microphone array detection methods are inadequate in terms of gain detection, sequence detection, and consistency detection, making it difficult to meet the requirements for efficient and accurate detection and affecting the quality of audio acquisition and processing.
Test signals are generated by a signal source and distributed to each microphone in the microphone array. The microphone array is then tested for gain, sequence, and consistency using a detection algorithm. Gain testing is performed by comparing the actual energy value with the theoretical energy value. Sequence testing is performed by verifying the frequency of the response pulse signal. Consistency testing is performed by analyzing the difference in amplitude response of the sweep frequency signal.
It enables accurate detection of microphone arrays, reduces detection errors, and improves the reliability of detection results and the overall performance of the audio system.
Smart Images

Figure CN119893415B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of audio technology, and in particular to a microphone array detection method, apparatus, device, and medium. Background Technology
[0002] Microphone array technology has demonstrated broad application potential and value in numerous fields, such as speech recognition, audio recording, and intelligent voice interaction devices. Its core advantage lies in its ability to capture sound signals in space and, through advanced signal processing algorithms, achieve sophisticated functions such as sound source localization, noise suppression, and speech enhancement. These functions are crucial for improving the quality of audio acquisition and processing, especially in complex acoustic environments where the role of microphone arrays becomes even more prominent.
[0003] However, the performance of a microphone array is not static but is influenced by multiple factors. Among these, the gain, sequence, and consistency of the microphone array are key factors determining the quality of audio acquisition and processing. For example, abnormal gain may lead to inconsistent amplification of the sound signal, thus affecting the overall audio balance and clarity; disordered sequence may disrupt the phase relationship of the sound signal, causing the failure of functions such as sound source localization; and consistency deviations may introduce additional noise and distortion, reducing audio fidelity and intelligibility.
[0004] During the production, assembly, or use of microphone arrays, issues such as abnormal gain, sequence errors, or inconsistencies may arise due to factors such as fluctuations in manufacturing processes, limitations in assembly precision, and the complexity of the usage environment. Therefore, testing the performance of microphone arrays to ensure they meet design requirements and usage needs is of paramount importance.
[0005] However, existing microphone array structure detection methods have shortcomings in several aspects. For gain detection, a simple signal strength comparison is generally used to determine the gain value. However, this method is easily affected by environmental noise and individual microphone differences, resulting in low detection accuracy and failing to meet the requirements of high-precision audio processing. For microphone array sequence detection, common methods often rely on complex wiring designs or manual marking. This method is not only cumbersome, increasing production and maintenance costs, but also prone to errors, reducing system reliability and stability. This problem is particularly prominent in large-scale microphone array applications, as incorrect sequence can require significant time and effort to troubleshoot and repair. Existing methods also have shortcomings in consistency detection. Due to the lack of efficient and accurate detection algorithms, it is difficult to comprehensively evaluate the consistency of different microphones in terms of frequency response, sensitivity, and phase characteristics. This often results in microphone array performance not reaching its optimal state in practical applications, affecting the overall effect of audio acquisition and processing.
[0006] In summary, existing microphone array structure detection methods have shortcomings in gain detection, sequence detection, and consistency detection, making it difficult to meet the requirements for efficient and accurate microphone array structure detection. Therefore, there is an urgent need to develop a novel, simple, fast, and accurate microphone array structure detection method to overcome the deficiencies of existing technologies and improve the performance and stability of microphone arrays. Summary of the Invention
[0007] This application provides a microphone array detection method, apparatus, device, and medium to solve the problem that existing methods cannot efficiently and accurately detect microphone array structures.
[0008] In a first aspect, this application provides a microphone array detection method, the method comprising:
[0009] For different detection modes, the microphone array is tested according to the detection algorithm corresponding to the detection mode, using the test signal generated by the signal source in the detection mode and the audio signal collected by each microphone in the microphone array in the detection mode.
[0010] If the different detection modes include gain detection, a preset test pure tone signal is generated through the signal source and the preset test pure tone signal is evenly distributed to each microphone; for each microphone, the gain of the microphone is determined based on the actual energy value of the audio signal collected by the microphone and the theoretical energy value obtained by the microphone in advance under ideal conditions, and the microphone gain is determined based on the gain to determine whether the microphone gain is abnormal.
[0011] If the different detection modes include microphone sequence detection, then the first microphone in each microphone receives a trigger pulse signal sent by the signal source as a start, each microphone receives a response pulse signal sent by its adjacent microphone, determines a target frequency based on the frequency of the response pulse signal, and sends a response pulse signal of the target frequency to the next microphone, until the last microphone; wherein, the frequencies of the response pulse signals collected by each microphone are different; based on the pulse information of the response pulse signals recorded by each microphone, it is determined whether the order of the microphone array is abnormal; wherein, the pulse information includes one or more of the following: acquisition and transmission time, frequency;
[0012] If the different detection modes include consistency detection, then a set of sweep signals of different frequencies are sent to each microphone through the signal source; the amplitude response of each microphone to the sweep signals of different frequencies is obtained; for the different frequencies, the amplitude response differences between the microphones are determined; based on the amplitude response differences, it is determined whether there are consistency differences among the microphones.
[0013] Secondly, this application also provides a microphone array detection device, the device comprising:
[0014] A signal generation module is used to generate a test signal and send the test signal to a microphone array;
[0015] The signal acquisition module is used to receive audio signals acquired by each microphone in the microphone array under different detection modes;
[0016] The processing and analysis module is used to control the signal source to generate corresponding test signals in different detection modes through the signal generation module; and to process the audio signals collected by each microphone in the detection mode according to the detection algorithm corresponding to the detection mode, so as to perform detection of the microphone array in the detection mode.
[0017] If the different detection modes include gain detection, a preset test pure tone signal is generated through the signal source and the preset test pure tone signal is evenly distributed to each microphone; for each microphone, the gain of the microphone is determined based on the actual energy value of the audio signal collected by the microphone and the theoretical energy value obtained by the microphone in advance under ideal conditions, and the microphone gain is determined based on the gain to determine whether the microphone gain is abnormal.
[0018] If the different detection modes include microphone sequence detection, then the first microphone in each microphone receives a trigger pulse signal sent by the signal source as a start, each microphone receives a response pulse signal sent by its adjacent microphone, determines a target frequency based on the frequency of the response pulse signal, and sends a response pulse signal of the target frequency to the next microphone, until the last microphone; wherein, the frequencies of the response pulse signals collected by each microphone are different; based on the pulse information of the response pulse signals recorded by each microphone, it is determined whether the order of the microphone array is abnormal; wherein, the pulse information includes one or more of the following: acquisition and transmission time, frequency;
[0019] If the different detection modes include consistency detection, then a set of sweep signals of different frequencies are sent to each microphone through the signal source; the amplitude response of each microphone to the sweep signals of different frequencies is obtained; for the different frequencies, the amplitude response differences between the microphones are determined; based on the amplitude response differences, it is determined whether there are consistency differences among the microphones.
[0020] Thirdly, this application provides a computer device including a processor, which executes a computer program stored in a memory to implement the steps of the microphone array detection method described above.
[0021] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the microphone array detection method described above.
[0022] The beneficial effects of this application are as follows:
[0023] 1. Through precise test signal generation and acquisition, and detection algorithms in different modes, the gain, sequence and consistency of the microphone array can be accurately detected, effectively reducing detection errors and improving the reliability of detection results.
[0024] 2. This application covers multiple modes, including gain detection, microphone sequence detection, and consistency detection, enabling a comprehensive evaluation of microphone array performance from different perspectives. Gain detection, by comparing actual energy values with theoretical energy values, can accurately identify microphone gain anomalies, ensuring that the output signal strength of each microphone meets expectations. Microphone sequence detection, by transmitting response pulse signals, can verify the connection order and signal transmission path between microphones in the microphone array, ensuring correct signal transmission within the array. Consistency detection, through frequency sweep signal and amplitude response difference analysis, can accurately evaluate the response consistency of each microphone at different frequencies, ensuring the overall performance of the microphone array.
[0025] 3. The microphone array detection method provided in this application can not only quickly locate structural problems of the microphone array, but also improve the overall performance of the audio system and bring users a better audio experience. Attached Figure Description
[0026] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0027] Figure 1 This is a schematic diagram of a microphone array detection process provided in an embodiment of this application;
[0028] Figure 2 This is a schematic diagram of the structure of a microphone array detection device provided in an embodiment of this application;
[0029] Figure 3 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of this application. Detailed Implementation
[0030] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0031] To efficiently and accurately detect microphone array structures, this application provides a microphone array detection method, apparatus, device, and medium.
[0032] Example 1:
[0033] This application provides a microphone array detection method. Figure 1 This application provides a schematic diagram of a microphone array detection process, which includes:
[0034] MOD: For different detection modes, the microphone array is tested according to the detection algorithm corresponding to the detection mode, using the test signal generated by the signal source in the detection mode and the audio signal collected by each microphone in the microphone array in the detection mode.
[0035] The microphone array detection method provided in this application is applied to computer equipment, which can be a smart terminal, such as an in-vehicle central control unit, a mobile terminal, or a computer.
[0036] Microphone arrays play a crucial role in modern audio systems, capturing and locating sound sources to provide high-quality audio signals. However, the performance of microphone arrays can be affected by various factors, such as gain anomalies, incorrect microphone order, and inconsistencies. To ensure the proper functioning of microphone arrays, an effective detection method is needed. This application provides a microphone array detection method. The core of this method lies in adopting customized detection strategies for different detection modes. Utilizing the signal source, individual microphones in the array, and corresponding detection algorithms, it achieves comprehensive and accurate detection of the microphone array. These detection modes include, but are not limited to, gain detection, microphone order detection, and consistency detection. In gain detection mode, the gain of each microphone can be accurately measured, allowing for timely detection and correction of any gain anomalies, thereby ensuring the strength and clarity of the audio signal. In microphone order detection mode, the correct arrangement of the microphones in the array is verified, avoiding inaccurate audio localization caused by incorrect order. In consistency detection mode, the consistency of the amplitude response among the microphones in the array can be evaluated, ensuring that the propagation of the audio signal within the array is uniform and stable. For users, the microphone array detection method provided in this application offers significant convenience and practicality. Users simply select the desired testing mode based on their needs, and the computer equipment responds quickly to perform a comprehensive test of the microphone array. This fast and accurate testing method not only helps users identify and resolve problems promptly but also improves the overall performance of the audio system, providing users with a superior audio experience.
[0037] The following is a detailed explanation of the different detection modes supported by this application:
[0038] MOD 1, Gain Detection.
[0039] Gain detection is primarily used to check whether the gain of each microphone in a microphone array is normal. Abnormal gain may cause audio signal distortion or attenuation, affecting audio quality. Therefore, in this application, to accurately perform gain detection on the microphone array, if the different detection modes include gain detection, the following steps are included:
[0040] MOD 11: Generates a preset test pure tone signal through the signal source and evenly distributes the preset test pure tone signal to each microphone.
[0041] In this application, information such as what kind of test signal the signal source generates during gain detection, the frequency and amplitude of the test signal, etc., are pre-configured to ensure that the test signal has a stable frequency and energy. For example, during gain detection, the signal source generates a pure tone signal with a preset frequency and amplitude (denoted as the preset test pure tone signal).
[0042] After the signal source generates the preset test pure tone signal, the preset test pure tone signal can be evenly distributed to each microphone in the microphone array to avoid uneven signal distribution causing the gain of some microphones to be underestimated or overestimated, thereby affecting the accuracy of the gain detection results.
[0043] It should be noted that the frequency and amplitude of the preset test pure tone signal can be flexibly set according to actual needs, and no specific limitations are made here.
[0044] MOD 12: For each microphone, determine the gain of the microphone based on the actual energy value of the audio signal collected by the microphone and the theoretical energy value obtained by the microphone in advance under ideal conditions, and determine whether the microphone gain is abnormal based on the gain.
[0045] In this application, the microphone array was pre-calibrated in an ideal environment (such as an anechoic chamber) to obtain the theoretical energy value of the audio signal collected by each microphone when the preset test pure tone signal was evenly distributed to each microphone of the microphone array. This theoretical energy value characterizes the response energy that the microphone should have to a pure tone signal of a specific frequency and amplitude under ideal conditions without external interference and hardware failure.
[0046] In the testing environment, after the preset test pure tone signal is evenly distributed to each microphone through the steps in MOD 11, each microphone in the microphone array will acquire the corresponding audio signal. Subsequently, for each microphone, the actual energy value of the audio signal acquired by that microphone can be calculated. For example, the acquired audio signal can be converted from an electrical signal to a digital signal, such as through a high-precision analog-to-digital converter, and then the root mean square value of this digital signal can be determined as the actual energy value. Then, based on the actual energy value and the theoretical energy value of the microphone, the gain of the microphone can be determined. Based on this gain, it can be determined whether the microphone has an abnormal gain.
[0047] In one example, the specific steps for determining the microphone gain are as follows:
[0048] (1) Calculate the ratio of the actual energy value to the theoretical energy value.
[0049] (2) Take the logarithm of the ratio to the base 10 to obtain the logarithm of the gain.
[0050] (3) The gain of the microphone can be determined based on the obtained logarithmic value.
[0051] The logarithmic value can be directly determined as the gain, or it can be stretched by a preset expansion factor to facilitate subsequent processing.
[0052] For example, the gain of a microphone can be determined by the following formula:
[0053] G = 20 * log10(E1 / E0)
[0054] Where G represents the gain, 20 is the preset expansion factor, E1 is the actual energy value, and E0 is the theoretical energy value.
[0055] It should be noted that the preset expansion factor can be flexibly set according to actual needs, and there is no specific limitation here.
[0056] In one example, for each microphone, determining whether the microphone has abnormal gain based on the microphone's gain includes:
[0057] If the gain of the microphone exceeds a preset reasonable gain range, then the microphone gain is determined to be abnormal.
[0058] In this application, by comparing the microphone gain with a preset reasonable gain range, it can be determined whether the microphone gain is abnormal. If the microphone gain exceeds the preset reasonable gain range, the microphone gain is considered abnormal, and further fault diagnosis and repair operations may be required. When setting the preset reasonable gain range, various factors need to be considered, including but not limited to the microphone model, working environment, usage scenario, and expected audio quality, to ensure the accuracy and applicability of the range.
[0059] For example, during gain detection, a signal source generates a preset test pure tone signal of 1kHz and 0.5V, which is evenly distributed to four microphones. After each microphone acquires and converts the audio signal, the calculated gains are G1 = 2.5dB, G2 = -1.2dB, G3 = 3.1dB, and G4 = 0.8dB, respectively. Each gain is compared with a preset reasonable threshold range [-3dB, +3dB], and microphone M3 is determined to have an abnormal gain.
[0060] MOD 2, Microphone Sequence Detection.
[0061] Microphone sequence detection is used to check whether the order of the microphones in a microphone array is correct. Incorrect sequence can lead to inaccurate audio signal localization, affecting the performance of subsequent audio signal processing. Therefore, in this application, to accurately perform microphone sequence detection on the microphone array, if the different detection modes include microphone sequence detection, the following steps are included:
[0062] MOD 21: The first microphone in each microphone receives the trigger pulse signal sent by the signal source as a start, each microphone receives the response pulse signal sent by its adjacent microphone, determines the target frequency according to the frequency of the response pulse signal, and sends the response pulse signal of the target frequency to the next microphone, until the last microphone; wherein, the response pulse signals collected by each microphone have different frequencies.
[0063] Similarly, in this application, information such as what kind of test signal the signal source generates during microphone sequence detection and the frequency of that test signal is pre-configured to ensure that the test signal has a stable frequency. For example, during microphone sequence detection, the signal source generates a pulse signal (denoted as the trigger pulse signal) at a preset frequency.
[0064] The signal source can send the generated trigger pulse signal to the first microphone in the microphone array (usually designated as the reference microphone or reference microphone), and this trigger pulse signal marks the start of microphone sequence detection.
[0065] Upon receiving a trigger pulse signal, the first microphone determines the target frequency based on the frequency of the trigger pulse signal, then generates a response pulse signal with the target frequency and sends it to the next adjacent microphone. For example, the target frequency is determined by increasing the trigger pulse signal's frequency by a preset frequency or multiplying it by a preset factor according to a preset increment rule. For instance, if the trigger pulse signal's frequency is 1kHz, increasing it by 1kHz to determine the target frequency results in a target frequency of 2kHz. Or, if the trigger pulse signal's frequency is 1kHz, doubling it to determine the target frequency also results in a target frequency of 2kHz.
[0066] Each subsequent microphone receives the response pulse signal from the previous microphone, determines its own target frequency based on the frequency of that response pulse signal, and generates a new response pulse signal to send to the next microphone.
[0067] This process continues until the last microphone, thus forming a continuous chain of pulse signals.
[0068] It should be noted that, to ensure that each microphone can uniquely identify and respond to a signal from the previous microphone, each microphone sends a response pulse signal at a different frequency. This helps verify the microphone order in subsequent steps.
[0069] MOD 22: Based on the pulse information of the response pulse signals recorded by each microphone, determine whether the order of the microphone array is abnormal; wherein, the pulse information includes one or more of the following: acquisition and transmission time, frequency.
[0070] Building upon MOD 21, MOD 22 verifies the correctness of the microphone array sequence by comparing and analyzing the pulse information of the response pulse signals recorded by each microphone. This pulse information includes, but is not limited to, one or more of the following:
[0071] 1) Acquisition and transmission time: Each microphone records the timestamps of its received and transmitted response pulse signals. By comparing these timestamps, the transmission order of the pulse signals in the microphone array can be deduced.
[0072] In one example, determining whether the microphone array sequence is abnormal based on the pulse information of the response pulse signals recorded by each microphone includes:
[0073] When the pulse information includes acquisition and transmission times, for each microphone, the time interval between the transmission time recorded by the microphone and the acquisition time recorded by the next microphone is determined; if the time interval exceeds a preset reasonable interval range, the microphone array sequence is determined to be abnormal.
[0074] When the pulse information includes both acquisition and transmission times, the time interval between the transmission time recorded by each microphone and the acquisition time recorded by the next microphone can be calculated. This time interval reflects the propagation time of the pulse signal between adjacent microphones. In this application, a reasonable interval range is pre-configured. This interval range can be determined based on factors such as the speed of signal propagation in air, the distance between microphones, and the system's time resolution. The calculated time interval is compared with the preset reasonable interval range. If the time interval exceeds the preset range, it may mean that there is a delay or interruption in the transmission of the pulse signal, thus suggesting a possible problem with the microphone array sequence.
[0075] 2) Target frequency: Since the target frequency of the response pulse signal sent by each microphone is unique, the order of the microphone array can be verified by comparing the target frequencies of the received response pulse signals.
[0076] In one example, determining whether the microphone array sequence is abnormal based on the pulse information of the response pulse signals recorded by each microphone includes:
[0077] If the pulse information includes a target frequency, and for each microphone, if the target frequency of the microphone is not the preset frequency that the microphone corresponds to in the theoretical order, then the microphone array is determined to be out of order.
[0078] When the pulse information includes a target frequency, a preset frequency value is assigned to each microphone that corresponds theoretically to its frequency. These preset frequency values are determined based on the system configuration and microphone array layout to ensure that each microphone uses the correct target frequency when sending a response pulse signal. During actual testing, the target frequency of the response pulse signal sent by each microphone is recorded. The recorded target frequency of each microphone is compared with its corresponding preset frequency. If the target frequency of a microphone does not match its preset frequency, i.e., it is not the preset frequency corresponding to that microphone in its theoretical order, this indicates that the microphone array order may be abnormal.
[0079] It should be noted that pulse information is a comprehensive concept, which can include one or more of the information mentioned above. This information includes, but is not limited to, acquisition and transmission times, target frequencies, etc., each playing a crucial role in microphone sequence detection. If the pulse information only includes acquisition and transmission times, then during microphone sequence detection, we primarily focus on the continuity and reasonableness of these timestamps. Specifically, we check whether the time interval between the transmission time recorded by each microphone and the acquisition time recorded by the next microphone is within a preset reasonable range. If all time intervals meet the requirements, then the microphone array sequence can be preliminarily considered correct. If the pulse information only includes the target frequency, then during detection, we will focus on comparing whether the target frequency of the response pulse signal transmitted by each microphone matches its theoretically corresponding preset frequency. If the target frequencies of all microphones are consistent with the preset frequencies, then the microphone array sequence can also be preliminarily considered correct. When the pulse information includes both acquisition and transmission times and the target frequency, it is necessary not only to check the reasonableness of the time intervals but also to consider the matching of the target frequencies to further verify the microphone array sequence. For example, if an abnormal time interval is found in a microphone, or if its target frequency does not match the preset frequency, it indicates that there may be a problem with the order of the microphone array; if the time intervals of all microphones are found to be normal, and their target frequencies match the preset frequencies, it indicates that the order of the microphone array is likely correct.
[0080] For example, a signal source sends a 1kHz trigger pulse signal to microphone M1. After receiving the trigger pulse signal, M1 sends a 2kHz response pulse signal to M2 and records the sending time as T1. After receiving the response pulse, M2 sends a 3kHz response pulse signal to M3 and records the acquisition time as T2 and the sending time as T3, and so on. If, during this process, the target frequency of the response pulse signal received by M3 is not 3kHz or the time interval is abnormal, then the microphone array sequence is determined to be incorrect.
[0081] MOD 3, Consistency Detection.
[0082] Consistency detection is used to check whether the amplitude responses of the various microphones in a microphone array are consistent. Inconsistent amplitude responses may lead to uneven propagation of the audio signal in the array. Therefore, in this application, to accurately perform consistency detection on the microphone array, if the different detection modes include consistency detection, the following steps are included:
[0083] MOD 31: Send a set of sweep signals of different frequencies to each microphone through the signal source.
[0084] In this application, information such as the type of test signal generated by the signal source during conformance testing and the frequency of that test signal are pre-configured. For example, during conformance testing, the signal source generates a set of sweep signals at different frequencies. The frequency of this sweep signal can be set based on all key frequency points within the operating frequency range of the microphone array. During conformance testing, the signal source can send a set of sweep signals at different frequencies to the microphone array based on the pre-configured frequencies.
[0085] MOD 32: Obtain the amplitude response of each microphone to the sweep signal at different frequencies.
[0086] Based on the above embodiments, each microphone can acquire audio signals from sweep signals of different frequencies. The acquired audio signals are then converted from electrical signals to digital signals, and subsequently subjected to a Fast Fourier Transform to obtain the amplitude response at different frequencies. The amplitude response data of each microphone at different frequencies is recorded, providing a basis for subsequent comparison and analysis.
[0087] MOD 33: For the different frequencies, determine the amplitude response differences between the individual microphones.
[0088] For different frequency points, the amplitude response data of each microphone are compared to determine their differences. Various methods can be used to calculate these amplitude response differences, such as calculating the mean, standard deviation, or the difference between the maximum and minimum values. The specific method chosen depends on the specific requirements and objectives of the consistency testing.
[0089] For example, the difference in amplitude response between any two microphones at any frequency point can be expressed by the following formula:
[0090] D = |A1-A2| / max(A1,A2).
[0091] Wherein, the amplitude response difference is D, A1 is the amplitude response of microphone M1 at frequency f, A2 is the amplitude response of microphone M2 at frequency f, max(A1,A2) is the maximum value of A1 and A2, and |A1-A2| is the absolute value of the difference between A1 and A2.
[0092] MOD 34: Based on the differences in amplitude response, determine whether there are consistency differences among the microphones.
[0093] Based on the differences in amplitude response between the individual microphones, it can be determined whether there are consistent differences among them. For example, determining whether there are consistent differences among the individual microphones based on their amplitude response differences includes:
[0094] For the different frequencies, if it is determined from the amplitude response differences corresponding to each frequency that there is an amplitude response difference greater than a preset difference threshold, then it is determined that there is a consistency difference at the frequency point.
[0095] If the number of frequency points with consistent differences exceeds a preset threshold, then it is determined that there are consistent differences among the microphones.
[0096] In this application, a preset difference threshold is used to determine whether the amplitude response difference is significant. This threshold is typically determined based on system requirements, microphone performance, and application scenario. Simultaneously, a quantity threshold is also set to determine how many frequency points have amplitude response differences exceeding the preset difference threshold.
[0097] After obtaining the amplitude response differences between each microphone based on the above embodiments, for each frequency point, it can be determined whether there is an amplitude response difference greater than a preset difference threshold among the amplitude response differences corresponding to that frequency point. If it is determined that there is an amplitude response difference greater than the preset difference threshold among the amplitude response differences corresponding to that frequency point, then it is determined that there is a consistency difference at that frequency point; if it is determined that there is no amplitude response difference greater than the preset difference threshold among the amplitude response differences corresponding to that frequency point, then it is determined that there is no consistency difference at that frequency point. If the number of frequency points with consistency differences exceeds a preset number threshold, then it can be determined that there is a consistency difference in the microphone array.
[0098] Suppose there is a microphone array containing 8 microphones, with a preset difference threshold of 0.2 and a quantity threshold of 2. The signal source generates a sweep signal containing 500Hz, 1kHz, 2kHz, and 4kHz. After amplitude response calculation, at the 1kHz frequency, the amplitude responses of microphones M1 and M3 are A1 = 0.8V and A3 = 0.3V, respectively. The calculated amplitude response difference D = |0.8 - 0.3| / 0.8 = 0.625, which exceeds the preset threshold of 0.2, indicating a consistency problem between microphones M1 and M3 at this frequency. Further analysis is performed on other frequency points to comprehensively assess the consistency of the microphone array. Finally, if consistency differences are found at 3 frequency points, it is determined that the microphone array has a consistency problem.
[0099] In one possible implementation, the method further includes:
[0100] If any detection mode of the microphone array is abnormal, an alarm message indicating the abnormal detection mode will be output.
[0101] Based on the above embodiments, different detection modes can be used to detect the microphone array. If an anomaly is detected in any detection mode, the computer device can output alarm information related to the anomaly. This alarm information may include the type of anomaly, the time of occurrence, the microphones involved (if multiple microphones are involved in the detection), and possible solutions or suggestions. This alarm information can be output in various ways, such as displaying it on the system's user interface, sending it to a specified email address or SMS service, or triggering a sound or light alarm in the system.
[0102] The beneficial effects of this application are as follows:
[0103] 1. Through precise test signal generation and acquisition, and detection algorithms in different modes, the gain, sequence and consistency of the microphone array can be accurately detected, effectively reducing detection errors and improving the reliability of detection results.
[0104] 2. This application covers multiple modes, including gain detection, microphone sequence detection, and consistency detection, enabling a comprehensive evaluation of microphone array performance from different perspectives. Gain detection, by comparing actual energy values with theoretical energy values, can accurately identify microphone gain anomalies, ensuring that the output signal strength of each microphone meets expectations. Microphone sequence detection, by transmitting response pulse signals, can verify the connection order and signal transmission path between microphones in the microphone array, ensuring correct signal transmission within the array. Consistency detection, through frequency sweep signal and amplitude response difference analysis, can accurately evaluate the response consistency of each microphone at different frequencies, ensuring the overall performance of the microphone array.
[0105] 3. The microphone array detection method provided in this application can not only quickly locate structural problems of the microphone array, but also improve the overall performance of the audio system and bring users a better audio experience.
[0106] Example 2:
[0107] Based on the same inventive concept, this application also provides a microphone array detection device. Figure 2 This is a schematic diagram of a microphone array detection device provided in an embodiment of this application. The device includes:
[0108] Signal generation module 21 is used to generate a test signal and send the test signal to the microphone array;
[0109] Signal acquisition module 22 is used to receive audio signals acquired by each microphone in the microphone array under different detection modes;
[0110] The processing and analysis module 23 is used to control the signal source to generate corresponding test signals in different detection modes through the signal generation module 21; and to process the audio signals collected by each microphone in the detection mode according to the detection algorithm corresponding to the detection mode, so as to perform detection of the microphone array in the detection mode.
[0111] If the different detection modes include gain detection, a preset test pure tone signal is generated through the signal source and the preset test pure tone signal is evenly distributed to each microphone; for each microphone, the gain of the microphone is determined based on the actual energy value of the audio signal collected by the microphone and the theoretical energy value obtained by the microphone in advance under ideal conditions, and the microphone gain is determined based on the gain to determine whether the microphone gain is abnormal.
[0112] If the different detection modes include microphone sequence detection, then the first microphone in each microphone receives a trigger pulse signal sent by the signal source as a start, each microphone receives a response pulse signal sent by its adjacent microphone, determines a target frequency based on the frequency of the response pulse signal, and sends a response pulse signal of the target frequency to the next microphone, until the last microphone; wherein, the frequencies of the response pulse signals collected by each microphone are different; based on the pulse information of the response pulse signals recorded by each microphone, it is determined whether the order of the microphone array is abnormal; wherein, the pulse information includes one or more of the following: acquisition and transmission time, frequency;
[0113] If the different detection modes include consistency detection, then a set of sweep signals of different frequencies are sent to each microphone through the signal source; the amplitude response of each microphone to the sweep signals of different frequencies is obtained; for the different frequencies, the amplitude response differences between the microphones are determined; based on the amplitude response differences, it is determined whether there are consistency differences among the microphones.
[0114] In some possible implementations, the device further includes:
[0115] The alarm module 24 is used to output an alarm message indicating that the detection mode is abnormal if any detection mode of the microphone array is abnormal.
[0116] In some possible implementations, the processing and analysis module 23 is specifically used for:
[0117] Determine the ratio of the actual energy value to the theoretical energy value;
[0118] Take the logarithm to the base 10 of the ratio;
[0119] The gain is determined based on the obtained logarithmic value.
[0120] In some possible implementations, the processing and analysis module 23 is specifically used for:
[0121] If the gain of the microphone exceeds a preset reasonable gain range, then the microphone gain is determined to be abnormal.
[0122] In some possible implementations, the processing and analysis module 23 is specifically used for:
[0123] When the pulse information includes acquisition and transmission times, for each microphone, the time interval between the transmission time recorded by the microphone and the acquisition time recorded by the next microphone is determined; if the time interval exceeds a preset reasonable interval range, the microphone array sequence is determined to be abnormal.
[0124] In some possible implementations, the processing and analysis module 23 is specifically used for:
[0125] If the pulse information includes a target frequency, and for each microphone, if the target frequency of the microphone is not the preset frequency that the microphone corresponds to in the theoretical order, then the microphone array is determined to be out of order.
[0126] In some possible implementations, the processing and analysis module 23 is specifically used for:
[0127] For the different frequencies, if it is determined from the amplitude response differences corresponding to each frequency that there is an amplitude response difference greater than a preset difference threshold, then it is determined that there is a consistency difference at the frequency point.
[0128] If the number of frequency points with consistent differences exceeds a preset threshold, then it is determined that there are consistent differences among the microphones.
[0129] In this embodiment, the microphone array detection device is presented in the form of a functional module. Here, a module refers to an application-specific integrated circuit (ASIC), a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0130] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0131] Example 3:
[0132] Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of this application, such as... Figure 3 As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 3 Take a processor 10 as an example.
[0133] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.
[0134] The memory 20 stores instructions executable by at least one processor 10 to cause at least one processor 10 to perform the method shown in the above embodiments.
[0135] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device as shown by a landing page for an app. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, which can be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0136] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0137] The computer device also includes an input device 30 and an output device 40. The processor 10, memory 20, input device 30, and output device 40 can be connected via a bus or other means. Figure 3 Taking the example of a connection between China and Israel via a bus.
[0138] Input device 30 can receive input numerical or character information, and generate key signal inputs related to user settings and function control of the computer device, such as a touchscreen, keypad, mouse, trackpad, touchpad, joystick, one or more mouse buttons, trackball, joystick, etc. Output device 40 may include display devices, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors). The aforementioned display devices include, but are not limited to, liquid crystal displays, light-emitting diodes, displays, and plasma displays. In some alternative embodiments, the display device may be a touchscreen.
[0139] Example 4:
[0140] Based on the above embodiments, this application also provides a computer-readable storage medium storing a computer program executable by a processor. When the program runs on the processor, it causes the processor to perform the following steps:
[0141] For different detection modes, the microphone array is tested according to the detection algorithm corresponding to the detection mode, using the test signal generated by the signal source in the detection mode and the audio signal collected by each microphone in the microphone array in the detection mode.
[0142] If the different detection modes include gain detection, a preset test pure tone signal is generated through the signal source and the preset test pure tone signal is evenly distributed to each microphone; for each microphone, the gain of the microphone is determined based on the actual energy value of the audio signal collected by the microphone and the theoretical energy value obtained by the microphone in advance under ideal conditions, and the microphone gain is determined based on the gain to determine whether the microphone gain is abnormal.
[0143] If the different detection modes include microphone sequence detection, then the first microphone in each microphone receives a trigger pulse signal sent by the signal source as a start, each microphone receives a response pulse signal sent by its adjacent microphone, determines a target frequency based on the frequency of the response pulse signal, and sends a response pulse signal of the target frequency to the next microphone, until the last microphone; wherein, the frequencies of the response pulse signals collected by each microphone are different; based on the pulse information of the response pulse signals recorded by each microphone, it is determined whether the order of the microphone array is abnormal; wherein, the pulse information includes one or more of the following: acquisition and transmission time, frequency;
[0144] If the different detection modes include consistency detection, then a set of sweep signals of different frequencies are sent to each microphone through the signal source; the amplitude response of each microphone to the sweep signals of different frequencies is obtained; for the different frequencies, the amplitude response differences between the microphones are determined; based on the amplitude response differences, it is determined whether there are consistency differences among the microphones.
[0145] Since the principle of the computer-readable storage medium in solving the problem is similar to that of the microphone array detection method, the implementation of the computer-readable storage medium can be found in the embodiments of the method, and repeated details will not be described again.
[0146] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A microphone array detection method, characterized in that, The method includes: For different detection modes, the microphone array is tested according to the detection algorithm corresponding to the detection mode, using the test signal generated by the signal source in the detection mode and the audio signal collected by each microphone in the microphone array in the detection mode. If the different detection modes include gain detection, a preset test pure tone signal is generated through the signal source and the preset test pure tone signal is evenly distributed to each microphone; for each microphone, the gain of the microphone is determined based on the actual energy value of the audio signal collected by the microphone and the theoretical energy value obtained by the microphone in advance under ideal conditions, and the microphone gain is determined based on the gain to determine whether the microphone gain is abnormal. If the different detection modes include microphone sequence detection, then the first microphone in each microphone receives a trigger pulse signal sent by the signal source as a start, each microphone receives a response pulse signal sent by its adjacent microphone, determines a target frequency based on the frequency of the response pulse signal, and sends a response pulse signal of the target frequency to the next microphone, until the last microphone; wherein, the frequencies of the response pulse signals collected by each microphone are different; based on the pulse information of the response pulse signals recorded by each microphone, it is determined whether the order of the microphone array is abnormal; wherein, the pulse information includes the following: acquisition and transmission time, frequency; If the different detection modes include consistency detection, then a set of sweep signals of different frequencies are sent to each microphone through the signal source; the amplitude response of each microphone to the sweep signals of different frequencies is obtained; for the different frequencies, the amplitude response differences between the microphones are determined; based on the amplitude response differences, it is determined whether there are consistency differences among the microphones.
2. The method as described in claim 1, characterized in that, The method further includes: If any detection mode of the microphone array is abnormal, an alarm message indicating the abnormal detection mode will be output.
3. The method as described in claim 1, characterized in that, The step of determining the gain of each microphone based on the actual energy value of the audio signal collected by the microphone and the theoretical energy value obtained by the microphone in advance under ideal conditions includes: Determine the ratio of the actual energy value to the theoretical energy value; Take the logarithm to the base 10 of the ratio; The gain is determined based on the obtained logarithmic value.
4. The method as described in claim 1, characterized in that, For each of the microphones, determine whether the microphone gain is abnormal based on the microphone gain, including: If the gain of the microphone exceeds a preset reasonable gain range, then the microphone gain is determined to be abnormal.
5. The method as described in claim 1, characterized in that, The step of determining whether the microphone array sequence is abnormal based on the pulse information of the response pulse signals recorded by each microphone includes: When the pulse information includes acquisition and transmission times, for each microphone, the time interval between the transmission time recorded by the microphone and the acquisition time recorded by the next microphone is determined; if the time interval exceeds a preset reasonable interval range, the microphone array sequence is determined to be abnormal.
6. The method as described in claim 1, characterized in that, The step of determining whether the microphone array sequence is abnormal based on the pulse information of the response pulse signals recorded by each microphone includes: If the pulse information includes a target frequency, and for each microphone, if the target frequency of the microphone is not the preset frequency that the microphone corresponds to in the theoretical order, then the microphone array is determined to be out of order.
7. The method as described in claim 1, characterized in that, The determination of whether there are consistency differences among the various microphones based on the differences in amplitude response includes: For the different frequencies, if it is determined from the amplitude response differences corresponding to each frequency that there is an amplitude response difference greater than a preset difference threshold, then it is determined that there is a consistency difference at the frequency points. If the number of frequency points with consistent differences exceeds a preset threshold, then it is determined that there are consistent differences among the microphones.
8. A microphone array detection device, characterized in that, The device includes: A signal generation module is used to generate a test signal and send the test signal to a microphone array; The signal acquisition module is used to receive audio signals acquired by each microphone in the microphone array under different detection modes; The processing and analysis module is used to control the signal source to generate corresponding test signals in different detection modes through the signal generation module; and to process the audio signals collected by each microphone in the detection mode according to the detection algorithm corresponding to the detection mode, so as to perform detection of the microphone array in the detection mode. If the different detection modes include gain detection, a preset test pure tone signal is generated through the signal source and the preset test pure tone signal is evenly distributed to each microphone; for each microphone, the gain of the microphone is determined based on the actual energy value of the audio signal collected by the microphone and the theoretical energy value obtained by the microphone in advance under ideal conditions, and the microphone gain is determined based on the gain to determine whether the microphone gain is abnormal. If the different detection modes include microphone sequence detection, then the first microphone in each microphone receives a trigger pulse signal sent by the signal source as a start, each microphone receives a response pulse signal sent by its adjacent microphone, determines a target frequency based on the frequency of the response pulse signal, and sends a response pulse signal of the target frequency to the next microphone, until the last microphone; wherein, the frequencies of the response pulse signals collected by each microphone are different; based on the pulse information of the response pulse signals recorded by each microphone, it is determined whether the order of the microphone array is abnormal; wherein, the pulse information includes the following: acquisition and transmission time, frequency; If the different detection modes include consistency detection, then a set of sweep signals of different frequencies are sent to each microphone through the signal source; the amplitude response of each microphone to the sweep signals of different frequencies is obtained; for the different frequencies, the amplitude response differences between the microphones are determined; based on the amplitude response differences, it is determined whether there are consistency differences among the microphones.
9. A computer device, characterized in that, The computer device includes a processor that executes a computer program stored in a memory to implement the steps of the microphone array detection method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, implements the steps of the microphone array detection method as described in any one of claims 1-7.
Citation Information
Patent Citations
Microphone array consistency detection method and detection device
CN112153548A
Method for detecting sequence of microphones in microphone array
CN113453138A
Microphone array test method, storage medium and electronic equipment
CN118612600A