Microphone array test method, storage medium and electronic equipment
By collecting and analyzing the pickup signals in smart voice devices, the performance indicators of the microphone array are automatically calculated, which solves the problem of high test cost and time-consuming, realizes convenient and efficient microphone array testing, and ensures the high reliability and reliability of the equipment. stability.
Patent Information
- Application Number
- CN202410728580.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-06
AI Technical Summary
Microphone array testing of smart voice devices is expensive and time-consuming. Existing technologies fail to provide effective solutions. As a result, when audio abnormalities occur during use, the device needs to be returned to the original factory or a professional testing room, affecting user experience and R&D progress. .
Provides a microphone array testing method that collects pickup signals in voice equipment, calculates pickup performance indicators, and compares them with preset thresholds to determine the test results and realize automated testing within the device without the need for additional equipment and strict acoustic environments. Supports real-time performance analysis.
It greatly shortens the test time, saves transportation and professional testing costs, improves the convenience and popularity of testing, ensures the high reliability and stability of the microphone array, detects abnormalities in time, and improves user experience and equipment reliability.
Smart Images

Figure CN118612600A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of audio hardware testing, and in particular to a microphone array testing method, device and electronic equipment. Background Art
[0002] With the vigorous promotion of intelligent interactive technology, voice interactive technology has been increasingly used in various terminal devices. In the daily use and R&D testing process of intelligent voice devices, voice function abnormalities often occur due to substandard audio hardware. These abnormalities not only affect the user experience, but also cause problems with the quality of recorded audio during the R&D process, which in turn affects the project progress and R&D costs.
[0003] In actual applications, audio hardware problems of smart voice devices are mainly concentrated on microphone arrays and speaker systems. When smart voice devices have audio anomalies during use, it is usually necessary to return the device to the original manufacturer or send the device to a professional anechoic chamber or semi-anechoic chamber for acoustic testing, which is costly and time-consuming.
[0004] The industry has not yet proposed a better solution to the above problems. Summary of the invention
[0005] The present application provides a microphone array testing method, a storage medium and an electronic device, which are used to at least solve the problem that microphone testing of intelligent voice devices in the current related technology is high in cost and time-consuming.
[0006] In a first aspect, an embodiment of the present application provides a microphone array testing method, comprising: based on a microphone array, collecting a first sound pickup signal in an environment where a voice device plays a preset audio; the microphone array is set on the voice device; based on the first sound pickup signal, calculating at least one sound pickup performance indicator; comparing each of the sound pickup performance indicators with a corresponding preset performance indicator threshold to determine a corresponding microphone array test result.
[0007] According to a second aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the microphone array testing method of any embodiment of the present application.
[0008] In a third aspect, an embodiment of the present application provides a storage medium on which a computer program is stored, characterized in that when the program is executed by a processor, the steps of the microphone array testing method of any embodiment of the present application are implemented.
[0009] In a fourth aspect, an embodiment of the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the microphone array testing method of any embodiment of the present application.
[0010] The beneficial effects of the embodiments of the present application are:
[0011] Testing the microphone array directly on the smart voice device avoids the need to send the device back to the original factory or professional test room, which can greatly shorten the test time and save transportation and professional testing costs. In addition, no additional test equipment is required. The pickup signal is collected and the performance index is calculated in an environment where the voice device plays preset audio. There is no need for strict acoustic environment requirements, which improves the convenience and popularity of the test. In addition, users can perform performance analysis on demand during the daily use of smart voice devices, so that the device can detect audio hardware anomalies in real time. In this way, the high reliability and stability of the microphone array of the voice device in use are ensured. Once an abnormality is found, corresponding measures can be taken quickly to improve the reliability and user experience of the device microphone array in actual applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0013] Figure 1 A flowchart of an example of a microphone array testing method according to an embodiment of the present application is shown;
[0014] Figure 2 An operation flow chart showing an example of calculating a sound pickup performance index according to an embodiment of the present application is shown;
[0015] Figure 3 A flowchart showing another example of a microphone array testing method according to an embodiment of the present application is shown;
[0016] Figure 4 It is a schematic structural diagram of an embodiment of an electronic device of the present application. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0018] It should be noted that the current testing methods for microphone arrays in related technologies mainly include artificial mouth frequency sweep testing and laboratory professional testing.
[0019] In the artificial mouth frequency sweep test, an external artificial mouth is used to play the frequency sweep signal to analyze the hardware performance of the mic (microphone) array, including the signal-to-noise ratio, frequency response consistency, and frequency response fluctuation. Specifically, a specific sound source is played through a sound source player (usually a laptop), and then the signal output by the player is amplified by the power amplifier. The amplified signal is played back by the artificial mouth and picked up by the mic array of the device under test. Then, the audio recorded by the mic array is output to the analysis software for analysis. However, the indicator dimension analyzed by the above scheme is too single, and only the frequency response indicator performance of the mic array is analyzed. But for a complete device, especially an intelligent voice device, the intelligent voice function requires better audio hardware support, and it is far from enough to only analyze the frequency response consistency of the mic array to evaluate the performance of the audio hardware.
[0020] In order to fully test the performance of the microphone array audio hardware, it is generally necessary to conduct professional laboratory testing. Generally speaking, the equipment needs to be sent to an anechoic chamber or a semi-anechoic chamber for professional acoustic testing. At the same time, the echo cancellation effect requires the audio of the echo cancellation node to be pulled separately, and manual operation is required to confirm whether it meets the standard, which results in a large consumption of time and economic costs, and is not conducive to the universal testing of the microphone array.
[0021] It should be emphasized that the above description of the current related technology is only used to help readers understand the technical development route of the present application more clearly, and it should not be considered as prior art and may be a technology implemented in a non-public environment.
[0022] Figure 1 A flowchart of an example of a microphone array testing method according to an embodiment of the present application is shown.
[0023] Regarding the execution subject of the method of the embodiment of the present application, it can be any controller or processor with computing or processing capabilities to significantly improve the efficiency and accuracy of audio hardware detection of intelligent voice devices, reduce maintenance and testing costs, and improve the reliability and user experience of the device in practical applications. In some examples, it can be integrated and configured in an electronic device or terminal through software, hardware, or a combination of software and hardware, and the type of terminal or electronic device can be diverse, such as a mobile phone, a tablet computer, or a desktop computer, etc.
[0024] like Figure 1 As shown, in step S110, based on a microphone array, a first sound pickup signal in an environment where a voice device plays a preset audio is collected, and the microphone array is arranged on the voice device.
[0025] In one example of the embodiment of the present application, the microphone array test can be based on active triggering by the user. For example, when the user actively triggers the intelligent voice interaction software of the voice device, the system automatically runs the microphone array test algorithm to test the microphone array in the voice device. In another example of the embodiment of the present application, the microphone array test can also be automatically run based on settings, such as running regularly once a week or once a month, and both are within the scope of implementation of the embodiment of the present application.
[0026] Here, the preset audio may include sounds of different frequencies and volumes to cover the frequency response range of the microphone array, and the preset audio may be white noise, pink noise, pure tone signal, etc. In a normal use environment of the device, the playback function of the preset audio is started, and each microphone in the microphone array simultaneously collects sound signals to generate a corresponding first sound pickup signal.
[0027] In step S120, at least one sound pickup performance index is calculated according to the first sound pickup signal.
[0028] In some embodiments, the collected first sound pickup signal is preprocessed, including denoising, filtering, normalization and other operations to improve the signal quality. In addition, key features are extracted from the preprocessed signal, such as the signal's spectral characteristics, time domain characteristics, energy distribution, etc., and then specific sound pickup performance indicators are calculated based on the extracted features, such as frequency response, signal-to-noise ratio, delay characteristics, etc. A comprehensive evaluation dimension is provided through a variety of performance indicators to ensure that the various performances of the microphone array are evaluated in detail. In addition, automated indicator calculation and data analysis improve test efficiency and reduce manual intervention.
[0029] In step S130, each sound pickup performance indicator is compared with a corresponding preset performance indicator threshold to determine a corresponding microphone array test result.
[0030] In some embodiments, the calculated sound pickup performance index is compared with a preset threshold value, and a statistical analysis method, such as mean comparison, variance analysis, etc., can be used to determine whether the index is within a qualified range, thereby determining the performance status of the microphone array. Exemplarily, when all performance indicators are within the preset threshold range, the microphone array is determined to be normal. In addition, when certain performance indicators exceed the preset threshold range, it is determined that part of the microphone array performance is unqualified and requires further inspection or repair. In addition, based on the microphone array test results, maintenance personnel can quickly locate microphone array defects, facilitate the provision of targeted solutions, and greatly improve maintenance efficiency.
[0031] In some examples of the embodiments of the present application, the sound pickup performance index includes a channel sound pickup delay. Regarding the implementation method of calculating the channel sound pickup delay, the first channel time domain signal corresponding to each microphone channel and the reference time domain signal of the corresponding reference channel are parsed from the first sound pickup signal. In addition, for the first channel time domain signal of each microphone channel, the cross-correlation function between the first channel time domain signal and the reference time domain signal is calculated, and the delay of the maximum value of the corresponding cross-correlation function is determined as the channel sound pickup delay of the corresponding microphone channel.
[0032] More specifically, the time domain signal of the fixed sound source scene and the time domain signal of the reference channel are received from each microphone channel, and the sampling time is 5 seconds. The middle 3 seconds part is intercepted from the received time domain signal to avoid edge effects, and the intercepted signal y is obtained. i (t) and x(t).
[0033] Calculate each first channel time domain signal y i The cross-correlation function R between the time domain signal x(t) and the reference time domain signal x(t) xy (k):
[0034]
[0035] Where k is the time delay, R xy (k) represents the correlation between two signals at different time delays, and N represents the total number of signal sampling points.
[0036] Find the delay_time corresponding to the maximum value of the cross-correlation function i , which is used to represent the time difference between the first channel time domain signal and the reference time domain signal:
[0037] delay_time i = argmax k R xy (k). Formula (2)
[0038] Further, according to the preset threshold Thdelay Determine whether the delay is within the allowable range. If the delay is within the threshold range, it is considered that the synchronization of the microphone channel meets the standard. Otherwise, there is a risk that the delay of the channel does not meet the standard.
[0039] In some examples of the embodiments of the present application, the sound pickup performance index includes a channel echo suppression amount. Regarding the implementation method of calculating the channel echo suppression amount, the first channel time domain signal corresponding to each microphone channel is parsed from the first sound pickup signal, and the echo cancellation time domain signal after each first channel time domain signal is processed by echo cancellation is collected. Then, each first channel time domain signal and the echo cancellation signal are filtered to obtain each filtered first channel time domain signal and the echo cancellation signal. Then, the first signal average energy corresponding to each filtered first channel time domain signal is calculated, and the second signal average energy corresponding to each filtered echo cancellation signal is calculated. Then, for each first channel time domain signal, the echo suppression energy difference of the corresponding microphone channel is calculated according to the first signal average energy and the second signal average energy corresponding to the first channel time domain signal. Afterwards, based on each of the echo suppression energy differences, the channel echo suppression amount of the corresponding microphone channel is determined.
[0040] More specifically, the original time domain signal in the fixed sound source scenario and the time domain signal after echo cancellation are received from each microphone channel, and the sampling time is 5 seconds.
[0041] The middle 3-second part is intercepted from the received time domain signal to avoid edge effects, and the intercepted signal y is obtained. i (t) and e i (t).
[0042] For each original first channel time domain signal y i (t) and the echo cancellation signal e i (t) Filtering is performed to obtain the filtered signal y′ i (t) and e′ i (t):
[0043] y′ i (t) = filtfilt(b, 1, y i (t)), Formula (3)
[0044] e′ i (t) = filtfilt(b, l, e i (t)), Formula (4)
[0045] Where b is the filter coefficient.
[0046] Calculate the energy mean Y of the filtered signal mean,i and E mean,i :
[0047]
[0048]
[0049] Calculate the echo suppression energy difference (ERLE) for each microphone channel:
[0050]
[0051] Where ERLE i It represents the echo suppression energy difference corresponding to the i-th microphone channel, which can be used as an evaluation index of the channel echo suppression amount of the channel.
[0052] Further, according to the preset threshold Th ERLE Determining ERLE i Is it within the allowed range? If it is within the threshold range, the echo suppression effect of the microphone channel is considered to be up to standard. Otherwise, there is a risk that the echo suppression of the channel does not meet the standard.
[0053] Figure 2 An operational flow chart of an example of calculating a sound pickup performance index according to an embodiment of the present application is shown.
[0054] like Figure 2 As shown, in step S210, a second sound pickup signal of the voice device in a quiet environment is collected based on the microphone array.
[0055] In step S220, a sound pickup performance index is calculated according to the first sound pickup signal and the second sound pickup signal.
[0056] It should be noted that in the process of audio hardware testing, different test items have their own specific needs and purposes, which leads to different processing methods. Some sound pickup performance indicators need to consider the influence of the inherent noise or background noise of the device. For example, testing the frequency response consistency in a quiet scene can evaluate the inherent noise level and uniformity of the microphone, because in the absence of an external sound source, any detected signal should be caused by environmental noise or the noise of the device itself. In this way, the testing needs of more diverse sound pickup performance indicators can be met.
[0057] In some examples of the embodiments of the present application, the sound pickup performance index includes frequency response consistency. Regarding the implementation method of calculating the frequency response consistency, according to the first sound pickup signal, a first frequency response difference value of each microphone channel is calculated. Then, according to the second sound pickup signal, a second frequency response difference value of each microphone channel is calculated. Thereafter, based on the first frequency response difference value and the second frequency response difference value, a frequency response consistency index of each microphone channel is determined.
[0058] Receive the time domain signal corresponding to the preset sampling time length, and intercept the middle part of the signal for short-time Fourier transform to obtain the frequency domain signal Y i (f) Calculate the power spectrum of the frequency domain signal:
[0059] Y power,i (f) = LY i (f)| 2 , Formula (8)
[0060] Calculate the frequency response difference diff for each microphone channel i :
[0061] diff i =max(Y reference,power (f)-Y power,i (f)), Formula (9)
[0062] The frequency response difference diffBn of each microphone channel in the quiet scene and the audio playback scene is calculated by the above method. i and diffWn i .
[0063] Furthermore, diffBn i and diffWn i and the preset threshold Th Wn Compare them to determine whether they all meet the standards, and then obtain the test result of whether the frequency response consistency of the microphone channel meets the standards.
[0064] In some examples of the embodiments of the present application, the sound pickup performance index includes channel signal existence. Regarding the implementation method of channel signal existence, the second channel time domain signal corresponding to each microphone channel is parsed from the second sound pickup signal, and the third signal average energy of each microphone channel for the corresponding second channel time domain signal is calculated. Based on the first signal average energy, the second signal average energy and the third signal average energy, the channel signal existence is determined.
[0065] In this embodiment, by detecting the signal energy distribution in quiet scenes, audio playback scenes, and echo cancellation scenes, it is ensured that the microphone can work normally under different usage conditions. By calculating the average energy of the first signal, the average energy of the second signal, and the average energy of the third signal, the performance of the microphone in various scenes can be comprehensively evaluated. In particular, by detecting the energy distribution in the echo cancellation scene, by calculating the signal energy after the echo cancellation processing and comparing it with the original signal energy, the effect of the echo cancellation can be accurately evaluated, ensuring the stable performance of the device's microphone in various usage environments, and ensuring reliable verification of the signal existence.
[0066] In some examples of the embodiments of the present application, the sound pickup performance index also includes a channel signal amplitude. More specifically, the test result for the existence of the corresponding channel signal is the channel signal amplitude of each microphone channel passed, which is determined based on the first signal average energy and the third signal average energy of the microphone channel.
[0067] Furthermore, the average energy of the first signal in a quiet scene and the average energy of the third signal in an audio playback scene can be compared with a preset energy threshold value. quiet and threshold play Compare and judge whether the signal energy of each microphone channel in different scenarios exceeds the threshold. Thus, detect whether the average energy of each mic channel exceeds the standard.
[0068] As an optional implementation of this embodiment, one or more of the preset performance indicator thresholds are pre-calibrated according to preset audio. Exemplarily, a voice device with complete audio hardware performance is used to play preset audio and collect corresponding sound pickup performance indicators, and calibrate and set one or more preset performance indicator thresholds to further improve the accuracy and reliability of the test results by uniformly calibrating the audio. In addition, the preset performance indicator thresholds can also be comprehensively determined in combination with the performance in other scenarios (for example, quiet scenarios and echo cancellation scenarios), and can be adjusted according to different types of sound pickup performance indicators.
[0069] Figure 3 A flowchart of another example of a microphone array testing method according to an embodiment of the present application is shown.
[0070] It should be noted that many smart voice devices are currently in use (including end-customer use and R&D testing) and may experience abnormal voice functions due to substandard audio hardware and abnormal audio quality during the R&D phase. The cost of locating the above problems is huge, and the device generally needs to be returned to the original manufacturer for analysis. This wastes manpower and material resources, and the audio required during the R&D phase will be delayed due to repeated recordings.
[0071] In addition, in the current related technology, it only analyzes the frequency response consistency of the mic array, but cannot analyze whether the background noise of the mic array and ref (reference) channel is normal, whether the mic array and ref channel of the device are clipped in a high noise scene, whether there is no signal in the mic array and ref channel, whether the delay between the mic array and ref channel is normal, and whether the audio of the mic array signal after echo cancellation is normal. In order to test the above indicators, it is often necessary to send the equipment to an anechoic chamber or a semi-anechoic chamber for professional acoustic testing; at the same time, the echo cancellation effect requires the audio of the echo cancellation node to be pulled separately, and manual operation is required to confirm whether it meets the standard.
[0072] Regarding the business application scenarios of the embodiments of the present application, the intelligent voice device can perform a microphone test before performing a sound pickup operation or an intelligent voice interaction operation. For example, the user actively triggers the microphone test operation to test the performance of the microphone, including multiple indicators such as output frequency response, output delay and echo suppression, and when it is detected that an indicator is not up to standard, it will prompt that the microphone needs after-sales processing.
[0073] Through this embodiment, R&D testers can open the hardware detection module before using the device to detect the audio hardware, which can ensure the quality of the recorded audio. When the voice function of the end customer is abnormal, the hardware detection can locate the problem direction, which can help the front-line after-sales service quickly. Therefore, the microphone array of the intelligent voice device can be detected separately or the microphone array of the intelligent voice device and the speaker system of the device can be detected through configuration.
[0074] like Figure 3 As shown, the original audio of the quiet scene and the scene with fixed sound source played by the local machine and the audio after Aec (Acoustic Echo Cancellation) of the fixed sound source are received and whether there is a signal in all channels is determined by the configurable threshold. Thus, it is determined whether the hardware audio signal exists.
[0075] Here, the fixed sound source can use white noise, or various audios, and the length is also configurable, which should cover almost all frequencies. The playback time is generally set to about 5s, which is more reasonable in terms of efficiency. Of course, the audio length of the fixed sound source should be controllable or configurable, and can be adjusted according to business application requirements.
[0076] Calculates the average energy of the original audio in quiet scenes and scenes where the local device plays fixed sound sources, and determines whether the energy exceeds the standard. The judgment standard is determined by a configurable threshold. Thus, it is determined whether the amplitude of the hardware audio signal is too large.
[0077] Calculate the frequency response difference of each microphone channel in quiet scenes and in scenes with fixed sound sources. Determine whether each difference meets the standard. The judgment standard is determined by the configurable threshold. In this way, it is possible to more accurately determine whether the frequency response consistency of the microphone array meets the standard.
[0078] When playing a fixed sound source scene, the delay_time between each microphone channel and the reference channel is calculated. The delay standard is determined by a configurable threshold. In this way, it can be determined whether the delay between the microphone array and the reference channel meets the standard, ensuring the effect of the echo cancellation algorithm.
[0079] Calculates the energy difference between the original audio of each microphone channel and the signal of each microphone channel after echo cancellation (Echo Return Loss Enhancement, ERLE) when playing a fixed sound source scene. The judgment standard is determined by a configurable threshold. In this way, it can be confirmed whether the effect of the current echo cancellation algorithm meets the standard, and it can provide analysis conditions for the voice effect in the local playback scene.
[0080] In some implementations, beamforming, blind source separation, and other signal processing modules may be configured to analyze the original audio and echo-cancelled audio, and may be processed in conjunction with software such as SDK.
[0081] It should be noted that the algorithm program or processing module corresponding to this embodiment is the front end of the built-in signal processing algorithm, which can analyze the original audio input to the signal processing engine. At the same time, the audio of the echo cancellation node can be directly transmitted back to the analysis algorithm, and the audio of the echo cancellation node does not need to be pulled separately, reducing the manual operation cost.
[0082] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of actions combined, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application. In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0083] In some embodiments, an embodiment of the present application provides a non-volatile computer-readable storage medium, which stores one or more programs including execution instructions, and the execution instructions can be read and executed by an electronic device (including but not limited to a computer, a server, or a network device, etc.) to execute any of the above-mentioned microphone array testing methods of the present application.
[0084] In some embodiments, the embodiments of the present application also provide a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes any one of the above-mentioned microphone array testing methods.
[0085] In some embodiments, an embodiment of the present application also provides an electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform a microphone array testing method.
[0086] Figure 4 is a schematic diagram of the hardware structure of an electronic device for executing a microphone array testing method provided by another embodiment of the present application, such as Figure 4 As shown, the device includes:
[0087] One or more processors 410 and memory 420, Figure 4 A processor 410 is taken as an example.
[0088] The device for executing the microphone array testing method may further include: an input device 430 and an output device 440 .
[0089] The processor 410, the memory 420, the input device 430 and the output device 440 may be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.
[0090] The memory 420 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the microphone array test method in the embodiment of the present application. The processor 410 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 420, that is, the microphone array test method in the above method embodiment is implemented.
[0091] The memory 420 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 420 may optionally include a memory remotely arranged relative to the processor 410, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0092] The input device 430 may receive input digital or character information and generate signals related to user settings and function control of the electronic device. The output device 440 may include a display device such as a display screen.
[0093] The one or more modules are stored in the memory 420 , and when executed by the one or more processors 410 , the microphone array testing method in any of the above method embodiments is executed.
[0094] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.
[0095] The electronic devices of the embodiments of the present application exist in various forms, including but not limited to:
[0096] (1) Mobile communication equipment: This type of equipment is characterized by having mobile communication functions and its main purpose is to provide voice and data communications. This type of terminal includes: smart phones, multimedia phones, functional phones, and low-end phones.
[0097] (2) Ultra-mobile personal computer devices: These devices belong to the category of personal computers, have computing and processing functions, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, etc.
[0098] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players, handheld game consoles, e-books, smart toys, and portable car navigation devices.
[0099] (4) Other onboard electronic devices with data interaction functions, such as on-board devices installed in vehicles.
[0100] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0101] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0102] 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 it. 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 of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A microphone array testing method, comprising: Based on the microphone array, a first sound pickup signal is collected in an environment where a voice device plays a preset audio; The microphone array is arranged on the voice device; Calculating at least one sound pickup performance index according to the first sound pickup signal; Each of the sound pickup performance indicators is compared with a corresponding preset performance indicator threshold to determine a corresponding microphone array test result.
2. The method according to claim 1, wherein: The sound pickup performance index includes channel sound pickup delay; The step of calculating the sound pickup performance index according to the first sound pickup signal includes: Analyzing the first channel time domain signal corresponding to each microphone channel and the reference time domain signal corresponding to the reference channel from the first sound pickup signal; For the first channel time domain signal of each microphone channel, a cross-correlation function between the first channel time domain signal and the reference time domain signal is calculated, and a delay of a maximum value of the corresponding cross-correlation function is determined as a channel sound pickup delay of the corresponding microphone channel.
3. The method according to claim 1, wherein: The sound pickup performance index includes the channel echo suppression amount; The step of calculating the sound pickup performance index according to the first sound pickup signal includes: Analyzing the first channel time domain signals corresponding to the respective microphone channels from the first sound pickup signals, and collecting the echo-cancelled time domain signals of the respective first channel time domain signals after the echo cancellation processing; Performing filtering processing on each of the first channel time domain signals and the echo cancellation signal to obtain each filtered first channel time domain signal and echo cancellation signal: Calculating the average energy of the first signal corresponding to each filtered first channel time domain signal, and calculating the average energy of the second signal corresponding to each filtered echo cancellation signal; For each first channel time domain signal, calculating the echo suppression energy difference of the corresponding microphone channel according to the first signal average energy and the second signal average energy corresponding to the first channel time domain signal; Based on each of the echo suppression energy differences, a channel echo suppression amount of the corresponding microphone channel is determined.
4. The method according to claim 1 or 3, wherein: The step of calculating the sound pickup performance index according to the first sound pickup signal includes: Collecting a second sound pickup signal of the voice device in a quiet environment based on the microphone array; A sound pickup performance index is calculated according to the first sound pickup signal and the second sound pickup signal.
5. The method according to claim 4, wherein: The sound pickup performance index includes frequency response consistency; The calculating the sound pickup performance index according to the first sound pickup signal and the second sound pickup signal includes: Calculating a first frequency response difference of each microphone channel according to the first sound pickup signal; Calculating a second frequency response difference of each microphone channel according to the second sound pickup signal; A frequency response consistency index of each microphone channel is determined based on the first frequency response difference value and the second frequency response difference value.
6. The method according to claim 4, wherein: The sound pickup performance index includes channel signal existence; The calculating the sound pickup performance index according to the first sound pickup signal and the second sound pickup signal includes: Analyze the second channel time domain signal corresponding to each microphone channel from the second sound pickup signal, and calculate the average energy of the third signal of each microphone channel for the corresponding second channel time domain signal; Channel signal existence is determined based on the first signal average energy, the second signal average energy, and the third signal average energy.
7. The method according to claim 6, wherein: The sound pickup performance index also includes channel signal amplitude; After determining the existence of the channel signal based on the first signal average energy, the second signal average energy and the third signal average energy, the method further includes: The test result for the existence of the corresponding channel signal is that for each microphone channel that passes through, the channel signal amplitude of the microphone channel is determined based on the first signal average energy and the third signal average energy of the microphone channel.
8. The method according to claim 1, wherein: One or more of the preset performance indicator thresholds are pre-calibrated according to the preset audio.
9. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 8 are implemented.
10. An electronic device, comprising: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the method described in any one of claims 1 to 8.
Citation Information
Cited By
Microphone array detection method, device, equipment and medium
CN119893415A
A method, apparatus, device and medium for detecting microphone arrays
CN119893415B
Delay detection method, electronic device, computer storage medium, and computer program product
WO2026051569A1
