A method for testing the phase consistency of terminal devices and microphone arrays
Patent Information
- Application Number
- CN202510634046.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-16
- Publication Date
- 2026-09-01
- Estimated Expiration
- 2045-05-16
AI Technical Summary
[0004]但由于不同麦克风的测试音频录制的不是同一次扫频波,假设为4麦克风阵列,则4个扫频录音文件来源于声源播放的四次扫频波,虽然保证麦克到声源的距离一致,但是这种方法忽略了时间的一致性,需要手动从音频中截取录制的扫频波,也会包含麦克风起始响应速度不同带来的相位差值
[0042]The above technical solution has the following advantages or beneficial effects: In the same frequency sweep test, the distance difference between the microphone and the sound source is the same at different frequencies, but the phase difference is often different. By arbitrarily selecting two frequencies from the first frequency sweep, two equations are obtained. Similarly, by selecting the same two frequencies from the second frequency sweep and testing their phase differences, two equations are also obtained. Solving these equations yields the first distance-phase difference. This first distance-phase difference can be used to compensate for the distance error to different microphones caused by the test phase difference, thus improving test accuracy.
Smart Images

Figure CN120676304B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of microphone array phase consistency testing technology, and in particular to a terminal device and a microphone array phase consistency testing method. Background Technology
[0002] Products with intelligent voice functionality are generally equipped with microphone arrays. For example, televisions, projectors, air conditioners, and speakers typically use 2, 4, or 6 microphones. Intelligent voice systems perform sound source localization and voice enhancement based on the distance difference between the sound source and the microphone array. Therefore, the phase consistency of the microphone array is crucial to voice performance, making the testing of phase consistency parameters particularly important.
[0003] Phase consistency can be tested using a multiple frequency sweep test. The specific method involves moving the microphone array so that each microphone is sequentially pointed at a sound source, playing a frequency sweep wave sequentially, obtaining recordings for each microphone, and then calculating the phase difference.
[0004] However, since the test audio recorded by different microphones does not originate from the same frequency sweep, assuming a 4-microphone array, the four frequency sweep recordings originate from four frequency sweeps played from the sound source. Although this method ensures a consistent distance between the microphone and the sound source, it ignores temporal consistency, requiring manual extraction of the recorded frequency sweep from the audio. It also includes phase differences due to varying microphone initial response speeds. Because the microphone array needs to be moved multiple times to ensure consistent microphone-sound-source distances and multiple test audio acquisitions are required, the testing process is cumbersome and time-consuming. This method has low testing efficiency and accuracy. Summary of the Invention
[0005] Some embodiments of this application provide a method for testing the phase consistency of a terminal device and a microphone array. This method can calculate the distance phase difference between two microphones due to their different distances from the sound source by playing a frequency sweep wave twice using only the sound source. The distance phase difference is then removed from the test phase differences at multiple frequency points to obtain more accurate test results. At the same time, it reduces the number of times the frequency sweep wave is played, thus improving test efficiency.
[0006] In a first aspect, some embodiments of this application provide a terminal device, including:
[0007] monitor;
[0008] The controller is configured as follows:
[0009] Control the sound source to play the first frequency sweep wave, and acquire the first recording data collected by the first microphone in the microphone array and the second recording data collected by the second microphone in the microphone array;
[0010] After moving the sound source to a new position, control the sound source to play a second frequency sweep wave, and acquire the third recording data collected by the first microphone and the fourth recording data collected by the second microphone.
[0011] The first test phase difference of multiple frequency points is calculated based on the first recording data and the second recording data. The first test phase difference includes the first frequency point test phase difference of the first frequency point and the second frequency point test phase difference of the second frequency point.
[0012] The second test phase difference of multiple frequency points is calculated based on the third and fourth recording data. The second test phase difference includes the third frequency test phase difference of the first frequency point and the fourth frequency test phase difference of the second frequency point.
[0013] The first distance phase difference is calculated based on the phase difference of the first frequency point test, the phase difference of the second frequency point test, the phase difference of the third frequency point test, and the phase difference of the fourth frequency point test. The first distance phase difference includes the phase difference caused by the different distances between the first microphone and the second microphone and the sound source when the first frequency sweep wave is played.
[0014] Subtract the first test phase difference from the first distance phase difference at multiple frequency points to obtain the actual phase difference at multiple frequency points.
[0015] The above technical solution has the following advantages or beneficial effects: by playing the frequency sweep wave twice using only the sound source, the distance phase difference between the two microphones due to their different distances from the sound source can be calculated, and the distance phase difference can be removed from the test phase difference of multiple frequency points to obtain more accurate test results. At the same time, the number of times the frequency sweep wave is played is reduced, thus 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: it can keep the distance between the first microphone and the sound source as similar 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.
[0018] In some embodiments, the controller is further configured to:
[0019] When controlling the sound source to play the first frequency sweep wave, the fifth recording data collected by the third microphone in the microphone array and the sixth recording data collected by the fourth microphone in the microphone array are acquired. The microphones in the microphone array are spaced at the same distance, and the third microphone and the fourth microphone are at the same distance from the center of the microphone array.
[0020] Calculate the third test phase difference at multiple frequency points based on the fifth and sixth recording data;
[0021] The second distance phase difference is calculated based on the first distance phase difference and the positional relationship between the third microphone and the first microphone. The second distance phase difference includes the phase difference caused by the different distances of the third microphone and the fourth microphone from the sound source.
[0022] Subtract the third test phase difference from the second distance phase difference at multiple frequency points to obtain the actual phase difference at multiple frequency points.
[0023] The above technical solution has the following advantages or beneficial effects: Based on the positional relationship between 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 frequency sweep waves need to be played to obtain the phase difference results of other microphone pairs, thus improving testing efficiency.
[0024] In some embodiments, the controller performs the calculation of a second distance phase difference based on a first distance phase difference and the positional relationship between the third microphone and the first microphone, which is further configured to:
[0025] Calculate the target multiplier based on the positional relationship between the third microphone and the first microphone;
[0026] Multiply the target multiplier by the first distance phase difference to obtain the second distance phase difference.
[0027] The above technical solution has the following advantages or beneficial effects: Based on the positional relationship between the microphones, the multiple relationship between the distance differences between different microphone pairs and the sound source is determined. After the distance difference of the first pair of microphones has been calculated, the distance difference of other microphone pairs can be quickly obtained according to the multiple relationship, thereby calculating the phase difference results of other microphone pairs and improving testing efficiency.
[0028] In some embodiments, the controller performs the calculation of the target multiplier 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 the target multiple based on the quantity.
[0031] The above technical solution has the following advantages or beneficial effects: the target multiplier 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 can be calculated based on the target multiplier, thereby quickly calculating the phase difference result between the third microphone and the fourth microphone and improving the testing 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 as: 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 under test, 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 according to the multiple relationship. There is no need to perform complex calculations based on the recording data collected by the frequency sweep microphones during two playbacks, thus improving the testing efficiency.
[0034] In some embodiments, the controller performs the calculation of a first distance phase difference based on the test phase difference at a first frequency point, a second frequency point, a third frequency point, and a fourth frequency point, and is further configured to:
[0035] Based on the phase difference measured at the first frequency point, the second frequency point, the third frequency point, and 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] Where, Δ 1-1 For the first frequency point, the phase difference is measured, Δ 1-2 For the second frequency point, the phase difference is measured, Δ 2-1 For the phase difference test at the third frequency point, Δ 2-2 For the fourth frequency point, the phase difference is measured, ζ 1-1 ζ represents the actual phase difference at the first frequency point. 2-1 Y1 is the actual phase difference at the second frequency point, Y2 is the phase difference caused by the distance difference between the first and second microphones and the sound source when playing the second frequency sweep wave;
[0041] Solve the equation to obtain the first distance phase difference.
[0042] The above technical solution has the following advantages or beneficial effects: In the same frequency sweep test, the distance difference between the microphone and the sound source is the same at different frequencies, but the phase difference is often different. By arbitrarily selecting two frequencies from the first frequency sweep, two equations are obtained. Similarly, by selecting the same two frequencies from the second frequency sweep and testing their phase differences, two equations are also obtained. Solving these equations yields the first distance-phase difference. This first distance-phase difference can be used to compensate for the distance error to different microphones caused by the test phase difference, thus 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 a frequency sweep wave and acquire the standard microphone recording data collected by the standard microphone;
[0045] The sound source is calibrated based on the recording data from the standard microphone to bring the sound pressure level of the sound source to a preset value.
[0046] The above technical solution has the following advantages or beneficial effects: calibrating the sound source can ensure that the acoustic measurement equipment used has an accurate response at various frequencies, thereby making the measurement results reliable.
[0047] Secondly, some embodiments of this application provide a microphone array phase consistency testing method, including:
[0048] Control the sound source to play the first frequency sweep wave, and acquire the first recording data collected by the first microphone in the microphone array and the second recording data collected by the second microphone in the microphone array;
[0049] After moving the sound source to a new position, control the sound source to play a second frequency sweep wave, and acquire the third recording data collected by the first microphone and the fourth recording data collected by the second microphone.
[0050] The first test phase difference of multiple frequency points is calculated based on the first recording data and the second recording data. The first test phase difference includes the first frequency point test phase difference of the first frequency point and the second frequency point test phase difference of the second frequency point.
[0051] The second test phase difference of multiple frequency points is calculated based on the third and fourth recording data. The second test phase difference includes the third frequency test phase difference of the first frequency point and the fourth frequency test phase difference of the second frequency point.
[0052] The first distance phase difference is calculated based on the phase difference of the first frequency point test, the phase difference of the second frequency point test, the phase difference of the third frequency point test, and the phase difference of the fourth frequency point test. The first distance phase difference includes the phase difference caused by the different distances between the first microphone and the second microphone and the sound source when the first frequency sweep wave is played.
[0053] Subtract the first test phase difference from the first distance phase difference at multiple frequency points to obtain the actual phase difference at multiple frequency points.
[0054] The above technical solution has the following advantages or beneficial effects: by playing the frequency sweep wave twice using only the sound source, the distance phase difference between the two microphones due to their different distances from the sound source can be calculated, and the distance phase difference can be removed from the test phase difference of multiple frequency points to obtain more accurate test results. At the same time, the number of times the frequency sweep wave is played is reduced, thus 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: keeping the distance between the first microphone and the sound source as similar 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 this application embodiment, 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 frequency sweep wave. After moving the position of the sound source, third recording data collected by the first microphone and fourth recording data collected by the second microphone are obtained when the sound source plays the second frequency sweep wave. A first test phase difference of multiple frequency points is calculated based on the first and second recording data. The first test phase difference includes the first frequency point test phase difference of the first frequency point and the second frequency point test phase difference of the second frequency point. A third frequency point test phase difference of the first frequency point and the fourth frequency point test phase difference of the second frequency point are calculated based on the third and fourth recording data. Then, a first distance phase difference is calculated, and the first test phase difference of multiple frequency points is subtracted from the first distance phase difference to obtain the actual phase difference of multiple frequency points. This application embodiment can calculate the distance phase difference between the two microphones due to their different distances from the sound source by playing only two frequency sweep waves, and remove the distance phase difference from the test phase differences of multiple frequency points to obtain more accurate test results, while reducing the number of frequency sweep wave playbacks and improving test efficiency. Attached Figure Description
[0058] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the 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.
[0059] Figure 1A schematic diagram illustrating the connection of a first microphone array phase consistency test device provided in some embodiments of this application;
[0060] Figure 2 A flowchart illustrating a microphone array phase consistency testing method provided in some embodiments of this application;
[0061] Figure 3 A schematic diagram illustrating the alignment of a sound source with the center of a microphone array, provided for some embodiments of this application;
[0062] Figure 4 A schematic diagram of a 4-mic linear microphone array provided for some embodiments of this application;
[0063] Figure 5 A flowchart illustrating a second microphone array phase consistency testing method provided in some embodiments of this application;
[0064] Figure 6 A schematic diagram illustrating the positional relationship between a sound source and the center of a microphone array, provided for some embodiments of this application;
[0065] Figure 7 A flowchart illustrating a third microphone array phase consistency testing method provided in some embodiments of this application;
[0066] Figure 8 A flowchart illustrating a fourth microphone array phase consistency test method provided in some embodiments of this application;
[0067] Figure 9 A schematic diagram illustrating the spatial location of a sound source and a microphone array, provided for some embodiments of this application;
[0068] Figure 10 A timing diagram of a microphone array phase consistency test method provided for some embodiments of this application. Detailed Implementation
[0069] The embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described below do not represent all embodiments consistent with this application. They are merely examples of systems and methods consistent with some aspects of this application as detailed in the claims.
[0070] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.
[0071] The terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related objects or entities, and do not necessarily imply a specific order or sequence, unless otherwise specified. It should be understood that such terms are interchangeable where appropriate.
[0072] The terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device that includes a range of components is not necessarily limited to all of the components that are clearly listed, but may include other components that are not clearly listed or that are inherent to such product or device.
[0073] The term "module" refers to any known or subsequently developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.
[0074] In this embodiment, the terminal device is a device that inputs programs and data to a computer or receives processing results from the computer via communication facilities. The terminal device is typically located in a convenient location where it can connect to a remote computer using communication facilities, and it mainly consists of a communication interface control device combined with dedicated or selected input / output devices.
[0075] Terminal devices include, but are not limited to, smart TVs, mobile terminals, computers, wearable devices, virtual reality devices, and augmented reality devices. Mobile terminals include, but are not limited to, laptops, tablets, and smartphones.
[0076] Terminal equipment may include a display, communication device, controller, and user input interface.
[0077] In some embodiments, the display includes display function components for presenting an image and driving components for driving the image display. The display is used to receive and display image signals from the controller. For example, the display can be used to display video content, image content, menu control interface components, and user interface (UI) components, etc.
[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 have multiple communication devices depending on the communication methods it supports. For example, when a terminal device supports wireless network communication, it may have a communication device that includes WiFi functionality. When a terminal device supports Bluetooth connectivity, it needs to have a communication device that includes Bluetooth functionality.
[0079] Communication devices can connect terminal devices to external devices or servers via wireless or wired connections. Wired connections use data cables, interfaces, and other components to link the terminal device to the external device. Wireless connections use wireless signals or wireless networks. Terminal devices can establish direct connections to external devices or indirectly through gateways, routers, or other connection devices.
[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 a first to an nth interface for input / output. The controller controls the operation of the terminal device and responds to user operations through various software control programs stored in 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 user input. For example, the user input interface can receive confirmation instructions from the user regarding controls in the user interface. The user input interface can also receive voice data input by the user.
[0082] In some embodiments, such as Figure 1 As shown, the terminal device is equipped with an audio interface, through which a sound source can be connected. The microphone array under test can also be connected to the terminal device via the audio interface. A standard microphone can also be connected to the terminal device via the audio interface.
[0083] The terminal device may have a microphone testing application installed. Upon receiving a command to launch the microphone testing application, the terminal device displays the microphone testing application page. After receiving a user's command to calibrate the sound source on the microphone testing application page, the terminal device sends a playback command to the sound source to play a frequency sweep wave and receives standard microphone recording data. The microphone testing application then calibrates the sound source based on this standard microphone recording data.
[0084] After the sound source calibration is complete, the microphone array under test is placed in the designated position. Upon receiving the user's command to start the test in the microphone test application page, a playback command is sent to the sound source to play the first frequency sweep wave and receive the first recording data collected by multiple microphones in the microphone array under test. The position of the microphone array under test is moved, and upon receiving the user's command to test again in the microphone test application page, a playback command is sent to the sound source to play the second frequency sweep wave and receive the second recording data collected by multiple microphones in the microphone array under test. Two frequency points are randomly selected, and the test phase difference between the two frequency points is calculated based on the two recording data. The distance phase difference is then calculated based on the test phase difference, and the distance phase difference is subtracted from the test phase differences of multiple frequency points to obtain a more accurate microphone array phase difference value.
[0085] Products with intelligent voice functionality are generally equipped with microphone arrays. For example, televisions, projectors, air conditioners, and speakers typically feature 2, 4, or 6 microphones. Intelligent voice systems perform sound source localization and voice enhancement based on the distance difference between the sound source and the microphone array. Therefore, the phase consistency of the microphone array is crucial to voice performance, making the testing of phase consistency parameters particularly important. Phase consistency is defined as the phase difference between the output data of different microphones when the sound source reaches each microphone in the microphone array at the same distance.
[0086] In some embodiments, the phase consistency test method includes a multiple frequency sweep test method. Specifically, the multiple frequency sweep test method may involve: moving the microphone array so that the microphones are sequentially pointed at the sound source, playing the frequency sweep wave sequentially, obtaining the recording file for each microphone, and calculating the phase difference.
[0087] However, since the test audio recorded by different microphones does not originate from the same frequency sweep, assuming a 4-mic array, the four frequency sweep recordings originate from four frequency sweeps played from the sound source. Although this ensures a consistent distance between the microphone and the sound source, it ignores temporal consistency, potentially introducing sound source response errors and other random errors. If the operator manually extracts the recorded frequency sweep from the audio, it will also include phase differences due to varying microphone initial response speeds. Because the microphone array needs to be moved multiple times to ensure consistent microphone-sound source distances, and multiple test audio acquisitions are required, the testing process is cumbersome and time-consuming. Therefore, the multiple frequency sweep testing method has low testing efficiency and accuracy.
[0088] In some embodiments, the phase consistency test method includes a single-sweep test method. Specifically, the single-sweep test method involves aligning the sound source with the center of the microphone array, playing a single sweep wave to obtain multi-channel recorded audio from the microphone array, and calculating the phase difference in pairs. Two microphones equidistant from the sound source form one pair; for example, a 4-microphone array has two pairs. This method is highly efficient, but aligning the sound source with the center of the microphone array is often difficult. If the sound source deviates from the microphone center, the actual distances to the two microphones will not be equal, resulting in a distance difference. Furthermore, the distance difference varies between microphone pairs at different locations. This distance difference can lead to significant test errors.
[0089] In summary, the sources of error in the phase consistency test system are: 1) source response time error and other random errors when playing the sweep wave at different times; 2) time error caused by manually extracting the sweep wave from different audio; 3) the test system error mainly comes from the distance error caused by the sound source misaligning with the microphone array.
[0090] The main source of error in the single-sweep frequency test method is distance error. Since only one sweep wave is played, there are no source response errors or other time-introduced errors. Because multiple microphone recordings are acquired simultaneously, multiple audio streams can be extracted at the same time, eliminating the need to extract audio sequentially from different time points in the recording file, thus avoiding time errors. Therefore, the test accuracy can be improved simply by eliminating distance errors from the single-sweep frequency test method.
[0091] To improve testing efficiency and accuracy, this application provides a terminal device, and further improves some functions of the terminal device. For example... Figure 2 As shown, the controller causes the terminal device to perform the following steps by running the application:
[0092] Step S201: Control the sound source to play the first frequency sweep wave, and acquire the first recording data collected by the first microphone in the microphone array and the second recording data collected by the second microphone in the microphone array.
[0093] In some embodiments, the microphone array phase testing equipment mainly includes a sound source, a standard microphone, and a terminal device. To facilitate measurement and improve testing accuracy, the microphone array phase testing equipment may also include a three-dimensional displacement stage, a table, and a laser collimator. The sound source is fixed on the three-dimensional displacement stage, allowing it to move in three-dimensional space and adjust its relative position to the microphone array. The laser collimator is placed at the sound source's output port and can be used to calibrate the distance between the sound source and the microphone array. The table is used to place the microphone array under test, and the terminal device is used to control the sound source's output, acquire recording data from the standard microphone and the microphone array, and perform data processing.
[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 sound wave emitted by the sound source is aligned with the microphone array size to a set value. The method for calibrating the microphone may be: controlling the sound source to play the frequency sweep wave, acquiring standard microphone recording data, and calibrating the sound source based on the standard microphone recording data to calibrate the sound pressure level of the sound source to a preset value.
[0095] Before using a standard microphone to calibrate the sound source, it is necessary to adjust the spatial position between the center of the microphone array and the sound source so that the sound source's output port is directly opposite the center of the microphone array.
[0096] In some embodiments, a T-shaped mold can be customized, with the center of the microphone array located 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's output port is directly opposite the center of the microphone array.
[0097] In some embodiments, a laser collimator can be used to align the sound source's output aperture with the center of the microphone array. The core of the laser collimator is the emission of a very fine and stable laser beam, which serves as a reference line. A receiver, i.e., a photoelectric sensor, is placed at the point to be measured, detects the position of the laser beam, and calculates the deviation value using software. The operator then adjusts the position of the sound source or microphone array center based on the deviation value until the desired accuracy is achieved.
[0098] One method for aligning the sound source's output aperture with the center of the microphone array is as follows: Place the laser at the sound source's output aperture, aligning the laser beam emitted by the laser with the center of the output aperture; place the receiver at the center of the microphone array, aligning the receiver with the center of the microphone array. Adjust the position of the sound source so that the laser beam emitted by the laser illuminates the center of the microphone array.
[0099] like Figure 3 As shown, place the laser at the sound source's output hole, aligning the laser beam emitted by the laser with the center of the sound source's output hole. Adjust the three-dimensional displacement 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, the laser can be removed, and the aligning position of the sound source with the microphone array can be left unchanged.
[0100] Place the standard microphone at the center of the microphone array. First, set the target sound pressure level (SPL) to a preset value according to requirements, such as 60 dB or 90 dB. The preset value is usually selected based on actual application needs or industry standard requirements. After receiving the calibration command input by the user, the terminal device sends a playback command to the sound source to make the sound source emit a frequency sweep wave. The SPL of the sound source during the first playback may not match the set preset value. The terminal device acquires the standard microphone recording data and analyzes the SPL and frequency response parameters of the standard microphone recording data. Based on the analysis results, the terminal device automatically adjusts the sound pressure level emitted by the sound source and then repeats the above steps, that is, emits a frequency sweep signal again, records, and analyzes. This process will continue until the measured SPL matches the preset value. Once the required target SPL is reached and the specified tolerance range is met at all relevant frequency points, the calibration is considered complete.
[0101] After the sound source calibration is complete, the standard microphone can be removed, and the microphone array under test can be placed on a table, aligning the center of the microphone array under test with the center of the microphone array. Upon receiving the user's test input command, the terminal device sends a playback command to the sound source, causing the sound source to play the first frequency sweep wave. The terminal device can then acquire the first recording data collected by the first microphone in the microphone array under test 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 modulated signal or a chirped signal, is a signal whose frequency changes gradually over time. In a swept frequency wave, the frequency is not fixed, but rather changes smoothly from a starting frequency to a ending frequency.
[0103] In some embodiments, two microphones in the microphone array under test can be selected as the first microphone and the second microphone. For example... 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, where the first microphone can be microphone 1 and the second microphone can be microphone 2.
[0104] In some embodiments, microphones equidistant from the center of the microphone array can be considered 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, let the 4 microphones be 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 moving the position of the sound source, control the sound source to play the second frequency sweep wave, and acquire the third recording data collected by the first microphone and the fourth recording data collected by the second microphone.
[0106] After the first frequency sweep is completed, the position of the movable sound source can be determined. This can be done manually by an operator or by the terminal device controlling a three-dimensional displacement stage, thereby moving the sound source.
[0107] In some embodiments, after the operator manually moves the sound source position a certain distance, the terminal device, in response to the user's input of a retest command, sends a replay command to the sound source, causing the sound source to play a second frequency sweep wave. The terminal device can acquire 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 a message indicating that the first frequency sweep wave playback is complete from the sound source, the terminal device sends a movement command to the sound source or the three-dimensional displacement stage. The sound source or the three-dimensional displacement stage responds to the movement command, moves a certain distance, and sends a movement completion message to the terminal device. The terminal device then sends a replay command to the sound source to cause the sound source to play a second frequency sweep wave. The terminal device can acquire 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. The embodiments of this application can reduce user operations, automatically complete the sound source movement and frequency sweep wave playback, and improve testing convenience.
[0109] It should be noted that the embodiments of this application do not limit the direction and distance of sound source movement. To improve the accuracy of 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 moved slightly along the direction of the microphone array, causing it to deviate by a small distance.
[0110] In some embodiments, the microphone array phase consistency test method can be as follows: Figure 5 As shown. First, adjust the spatial position of the sound source relative to the center of the microphone array. Then, place a standard microphone at the center of the microphone array and use the standard microphone to calibrate the sound source. After placing the microphone array under test at the center of the microphone array, play the first frequency sweep wave to acquire the recording data collected by the microphone array under test. After adjusting the spatial position of the sound source, play the second frequency sweep wave to acquire the recording data collected by the microphone array under test. Finally, calculate the phase difference based on the two recording data.
[0111] Step S203: Calculate the first test phase difference of multiple frequency points based on the first recording data and the second recording data. The first test phase difference includes the first frequency point test phase difference of the first frequency point and the second frequency point test phase difference of the second frequency point.
[0112] The first recording data and the second recording data are sounds emitted from the same sound source simultaneously recorded by the first microphone and the second microphone, and the recording is performed synchronously.
[0113] A specific implementation of calculating the first test phase difference of multiple frequency points based on the first and second recorded data may include: selecting the same short time interval from the first and second recorded data according to 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 interval to convert the time-domain signal into the frequency domain. It should be noted that since the first and second recorded data are recorded simultaneously, temporal consistency can be ensured when truncating the recorded data, avoiding microphone sound source response errors and phase difference values caused by different microphone start response speeds resulting from manually truncating recorded data in multiple frequency sweep methods.
[0114] After obtaining the frequency domain, for each frequency point, the phase angles corresponding to the first and second recording data are obtained respectively. The phase difference can be obtained by calculating the phase angle difference 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 recording data collected by the first microphone and the second recording data collected by the second microphone at frequency f, respectively.
[0115] Phase difference can be the difference in phase angles, or the phase angles can be converted into physical distances and the difference in physical distances can be used to characterize the phase difference.
[0116] The steps to convert phase angle to physical distance may include: 1) Determining the speed of sound: Obtain the speed of sound v in the medium. For sound waves in air, the speed of sound at room temperature is approximately 343 m / s. 2) Calculating the wavelength: The wavelength λ can be calculated based on the wave frequency f, λ = v / f, where v is the speed of sound and f is the frequency of the sound wave. 3) Converting phase angle difference to radians: If the phase angle difference is in radians, no conversion is needed. If the phase angle difference is in degrees, it needs to be converted to radians using the formula radians = π / 180 × degrees. 4) Calculating the path (physical distance) difference: There is a direct relationship between phase difference and wavelength, which can be used to calculate the path difference Y between 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] Choose any two frequency points from the first test phase differences of multiple frequency points, namely the first frequency point test phase difference of the first frequency point and the second frequency point test phase difference of the second frequency point.
[0118] Step S204: Calculate the second test phase difference of multiple frequency points based on the third recording data and the fourth recording data. The second test phase difference includes the third frequency point test phase difference of the first frequency point and the fourth frequency point test phase difference of the second frequency point.
[0119] Among them, the third and fourth recording data are sounds emitted from the same sound source simultaneously recorded by the first and second microphones, and the recording is carried out synchronously.
[0120] One specific implementation for calculating the second test phase difference at multiple frequency points based on the third and fourth recorded data may include: selecting the same short time interval from the third and fourth recorded data, and then applying a Fourier transform, typically a Fast Fourier Transform, to the signal within the selected time interval to convert the time-domain signal into the frequency domain. It should be noted that since the third and fourth recorded data are recorded simultaneously, temporal consistency can be ensured when truncating the recorded data, avoiding microphone source response errors and phase difference values caused by different microphone initial response speeds resulting from manually truncating recorded data in multiple frequency sweep methods.
[0121] After acquiring the frequency domain, for each frequency point, the phase angles corresponding to the third and fourth recorded data are obtained respectively. 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 recorded data acquired by the first microphone and the fourth recorded data acquired by the second microphone at frequency f, respectively. The phase difference can be the difference in phase angles, or the phase angles can be converted into physical distances and the difference in physical distances can be used to characterize the phase difference.
[0122] Select the third frequency point test phase difference of the first frequency point and the fourth frequency point test phase difference of the second frequency point from the second test phase differences of multiple frequency points.
[0123] In some embodiments, a first test phase difference of multiple frequency points can be calculated based on the first and second recording data. Then, the first and second frequency points are selected from the multiple frequency points, and the first test phase difference of the first frequency point and the second test phase difference of the second frequency point are obtained. Based on the third and fourth recording data, only the third test phase difference of the first frequency point and the fourth test phase difference of the second frequency point need to be calculated.
[0124] In some embodiments, when selecting a first frequency point and a second frequency point from multiple frequency points, the test phase difference of the first frequency point and the test phase difference of the second frequency point can be calculated only based on the first and second recording data. Then, the second test phase differences of multiple frequency points are calculated based on the third and fourth recording data, and the test phase difference of the third frequency point and the test phase difference of the fourth frequency point of the second frequency point are obtained.
[0125] It should be noted that after acquiring the first recording data collected by the first microphone and the second recording data collected by the second microphone, the first test phase difference of multiple frequency points can be directly calculated based on the first recording data and the second recording data.
[0126] Step S205: Calculate the first distance phase difference based on 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.
[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 microphone array phase consistency testing, two microphones equidistant from the sound source can be selected for testing. To ensure both microphones are equidistant from the sound source, microphones equidistant from the center of the microphone array can be chosen. For example... 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] While it's possible to align the sound source with the center of the microphone array as closely as possible, various factors will inevitably introduce some error. For example, such as... 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 under test. This may result in a difference in the distance from the first microphone to the sound source and the distance from the second microphone to the sound source, thus still causing a distance phase difference. For example, if the center position of the microphone array is incorrectly marked, or if 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 these reasons can be represented by a first distance phase difference, which includes the phase difference caused by the different distances between the first and second microphones and the sound source during the first frequency sweep.
[0130] A specific implementation of calculating the first distance phase difference based on the phase difference tested at the first frequency point, the second frequency point, the third frequency point, and the fourth frequency point may include: obtaining the following equation based on the phase difference tested at the first frequency point, the second frequency point, the third frequency point, and the fourth frequency point:
[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] Where, Δ 1-1 For the first frequency point, the phase difference is measured, Δ 1-2 For the second frequency point, the phase difference is measured, Δ 2-1 For the phase difference test at the third frequency point, Δ 2-2 For the fourth frequency point, the phase difference is measured, ζ 1-1 ζ represents the actual phase difference at the first frequency point. 2-1 Y1 is the actual phase difference of the second frequency point, Y2 is the phase difference caused by the distance difference between the first and second microphones and the sound source when playing the second frequency sweep wave.
[0136] Solving the above equations yields the first distance phase difference.
[0137] It should be noted that Δ 1-1 Δ 1-2 Δ 2-1 and Δ 2-2 This refers to the specific value already calculated above. Because ζ 1-1 With ζ 2-1 This is the actual phase difference between the first and second frequency points, i.e., the true value. The actual phase difference is an inherent characteristic of the microphone and is independent of the sound source location; it does not change with the distance from the sound source. Therefore, the actual phase difference between the two played sweep waves is the same. ζ can be obtained by solving a four-element linear equation. 1-1 ζ 2-1 The values of Y1 and Y2.
[0138] Step S206: Subtract the first test phase difference of multiple frequency points from the first distance phase difference to obtain the actual phase difference of multiple frequency points.
[0139] By subtracting the first test phase difference from the first distance phase difference sequentially at multiple frequency points, the actual phase difference at multiple frequency points can be obtained. This actual phase difference can then be compared with a threshold. If the actual phase difference is greater than the threshold, the phase consistency test between the first and second microphones is considered passed. If the actual phase difference is less than or equal to the threshold, the phase consistency test between the first and second microphones is considered failed.
[0140] In some embodiments, Y2 (the phase difference caused by the distance difference between the first and second microphones and the sound source when playing the second frequency sweep wave) is obtained by solving equations, 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), actual phase difference is ζ 32 The phase error caused by the distance difference is Y1, where 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. To understand the initial test results Δ... 32 After eliminating errors caused by distance differences, high-precision test results are obtained. 32 Analysis shows that in the same frequency sweep test, the distance difference between the microphone and the sound source is the same at different frequencies, but the phase difference is often different. By arbitrarily selecting two frequencies from the first frequency sweep test results, two equations are obtained:
[0142] Δ 32-1 =ζ 32-1 +Y1;
[0143] Δ 32-2 =ζ 32-2 +Y1.
[0144] By selecting the test results of two frequency points identical to those in the first sweep from the second frequency sweep, two equations are obtained:
[0145] Δ2 32-1 =ζ 32-1 +Y2;
[0146] Δ2 32-2 =ζ 32-2 +Y2.
[0147] Solve for the value of Y1 from the above equation. From the preliminary test results Δ 32 By removing Y1, the high-precision phase consistency test results ζ for microphones 2 and 3 at the required frequency can be obtained. 32 .
[0148] Alternatively, solve for the value of Y2 from the above equation. From the preliminary test results Δ2... 32 By removing Y2, the high-precision phase consistency test results ζ for microphones 2 and 3 at the required frequency can be obtained. 32 .
[0149] In some embodiments, such as Figure 7 As shown, the phase difference of other microphone pairs in a microphone array can be tested using the same method. Specific implementation methods may include:
[0150] Step S701: When controlling the sound source to play the first frequency sweep wave, acquire the fifth recording data collected by the third microphone in the microphone array and the sixth recording data collected by the fourth microphone in the microphone array.
[0151] Step S702: While moving the position of the sound source and controlling the sound source 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 acquired.
[0152] It should be noted that when the sound source plays the first and second frequency sweep waves, the microphones in the microphone array under test can collect recording data and send the recording data to the terminal device.
[0153] Step S703: Calculate the third test phase difference of multiple frequency points based on the fifth recording data and the sixth recording data. The third test phase difference includes the fifth frequency point test phase difference of the first frequency point and the sixth frequency point test phase difference of the second frequency point.
[0154] Step S704: Calculate the fourth test phase difference of multiple frequency points based on the seventh recording data and the eighth recording data. The fourth test phase difference includes the seventh frequency test phase difference of the first frequency point and the eighth frequency test phase difference of the second frequency point.
[0155] Step S705: Calculate the second distance phase difference based on the phase difference of the fifth frequency point test, the phase difference of the sixth frequency point test, the phase difference of the seventh frequency point test, and the phase difference of the eighth frequency point test. The second distance phase difference includes the phase difference caused by the different distances between the third and fourth microphones and the sound source when playing the first frequency sweep wave.
[0156] Step S706: Subtract the third test phase difference of multiple frequency points from the second distance phase difference to obtain the actual phase difference of multiple frequency points.
[0157] In other embodiments, the microphones in the microphone array are spaced at the same distance, the first and second microphones are equidistant from the center of the microphone array, and the third and fourth microphones are equidistant from the center of the microphone array. For example... Figure 8 As shown, in order to test the phase difference between the third and fourth microphones, the controller is configured as follows:
[0158] Step S801: When controlling the sound source to play the first frequency sweep wave, the fifth recording data collected by the third microphone in the microphone array and the sixth recording data collected by the fourth microphone in the microphone array are also acquired.
[0159] Step S802: Calculate the third test phase difference of multiple frequency points based on the fifth and sixth recording data.
[0160] Step S803: Calculate the second distance phase difference based on the first distance phase difference and the positional relationship between the third microphone and the first microphone.
[0161] The second distance phase difference includes the phase difference caused by the different distances between the third and fourth microphones and the sound source.
[0162] It should be noted that during testing, a single sound source is emitted, and there is often a certain relationship between the distance differences between different microphone pairs and the sound source. Determining this relationship can simplify the testing and calculation process for the phase consistency of other microphone pairs. Therefore, a geometric relationship model is established starting from the spatial geometric relationship between the test system and the microphone array under test.
[0163] like Figure 9 As shown, taking a linear 4-mic array as an example, let's establish a geometric relationship model. Let the four microphones be 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. However, in reality, there is often a certain offset. Let the horizontal coordinate of the point sound source be 'c' (offset), and the vertical distance between the point sound source and the microphone array be 'b'. Let X be the distance difference from the point sound source to microphones 1 and 4 in the microphone array, and Y be the distance difference from the point sound source to microphones 2 and 3 in the microphone array. Find the relationship between X and Y (i.e., the relationship between the distance differences between the microphones and the sound source). The microphone array is placed horizontally on a platform. Establish a rectangular coordinate system with the center of the microphone array as the origin, the direction of the microphone array arrangement 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 the sound source to the microphone:
[0166]
[0167] 2) Distance difference
[0168] X = d4 - d1;
[0169] Y = d3 - d2.
[0170] Taylor series expansion: Expanding the formula for these distance differences around c. Since c is the horizontal offset between the sound source and the center of the microphone array, the actual value of c is small relative to b and a, so it can be expanded using a Taylor series around c. A second-order Taylor expansion will be used.
[0171] 3) Calculate the expansion
[0172] Expanding d1 and d4, we get:
[0173]
[0174]
[0175] calculate:
[0176]
[0177] Expanding d2 and d3, we get:
[0178]
[0179] calculate:
[0180]
[0181] Therefore, we get: X = 3Y.
[0182] In summary, for a 4-mic array, the distance difference ratio is 1:3. For arrays with more microphones, the same method can be used to derive the distance difference ratio for microphone pairs. For a 6-mic linear array, the ratio is 1:3:5. For a 2a-mic linear array, the ratio is 1:…:1+2(a-1).
[0183] Based on the above distance difference relationship, a specific implementation 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 the 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 multiplier 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 multiplier based on the number.
[0185] When the first and second microphones are closest to the center of the microphone array, the target multiplier is calculated based on the number of microphones: N = 1 + 2(n + 1), where N is the target multiplier 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 microphone 3 as the first microphone and microphone 4 as the second. 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 multiplier 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 multiplier 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 value corresponding to the first and second microphones, and the second value corresponding to the third and fourth microphones, can be determined based on the microphone arrangement. The target multiplier is the ratio of the second value to the first value. Let the 6 microphones be numbered from left to right as microphone 1, microphone 2, microphone 3, microphone 4, microphone 5, and microphone 6, with microphone 2 as the first microphone, microphone 5 as the second microphone, microphone 1 as the third microphone, and microphone 6 as the fourth microphone. From the relationship of the distance differences in the linear array of the 6 microphones as 1:3:5, we know that 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 multiplier is 5 / 3. The second distance-phase difference is 5 / 3 times the first distance-phase difference.
[0187] In other embodiments, the step of determining the target multiplier 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 distance between the microphones, and calculating the target multiplier based on the distance and the distance. The formula is: N = 1 + 2d / a, where N is the target multiplier, d is the distance between the third microphone and the first microphone, and a is the distance between the microphones.
[0188] Step S804: Subtract the third test phase difference of multiple frequency points from the second distance phase difference to obtain the actual phase difference of 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's 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, second, third, and fourth microphones respectively collect the first, second, fifth, and sixth recording data and send them to the terminal device. The terminal device sends a movement command to the sound source. After the sound source moves, it sends a movement 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 and second microphones respectively collect the third and fourth recording data and send them to the terminal device.
[0190] The terminal device calculates the first test phase difference of multiple frequency points based on the first and second recording data, and selects the first frequency point test phase difference and the second frequency point test phase difference. Based on the third and fourth recording data, it calculates the third frequency point test phase difference of the first frequency point and the fourth frequency point test phase difference of the second frequency point. Then, it calculates the first distance phase difference based on the first, second, third, and fourth frequency point test phase differences. Subtracting the first test phase difference of multiple frequency points from the first distance phase difference yields the actual phase difference of multiple frequency points for the first and second microphones. Based on the fifth and sixth recording data, it calculates the third test phase difference of multiple frequency points. Based on the first distance phase difference and the target multiple, it calculates the second distance phase difference. Subtracting the third test phase difference of multiple frequency points from the second distance phase difference yields the actual phase difference of multiple frequency points for the third and fourth microphones.
[0191] This application's embodiments can be used to test the phase consistency of products such as televisions, projectors, and air conditioners with microphone arrays. It improves upon the single-sweep test method by playing two sweep waves at different sound source locations (near the center point of the microphone array), acquiring test audio, and calculating the high-precision microphone array phase consistency test result after eliminating distance errors by utilizing the relationship between the phase consistency differences at different frequency points and the distance differences between microphone pairs. Compared to the single-sweep method, only one additional sweep wave test is needed to eliminate distance errors, significantly improving test accuracy. Compared to the multiple sweep method, only two sweep waves need to be played, resulting in higher test efficiency and avoiding the introduction of microphone initial response time errors. It offers high test efficiency and high accuracy. Furthermore, based on the geometric relationship between the test equipment and the device under test, the relationship between the distance differences between different microphone pairs and the sound source is derived. After obtaining the distance difference of one pair of microphones, the established distance difference relationship is used to calculate the distance differences of other microphone pairs, allowing for rapid acquisition of the phase consistency results of other microphone pairs.
[0192] Some embodiments of this application also provide a computer-readable storage medium that can store a program. When the computer storage medium is configured in a display device or server, the program, when executed, can include the program steps involved in the functional demonstration method in the above embodiments. The computer storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0193] This application provides an electronic device, which includes a processor and a memory for storing processor-executable instructions. The processor is configured to read executable instructions from the memory and execute the instructions to implement the functional demonstration method described in the above embodiments.
[0194] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
[0195] For ease of explanation, the above description has been provided 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. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, thereby enabling those skilled in the art to better utilize the embodiments and various different variations of the embodiments suitable for specific application considerations.
Claims
1. A terminal device, characterized by comprising: include: monitor; The controller is configured as follows: Control the sound source to play the first frequency sweep wave, and acquire the first recording data collected by the first microphone in the microphone array and the second recording data collected by the second microphone in the microphone array; After moving the position of the sound source, control the sound source to play a second frequency sweep wave, and acquire the third recording data collected by the first microphone and the fourth recording data collected by the second microphone; Calculate the first test phase difference of multiple frequency points based on the first recording data and the second recording data. The first test phase difference is the first frequency point test phase difference of the first frequency point and the second frequency point test phase difference of the second frequency point. The second test phase difference of multiple frequency points is calculated based on the third recording data and the fourth recording data. The second test phase difference is the third frequency point test phase difference of the first frequency point and the fourth frequency point test phase difference of the second frequency point. The first distance phase difference is calculated 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. The first distance phase difference is the phase difference caused by the different distances between the first microphone and the second microphone and the sound source when the first frequency sweep wave is played. Subtract the first test phase difference of multiple frequency points from the first distance phase difference to obtain the actual phase difference of multiple frequency points.
2. The terminal device according to claim 1, characterized by 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 by The controller is also configured to: When controlling the sound source to play the first frequency sweep wave, the fifth recording data collected by the third microphone in the microphone array and the sixth recording data collected by the fourth microphone in the microphone array are acquired. The microphones in the microphone array are spaced at the same distance, and the third microphone and the fourth microphone are at the same distance from the center of the microphone array. Calculate the third test phase difference for multiple frequency points based on the fifth and sixth recording data; The second distance phase difference is calculated based on the first distance phase difference and the positional relationship between the third microphone and the first microphone. The second distance phase difference is the phase difference caused by the different distances between the third microphone and the fourth microphone and the sound source. Subtract the third test phase difference of multiple frequency points from the second distance phase difference to obtain the actual phase difference of multiple frequency points.
4. The terminal device according to claim 3, characterized by The controller is further configured to calculate a second distance phase difference based on a first distance phase difference and the positional relationship between the third microphone and the first microphone, and to perform the following: Calculate the target multiplier based on the positional relationship between the third microphone and the first microphone; The second distance phase difference is obtained by multiplying the target multiple by the first distance phase difference.
5. The terminal device according to claim 4, characterized by The controller performs the calculation of the target multiplier based on the positional relationship between the third microphone and the first microphone, and is further configured to: Obtain the number of microphones between the third microphone and the first microphone; The target multiple is calculated based on the stated quantity.
6. The terminal device according to claim 5, characterized by 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 as: 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 by The controller, which 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, is further configured to: Based on the phase difference measured at the first frequency point, the phase difference measured at the second frequency point, the phase difference measured at the third frequency point, and the phase difference measured at the fourth frequency point, the following equation is obtained: Δ 1-1 =ζ 1-1 +Y1; Δ 1-2 =ζ 1-2 +Y1; Δ 2-1 =ζ 1-1 +Y2; Δ 2-2 =ζ 1-2 +Y2; wherein, Δ 1-1 is the phase difference tested at the first frequency, Δ 1-2 is the phase difference tested at the second frequency, Δ 2-1 is the phase difference tested at the third frequency, Δ 2-2 is the phase difference tested at the fourth frequency, ζ 1-1 is the actual phase difference at the first frequency, ζ 2-1 is the actual phase difference at the second frequency, 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 the second sweep wave is played. Solve the equation to obtain the first distance phase difference.
8. The terminal device of claim 1, wherein, Before controlling the sound source to play the first frequency sweep wave, the controller is also configured to: Control the sound source to play a frequency sweep wave and acquire the standard microphone recording data collected by the standard microphone; The sound source is calibrated according to the recorded data from the standard microphone so that the sound pressure level of the sound source is calibrated to a preset value.
9. A method for testing the phase consistency of a microphone array, characterized in that, include: Control the sound source to play the first frequency sweep wave, and acquire the first recording data collected by the first microphone in the microphone array and the second recording data collected by the second microphone in the microphone array; After moving the position of the sound source, control the sound source to play a second frequency sweep wave, and acquire the third recording data collected by the first microphone and the fourth recording data collected by the second microphone; Calculate the first test phase difference of multiple frequency points based on the first recording data and the second recording data. The first test phase difference is the first frequency point test phase difference of the first frequency point and the second frequency point test phase difference of the second frequency point. The second test phase difference of multiple frequency points is calculated based on the third recording data and the fourth recording data. The second test phase difference is the third frequency point test phase difference of the first frequency point and the fourth frequency point test phase difference of the second frequency point. The first distance phase difference is calculated 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. The first distance phase difference is the phase difference caused by the different distances between the first microphone and the second microphone and the sound source when the first frequency sweep wave is played. Subtract the first test phase difference of multiple frequency points from the first distance phase difference to obtain the actual phase difference of 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
Method and system for detecting consistency of microphone array, and computer readable storage medium
CN112672265A
Method and Device for Noise Reduction Control Using Microphone Array
US20120197638A1