Terminal equipment and microphone array phase congruency testing method
By playing the sweep frequency wave twice from the sound source and calculating the recording data of multiple frequency points in the microphone array, the distance phase difference is eliminated, which solves the problems of low efficiency and insufficient accuracy of microphone array phase consistency testing in the existing technology and realizes efficient and accurate phase consistency testing.
Patent Information
- Application Number
- CN202510634046.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-16
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2045-05-16
AI Technical Summary
The existing microphone array phase consistency testing method is inefficient and lacks accuracy, mainly due to the time and distance errors caused by multiple movements of the microphone array, while ignoring the differences in sound source response speed and the errors caused by manual recording.
By playing two sweep waves through the sound source, recording data of multiple frequency points in the microphone array is obtained, the distance phase difference is calculated and eliminated, and the actual phase difference is calculated using the positional relationship between the microphones, reducing the number of sweep waves and improving test efficiency and accuracy.
It is possible to obtain more accurate microphone array phase consistency test results by using only two sweep frequency waves, which improves test efficiency, reduces errors, and improves test accuracy.
Smart Images

Figure CN120676304A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of microphone array phase consistency testing, and in particular to a terminal device and a microphone array phase consistency testing method. Background Art
[0002] Products with intelligent voice capabilities are typically equipped with microphone arrays. For example, televisions, projectors, air conditioners, and speakers typically feature two, four, or six microphones. Intelligent voice systems use the distance between the sound source and the microphone array to perform operations such as sound source localization and voice enhancement. Therefore, phase consistency of the microphone array is crucial to voice performance, making phase consistency testing particularly important.
[0003] Phase consistency can be tested using multiple frequency sweeps. The method involves moving the microphone array so that each microphone is aligned with the sound source. The frequency sweeps are played sequentially, recording each microphone's audio file and calculating the phase difference.
[0004] However, since the test audio from different microphones doesn't record the same sweep wave, for example, with a four-microphone array, the four sweep recording files are derived from four sweep waves played by the sound source. While this method ensures consistent distances between the microphones and the sound source, it ignores temporal consistency. Manually capturing the recorded sweep waves from the audio also includes phase differences caused by varying microphone initial response speeds. This requires multiple movements of the microphone array to ensure consistent distances between the microphones and the sound source, and multiple acquisitions of test audio, making the test cumbersome and time-consuming. This method results in low test efficiency and accuracy. Summary of the Invention
[0005] Some embodiments of the present application provide a method for testing the phase consistency of a terminal device and a microphone array, which can calculate the distance phase difference between the two microphones due to the different distances from the sound source by playing a sweep wave only with a sound source, and eliminate the distance phase difference from the test phase difference of multiple frequency points to obtain more accurate test results, while reducing the number of times the sweep wave is played and improving test efficiency.
[0006] In a first aspect, some embodiments of the present application provide a terminal device, including:
[0007] monitor;
[0008] The controller is configured as:
[0009] Controlling the sound source to play a first frequency sweep wave, and obtaining first recording data collected by a first microphone in the microphone array and second recording data collected by a second microphone in the microphone array;
[0010] After the position of the sound source is moved, the sound source is controlled to play a second frequency sweep wave, and third recording data collected by the first microphone and fourth recording data collected by the second microphone are obtained;
[0011] Calculating a first test phase difference at multiple frequency points according to the first recording data and the second recording data, the first test phase difference including a first frequency test phase difference at the first frequency point and a second frequency test phase difference at the second frequency point;
[0012] Calculating a second test phase difference at multiple frequency points based on the third recording data and the fourth recording data, the second test phase difference including a third frequency test phase difference at the first frequency point and a fourth frequency test phase difference at the second frequency point;
[0013] Calculating a first distance phase difference based on the first frequency point test phase difference, the second frequency point test phase difference, the third frequency point test phase difference, and the fourth frequency point test phase difference, where the first distance phase difference includes a phase difference caused by the different distances between the first microphone and the second microphone and the sound source when playing the first frequency sweep wave;
[0014] The first test phase difference of the multiple frequency points is subtracted from the first distance phase difference to obtain the actual phase difference of the multiple frequency points.
[0015] The above technical solution has the following advantages or beneficial effects: only the sound source is used to play the sweep wave twice, the distance phase difference between the two microphones caused by the different distances from the sound source is calculated, and the distance phase difference is eliminated from the test phase difference of multiple frequency points to obtain more accurate test results. At the same time, the number of times the sweep wave is played is reduced, thereby improving test efficiency.
[0016] In some embodiments, the first microphone and the second microphone are at the same distance from the center of the microphone array, and the sound source is aligned with the center of the microphone array.
[0017] The above technical solution has the following advantages or beneficial effects: the distance between the first microphone and the sound source and the distance between the second microphone and the sound source can be kept as close as possible, thereby minimizing the phase difference caused by different distances and improving test accuracy.
[0018] In some embodiments, the controller is further configured to:
[0019] When controlling the sound source to play the first frequency sweep wave, obtaining fifth recording data collected by the third microphone in the microphone array and sixth recording data collected by the fourth microphone in the microphone array, wherein the microphones in the microphone array are spaced the same, and the third microphone and the fourth microphone are at the same distance from the center of the microphone array;
[0020] calculating a third test phase difference at multiple frequency points according to the fifth recording data and the sixth recording data;
[0021] Calculating a second distance phase difference based on the first distance phase difference and the positional relationship between the third microphone and the first microphone, where the second distance phase difference includes a phase difference caused by different distances between the third microphone and the fourth microphone and the sound source;
[0022] The third test phase difference of the multiple frequency points is subtracted from the second distance phase difference to obtain the actual phase difference of the multiple frequency points.
[0023] The above technical solution has the following advantages or beneficial effects: Based on the positional relationship between the microphones, the distance error values of other microphone pairs can be quickly obtained. Regardless of the number of microphones in the microphone array, only two sweep waves need to be played to obtain the phase difference results of other microphone pairs, thereby improving testing efficiency.
[0024] In some embodiments, the controller calculates the second distance phase difference based on the first distance phase difference and the positional relationship between the third microphone and the first microphone, and is further configured to:
[0025] Calculating a target multiple based on a positional relationship between the third microphone and the first microphone;
[0026] The target multiple is multiplied by the first range phase difference to obtain a second range phase difference.
[0027] The above technical solution has the following advantages or beneficial effects: the multiple relationship between the distance differences between different microphone pairs and the sound source is determined based on the positional relationship between the microphones. After the distance difference of the first pair of microphones has been calculated, the distance difference of other microphone pairs can be quickly obtained based on the multiple relationship, thereby calculating the phase difference results of other microphone pairs, thereby improving test efficiency.
[0028] In some embodiments, the controller calculates the target multiple based on the positional relationship between the third microphone and the first microphone, and is further configured to:
[0029] Get the number of microphones between the third microphone and the first microphone;
[0030] Calculate target multiples based on quantity.
[0031] The above technical solution has the following advantages or beneficial effects: the target multiple can be quickly obtained by the number of microphones between the third microphone and the first microphone, and the distance phase difference between the third microphone and the fourth microphone is calculated according to the target multiple, so as to quickly calculate the phase difference result between the third microphone and the fourth microphone, thereby improving the test efficiency.
[0032] In some embodiments, when the first microphone and the second microphone are closest to the center of the microphone array, the target multiple is calculated based on the number: N=1+2(n+1), where N is the target multiple and n is the number of microphones between the third microphone and the first microphone.
[0033] The above technical solution has the following advantages or beneficial effects: based on the geometric relationship between the sound source and the microphone array to be tested, the multiple relationship between the distance differences between different microphone pairs and the sound source is obtained. After calculating the first distance phase difference, the second distance phase difference can be obtained based on the multiple relationship. There is no need to perform complex calculations based on the recording data collected by the swept wave microphone twice, thereby improving test efficiency.
[0034] In some embodiments, the controller is further configured to calculate the first distance phase difference based on the first frequency point test phase difference, the second frequency point test phase difference, the third frequency point test phase difference, and the fourth frequency point test phase difference:
[0035] According to the phase difference tested at the first frequency point, the phase difference tested at the second frequency point, the phase difference tested at the third frequency point, and the phase difference tested at the fourth frequency point, the equation is obtained:
[0036] Δ 1-1 =ζ 1-1 +Y1;
[0037] Δ 1-2 =ζ 1-2 +Y1;
[0038] Δ 2-1 =ζ 1-1 +Y2;
[0039] Δ 2-2 =ζ 1-2 +Y2;
[0040] Among them, Δ 1-1 is the phase difference of the first frequency point test, Δ 1-2 is the phase difference of the second frequency point test, Δ 2-1 is the phase difference of the third frequency point test, Δ 2-2 is the phase difference tested at the fourth frequency point, ζ 1-1 is the actual phase difference of the first frequency point, ζ 2-1 is the actual phase difference at the second frequency point, Y1 is the first distance phase difference, and Y2 is the phase difference caused by the distance difference between the first microphone and the second microphone and the sound source when playing the second sweep wave;
[0041] Solve the equation to get the first range phase difference.
[0042] The above technical solution has the following advantages or beneficial effects: In the same frequency sweep test, the distance difference between microphones at different frequencies and the sound source is the same, but the phase difference is often different. Two arbitrary frequency points are selected from the first frequency sweep to generate two equations. The phase difference between the two same frequency points from the second frequency sweep is also selected to generate two equations. Solving these equations yields the first distance phase difference, which can be used to compensate for the distance error to the different microphones caused by the test phase difference, thereby improving test accuracy.
[0043] In some embodiments, before controlling the sound source to play the first frequency sweep wave, the controller is further configured to:
[0044] Control the sound source to play the swept frequency wave and obtain the standard microphone recording data;
[0045] The sound source is calibrated according to the standard microphone recording data so that the sound pressure of the sound source is calibrated to the preset value.
[0046] The above technical solution has the following advantages or beneficial effects: the calibration sound source can ensure that the response of the acoustic measurement equipment used at various frequencies is accurate, thereby making the measurement results reliable.
[0047] In a second aspect, some embodiments of the present application provide a microphone array phase consistency testing method, including:
[0048] Controlling the sound source to play a first frequency sweep wave, and obtaining first recording data collected by a first microphone in the microphone array and second recording data collected by a second microphone in the microphone array;
[0049] After the position of the sound source is moved, the sound source is controlled to play a second frequency sweep wave, and third recording data collected by the first microphone and fourth recording data collected by the second microphone are obtained;
[0050] Calculating a first test phase difference at multiple frequency points according to the first recording data and the second recording data, the first test phase difference including a first frequency test phase difference at the first frequency point and a second frequency test phase difference at the second frequency point;
[0051] Calculating a second test phase difference at multiple frequency points based on the third recording data and the fourth recording data, the second test phase difference including a third frequency test phase difference at the first frequency point and a fourth frequency test phase difference at the second frequency point;
[0052] Calculating a first distance phase difference based on the first frequency point test phase difference, the second frequency point test phase difference, the third frequency point test phase difference, and the fourth frequency point test phase difference, where the first distance phase difference includes a phase difference caused by the different distances between the first microphone and the second microphone and the sound source when playing the first frequency sweep wave;
[0053] The first test phase difference of the multiple frequency points is subtracted from the first distance phase difference to obtain the actual phase difference of the multiple frequency points.
[0054] The above technical solution has the following advantages or beneficial effects: only the sound source is used to play the sweep wave twice, the distance phase difference between the two microphones caused by the different distances from the sound source is calculated, and the distance phase difference is eliminated from the test phase difference of multiple frequency points to obtain more accurate test results. At the same time, the number of times the sweep wave is played is reduced, thereby improving test efficiency.
[0055] In some embodiments, the first microphone and the second microphone are at the same distance from the center of the microphone array, and the sound source is aligned with the center of the microphone array.
[0056] The above technical solution has the following advantages or beneficial effects: the distance between the first microphone and the sound source is kept as close as possible to the distance between the second microphone and the sound source, thereby minimizing the phase difference caused by the different distances and improving the test accuracy.
[0057] In the technical solution provided by the embodiments of the present application, first recording data collected by the first microphone in the microphone array and second recording data collected by the second microphone in the microphone array are obtained when the sound source plays the first sweep wave. After moving the sound source, third recording data collected by the first microphone and fourth recording data collected by the second microphone when the sound source plays the second sweep wave are obtained. Based on the first and second recording data, first test phase differences are calculated for multiple frequency points. The first test phase differences include a first test phase difference for the first frequency point and a second test phase difference for the second frequency point. Based on the third and fourth recording data, a third test phase difference for the first frequency point and a fourth test phase difference for the second frequency point are calculated. Then, a first distance phase difference is calculated, and the first test phase differences for the multiple frequency points are subtracted from the first distance phase difference to obtain the actual phase differences for the multiple frequency points. In the embodiments of the present application, the distance phase difference between the two microphones due to their different distances from the sound source can be calculated by simply using the sound source to play the sweep wave twice. This distance phase difference is then removed from the test phase differences for the multiple frequency points, resulting in more accurate test results. This also reduces the number of sweep wave playbacks and improves test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0059] Figure 1A schematic diagram illustrating the connection of a first microphone array phase consistency test device provided in some embodiments of the present application;
[0060] Figure 2 A flowchart of a microphone array phase consistency testing method provided in some embodiments of the present application;
[0061] Figure 3 A schematic diagram of a sound source aligned with the center of a microphone array provided in some embodiments of the present application;
[0062] Figure 4 A schematic diagram of a 4-mic linear microphone array provided in some embodiments of the present application;
[0063] Figure 5 A flowchart of a second microphone array phase consistency testing method provided in some embodiments of the present application;
[0064] Figure 6 A schematic diagram of the relationship between a sound source and the center position of a microphone array provided in some embodiments of the present application;
[0065] Figure 7 A flowchart of a third microphone array phase consistency testing method provided in some embodiments of the present application;
[0066] Figure 8 A flowchart of a fourth microphone array phase consistency testing method provided in some embodiments of the present application;
[0067] Figure 9 A schematic diagram of the spatial position of a sound source and a microphone array provided in some embodiments of the present application;
[0068] Figure 10 A timing diagram of a microphone array phase consistency testing method provided in some embodiments of the present application. DETAILED DESCRIPTION
[0069] The following embodiments are described in detail, with examples illustrated in the accompanying drawings. When the following description refers to the drawings, identical numbers in different figures represent identical or similar elements unless otherwise indicated. The embodiments described in the following embodiments are not intended to represent all possible implementations consistent with the present application. They are merely examples of systems and methods consistent with certain aspects of the present application, as detailed in the claims.
[0070] It should be noted that the brief descriptions of terms in this application are only for the purpose of facilitating the understanding of the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their ordinary and usual meanings.
[0071] In the specification and claims of this application and the accompanying drawings, the terms "first," "second," "third," etc. are used to distinguish similar or similar objects or entities, and are not necessarily intended to limit a particular order or sequence, unless otherwise noted. It should be understood that the terms used in this manner are interchangeable under appropriate circumstances.
[0072] The terms "comprise," "include," and "have," and any variations thereof, are intended to cover but not exclude inclusion; for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.
[0073] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functionality associated with that element.
[0074] In the embodiments of the present application, a terminal device is a device that inputs programs and data into a computer or receives computer output and processing results via communication facilities. A terminal device is typically located in a convenient location where it can connect to a remote computer using communication facilities. It primarily consists of a communication interface control device and dedicated or selected input and output devices.
[0075] Terminal devices include but are not limited to smart TVs, mobile terminals, computers, wearable devices, virtual reality devices, augmented reality devices, etc. Mobile terminals include but are not limited to laptops, tablets, and smartphones.
[0076] The terminal device may include a display, a communication device, a controller and a user input interface.
[0077] In some embodiments, the display includes a display component for presenting an image and a driver component for driving the image display. The display is configured to receive image signals output from the controller for display. For example, the display can be configured to display video content, image content, and components of a menu control interface and a user interface (UI).
[0078] In some embodiments, a communication device is a component used to communicate with external devices or servers according to various communication protocol types. A terminal device may be provided with multiple communication devices depending on the communication methods supported. For example, if the terminal device supports wireless network communication, the terminal device may be provided with a communication device that includes WiFi functionality. If the terminal device supports Bluetooth connection communication, the terminal device needs to be provided with a communication device that includes Bluetooth functionality.
[0079] Communication devices can connect a terminal device to an external device or server via wireless or wired connections. Wired connections connect a terminal device to an external device through components such as data cables and interfaces. Wireless connections connect a terminal device to an external device through wireless signals or wireless networks. A terminal device can establish a connection with an external device directly or indirectly through a gateway, router, or connection device.
[0080] In some embodiments, the controller may include at least one of a central processing unit, a video processor, an audio processor, a graphics processor, and a power processor, and first to nth interfaces for input / output. The controller controls the operation of the terminal device and responds to user operations through various software control programs stored in a memory. The controller controls the overall operation of the terminal device.
[0081] In some embodiments, the user input interface can be used to receive instructions from the user. For example, the user input interface can receive a user confirmation instruction for a control in the user interface. The user input interface can also receive voice data input by the user.
[0082] In some embodiments, as Figure 1 As shown, the terminal device is provided with an audio interface, and the sound source can be connected to the terminal device through the audio interface. The microphone array to be tested can be connected to the terminal device through the audio interface. A standard microphone can also be connected to the terminal device through the audio interface.
[0083] The terminal device may have a microphone test application installed. Upon receiving a command to launch the microphone test application, the terminal device displays the microphone test application page. Upon receiving a user input command to calibrate a sound source on the microphone test application page, the terminal device sends a play command to the sound source, causing it to play a swept frequency waveform and receive standard microphone recording data collected by a standard microphone. The microphone test application then calibrates the sound source based on the standard microphone recording data.
[0084] After the sound source calibration is completed, the microphone array to be tested is placed in the specified position. After receiving the instruction to start the test from the user in the microphone test application page, a play instruction is sent to the sound source to make the sound source play the first frequency sweep wave and receive the first recording data collected by multiple microphones in the microphone array to be tested. Move the position of the microphone array to be tested, and after receiving the instruction to test again from the user in the microphone test application page, a play instruction is sent to the sound source to make the sound source play the second frequency sweep wave and receive the second recording data collected by multiple microphones in the microphone array to be tested. Select any two frequency points, calculate the test phase difference of the two frequency points based on the two recording data, and calculate the distance phase difference based on the above test phase difference, and then eliminate the distance phase difference from the test phase difference of multiple frequency points to obtain a more accurate microphone array phase difference value.
[0085] Products with intelligent voice capabilities are typically equipped with microphone arrays. For example, televisions, projectors, air conditioners, and speakers typically feature two, four, or six microphones. Intelligent voice systems perform sound source localization and voice enhancement based on the distance between the sound source and the microphone array. Therefore, microphone array phase consistency is crucial to voice performance, and testing phase consistency parameters is particularly important. Phase consistency is defined as the phase difference in the output data from different microphones in the array when the distance from the sound source to each microphone is consistent.
[0086] In some embodiments, the phase consistency test method includes a multiple frequency sweep test method. Specifically, the multiple frequency sweep test method can be: moving the microphone array so that the microphones are sequentially aimed at the sound source, playing the frequency sweep waves sequentially, obtaining the recording file of each microphone, and calculating the phase difference.
[0087] However, since the test audio from different microphones does not record the same sweep wave, assuming a 4-mic array, the four sweep recording files are derived from four sweep waves played by the sound source. Although this method ensures the consistency of the distance between the microphone and the sound source, it ignores the consistency of time and may introduce sound source response errors and other random errors. If the operator manually intercepts the recorded sweep wave from the audio, it will also contain phase differences caused by the different initial response speeds of the microphones. Because the microphone array needs to be moved multiple times to ensure the consistency of the distance between the microphone and the sound source, and the test audio needs to be obtained multiple times, the test is cumbersome and time-consuming. Therefore, the multiple sweep test method has low test efficiency and test accuracy.
[0088] In some embodiments, the phase consistency test method includes a single frequency sweep test method. The single frequency sweep test method can be specifically as follows: align the sound source with the center of the microphone array, play a frequency sweep wave, obtain multi-channel recorded audio of the microphone array, and calculate the phase difference in pairs, where two microphones at the same distance from the sound source form a group, for example, a 4-microphone array has 2 groups. This method has high test efficiency, but it is often difficult to adjust the sound source to the center of the microphone array. If the sound source deviates from the center of the microphone, the actual distance to the two microphones will not be equal, and there will be a distance difference. The distance difference is different for microphone pairs in different positions. This distance difference will bring about a large test error.
[0089] In summary, the sources of phase consistency test system errors are: 1) the sound source response time error and other random errors when playing the sweep wave at different times; 2) the time error caused by manually intercepting the sweep wave in different audio; 3) the test system error mainly comes from the distance error caused by the sound source not being aligned with the microphone array.
[0090] The primary error source in the single-sweep test method is distance error. Since only a single sweep wave is played, there's no source response error or other time-related errors. Since multiple microphone recordings are captured simultaneously, multiple channels of audio can be captured simultaneously, eliminating the need to sequentially capture audio from different points in the recording file. Therefore, test accuracy can be improved by simply eliminating distance error based on the single-sweep test method.
[0091] In order to improve the test efficiency and test accuracy, the present application embodiment provides a terminal device, and the present application embodiment further improves some functions of the terminal device. Figure 2 As shown in the figure, the controller runs the application program to make the terminal device perform the following steps:
[0092] Step S201: controlling the sound source to play a first frequency sweep wave, and obtaining first recording data collected by a first microphone in the microphone array and second recording data collected by a second microphone in the microphone array.
[0093] In some embodiments, the microphone array phase test equipment mainly includes a sound source, a standard microphone and a terminal device. In order to facilitate measurement and improve test accuracy, the microphone array phase test equipment may also include a three-dimensional displacement stage, a storage table and a laser collimator. The sound source is fixed on the three-dimensional displacement stage so that the sound source can be moved in three-dimensional space to adjust its relative position with the microphone array. The laser collimator is placed at the sound source outlet and can be used to calibrate the distance between the sound source and the microphone array. The storage table is used to place the microphone array to be tested, and the terminal device is used to control the sound source sound, obtain the standard microphone and microphone array recording data, and process the data.
[0094] In some embodiments, before controlling the sound source to play the first frequency sweep wave, the sound source is calibrated using a standard microphone so that the magnitude of the sound wave emitted by the sound source reaches a set value at the microphone array. The microphone calibration method can be: controlling the sound source to play the frequency sweep wave, obtaining standard microphone recording data collected by the standard microphone, and calibrating the sound source based on the standard microphone recording data so that the sound pressure of the sound source is calibrated to a preset value.
[0095] Before calibrating the sound source using a standard microphone, you need to adjust the spatial position of the center of the microphone array and the sound source so that the sound source outlet is facing the center of the microphone array.
[0096] In some embodiments, a T-shaped mold can be customized, with the center of the microphone array positioned at the intersection of the horizontal and vertical sides of the T-shaped mold. The sound source is positioned on the vertical side of the T-shaped mold so that the sound source outlet is directly aligned with the center of the microphone array.
[0097] In some embodiments, a laser collimator can be used to align the sound source's outlet port with the center of the microphone array. The core of the laser collimator is to emit a very thin and stable laser beam, which serves as a reference line. A receiver, or photoelectric sensor, is placed at the point to be measured. This detects the position of the laser beam and uses software to calculate the deviation. The operator then adjusts the position of the sound source or the center of the microphone array based on the deviation until the desired accuracy is achieved.
[0098] The sound source's outlet port can be aligned with the center of the microphone array by placing a laser at the sound source's outlet port so that the laser light is aligned with the center of the sound source's outlet port, and placing a receiver at the center of the microphone array so that the receiver is aligned with the center of the microphone array. The sound source's position is adjusted so that the laser light illuminates the center of the microphone array.
[0099] like Figure 3 As shown, place the laser at the sound source's exit port, aligning the laser light with the center of the exit port. Adjust the 3D translation stage to move the sound source and laser, aligning the sound source with the center of the microphone array. Once the sound source is aligned with the center of the microphone array, remove the laser without moving the sound source's position relative to the microphone array.
[0100] A standard microphone is placed at the center of the microphone array. First, the target sound pressure level is set to a preset value, for example, 60dB or 90dB. The preset value is typically chosen based on actual application needs or industry standards. After receiving the calibration command input by the user, the terminal device sends a playback command to the sound source, causing it to emit a frequency sweep. The sound pressure level of the sound source's initial playback may not meet the preset value. The terminal device then obtains the standard microphone's recording data and analyzes parameters such as the sound pressure level and frequency response. Based on the analysis results, the terminal device automatically adjusts the sound source's sound pressure level and repeats the aforementioned steps: emitting the frequency sweep signal, recording, and analyzing again. This process continues until the measured sound pressure level matches the preset value. Calibration is considered complete once the target sound pressure level is reached and within the specified tolerance range at all relevant frequencies.
[0101] After the sound source calibration is complete, the standard microphone can be removed and the microphone array to be tested can be placed on a table so that the center of the microphone array to be tested is aligned with the center of the microphone array. After the terminal device receives the test command input by the user, it sends a play command to the sound source to cause the sound source to play the first frequency sweep wave. The terminal device can obtain the first recording data collected by the first microphone in the microphone array to be tested and the second recording data collected by the second microphone in the microphone array.
[0102] A swept frequency wave, also known as a linear frequency modulation signal or chirp signal, is a signal whose frequency gradually changes over time. In a swept frequency wave, the frequency is not fixed but changes smoothly from a starting frequency to an ending frequency.
[0103] In some embodiments, any two microphones in the microphone array to be tested can be selected as the first microphone and the second microphone. Figure 4 As shown, taking a 4-mic linear microphone array as an example, the 4 mics are numbered from left to right as microphone 1, microphone 2, microphone 3 and microphone 4, wherein the first microphone may be microphone 1 and the second microphone may be microphone 2.
[0104] In some embodiments, the microphones in the microphone array to be tested that are at the same distance from the center of the microphone array can be used as a pair of microphones, namely, a first microphone and a second microphone. Figure 4 As shown, taking a 4-mic linear microphone array as an example, the 4 microphones are numbered from left to right as microphone 1, microphone 2, microphone 3, and microphone 4. The first microphone can be microphone 2, and the second microphone can be microphone 3. Microphone 1 and microphone 4 are called a microphone pair, and microphone 2 and microphone 3 are called a microphone pair.
[0105] Step S202: After the position of the sound source is moved, the sound source is controlled to play a second frequency sweep wave, and third recording data collected by the first microphone and fourth recording data collected by the second microphone are obtained.
[0106] After the first sweep wave is played, the sound source can be moved. The sound source can be moved manually by an operator or by the terminal device controlling the movement of the three-dimensional translation stage, thereby driving the movement of the sound source.
[0107] In some embodiments, after the operator manually moves the sound source a certain distance, the terminal device, in response to the user inputting a retest instruction, sends a replay instruction to the sound source, causing the sound source to play the second frequency sweep wave. The terminal device can then obtain the third recording data collected by the first microphone in the microphone array under test and the fourth recording data collected by the second microphone in the microphone array.
[0108] In other embodiments, after receiving the completion message of the first sweep wave playback sent by the sound source, the terminal device sends a movement instruction to the sound source or the three-dimensional displacement stage. The sound source or the three-dimensional displacement stage moves a certain distance in response to the movement instruction and sends a movement completion message to the terminal device. The terminal device sends a replay instruction to the sound source to cause the sound source to play the second sweep wave. The terminal device can obtain the third recording data collected by the first microphone in the microphone array to be tested and the fourth recording data collected by the second microphone in the microphone array. The embodiments of the present application can reduce user operations, automatically complete the sound source movement and sweep wave playback, and improve the convenience of testing.
[0109] It should be noted that the embodiments of this application do not limit the direction and distance of the sound source movement. To improve the accuracy of the microphone phase consistency test results, the sound source can be moved along the straight line between the sound source and the center of the microphone array. For example, the sound source can be slightly moved along the direction of the microphone array, causing it to deviate a short distance.
[0110] In some embodiments, the microphone array phase consistency test method can be as follows: Figure 5 As shown in the figure, the sound source and the center of the microphone array are first adjusted. Then, a standard microphone is placed at the center of the microphone array and the sound source is calibrated using the standard microphone. After the microphone array under test is placed at the center of the microphone array, the first frequency sweep wave is played to obtain the recording data collected by the microphone array under test. After adjusting the spatial position of the sound source, the second frequency sweep wave is played to obtain the recording data collected by the microphone array under test. Finally, the phase difference is calculated based on the two recordings.
[0111] Step S203: Calculating first test phase differences of multiple frequency points according to the first recording data and the second recording data, where the first test phase differences include a first frequency test phase difference of the first frequency point and a second frequency test phase difference of the second frequency point.
[0112] The first recording data and the second recording data are sounds emitted by the same sound source recorded simultaneously by the first microphone and the second microphone, and the recording is performed synchronously.
[0113] A specific implementation of calculating a first test phase difference at multiple frequency points based on first and second recording data may include: selecting the same short time period from the first and second recording data based on the start timestamp of the frequency sweep wave, and then applying a Fourier transform, typically a fast Fourier transform, to the signal within the selected time period to convert the time domain signal into the frequency domain. It should be noted that because the first and second recording data are recorded simultaneously, temporal consistency can be ensured when the recording data is intercepted, thereby avoiding microphone sound source response errors and phase differences caused by different microphone starting response speeds resulting from manually intercepting the recording data in the multiple frequency sweep method.
[0114] After acquiring the frequency domain, for each frequency point, the phase angles corresponding to the first and second recordings are obtained. The phase difference can be calculated by calculating the difference in phase angles between the two at the same frequency point. Δφ1(f) = φ1(f) - φ2(f), where φ1(f) and φ2(f) are the phase angles of the first and second recordings, respectively, at frequency f, collected by the first microphone and the second microphone, respectively.
[0115] The phase difference can be the difference in phase angles, or the phase angle can be converted into a physical distance, and the phase difference can be represented by the difference in physical distances.
[0116] The steps of converting the phase angle to physical distance may include: 1) Determining the speed of sound: Obtain the speed of sound propagation v in the medium. For sound waves in air, the speed of sound at room temperature is approximately 343 meters per second. 2) Calculating the wavelength: The wavelength λ can be calculated based on the frequency f of the wave, λ = v / f, where v is the speed of sound and f is the frequency of the sound wave. 3) Converting the phase angle difference to radians: If the phase angle difference is in radians, no conversion is required. If the phase angle difference is in degrees, it must be converted to radians using the formula radians = π / 180 × degrees. 4) Calculating the path (physical distance) difference: There is a direct relationship between the phase difference and the wavelength, which can be used to calculate the path difference Y between the two microphones and the sound source. The path difference can be calculated using the following formula: Y = Δφ1(f)·λ / 2π. Where Δφ1(f) is the phase angle difference at frequency f, in radians, and λ is the wavelength.
[0117] Select the first test phase differences corresponding to two frequency points from the first test phase differences of the multiple frequency points, that is, the first frequency test phase difference of the first frequency point and the second frequency test phase difference of the second frequency point.
[0118] Step S204: calculating a second test phase difference of a plurality of frequency points according to the third recording data and the fourth recording data, wherein the second test phase difference includes a third frequency point test phase difference of the first frequency point and a fourth frequency point test phase difference of the second frequency point.
[0119] The third recording data and the fourth recording data are sounds emitted by the same sound source recorded simultaneously by the first microphone and the second microphone, and the recording is performed synchronously.
[0120] A specific implementation of calculating the second test phase difference at multiple frequency points based on the third and fourth recording data may include selecting the same short time period from the third and fourth recording data, and then applying a Fourier transform, typically a fast Fourier transform, to the signal within the selected time period to convert the time domain signal into the frequency domain. It should be noted that because the third and fourth recording data are recorded simultaneously, temporal consistency can be ensured when the recording data is intercepted, thereby avoiding microphone sound source response errors and phase differences caused by different microphone initial response speeds resulting from manually intercepting the recording data in a multiple frequency sweep method.
[0121] After acquiring the frequency domain, the phase angles corresponding to the third and fourth recording data are obtained for each frequency point. The phase difference can be obtained by calculating the difference in phase angles between the two at the same frequency point. Δφ2(f) = φ3(f) - φ4(f), where φ3(f) and φ4(f) are the phase angles of the third recording data collected by the first microphone and the fourth recording data collected by the second microphone at frequency f, respectively. The phase difference can be the difference in phase angles, or the phase angle can be converted into a physical distance, and the phase difference can be represented by the difference in physical distances.
[0122] A third frequency point test phase difference of the first frequency point and a fourth frequency point test phase difference of the second frequency point are selected from the second test phase differences of the multiple frequency points.
[0123] In some embodiments, a first test phase difference at multiple frequency points can be calculated based on the first and second recorded data. Then, the first and second frequency points can be selected from the multiple frequency points to obtain a first-frequency test phase difference at the first frequency point and a second-frequency test phase difference at the second frequency point. Based on the third and fourth recorded data, only a third-frequency test phase difference at the first frequency point and a fourth-frequency test phase difference at the second frequency point can be calculated.
[0124] In some embodiments, a first frequency point and a second frequency point are selected from a plurality of frequency points. Based on the first and second recording data, only a first-frequency test phase difference of the first frequency point and a second-frequency test phase difference of the second frequency point may be calculated. Then, based on the third and fourth recording data, second-frequency test phase differences of the plurality of frequency points are calculated, and a third-frequency test phase difference of the first frequency point and a fourth-frequency test phase difference of the second frequency point are obtained.
[0125] It should be noted that after obtaining the first recording data collected by the first microphone and the second recording data collected by the second microphone, the first test phase differences of the multiple frequency points can be directly calculated based on the first recording data and the second recording data.
[0126] Step S205: Calculate a first distance phase difference according to the first frequency point test phase difference, the second frequency point test phase difference, the third frequency point test phase difference, and the fourth frequency point test phase difference.
[0127] In some embodiments, the first distance is the distance between the first microphone and the sound source, and the second distance is the distance between the second microphone and the sound source. The smaller the difference between the first distance and the second distance, the smaller the distance phase difference, and the more accurate the phase difference test result.
[0128] To improve the accuracy of the microphone array phase consistency test, you can select two microphones at the same distance from the sound source for testing. To ensure that the two microphones are at the same distance from the sound source, you can select microphones at the same distance from the center of the microphone array. Figure 4 As shown, microphones 2 and 3 are at the same distance from the center of the microphone array, and microphones 1 and 4 are at the same distance from the center of the microphone array. Therefore, the phase difference between microphones 2 and 3, and the phase difference between microphones 1 and 4 can be calculated separately.
[0129] Although the sound source can be aligned with the center of the microphone array as much as possible, there will be a certain error due to various factors. Figure 6 As shown, although a laser collimator can be used to align the sound source with the center of the microphone array, the straight line between the sound source and the center of the microphone array is not perpendicular to the microphone array to be tested, which may cause the distance from the first microphone to the sound source to be different from the distance from the second microphone to the sound source. Therefore, a distance phase difference will still occur. For example, if the center position of the microphone array is incorrectly marked, or the sound source is not aligned with the center of the microphone array, a distance phase difference will also occur. The phase difference caused by the above reasons can be represented by a first distance phase difference, which includes the phase difference caused by the different distances between the first microphone and the second microphone and the sound source when the first sweep wave is played.
[0130] A specific implementation of calculating the first distance phase difference based on the first frequency point test phase difference, the second frequency point test phase difference, the third frequency point test phase difference, and the fourth frequency point test phase difference may include: obtaining the following equation based on the first frequency point test phase difference, the second frequency point test phase difference, the third frequency point test phase difference, and the fourth frequency point test phase difference:
[0131] Δ 1-1 =ζ 1-1 +Y1;
[0132] Δ 1-2 =ζ 1-2 +Y1;
[0133] Δ 2-1 =ζ 1-1 +Y2;
[0134] Δ 2-2 =ζ 1-2 +Y2;
[0135] Among them, Δ 1-1 is the first frequency point test phase difference, Δ 1-2 is the phase difference of the second frequency point test, Δ 2-1 is the phase difference of the third frequency point test, Δ 2-2 is the phase difference tested at the fourth frequency point, ζ 1-1 is the actual phase difference of the first frequency point, ζ 2-1 is the actual phase difference of the second frequency point, Y1 is the first distance phase difference, and Y2 is the phase difference caused by the distance difference between the first microphone and the second microphone and the sound source when playing the second sweep wave.
[0136] Solving the above equation, we can get the first distance phase difference.
[0137] It should be noted that Δ 1-1 , Δ 1-2 , Δ 2-1 and Δ 2-2 is the specific value calculated above. 1-1 With ζ 2-1 is the actual phase difference between the first frequency point and the second frequency point, that is, the true value. The actual phase difference is the inherent characteristic of the microphone and has nothing to do with the position of the sound source. It does not change with the change of the distance from the sound source. Therefore, the actual phase difference of the two frequency sweep waves is the same. By solving the four-variable linear equation, we can get ζ 1-1 ,ζ 2-1 , Y1, and Y2 values.
[0138] Step S206: subtracting the first test phase difference of the multiple frequency points from the first distance phase difference to obtain the actual phase difference of the multiple frequency points.
[0139] The first measured phase differences at multiple frequency points are sequentially subtracted from the first distance phase difference to obtain the actual phase differences at the multiple frequency points. The actual phase differences can then be compared with a threshold. If the actual phase differences are greater than the threshold, the phase consistency test between the first and second microphones is determined to have passed. If the actual phase differences are less than or equal to the threshold, the phase consistency test between the first and second microphones is determined to have failed.
[0140] In some embodiments, Y2 (the phase difference caused by the distance difference between the first microphone and the second microphone and the sound source when playing the second sweep wave) is obtained by solving the equation, and then the second test phase difference of multiple frequency points is subtracted from Y2 to obtain the actual phase difference of multiple frequency points.
[0141] For example, let the test phase difference between microphone 2 and microphone 3 be Δ 32(unit: m), the actual phase difference is ζ 32 , the phase error caused by the distance difference is Y1, and the distance difference refers to the difference between the distance between microphone 3 and the sound source and the distance between microphone 2 and the sound source. 32 Eliminate the error caused by the distance difference and obtain high-precision test resultsζ 32 Analysis shows that in the same sweep wave test, the distance difference between the microphone and the sound source at different frequency points is the same, but the phase difference is often different. Randomly select two frequency points from the first sweep wave test results and obtain two equations:
[0142] Δ 32-1 =ζ 32-1 +Y1;
[0143] Δ 32-2 =ζ 32-2 +Y1.
[0144] From the test results of the second frequency sweep wave, we select the same two frequency points as the first one and get two equations:
[0145] Δ2 32-1 =ζ 32-1 +Y2;
[0146] Δ2 32-2 =ζ 32-2 +Y2.
[0147] Solve the above equation to find the value of Y1. 32 Eliminating Y1 from the test, we can obtain the high-precision phase consistency test results of microphones 2 and 3 at the required frequency. 32 .
[0148] Alternatively, solve the above equation for the value of Y2. From the preliminary test results Δ2 32 Eliminating Y2 from the test, we can obtain the high-precision phase consistency test results of microphone 2 and microphone 3 at the required frequency. 32 .
[0149] In some embodiments, as Figure 7 As shown, the same method can be used to test the phase difference of other microphone pairs in the microphone array. Specific implementations may include:
[0150] Step S701: when the sound source is controlled to play the first frequency sweep wave, fifth recording data collected by the third microphone in the microphone array and sixth recording data collected by the fourth microphone in the microphone array are obtained.
[0151] Step S702: while the position of the sound source is moved and the sound source is controlled to play the second frequency sweep wave, the seventh recording data collected by the third microphone and the eighth recording data collected by the fourth microphone are also obtained.
[0152] It should be noted that when the sound source is controlled to play the first sweep frequency wave and the second sweep frequency wave, the microphones in the microphone array to be tested can all collect recording data and send the recording data to the terminal device.
[0153] Step S703: Calculating a third test phase difference of multiple frequency points based on the fifth recorded data and the sixth recorded data, where the third test phase difference includes a fifth test phase difference of the first frequency point and a sixth test phase difference of the second frequency point.
[0154] Step S704: Calculating a fourth test phase difference of multiple frequency points based on the seventh recording data and the eighth recording data, where the fourth test phase difference includes a seventh test phase difference of the first frequency point and an eighth test phase difference of the second frequency point.
[0155] Step S705: Calculate a second distance phase difference based on the fifth frequency point test phase difference, the sixth frequency point test phase difference, the seventh frequency point test phase difference, and the eighth frequency point test phase difference. The second distance phase difference includes the phase difference caused by the different distances between the third microphone and the fourth microphone and the sound source when playing the first sweep wave.
[0156] Step S706: subtract the third test phase difference of the multiple frequency points from the second distance phase difference to obtain the actual phase difference of the multiple frequency points.
[0157] In other embodiments, the microphones in the microphone array are spaced at the same distance, the first microphone and the second microphone are at the same distance from the center of the microphone array, and the third microphone and the fourth microphone are at the same distance from the center of the microphone array. Figure 8 As shown, in order to test the phase difference between the third microphone and the fourth microphone, the controller is configured as follows:
[0158] Step S801: when controlling the sound source to play the first frequency sweep wave, fifth recording data collected by the third microphone in the microphone array and sixth recording data collected by the fourth microphone in the microphone array are also obtained.
[0159] Step S802: Calculating third test phase differences of multiple frequency points according to the fifth recorded data and the sixth recorded data.
[0160] Step S803: Calculating a second distance phase difference according to the first distance phase difference and the positional relationship between the third microphone and the first microphone.
[0161] The second distance phase difference includes a phase difference caused by different distances between the third microphone and the fourth microphone and the sound source.
[0162] It's important to note that when testing a single sound source, there's often a certain relationship between the distances from different microphone pairs to the sound source. Determining this relationship simplifies the phase coherence testing and calculation process for other microphone pairs. Therefore, we begin by building a geometric relationship model based on the spatial geometric relationship between the test system and the microphone array under test.
[0163] like Figure 9 As shown, we still take the linear 4-mic array as an example to establish a geometric relationship model. Assume that the 4 microphones are numbered from left to right as microphone 1, microphone 2, microphone 3, and microphone 4. The microphone spacing is a, and the point sound source is aligned with the center of the microphone array, but in reality there is often a certain offset. Assume that the horizontal coordinate of the point sound source is c (offset), and the vertical distance between the point sound source and the microphone array is b. The distance difference from the point sound source to microphone 1 and microphone 4 in the microphone array is X, and the distance difference from the point sound source to microphone 2 and microphone 3 in the microphone array is Y. Find the relationship between X and Y (that is, the relationship between the distance difference between the microphone pair and the sound source). The microphone array is placed horizontally on the table, and a rectangular coordinate system is established with the center of the microphone array as the origin, the arrangement direction of the microphone array as the x-axis, and the direction perpendicular to the microphone array as the y-axis. The following coordinates can be obtained: Microphone 1: (-1.5a, 0), Microphone 2: (-0.5a, 0), Microphone 3: (0.5a, 0), Microphone 4: (1.5a, 0), and the coordinates of the point sound source are (c, b).
[0164] 1) Distance calculation
[0165] Distance from point sound source to microphone:
[0166]
[0167] 2) Distance difference
[0168] X = d4 - d1;
[0169] Y=d3-d2.
[0170] Taylor Series Expansion: This is a formula that expands these distance differences around c. Since c is the horizontal offset between the sound source and the center of the microphone array, its actual value is small relative to b and a, so a Taylor series expansion around c is possible. A second-order Taylor expansion will be used.
[0171] 3) Calculation expansion
[0172] Expanding d1 and d4 gives:
[0173]
[0174]
[0175] calculate:
[0176]
[0177] Expanding d2 and d3 gives:
[0178]
[0179] calculate:
[0180]
[0181] Therefore, we get: X=3Y.
[0182] In summary, for a 4-mic array, the distance difference relationship is 1:3. For arrays with more microphones, the distance difference relationship between microphone pairs can be derived using the same method. For a 6-mic linear array, the distance difference relationship is 1:3:5. For a 2a-mic linear array, the distance difference relationship is 1:…:1+2(a-1).
[0183] Based on the above distance difference relationship, a specific implementation method of calculating the second distance phase difference according to the first distance phase difference and the positional relationship between the third microphone and the first microphone includes: determining a target multiple according to the positional relationship between the third microphone and the first microphone, multiplying the target multiple by the first distance phase difference to obtain the second distance phase difference.
[0184] In some embodiments, the step of determining the target multiple based on the positional relationship between the third microphone and the first microphone may include: obtaining the number of microphones between the third microphone and the first microphone, and calculating the target multiple based on the number.
[0185] When the first and second microphones are closest to the center of the microphone array, the target multiple is calculated based on the number of available microphones: N = 1 + 2(n + 1), where N is the target multiple and n is the number of microphones between the third and first microphones. For example, suppose the 6 microphones are numbered from left to right as microphone 1, microphone 2, microphone 3, microphone 4, microphone 5, and microphone 6, with the first microphone being microphone 3 and the second microphone being microphone 4. If the third microphone is microphone 2 and the fourth microphone is microphone 5, the number of microphones between the third and first microphones is 0, and the target multiple is 3. The second distance phase difference is 3 times the first distance phase difference. If the third microphone is microphone 1 and the fourth microphone is microphone 6, the number of microphones between the third and first microphones is 1, and the target multiple is 5. The second distance phase difference is 5 times the first distance phase difference.
[0186] When the first and second microphones are not closest to the center of the microphone array, the first values corresponding to the first and second microphones, as well as the second values corresponding to the third and fourth microphones, can be determined based on the microphone arrangement. The target multiple is the ratio of the second value to the first value. Assume that the 6 microphones are numbered from left to right as microphone 1, microphone 2, microphone 3, microphone 4, microphone 5, and microphone 6, with the first microphone being microphone 2, the second microphone being microphone 5, the third microphone being microphone 1, and the fourth microphone being microphone 6. Based on the 1:3:5 relationship of the distance differences in the 6-mic linear array, the first value corresponding to the first and second microphones is 3, and the first value corresponding to the third and fourth microphones is 5. The target multiple is 5 / 3. The second distance phase difference is 5 / 3 times the first distance phase difference.
[0187] In other embodiments, determining the target multiple based on the positional relationship between the third microphone and the first microphone may include obtaining the distance between the third microphone and the first microphone and the spacing between the microphones, and calculating the target multiple based on the distance and spacing. The formula is: N = 1 + 2d / a, where N is the target multiple, d is the distance between the third microphone and the first microphone, and a is the spacing between the microphones.
[0188] Step S804: subtract the third test phase difference of the multiple frequency points from the second distance phase difference to obtain the actual phase difference of the multiple frequency points.
[0189] In some embodiments, the timing diagram of the microphone array phase consistency test method can be as follows: Figure 10 As shown. After receiving the user input test command, the terminal device sends a play sweep wave command to the sound source. The sound source plays the first sweep wave. The first microphone, the second microphone, the third microphone, and the fourth microphone respectively collect the first recording data, the second recording data, the fifth recording data, and the sixth recording data, and send them to the terminal device. The terminal device sends a move command to the sound source. After the sound source moves, it sends a move completion message to the terminal device. The terminal device sends a play sweep wave command to the sound source. The sound source plays the second sweep wave. The first microphone and the second microphone respectively collect the third recording data and the fourth recording data, and send them to the terminal device.
[0190] The terminal device calculates a first test phase difference for multiple frequency points based on the first and second recording data, and selects the first test phase difference for the first frequency point and the second test phase difference for the second frequency point. The terminal device calculates a third test phase difference for the first frequency point and a fourth test phase difference for the second frequency point based on the third and fourth recording data. The terminal device then calculates a first distance phase difference based on the first, second, third, and fourth frequency test phase differences, and subtracts the first test phase differences for the multiple frequency points from the first distance phase difference to obtain the actual phase differences for the multiple frequency points between the first microphone and the second microphone. The terminal device calculates a third test phase difference for the multiple frequency points based on the fifth and sixth recording data, calculates a second distance phase difference based on the first distance phase difference and a target multiple, and subtracts the third test phase difference for the multiple frequency points from the second distance phase difference to obtain the actual phase differences for the multiple frequency points between the third microphone and the fourth microphone.
[0191] The embodiment of the present application can be used to test the phase consistency of products such as televisions, projectors, and air conditioners with microphone arrays. Based on the single sweep test method, improvements are made. At different sound source positions (near the center point of the microphone array), two sweep waves are played to obtain test audio. The relationship between the different phase consistencies at different frequency points and the distance difference between the microphone pairs is used to calculate the high-precision microphone array phase consistency test results after eliminating the distance error. Compared with the single sweep wave method, only one sweep wave test is added to eliminate the distance error, greatly improving the test accuracy. Compared with the multiple sweep wave method, only two sweep waves need to be played, the test efficiency is higher, and no error in the initial response time of the microphone is introduced. The test efficiency is high and the accuracy is high. In addition, based on the geometric relationship between the test equipment and the device to be tested, the relationship between the distance difference between different microphone pairs and the sound source is obtained. After obtaining the distance difference of a pair of microphones, the distance difference of other microphone pairs is obtained by using the established distance difference relationship, and the phase consistency results of other microphone pairs can be quickly obtained.
[0192] Some embodiments of the present application further provide a computer-readable storage medium that may store a program. When the computer storage medium is configured in a display device or server, the program, when executed, may include the program steps involved in the function demonstration method in the above embodiment. The computer storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0193] An embodiment of the present application provides an electronic device comprising: a processor and a memory for storing processor-executable instructions, wherein the processor is configured to read the executable instructions from the memory and execute the instructions to implement the function demonstration method in the above embodiment.
[0194] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
[0195] For ease of explanation, the above description has been presented in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations are possible. The above embodiments have been selected and described to better explain the principles and practical applications, thereby enabling those skilled in the art to better utilize the embodiments and various variations of the embodiments suitable for specific use considerations.
Claims
1. A terminal device, characterized in that: include: monitor; The controller is configured as: Controlling the sound source to play a first frequency sweep wave, and obtaining first recording data collected by a first microphone in the microphone array and second recording data collected by a second microphone in the microphone array; After moving the position of the sound source, controlling the sound source to play a second frequency sweep wave, and obtaining third recording data collected by the first microphone and fourth recording data collected by the second microphone; Calculating a first test phase difference at a plurality of frequency points according to the first recording data and the second recording data, the first test phase difference including a first frequency test phase difference at the first frequency point and a second frequency test phase difference at the second frequency point; Calculating a second test phase difference at multiple frequency points based on the third recorded data and the fourth recorded data, wherein the second test phase difference includes a third frequency test phase difference at the first frequency point and a fourth frequency test phase difference at the second frequency point; Calculating a first distance phase difference based on the first frequency point test phase difference, the second frequency point test phase difference, the third frequency point test phase difference, and the fourth frequency point test phase difference, where the first distance phase difference includes a phase difference caused by different distances between the first microphone and the second microphone and the sound source when playing the first frequency sweep wave; The first test phase differences of the multiple frequency points are subtracted from the first distance phase difference to obtain actual phase differences of the multiple frequency points.
2. The terminal device according to claim 1, wherein: The first microphone and the second microphone are at the same distance from the center of the microphone array, and the sound source is aligned with the center of the microphone array.
3. The terminal device according to claim 2, characterized in that The controller is further configured to: When controlling the sound source to play the first frequency sweep wave, obtaining fifth recording data collected by a third microphone in the microphone array and sixth recording data collected by a fourth microphone in the microphone array, wherein the microphones in the microphone array are spaced the same distance apart, and the third microphone and the fourth microphone are at the same distance from the center of the microphone array; Calculating a third test phase difference at multiple frequency points according to the fifth recording data and the sixth recording data; Calculating a second distance phase difference based on the first distance phase difference and a positional relationship between the third microphone and the first microphone, where the second distance phase difference includes a phase difference caused by different distances between the third microphone and the fourth microphone and the sound source; The third test phase difference of the multiple frequency points is subtracted from the second distance phase difference to obtain the actual phase difference of the multiple frequency points.
4. The terminal device according to claim 3, characterized in that The controller calculates the second distance phase difference based on the first distance phase difference and the positional relationship between the third microphone and the first microphone, and is further configured to: Calculating a target multiple based on a positional relationship between the third microphone and the first microphone; The target multiple is multiplied by the first distance phase difference to obtain the second distance phase difference.
5. The terminal device according to claim 4, characterized in that The controller calculates the target multiple according to the positional relationship between the third microphone and the first microphone, and is further configured to: Obtaining the number of microphones between the third microphone and the first microphone; The target multiple is calculated based on the quantity.
6. The terminal device according to claim 5, characterized in that When the first microphone and the second microphone are closest to the center of the microphone array, the target multiple is calculated based on the number: N=1+2(n+1), where N is the target multiple and n is the number of microphones between the third microphone and the first microphone.
7. The terminal device according to claim 1, characterized in that The controller calculates a first distance phase difference based on the first frequency point test phase difference, the second frequency point test phase difference, the third frequency point test phase difference, and the fourth frequency point test phase difference, and is further configured to: According to the first frequency point test phase difference, the second frequency point test phase difference, the third frequency point test phase difference and the fourth frequency point test phase difference, the equation is obtained: D 1-1 =ζ 1-1 +Y1; D 1-2 =ζ 1-2 +Y1; D 2-1 =ζ 1-1 +Y2; D 2-2 =ζ 1-2 +Y2; Among them, Δ 1-1 is the first frequency point test phase difference, Δ 1-2 is the phase difference of the second frequency point test, Δ 2-1 is the phase difference of the third frequency point test, Δ 2-2 is the phase difference tested at the fourth frequency point, ζ 1-1 is the actual phase difference of the first frequency point, ζ 2-1 is the actual phase difference at the second frequency point, Y1 is the first distance phase difference, and Y2 is the phase difference caused by the distance difference between the first microphone and the second microphone and the sound source when playing the second frequency sweep wave; Solve the equation to get the first range phase difference.
8. The terminal device according to claim 1, wherein: Before controlling the sound source to play the first frequency sweep wave, the controller is further configured to: Controlling the sound source to play a sweep frequency wave and obtaining standard microphone recording data collected by a standard microphone; The sound source is calibrated according to the standard microphone recording data so that the sound pressure of the sound source is calibrated to a preset value.
9. A microphone array phase consistency testing method, characterized in that: include: Controlling the sound source to play a first frequency sweep wave, and obtaining first recording data collected by a first microphone in the microphone array and second recording data collected by a second microphone in the microphone array; After moving the position of the sound source, controlling the sound source to play a second frequency sweep wave, and obtaining third recording data collected by the first microphone and fourth recording data collected by the second microphone; Calculating a first test phase difference at a plurality of frequency points according to the first recording data and the second recording data, the first test phase difference including a first frequency test phase difference at the first frequency point and a second frequency test phase difference at the second frequency point; Calculating a second test phase difference at multiple frequency points based on the third recorded data and the fourth recorded data, wherein the second test phase difference includes a third frequency test phase difference at the first frequency point and a fourth frequency test phase difference at the second frequency point; Calculating a first distance phase difference based on the first frequency point test phase difference, the second frequency point test phase difference, the third frequency point test phase difference, and the fourth frequency point test phase difference, where the first distance phase difference includes a phase difference caused by different distances between the first microphone and the second microphone and the sound source when playing the first frequency sweep wave; The first test phase differences of the multiple frequency points are subtracted from the first distance phase difference to obtain actual phase differences of the multiple frequency points.
10. The method according to claim 9, characterized in that The first microphone and the second microphone are at the same distance from the center of the microphone array, and the sound source is aligned with the center of the microphone array.
Citation Information
Patent Citations
Phase test system, method and device for microphone array, equipment and medium
CN111050268A
Microphone array consistency detection method and detection device
CN112153548A
Method and system for detecting consistency of microphone array, and computer readable storage medium
CN112672265A
Method, equipment, device and system for evaluating consistency of microphone array
CN116437280A
Phase test method and system of vehicle-mounted microphone array, and vehicle
CN118524339A