Test method, device and equipment of audio acquisition device and vehicle
By playing the test audio on the assembled audio acquisition device in the vehicle, obtaining the test audio signal, determining the quality parameters of the audio acquisition device, comparing the deviation value with the standard quality parameters, and determining whether there is a quality abnormality, solving the problem of poor test effect before assembly, and achieving accurate quality detection of the finished audio acquisition device.
Patent Information
- Application Number
- CN202311808895.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-26
- Publication Date
- 2025-06-27
AI Technical Summary
The prior art is assembled in the vehicle before testing the audio acquisition device, which causes the process to affect the quality during the installation process, resulting in a lower quality of the audio acquisition device that has been assembled in the vehicle.
By playing the test audio on the assembled audio acquisition device in the vehicle, obtaining the test audio signal, determining the quality parameters of the audio acquisition device, comparing the deviation value with the standard quality parameters, and determining whether there is a quality abnormality.
Accurate quality inspection of the assembled audio acquisition device is achieved, avoiding the problem of poor test results before assembly in traditional testing methods, and reducing testing costs and time.
Smart Images

Figure CN120224093A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of acoustic product testing, and particularly to a testing method, device, equipment and vehicle for an audio acquisition device. Background Art
[0002] Currently, with the trend of vehicle intelligence and the development of intelligent voice technology, voice interaction and high-quality calls have become routine functions in vehicles. Audio acquisition devices and audio playback devices are used to support users' voice interaction and high-quality calls. To provide a better user experience, more and more audio acquisition devices are deployed inside vehicles, and the quality requirements for audio acquisition devices are gradually increasing.
[0003] In related technologies, the audio acquisition device is tested before being assembled in the vehicle, and then installed in the vehicle after the test is completed. Since many processes are used during the installation of the audio acquisition device, it will also affect the quality of the audio acquisition device, ultimately resulting in a relatively low quality of the audio acquisition device assembled on the vehicle. Summary of the Invention
[0004] To overcome the problems existing in related technologies, the present disclosure provides a testing method, device, equipment and vehicle for an audio acquisition device.
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a testing method for an audio acquisition device, including:
[0006] Controlling an audio playback device to play a test audio, where the audio playback device is assembled in the cockpit of the vehicle;
[0007] Obtaining a first test audio signal, where the first test audio signal is an audio signal collected by an audio acquisition device installed in the cockpit after the test audio is played;
[0008] Determining a quality parameter of the audio acquisition device according to the first test audio signal; where the quality parameter is used to characterize the performance parameter and / or acoustic parameter of the audio acquisition device;
[0009] Determining a deviation value between the quality parameter and a standard quality parameter;
[0010] Determining whether the audio acquisition device is abnormal according to a comparison relationship between the deviation value and an error range.
[0011] Optionally, the standard quality parameter is a standard transfer function, and the quality parameter includes a target transfer function for characterizing the performance parameter. The target transfer function is used to represent the relationship between the second test audio signal to be played by the audio playback device and the first test audio signal collected by the audio acquisition device; determining the deviation value between the quality parameter and the standard quality parameter includes:
[0012] Determining the performance deviation value between the target transfer function and the standard transfer function.
[0013] Optionally, determining the quality parameter of the audio acquisition device according to the first test audio signal includes:
[0014] Determining the output signal obtained after the second test audio signal is transmitted through the transfer function;
[0015] Determining the error between the first test audio signal and the output signal;
[0016] In the case where the error does not meet the convergence condition, updating the transfer function and re - executing the step of determining the error between the first test audio signal and the output signal based on the updated transfer function until the error meets the convergence condition;
[0017] In the case where the error meets the convergence condition, obtaining the target transfer function according to the transfer function under the condition that the convergence condition is met.
[0018] Optionally, in the case where the error meets the convergence condition, obtaining the target transfer function according to the transfer function under the condition that the convergence condition is met includes:
[0019] Obtaining the gradient corresponding to the target transfer function according to the second test audio signal and the error;
[0020] Obtaining the target transfer function based on the gradient and the transfer function under the condition that the convergence condition is met.
[0021] Optionally, the standard transfer function includes a standard amplitude; determining whether the audio acquisition device is abnormal according to the comparison relationship between the deviation value and the error range includes:
[0022] Performing a Fourier transform on the target transfer function to obtain the amplitude of the target transfer function at each frequency point;
[0023] In the case where the performance deviation value between the amplitude and the standard amplitude is outside the error range, determining that the audio acquisition device is abnormal.
[0024] Optionally, the standard transfer function is the transfer function corresponding to a standard audio acquisition device, which is an audio acquisition device of the same type as the audio acquisition device and in the same assembly environment.
[0025] Optionally, the standard quality parameter is a standard acoustic parameter; the determining the deviation value between the quality parameter and the standard quality parameter includes:
[0026] Determining the acoustic deviation value between the acoustic parameter and the standard acoustic parameter.
[0027] Optionally, the standard acoustic parameter is determined by the following steps:
[0028] Taking the average value or median value of the acoustic parameters of the same group of the audio acquisition devices as the standard acoustic parameter.
[0029] Optionally, the standard acoustic parameter includes at least one of the following:
[0030] The standard environmental background noise, standard sensitivity, standard signal-to-noise ratio, and standard frequency response of the first test audio signal.
[0031] Optionally, the standard acoustic parameter is the standard environmental background noise; the taking the average value or median value of the acoustic parameters of the same group of the audio acquisition devices as the standard acoustic parameter includes:
[0032] Taking the average value or median value of the environmental background noise signals collected by the same group of the audio acquisition devices as the standard environmental background noise.
[0033] Optionally, the standard acoustic parameter is the standard sensitivity; the taking the average value or median value of the acoustic parameters of the same group of the audio acquisition devices as the standard acoustic parameter includes:
[0034] Taking the average value or median value of the sensitivities of the first test audio signals collected by the same group of the audio acquisition devices as the standard sensitivity.
[0035] Optionally, the standard acoustic parameter is the standard signal-to-noise ratio; the taking the average value or median value of the acoustic parameters of the same group of the audio acquisition devices as the standard acoustic parameter includes:
[0036] Taking the difference between the standard sensitivity and the standard environmental background noise as the standard signal-to-noise ratio; wherein, the standard sensitivity is the average value or median value of the sensitivities of the first test audio signals collected by the same group of the audio acquisition devices; the standard environmental background noise is the average value or median value of the environmental background noise signals collected by the same group of the audio acquisition devices.
[0037] Optionally, the standard acoustic parameter is the standard frequency response; taking the average value or median value of the acoustic parameters of the same group of the audio acquisition devices as the standard acoustic parameter includes:
[0038] Taking the average value or median value of the amplitudes of the first test audio signal collected by the same group of the audio acquisition devices at each frequency point in the Fourier transform domain as the standard frequency response.
[0039] Optionally, determining whether the audio acquisition device is abnormal according to the comparison relationship between the deviation value and the error range includes:
[0040] When the acoustic deviation value is outside the error range, determining that the audio acquisition device is abnormal.
[0041] Optionally, the audio playback device includes a first audio playback device and a second audio playback device; the deviation value includes a performance deviation value and an acoustic deviation value; determining whether the audio acquisition device is abnormal according to the comparison relationship between the deviation value and the error range includes:
[0042] When the first performance deviation value of the audio acquisition device is outside the error range and the first acoustic deviation value is within the error range, determining the second performance deviation value of the audio acquisition device; the first performance deviation value and the first acoustic deviation value are obtained according to the second test audio signal played by the first audio playback device collected by the audio acquisition device, and the second performance deviation value is obtained according to the second test audio signal played by the second audio playback device collected by the audio acquisition device;
[0043] When the second performance deviation value is outside the error range, determining that the audio acquisition device is abnormal.
[0044] According to a second aspect of the embodiments of the present disclosure, there is provided a test device for an audio acquisition device, including:
[0045] A playback control module configured to control an audio playback device to play a test audio, where the audio playback device is assembled in a cockpit of a vehicle;
[0046] An acquisition module configured to acquire a first test audio signal, where the first test audio signal is an audio signal collected by an audio acquisition device installed in the cockpit after the test audio is played;
[0047] A parameter determination module configured to determine a quality parameter of the audio acquisition device according to the first test audio signal; wherein, the quality parameter is used to characterize a performance parameter and / or an acoustic parameter of the audio acquisition device;
[0048] A deviation value determination module, configured to determine a deviation value between the quality parameter and a standard quality parameter;
[0049] An abnormality detection module, configured to determine whether the audio acquisition device is abnormal according to a comparison relationship between the deviation value and an error range.
[0050] According to a third aspect of the embodiments of the present disclosure, there is provided a test device for an audio acquisition device, including:
[0051] An audio playback device, configured to play a test audio, and the audio playback device is assembled in a cockpit of a vehicle;
[0052] An audio acquisition device, configured to obtain a first test audio signal, where the first test audio signal is an audio signal collected by the audio acquisition device installed in the cockpit after the test audio is played;
[0053] A controller, communicatively connected to the audio playback device and the audio acquisition device respectively, and configured to execute steps of the test method for the audio acquisition device provided in the first aspect of the embodiments of the present disclosure.
[0054] According to a fourth aspect of the embodiments of the present disclosure, there is provided a vehicle, where the vehicle includes a cockpit, and the following are arranged in the cockpit:
[0055] An audio playback device, configured to play a test audio, and the audio playback device is assembled in a cockpit of a vehicle;
[0056] An audio acquisition device, configured to obtain a first test audio signal, where the first test audio signal is an audio signal collected by the audio acquisition device installed in the cockpit after the test audio is played;
[0057] A controller, communicatively connected to the audio playback device and the audio acquisition device respectively, and configured to execute steps of the test method for the audio acquisition device provided in the first aspect of the embodiments of the present disclosure.
[0058] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
[0059] In a first aspect, the present disclosure can perform abnormality detection on the already assembled audio acquisition device by using the first test audio signal collected by the audio acquisition device already assembled on the vehicle, rather than testing the audio acquisition device that has not yet been assembled on the vehicle, and accurately determine whether there is a quality abnormality in the assembled audio acquisition device. During this process, since the present disclosure tests the assembled audio acquisition device rather than the audio acquisition device before assembly, the problem of poor quality test effect caused by testing the audio acquisition device before assembly in the traditional test method is solved.
[0060] In a second aspect, the present disclosure also does not need to drive the vehicle into an anechoic chamber to test the audio acquisition device. It makes full use of the audio acquisition device, audio playback device and equipment configured in the vehicle to complete self-testing, without relying on the testing equipment in the anechoic chamber, and has lower testing costs and faster testing speeds.
[0061] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.
[0063] Figure 1 is a flowchart of a method for testing an audio acquisition device shown according to an exemplary embodiment.
[0064] Figure 2 is a schematic diagram of a vehicle configured with different microphone arrays and different speakers shown according to an exemplary embodiment.
[0065] Figure 3 is a schematic diagram of a vehicle of the same type configured with microphones of the same type and with the same microphone configuration positions shown according to an exemplary embodiment.
[0066] Figure 4 is a schematic diagram of different microphones within the same set of microphone arrays shown according to an exemplary embodiment.
[0067] Figure 5 is a schematic diagram of the same microphone receiving second test audio signals emitted by speaker A and speaker B shown according to an exemplary embodiment.
[0068] Figure 6 is a block diagram of a testing device for an audio acquisition device shown according to an exemplary embodiment.
[0069] Figure 7 is a block diagram of a vehicle shown according to an exemplary embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0070] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of apparatuses and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0071] It should be noted that all actions of obtaining signals, information, or data in this application are carried out on the premise of complying with the corresponding data protection regulations and policies of the country where the location is located and obtaining authorization from the owner of the corresponding device.
[0072] Currently, the quality of the pickup signal of an audio acquisition device has become the main factor affecting the quality of the audio acquisition device. Therefore, the quality of the pickup signal of the audio acquisition device can be tested to ensure the quality of the pickup signal of the audio acquisition device. The quality of the pickup signal refers to the quality of the audio signal captured by the audio acquisition device.
[0073] In the related art, the audio acquisition device is tested before it is assembled in the vehicle, and then the audio acquisition device is installed in the vehicle after the test. Since many processes such as dispensing, clamping, and fastening are used during the installation of the audio acquisition device in the vehicle. On the one hand, these installation processes will affect the quality of the audio acquisition device. On the other hand, as the number of audio acquisition devices in the vehicle increases, once there is an assembly error during the process of assembling the audio acquisition device in the vehicle, it will inevitably affect the quality of the audio acquisition device. Even if the audio acquisition device that has been tested before assembly has no quality problems, the assembly error during the assembly process will also cause the pickup acquisition quality of the audio acquisition device assembled on the vehicle to decrease. Therefore, this method of testing first and then assembling will result in a decrease in the quality of the audio acquisition device configured on the vehicle.
[0074] Of course, the vehicle can also be driven into an anechoic laboratory, and professional acoustic test equipment such as an audio acquisition device can be arranged in the vehicle to accurately test the quality of the audio acquisition device. However, this method requires driving the vehicle into the anechoic laboratory and also requires staff to equip professional acoustic test equipment in the vehicle, which consumes a long time and results in low test efficiency, making it difficult to quickly test the audio acquisition devices in a large number of vehicles; and the additional equipped acoustic test equipment and the anechoic laboratory will also result in a high test cost.
[0075] Based on this, the present disclosure proposes a test method for an audio acquisition device, Figure 1 is a flowchart of a test method for an audio acquisition device shown according to an exemplary embodiment. This method is used in a controller, such asFigure 1 As shown, it includes the following steps.
[0076] In step S11, control the audio playback device to play the test audio, and the audio playback device is assembled in the vehicle cockpit.
[0077] The types of vehicles include vehicle types, aircraft types, and ship types. Vehicle types include cars, motorcycles, bicycles, buses, trains, subways, and trams, etc.; aircraft types include airplanes, helicopters, hot air balloons, and gliders, etc.; ship types include ships, speedboats, submarines, etc. The vehicle referred to in this disclosure is a vehicle already equipped with an audio acquisition device, and the test object is also the audio acquisition device already assembled on the vehicle.
[0078] The vehicle is equipped with an audio playback device for playing a second test audio signal. The audio playback device can be a speaker, and the audio played by the audio playback device is transmitted to the microphone through the transmission medium in the vehicle. The second test audio signal is an initial signal that has not been transmitted through the transmission medium.
[0079] In step S12, obtain the first test audio signal, where the first test audio signal is the audio signal collected by the audio acquisition device installed in the cockpit after the test audio is played.
[0080] The vehicle is also equipped with an audio acquisition device for collecting the first test audio signal. The audio acquisition device is a microphone already assembled on the vehicle. This microphone can be a single microphone or at least one microphone in a microphone array. The first test audio signal collected by the audio acquisition device is a signal evolved after the second test audio signal played by the audio playback device propagates through the transmission medium. The transmission medium can be equipment in the vehicle, air, etc.
[0081] In step S13, determine the quality parameters of the audio acquisition device according to the first test audio signal.
[0082] The vehicle is also equipped with a controller, a speaker signal feedback unit, and a test program.
[0083] The speaker feedback unit can be a DSP (Digital Signal Processing), and the speaker feedback unit is used to collect the second test audio signal to be played by the audio playback device, so as to subsequently determine whether the audio acquisition device is abnormal according to the first test audio signal and the second test audio signal. The second test audio signal can be white noise, pink noise, swept-frequency sound, or single-frequency sound, etc. In an actual test environment, white noise or pink noise can be selected to stably output the second test audio signal in the full frequency band, so as to obtain the amplitudes of each frequency point in the full frequency band subsequently. White noise is a random signal with an average power spectral density, and the spectrum of white noise has equal energy at all frequencies; pink noise is a noise signal whose spectral density varies as 1 / f with frequency, and has higher energy in the low-frequency part. Pink noise is closer to some sounds in nature than white noise in the low-frequency part; swept-frequency sound is a noise signal with a continuously changing frequency; single-frequency sound is a noise signal that contains only a single frequency component.
[0084] The controller can be a cockpit domain controller (Digital Cockpit Domain, DCD). In this disclosure, the controller is used to control the audio playback device to play the second test audio signal, and control the speaker feedback unit and the audio acquisition device to perform recording, so that the speaker feedback unit collects the second test audio signal to be played by the audio playback device, and the audio acquisition device collects the first test audio signal obtained after the second test audio signal propagates through the in-vehicle transmission medium. In addition, the controller is also used to run a test program to perform a quality analysis on the audio acquisition device.
[0085] The test program includes a recording and playback control module, a data analysis module, and a data upload module. The recording and playback control module is used to control the recording functions of the audio acquisition device and the speaker feedback unit, and is also used to control the playback function of the audio playback device; the data analysis module is used to analyze the acoustic characteristics and performance characteristics of the audio acquisition device; the data upload module is used to generate and display the analysis results and upload them to a target address, which can be the IP address of any device such as a terminal or a server.
[0086] The quality of the audio acquisition device is mainly reflected in two parts, one is performance, and the other is acoustics. Therefore, this disclosure will determine the performance parameters and acoustic parameters of the audio acquisition device based on the first test audio signal collected by the audio acquisition device, and determine the quality of the audio acquisition device from both the performance parameters and the acoustic parameters.
[0087] The performance parameters mainly include the target transfer function, which is used to represent the transfer relationship between the second test audio signal to be played by the audio playback device and the first test audio signal collected by the audio acquisition device. The target transfer function can also be understood as the transfer relationship in which the second test audio signal output by the simulated audio playback device evolves into the first test audio signal under the current internal environment of the vehicle.
[0088] The acoustic parameters include the environmental background noise, sensitivity, signal-to-noise ratio, and frequency response of the audio acquisition device. The environmental background noise refers to the noise of the audio acquisition device installed on the vehicle when there is no activity of any specific sound source. The RMS (Root Mean Square) value of the environmental background noise signal collected by the audio acquisition device can be directly recorded, and the RMS value can reflect the intensity or energy of the environmental background noise signal. The sensitivity refers to the sensitivity of the second test audio signal played by the audio playback device, which can be the RMS value of the first test audio signal when the audio acquisition device installed on the vehicle collects the first test audio signal. The signal-to-noise ratio is the difference between the RMS value of the first test audio signal and the RMS value of the environmental background noise signal, which is the difference obtained by subtracting the RMS value of the environmental background noise from the RMS value of the first test audio signal. The frequency response refers to the amplitude of each frequency point of the first test audio signal collected by the audio acquisition device in the Fourier transform domain.
[0089] In step S14, determine the deviation value between the quality parameter and the standard quality parameter.
[0090] The standard quality parameter is the standard for measuring the quality of the quality parameter.
[0091] If the quality parameter is a performance parameter and the performance parameter is the target transfer function, then the standard quality parameter is the standard transfer function. The standard transfer function is the transfer function between the standard audio acquisition device and the standard audio playback device. The standard audio acquisition device refers to a standard vehicle of the same type as the current vehicle and an audio acquisition device of the same type and the same installation environment as the current audio acquisition device to be tested.
[0092] For example, take the audio acquisition device as a microphone and the audio playback device as a speaker. Please refer to Figure 3 as shown Figure 3 On the left is vehicle A, Figure 3On the right is vehicle B. Vehicle B is equipped with microphone B and speaker B. The quality of microphone B and speaker B is the standard quality, and the transfer function between microphone B and speaker B is the standard transfer function. Vehicle A is equipped with microphone A and speaker A. The type of vehicle A is the same as that of vehicle B, the type of microphone A is the same as that of microphone B, and the type of speaker A is the same as that of speaker B. Then the type and assembly environment of microphone A are the same as those of microphone B, and the quality of microphone B is the standard quality. Therefore, microphone B is the standard audio acquisition device for microphone A.
[0093] If the quality parameter is an acoustic parameter, then the standard quality parameter is the standard acoustic parameter. The standard acoustic parameter includes the standard environmental background noise, standard sensitivity, standard signal-to-noise ratio, and standard frequency response. The standard acoustic parameter is the average or median value of the acoustic parameters of the second test audio signals collected by multiple audio acquisition devices.
[0094] The deviation value between the quality parameter and the standard quality parameter is the absolute value of the difference between the quality parameter and the standard parameter. The magnitude of the deviation value represents the quality of the quality parameter. The larger the deviation value, the worse the quality parameter; the smaller the deviation value, the better the quality parameter.
[0095] In step S15, according to the comparison relationship between the deviation value and the error range, it is determined whether the audio acquisition device is abnormal.
[0096] Generally, there will be a certain deviation between the quality parameter and the standard quality parameter, but it does not mean that a deviation indicates a poor quality parameter. The present disclosure sets an error range. If the deviation value is greater than the maximum value of the error range, it represents that the audio acquisition device is abnormal; if the deviation value is within the error range, the audio acquisition device is considered normal.
[0097] When testing the sound pickup quality of the audio acquisition device, the above test program can be pre-configured in the controller first. Then, park the vehicle to be tested in a relatively quiet external environment as much as possible, close the doors and windows, stop playing all sound sources, and turn off the air conditioner, fan, seat ventilation and massage, etc. to keep the interior of the vehicle quiet. Then, open the test program on the in-vehicle screen to start the detection. The detection logic of the test program is as follows:
[0098] (1) Turn on the test mode, configure a predetermined playback volume for the audio playback device, and prohibit any sound source from making a sound inside the vehicle.
[0099] (2) Control the audio acquisition device and the speaker feedback unit to start recording. The audio acquisition device collects the first test audio signal, which can be white noise or pink noise, and the speaker feedback unit collects the second test audio signal.
[0100] (3) Control the audio acquisition device to collect the environmental background noise signal.
[0101] (4) Sequentially call the audio playback device opposite the audio collection device to play the second test audio signal.
[0102] (5) Send the first test audio signal and the second test audio signal into the data analysis module to obtain the analysis result of whether the audio collection device is abnormal.
[0103] It can be understood that during the test, since there are multiple audio collection devices and multiple audio playback devices configured in the vehicle, in order to ensure the accuracy of the first test audio signal collected by the audio collection device, please refer to Figure 2 As shown, the audio playback device should be directly opposite the collection port of the audio collection device and there should be as few obstacles as possible between the two, so as to ensure that as many second test audio signals as possible reach the audio collection device, and also ensure that the second test audio signals reach each audio collection device in the audio collection device array simultaneously as much as possible.
[0104] As Figure 2 shown, taking the audio collection device as a microphone and the audio playback device as a speaker as an example. There are 2 microphone arrays and 2 speakers equipped in the vehicle. When testing the microphone array 1 located on the left side above the driver's head, the speaker 2 located on the co-driver's door should be selected to play the second test audio signal, so as to ensure that as many second test audio signals as possible can reach each microphone of the to-be-tested microphone array 1 simultaneously; when testing the microphone array 2 located on the right side above the co-driver's head, the speaker 1 located on the driver's door should be selected to play the second test audio signal, so as to ensure that as many second test audio signals as possible can reach each microphone of the to-be-tested microphone array 2 simultaneously.
[0105] Through the above technical solutions, on the one hand, the present disclosure can use the first test audio signal collected by the audio collection device already assembled on the vehicle to perform abnormal detection on the already assembled audio collection device, rather than testing the audio collection device that has not yet been assembled on the vehicle, and accurately determine whether there is a quality abnormality in the assembled audio collection device. During this process, since the present disclosure is testing the assembled audio collection device rather than the audio collection device before assembly, the problem of poor quality test effect caused by testing the audio collection device before assembly in the traditional test method is solved. On the other hand, the present disclosure also does not need to drive the vehicle into an anechoic chamber to test the audio collection device. It fully utilizes the audio collection device, audio playback device and controller configured in the vehicle to complete self-testing, and does not rely on the testing equipment in the anechoic chamber. Its testing cost is lower and the testing speed is faster.
[0106] The following describes the specific embodiments involved in the above steps. This specific embodiment is used to interpret the situation where the standard quality parameter is the standard transfer function and the quality parameter is the target transfer function. Considering the performance of the audio acquisition device, it is determined whether the audio acquisition device is abnormal, and it includes the following steps.
[0107] A1. Determine the output signal obtained after the second test audio signal is transmitted through the transfer function.
[0108] The transfer function is any one of the assumed initial transfer function, the first transfer function iteratively obtained based on the initial transfer function, and the second transfer function iteratively obtained based on the first transfer function. The first transfer function and the second transfer function are the transfer functions used in two adjacent iterative processes. Taking the value of the initial transfer function as 3 as an example, assuming the iteration step size is 2, then the value of the transfer function in the second iteration process is 5, the value of the transfer function in the third iteration process is 7, the value of the transfer function in the fourth iteration process is 9...
[0109] The calculation formula for determining the first test audio signal is as follows:
[0110] d(n) = x T (n)h(n - 1) + v(n) (1)
[0111] In formula (1), d(n) is the first test audio signal collected by the audio acquisition device; x(n) is the second test audio signal to be played by the audio playback device at time n; h(n - 1) is the impulse response from the audio playback device to the audio acquisition device at time n - 1, and the Fourier transform corresponding to this impulse response is the transfer function; v(n) is the additive noise signal received by the audio acquisition device, and the additive noise signal is the noise added when processing the first test audio signal; n is the discrete time sequence number; x T (n)h(n - 1) is the output signal obtained after the second test audio signal is transmitted through the transfer function.
[0112] It can be seen from formula (1) that the output signal is the product of the second test audio signal at the current moment and the impulse response at the previous moment; the first test audio signal is the audio signal obtained after the second test audio signal is affected by the impulse response and the additive noise.
[0113] It can be understood that since the first test audio signal and the second test audio signal are audio signals in a time series, n and n - 1 in the above formula (1) represent two adjacent moments, n is the current moment, and n - 1 is the previous moment of the current moment.
[0114] A2. Determine the error between the first test audio signal and the output signal.
[0115] Any one of methods such as the Least Mean Square (LMS) method, the Normalized Least Mean Square (NLMS) method, and the Power Normalized Least Mean Square (PNLMS) method can be used to obtain the final target transfer function. Taking the Least Mean Square method as an example, the error between the output signal and the first test audio signal can be calculated first; then the mean square error can be minimized to solve for the target transfer function.
[0116] Among them, the formula for calculating the error between the output signal and the first test audio signal is as follows:
[0117]
[0118] In formula (2), e(n) is the error between the output signal and the first test audio signal; d(n) is the first test audio signal collected by the audio acquisition device at time n; x(n) is the second test audio signal played by the audio playback device at time n; is the impulse response from the audio playback device to the audio acquisition device at time n - 1.
[0119] It can be seen from formula (2) that the error between the first test audio signal and the output signal is essentially the difference between the first test audio signal and the output signal. can be used to perform convolution filtering on the second test audio signal x(n), and then calculate the error between the output signal after convolution filtering and the first test audio signal.
[0120] Among them, the formula for the mean square error is as follows:
[0121]
[0122] In formula (3), e 2 (n) is the mean square error between the output signal and the first test audio signal at time n; d(n) is the first test audio signal collected by the audio acquisition device at time n; x(n) is the second test audio signal played by the audio playback device at time n; is the impulse response from the audio playback device to the audio acquisition device at time n - 1; v(n) is the additive noise at time n.
[0123] It can be seen from formula (3) that the present disclosure aims to minimize the mean square error, thereby obtaining the transfer function h(n - 1) of the target transfer function at the previous moment, and then obtaining the target transfer function based on the transfer function of the target transfer function at the previous moment.
[0124] A3. In the case where the error does not meet the convergence condition, update the transfer function, and based on the updated transfer function, execute again the step of determining the error between the first test audio signal and the output signal until the error meets the convergence condition.
[0125] In the case where the error does not meet the convergence condition, update the transfer function with a specified step size, determine the updated output signal obtained by passing the second test audio signal through the updated transfer function, and then determine the error between the first test audio signal and the updated output signal. Repeat the above steps until the error meets the convergence condition. This error can be replaced by the mean square error in the above formula (3).
[0126] For each round of iteration, the impulse response obtained from the previous round of iteration is multiplied by the second test audio signal x T (n) in this iteration process as the output signal in this iteration process; then calculate the error between the first test audio signal d(n) and the output signal in this iteration process as the error obtained from this iteration.
[0127] The iteration conditions include any one of the following: the error is less than a specified threshold, or the first test audio signal and the second test audio signal in the time series have been iteratively consumed.
[0128] For the case where the error is less than a specified threshold, assume the specified threshold is 0.11. Then when the error is less than 0.11, it can be considered that the iteration is completed.
[0129] For the case where the first test audio signal and the second test audio signal in the time series have been iteratively consumed, assume that the first test audio signal and the second test audio signal have a total of 200 data in the time series. When all 200 first test audio signals and second test audio signals are used to calculate the error and there is no extra data for calculating the error, it is considered that the iteration is completed.
[0130] When the error meets the iteration condition, it indicates that the obtained target transfer function is close to the actual transfer function in the current environment.
[0131] A4. In the case where the error meets the convergence condition, obtain the target transfer function according to the transfer function under the condition of meeting the convergence condition.
[0132] Please refer to the above formula (3). After obtaining the error that meets the iteration condition through several iterations of calculation, the transfer function h(n - 1) at the previous moment of the target transfer function at the current moment can be obtained in reverse based on the error.
[0133] The calculation formula for the gradient between the transfer functions used in two adjacent iterations is as follows:
[0134]
[0135] In formula (4), is the gradient between the transfer function at the previous moment and the target transfer function at the current moment; x(n) is the second test audio signal; d(n) is the first test audio signal; e(n) is the error.
[0136] It can be seen from formula (4) that the gradient between the transfer function at the previous moment and the target transfer function at the current moment is the negative value of the product of the second test audio signal and the error.
[0137] After obtaining the gradient corresponding to the target transfer function and the transfer function of the target transfer function at the previous moment, the target transfer function at the current moment can be obtained according to the transfer function of the target transfer function at the previous moment and the gradient corresponding to the target transfer function. The calculation formula is as follows:
[0138]
[0139] In formula (5), is the impulse response corresponding to the target transfer function; is the impulse response corresponding to the transfer function of the target transfer function at the previous moment, which can also be understood as the impulse response corresponding to the transfer function obtained in the previous iteration; μ is the iteration step size, which is the value by which the transfer function at the next moment increases or decreases compared to the transfer function at the previous moment; x(n) is the second test audio signal; e(n) is the error that satisfies the convergence condition.
[0140] It can be seen from formula (5) that the target impulse response can be obtained according to the gradient between two adjacent transfer functions the impulse response of the transfer function at the previous moment that satisfies the convergence condition and the iteration step size μ, and then the target transfer function can be obtained by converting the target impulse response. Of course, the product of the iteration step size μ, the second test audio signal x(n) and the error e(n) that satisfies the convergence condition can also be used as the target value; and then on the basis of the impulse response of the transfer function at the previous moment, the target value is superimposed as the target impulse response at the current moment, and then the target transfer function is obtained by converting the target impulse response.
[0141] Among them, the iteration step size is usually a value greater than 0, which can be properly selected according to experience. If the iteration step size is too large or too small, it will lead to problems of convergence speed and stability of the solution error. In the algorithm of minimizing the mean square error, the selection range of the iteration step size can be:
[0142]
[0143] In formula (6), μ is the iteration step size.
[0144] Among them, in order to improve the stability during application, in the normalized least mean squares method, the iteration step size can be defined by the following formula:
[0145]
[0146] In formula (7), μ is the iteration step size; δ is the regularization factor, which is a decimal greater than 0 and can prevent the iteration step size from being too large when the second test audio signal is too small; α is a number between 0 and 2, which can be selected according to experience. The larger α is, the faster the convergence speed during the solution process.
[0147] In the above formulas (1) to (7), the mean square error obtained through formula (3) is used to judge whether the mean square error satisfies the convergence condition. If it does not satisfy the convergence condition, the transfer function is continuously updated according to the iteration step size, and based on the updated transfer function, it is continued to calculate whether the mean square error satisfies the convergence condition, and the iterative update step is repeatedly executed until the finally obtained mean square error satisfies the convergence condition. After obtaining the mean square error that satisfies the convergence condition, the transfer function at the previous moment of the target transfer function is deduced backward through the above formula (3), and then the gradient corresponding to the target transfer function is obtained based on formula (4); finally, the transfer function at the previous moment obtained based on formula (3) and the gradient obtained based on formula (4) are substituted into formula (5) to obtain the target transfer function.
[0148] Since the first test audio signal is the real signal collected by the audio acquisition device, the first test audio signal can also be understood as the test audio signal obtained after the second test audio signal is transmitted through the transfer function in the real environment. The output signal is the test audio signal simulated by the target transfer function obtained through calculation of the second test audio signal. Therefore, the smaller the error between the first test audio signal and the output signal, the closer the calculated target transfer function is to the real transfer function inside the current vehicle.
[0149] A5. Determine the performance deviation value between the target transfer function and the standard transfer function.
[0150] This performance deviation value refers to the performance deviation between audio acquisition devices of the same type and in the same assembly environment. Specifically, it is the difference between the target transfer function corresponding to the audio acquisition device to be measured and the standard transfer function corresponding to the standard audio acquisition device.
[0151] Taking the audio acquisition device as a microphone and the audio playback device as a speaker as an example. The standard transfer function is the transfer function between the standard microphone and the standard speaker in the standard vehicle in the same assembly environment as the microphone to be measured.
[0152] Please refer to Figure 3 As shown, the vehicle to be tested is vehicle A, and the standard vehicle is vehicle B. The position of microphone A installed on vehicle A is the same as the position of microphone B installed on vehicle B, and the position of speaker A installed on vehicle A is the same as the position of speaker B installed on vehicle B. In this way, the performance deviation value between the target transfer function between microphone A and speaker A on vehicle A and the standard transfer function between microphone B and speaker B on vehicle B is more comparable, and the performance deviation between the microphone in the vehicle A to be tested and the microphone in the standard vehicle B can be determined.
[0153] A6. When the performance deviation value is outside the error range, it is determined that the audio acquisition device is abnormal.
[0154] After obtaining the target transfer function, the target transfer function can be Fourier-transformed to obtain the amplitude of the target transfer function at each frequency point; when the performance deviation value between the amplitude and the standard amplitude is outside the error range, it is determined that the audio acquisition device is abnormal.
[0155] It can be understood that for the error range corresponding to the amplitude, considering the characteristic that the audio signal mainly exists in the middle and low frequencies, a first error range can be provided for the amplitude of the frequency points below 5KHZ; affected by the reflection, noise, and algorithm convergence in the vehicle, the high-frequency frequency response fluctuates greatly, and a second error range can be provided for the amplitude of the frequency points above 5KHZ. The maximum value of the first error range is less than the minimum value of the second error range.
[0156] After obtaining the standard transfer function, the standard transfer function can also be Fourier-transformed to obtain the standard amplitude of the standard transfer function at each frequency point, and then the performance deviation value between the amplitude of the target transfer function at each frequency point and the standard amplitude at each frequency point is calculated. If the frequency point is below 5KHZ, it is judged whether the performance deviation value is within the first error range; if the frequency point is above 5KHZ, it is judged whether the performance deviation value is within the second error range.
[0157] When the performance deviation value is outside the error range, it indicates that the target transfer function and the standard transfer function differ greatly, and the transfer function between the audio acquisition device to be tested and the audio playback device differs greatly from the transfer function between the standard audio acquisition device and the audio playback device. Then it can be explained that the audio acquisition device to be tested is abnormal, and the quality of the audio acquisition device to be tested is relatively poor compared to the quality of the standard audio acquisition device.
[0158] Currently, the transfer function between an audio playback device and an audio acquisition device is related to three factors: the audio acquisition device, the audio playback device, and the transmission path. Usually, the positions of the audio playback device and the audio acquisition device in vehicles of the same type and batch are fixed, and the acoustic environment inside the vehicle is basically the same after the windows are closed. In the present disclosure, the vehicle to be tested and the standard vehicle are set as vehicles of the same type, and the positions and types of the audio playback device and the audio acquisition device in the vehicle to be tested are configured to be the same as those of the audio playback device and the audio acquisition device in the standard vehicle, so as to ensure that the difference between the audio acquisition device in the standard vehicle and the audio acquisition device in the vehicle to be tested is tested under the same transmission path. Moreover, compared with the audio acquisition device, the audio playback device is larger in volume and not easily affected by the acoustic structure, so the audio playback device basically does not affect the transfer function.
[0159] After removing the influence of the audio playback device and the transmission path on the transfer function, the quality of the audio acquisition device installed in the vehicle is the main factor affecting the transfer function. When the quality of the audio acquisition device is poor, the deviation between the obtained target transfer function and the standard transfer function will be relatively large. Therefore, if the target transfer function between the audio acquisition device and the audio playback device in the vehicle to be tested can be accurately obtained, the quality of the audio acquisition device to be tested can be indirectly obtained, which can also be regarded as inversely deriving the quality of the audio acquisition device to be tested.
[0160] It can be understood that only by setting the installation environment of the audio playback device to be tested to be the same as that of the standard audio playback device can the influence of factors such as the installation environment of the audio playback device be removed. For example, the target transfer function between the audio acquisition device A and the audio playback device A on vehicle A needs to be compared with the standard transfer function between the standard audio acquisition device B and the standard audio playback device B on vehicle B under the same installation environment and the same type. Only when the type and installation environment of the audio acquisition device A are the same as those of the standard audio acquisition device B can the influence of factors such as the installation environment on the transfer function be removed. On this basis, different standard transfer functions correspond to the audio acquisition devices in different installation environments. Please refer to Figure 4 As shown, since the installation positions of the audio acquisition devices A to F are different, each of the audio acquisition devices A to F corresponds to a standard transfer function respectively.
[0161] Through the above technical solution, the present disclosure pre-obtains a standard transfer function between a standard audio acquisition device and a standard audio playback device in the same type and the same configuration environment as the audio acquisition device to be tested. Then, based on the standard transfer function, it is determined whether the target transfer function between the audio acquisition device to be tested and the audio playback device is close to the standard transfer function. If the two are not close, it means that there is a large difference between the performance of the audio acquisition device to be tested and the performance of the standard audio acquisition device. Since the standard audio acquisition device is a normal audio acquisition device, when there is a large difference between the two, it is determined that the audio playback device to be tested has a fault or its performance deviates from that of the standard audio playback device.
[0162] In the first aspect, taking the audio acquisition device as a microphone array as an example, the target microphone in the microphone array to be tested can be compared with the standard microphone in the standard microphone array to determine whether the target transfer function corresponding to the target microphone is close to the standard transfer function corresponding to the standard microphone. If not, it is determined that the microphone to be tested is abnormal or the quality of the microphone to be tested is worse than the quality of the standard microphone. This overcomes the deficiency in the traditional test method that only the microphone array can be tested and a single microphone cannot be tested.
[0163] In the second aspect, by repeatedly using the above test method, the quality of multiple microphones in the same group of microphone arrays can be tested, and then it can be determined whether the quality of multiple microphones in the same group of microphone arrays is consistent to discover or lock a single microphone with abnormal performance.
[0164] In the third aspect, when the deviation between the target transfer function and the standard transfer function is large, it indicates that there is a large quality deviation between the audio acquisition device to be tested and the standard audio acquisition device. At this time, the quality of the audio acquisition device to be tested is lower than the quality of the standard audio acquisition device, so that the quality consistency difference of the audio acquisition devices between different vehicles can be obtained, and the abnormal vehicles and audio acquisition devices can be discovered and locked.
[0165] In the fourth aspect, the test method for the audio acquisition device proposed by the present disclosure is a self-test method. Based on the controller running a test program, the performance of the audio acquisition device can be tested without relying on other test equipment and test environments, and its test cost is lower and the test implementation is more convenient.
[0166] The following introduces specific embodiments related to the above steps. This specific embodiment is used to interpret that when the standard quality parameter is the standard acoustic parameter, considering from the acoustic quality of the audio acquisition device, it is determined whether the audio acquisition device is abnormal, and it includes the following steps.
[0167] B1. Determine the acoustic deviation value between the acoustic parameter and the standard acoustic parameter.
[0168] Determine the average or median value of the acoustic parameters of multiple audio acquisition devices in the same group of audio acquisition devices; use the average value or the median value as the standard acoustic parameter.
[0169] For example, if the acoustic parameters of multiple audio acquisition devices are 0, 1, 2, 3, 4, 5, 6 respectively, then the average value 3 can be used as the standard acoustic parameter, and the median value 3 can also be used as the standard acoustic parameter.
[0170] Since the acoustic parameters include ambient background noise, sensitivity, signal-to-noise ratio and frequency response, the corresponding standard acoustic parameters include standard ambient background noise, sensitivity, signal-to-noise ratio and frequency response.
[0171] The average or median value of multiple ambient background noises in the time series collected by the audio acquisition device can be used as the standard ambient background noise; the average or median value of multiple sensitivities of the first test audio signal in the time series collected by the audio acquisition device can be used as the standard sensitivity; the average or median value of multiple signal-to-noise ratios between the first test audio signal and the ambient background noise in the time series collected by the audio acquisition device can be used as the standard signal-to-noise ratio; the standard amplitude of the first test audio signal at different frequency points in the time series collected by the audio acquisition device can be used as the standard frequency response.
[0172] B2. In the case where the acoustic deviation value is outside the error range, determine that the audio acquisition device is abnormal.
[0173] Determine that the audio acquisition device is abnormal in the presence of at least one of the following:
[0174] (1) Use the average or median value of the ambient background noise signals collected by the same group of the audio acquisition devices as the standard ambient background noise; in the case where the acoustic deviation value between the ambient background noise of the audio acquisition device to be tested and the standard ambient background noise is outside the error range, determine that the ambient background noise collected by the audio acquisition device to be tested is abnormal due to an abnormality.
[0175] (2) Use the average or median value of the sensitivities of the first test audio signal collected by the same group of the audio acquisition devices as the standard sensitivity; in the case where the acoustic deviation value between the sensitivity of the first test audio signal collected by the audio acquisition device to be tested and the standard sensitivity is outside the error range, determine that the sensitivity of the first test audio signal collected by the audio acquisition device to be tested is abnormal due to an abnormality.
[0176] (3) Take the difference between the standard sensitivity and the standard ambient noise floor as the standard signal-to-noise ratio. Among them, the standard sensitivity is the average or median value of the sensitivities of the first test audio signals collected by the same set of the audio acquisition devices; the standard ambient noise floor is the average or median value of the ambient noise floor signals collected by the same set of the audio acquisition devices. In the case where the acoustic deviation value between the signal-to-noise ratio of the audio acquisition device to be tested and the standard signal-to-noise ratio is outside the error range, it is determined that the signal-to-noise ratio between the first test audio signal collected by the audio acquisition device to be tested due to an abnormality and the ambient noise floor is abnormal.
[0177] (4) Take the average or median value of the amplitudes of the first test audio signals collected by the same set of the audio acquisition devices at each frequency point in the Fourier transform domain as the standard frequency response. In the case where the acoustic deviation value between the amplitude of the audio acquisition device to be tested and the standard frequency response is outside the error range, it is determined that the amplitudes of the second test audio signal collected by the audio acquisition device to be tested at each frequency point are abnormal due to an abnormality. This standard frequency response can also be referred to as the standard amplitude.
[0178] For example, please refer to Figure 4 As shown, taking an audio acquisition device as a certain microphone in a microphone array as an example, assuming that the microphone to be tested is microphone A, the average or median value of the acoustic parameters of microphones A - F can be used as the standard acoustic parameters, and then the difference between the acoustic parameters of microphone A and the standard acoustic parameters can be judged. If the difference is large, it indicates that there is a large difference in acoustic quality between microphone A and the other microphones in the same microphone array. At this time, it indicates that microphone A is abnormal.
[0179] Through the above technical solution, the average or median value of the acoustic parameters of multiple audio acquisition devices can be determined, and the average or median value is used as the standard acoustic parameter. Then, the difference between the acoustic parameters of each of the multiple audio acquisition devices and the standard acoustic parameter is determined one by one. If the difference is large, it indicates that the audio acquisition device is abnormal, or the quality of the audio acquisition device is worse than that of the other audio acquisition devices in the same group.
[0180] In the first aspect, taking the audio acquisition device as a microphone array as an example, the acoustic parameters of the microphones in the microphone array to be tested can be compared with the standard acoustic parameters obtained from the acoustic parameters of multiple microphones to determine whether the acoustic parameters of the microphones to be tested are close to the standard acoustic parameters. If they are not close, it is determined that the microphones to be tested are abnormal or the quality of the microphones to be tested is worse than that of the other microphones in the same microphone array, which overcomes the deficiency in the traditional test method that only the microphone array can be tested and a single microphone cannot be tested.
[0181] In a second aspect, by repeatedly using the above test method, quality tests can be performed on multiple microphones in the same group of microphone arrays, thereby determining whether the quality of the multiple microphones in the same group of microphone arrays is consistent, and further discovering or locking a single microphone with abnormal performance.
[0182] In a third aspect, the test method for the audio acquisition device proposed in the present disclosure is a self-test method. Based on the controller running a test program, performance tests can be performed on the audio acquisition device without relying on other test equipment and test environments, with lower test costs and more convenient test implementation.
[0183] The following describes an optional embodiment related to the present disclosure, which is used to explain how to accurately determine whether it is the audio acquisition device or the audio playback device that is abnormal.
[0184] In the case where the first performance deviation value of the audio acquisition device is outside the error range and the first acoustic deviation value is within the error range, determine the second performance deviation value of the audio acquisition device; the first performance deviation value and the first acoustic deviation value are obtained based on the audio acquisition device collecting the second test audio signal played by the first audio playback device, and the second performance deviation value is obtained based on the audio acquisition device collecting the second test audio signal played by the second audio playback device.
[0185] For example, please refer to Figure 5 As shown, taking the first audio playback device as speaker A, the second audio playback device as speaker B, and the audio acquisition device as a microphone, the microphone can first collect the second test audio signal played by speaker A, and then calculate the target transfer function between the microphone to be tested and speaker A, as well as the first performance deviation value of the standard transfer function between the standard microphone and the standard speaker, and the first acoustic deviation value between the acoustic parameters of the microphone to be tested and the standard acoustic parameters of the same group of microphone arrays.
[0186] If the first performance deviation value is outside the error range and the first acoustic deviation value is within the error range, it indicates that there is a large performance deviation between the microphone to be tested and the standard microphone, and a small acoustic deviation between the microphone to be tested and the other microphones within the same group of microphone arrays. It may be that there is a quality problem with the entire microphone array where the microphone to be tested is located, resulting in a small acoustic deviation between the microphones within the same group of microphone arrays and a large performance deviation between the microphone to be tested and the standard microphone; it may also be due to Speaker A. The quality of Speaker A is worse than that of the standard speaker, resulting in a larger deviation between the audio signal received by the microphone to be tested from Speaker A and the audio signal received by the standard microphone from the standard speaker. The audio signals received by the microphones within the same group are all from the poor-quality Speaker A, so the difference in the audio signals received between the microphone arrays within the same group is small.
[0187] To further determine whether the quality problem lies with the microphone or Speaker A, the target transfer function between the microphone and Speaker B can be calculated, as well as the second performance deviation between the target transfer function and the standard transfer function between the standard microphone and the standard speaker. If the second performance deviation is also large, it indicates that the performance deviation between the target transfer functions between the microphone and different speakers and the standard transfer functions between the standard microphone and the standard speaker is large, indicating that the microphone is abnormal.
[0188] Conversely, if the second performance deviation between the target transfer function and the standard transfer function between the microphone and Speaker B is small, it indicates that the microphone is normal and Speaker A is abnormal.
[0189] Through the above technical solution, when it is impossible to determine whether the audio acquisition device is abnormal or the audio playback device is abnormal, the target transfer function between the audio acquisition device and different audio playback devices can be calculated, and then the performance deviation value between different target transfer functions and the corresponding standard transfer functions can be determined. If the performance deviation values are all within the error range, it further indicates that the audio acquisition device is normal and the audio playback device is abnormal.
[0190] Figure 6 It is a block diagram of a test device for an audio acquisition device shown according to an exemplary embodiment. Refer to Figure 6 , the test device 600 for the audio acquisition device includes: a playback control module 610, an acquisition module 620, a parameter determination module 630, a deviation value determination module 640, and an abnormality detection module 650.
[0191] The playback control module 610 is configured to control the audio playback device to play a test audio, and the audio playback device is assembled in the cockpit of the vehicle;
[0192] An acquisition module 620, configured to acquire a first test audio signal, where the first test audio signal is an audio signal collected by an audio acquisition device installed in the cockpit after the test audio is played;
[0193] A parameter determination module 630, configured to determine a quality parameter of the audio acquisition device according to the first test audio signal; where the quality parameter is used to characterize the performance parameter and / or acoustic parameter of the audio acquisition device;
[0194] A deviation value determination module 640, configured to determine a deviation value between the quality parameter and a standard quality parameter;
[0195] An abnormality detection module 650, configured to determine whether the audio acquisition device is abnormal according to a comparison relationship between the deviation value and an error range.
[0196] Optionally, the standard quality parameter is a standard transfer function, the quality parameter includes a target transfer function for characterizing the performance parameter, and the target transfer function is used to represent the relationship between a second test audio signal to be played by an audio playback device and the first test audio signal collected by the audio acquisition device; the deviation value determination module 640 includes:
[0197] A performance deviation value determination sub-module, configured to determine a performance deviation value between the target transfer function and the standard transfer function.
[0198] Optionally, the parameter determination module 630 includes:
[0199] An output signal determination sub-module, configured to determine an output signal obtained after the second test audio signal is transmitted through a transfer function;
[0200] An error determination sub-module, configured to determine an error between the first test audio signal and the output signal;
[0201] An update sub-module, configured to update the transfer function when the error does not meet the convergence condition, and based on the updated transfer function, execute the step of determining the error between the first test audio signal and the output signal again until the error meets the convergence condition;
[0202] A target transfer function determination sub-module, configured to obtain the target transfer function according to the transfer function that meets the convergence condition when the error meets the convergence condition.
[0203] Optionally, the target transfer function determination sub-module includes:
[0204] A gradient determination sub-module, configured to obtain a gradient corresponding to the target transfer function according to the second test audio signal and the error;
[0205] A convergence sub-module, configured to obtain the target transfer function based on the gradient and the transfer function under the condition of meeting the convergence condition.
[0206] Optionally, the standard transfer function includes a standard amplitude; the anomaly detection module 650 includes:
[0207] A transformation sub-module, configured to perform a Fourier transform on the target transfer function to obtain the amplitude of the target transfer function at each frequency point;
[0208] A first anomaly detection sub-module, configured to determine that the audio acquisition device is abnormal when a performance deviation value between the amplitude and the standard amplitude is outside the error range.
[0209] Optionally, the standard transfer function is a transfer function corresponding to a standard audio acquisition device, and the standard audio acquisition device is an audio acquisition device of the same type as the audio acquisition device and in the same assembly environment.
[0210] Optionally, the standard quality parameter is a standard acoustic parameter; the deviation value determination module 640 includes: an acoustic deviation value determination sub-module, configured to determine an acoustic deviation value between the acoustic parameter and the standard acoustic parameter.
[0211] Optionally, the test device 600 of the audio acquisition device includes:
[0212] A standard acoustic parameter module, configured to use the average value or median value of the acoustic parameters of the same group of audio acquisition devices as the standard acoustic parameter.
[0213] Optionally, the standard acoustic parameter includes at least one of the following:
[0214] The standard environmental background noise, standard sensitivity, standard signal-to-noise ratio, and standard frequency response of the first test audio signal.
[0215] Optionally, the standard acoustic parameter is the standard environmental background noise; the standard acoustic parameter module includes:
[0216] A standard environmental background noise sub-module, configured to use the average value or median value of the environmental background noise signals collected by the same group of audio acquisition devices as the standard environmental background noise.
[0217] Optionally, the standard acoustic parameter is the standard sensitivity; the standard acoustic parameter module includes:
[0218] The standard sensitivity sub-module is configured to use the average or median value of the sensitivities of the first test audio signals collected by the same set of the audio acquisition devices as the standard sensitivity.
[0219] Optionally, the standard acoustic parameter is the standard signal-to-noise ratio; the standard acoustic parameter module includes:
[0220] The standard signal-to-noise ratio sub-module is configured to use the difference between the standard sensitivity and the standard ambient noise floor as the standard signal-to-noise ratio; wherein, the standard sensitivity is the average or median value of the sensitivities of the first test audio signals collected by the same set of the audio acquisition devices; the standard ambient noise floor is the average or median value of the ambient noise floor signals collected by the same set of the audio acquisition devices.
[0221] Optionally, the standard acoustic parameter is the standard frequency response; the standard acoustic parameter module includes:
[0222] The standard frequency response sub-module is configured to use the average or median value of the amplitudes of each frequency point of the first test audio signals collected by the same set of the audio acquisition devices in the Fourier transform domain as the standard frequency response.
[0223] Optionally, the anomaly detection module 650 includes:
[0224] The second anomaly detection sub-module is configured to determine that the audio acquisition device is abnormal when the acoustic deviation value is outside the error range.
[0225] Optionally, the audio playback device includes a first audio playback device and a second audio playback device; the deviation value includes a performance deviation value and an acoustic deviation value;
[0226] Optionally, the anomaly detection module 650 includes:
[0227] The second performance deviation value determination sub-module is configured to determine the second performance deviation value of the audio acquisition device when the first performance deviation value of the audio acquisition device is outside the error range and the first acoustic deviation value is within the error range; the first performance deviation value and the first acoustic deviation value are obtained based on the second test audio signals played by the first audio playback device collected by the audio acquisition device, and the second performance deviation value is obtained based on the second test audio signals played by the second audio playback device collected by the audio acquisition device;
[0228] The third anomaly detection sub-module is configured to determine that the audio acquisition device is abnormal when the second performance deviation value is outside the error range.
[0229] Regarding the device in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be elaborated here.
[0230] Based on the same inventive concept, the present disclosure also provides a test device for an audio acquisition device, including:
[0231] An audio playback device for playing test audio, the audio playback device being assembled in the cockpit of the vehicle; an audio acquisition device for acquiring a first test audio signal, the first test audio signal being the audio signal acquired by the audio acquisition device installed in the cockpit after the test audio is played; a controller communicatively connected to the audio playback device and the audio acquisition device respectively, for executing the steps of the test method for the audio acquisition device provided by the present disclosure.
[0232] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and when the program instructions are executed by a processor, the steps of the test method for the audio acquisition device provided by the present disclosure are implemented.
[0233] Figure 7 FIG. 700 is a block diagram of a vehicle 700 shown according to an exemplary embodiment. For example, the vehicle 700 may be a hybrid vehicle, or a non-hybrid vehicle, an electric vehicle, a fuel cell vehicle, or other types of vehicles. The vehicle 700 may be an autonomous vehicle, a semi-autonomous vehicle, or a non-autonomous vehicle.
[0234] Refer to Figure 7 , the vehicle 700 may include various subsystems. For example, the infotainment system 710, the perception system 720, the decision control system 730, the drive system 740, and the computing platform 750. Among them, the vehicle 700 may further include more or fewer subsystems, and each subsystem may include multiple components. In addition, each subsystem and each component of the vehicle 700 may be interconnected by wired or wireless means.
[0235] In some embodiments, the infotainment system 710 may include a communication system, an entertainment system, and a navigation system, etc.
[0236] The perception system 720 may include several sensors for sensing information about the environment around the vehicle 700. For example, the perception system 720 may include a global positioning system (the global positioning system may be a GPS system, or a Beidou system, or other positioning systems), an inertial measurement unit (IMU), a lidar, a millimeter wave radar, an ultrasonic radar, and a camera device.
[0237] The decision control system 730 may include a computing system, a vehicle controller, a steering system, an accelerator, and a braking system.
[0238] The drive system 740 may include components that provide powered movement for the vehicle 700. In one embodiment, the drive system 740 may include an engine, an energy source, a transmission system, and wheels. The engine may be one or a combination of an internal combustion engine, an electric motor, and an air compression engine. The engine is capable of converting the energy provided by the energy source into mechanical energy.
[0239] Some or all functions of the vehicle 700 are controlled by the computing platform 750. The computing platform 750 may include at least one processor 751 and a memory 752, and the processor 751 may execute instructions 753 stored in the memory 752.
[0240] The processor 751 may be any conventional processor, such as a commercially available CPU. The processor may also include, for example, a Graphic Process Unit (GPU), a Field Programmable Gate Array (FPGA), a System on Chip (SOC), an Application Specific Integrated Circuit (ASIC), or a combination thereof.
[0241] The memory 752 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0242] In addition to the instructions 753, the memory 752 may also store data, such as road maps, route information, data on the position, direction, speed, etc. of the vehicle. The data stored in the memory 752 can be used by the computing platform 750.
[0243] In an embodiment of the present disclosure, the processor 751 may execute the instructions 753 to complete all or part of the steps of the above-mentioned test method for the audio acquisition device.
[0244] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program executable by a programmable device. The computer program has a code portion for performing the above-mentioned test method for the audio acquisition device when executed by the programmable device.
[0245] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the present disclosure. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0246] It should be understood that the present disclosure is not limited to the exact structures already described and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. A testing method for an audio acquisition device, characterized in that, Including: Controlling an audio playback device to play a test audio, where the audio playback device is assembled in a vehicle cockpit; Obtaining a first test audio signal, where the first test audio signal is an audio signal collected by an audio collection device installed in the cockpit after the test audio is played; Determining a quality parameter of the audio collection device according to the first test audio signal; where the quality parameter is used to characterize the performance parameter and / or acoustic parameter of the audio collection device; Determining a deviation value between the quality parameter and a standard quality parameter; Determining whether the audio collection device is abnormal according to the comparison relationship between the deviation value and an error range.
2. The method according to claim 1, wherein The standard quality parameter is a standard transfer function, the quality parameter includes a target transfer function for characterizing the performance parameter, and the target transfer function is used to represent the relationship between a second test audio signal to be played by the audio playback device and the first test audio signal collected by the audio collection device; The determining the deviation value between the quality parameter and the standard quality parameter includes: Determining a performance deviation value between the target transfer function and the standard transfer function.
3. The method according to claim 2, wherein The determining the quality parameter of the audio collection device according to the first test audio signal includes: Determining an output signal obtained after the second test audio signal is transmitted through a transfer function; Determining an error between the first test audio signal and the output signal; In the case where the error does not meet the convergence condition, updating the transfer function and repeatedly performing the step of determining the error between the first test audio signal and the output signal based on the updated transfer function until the error meets the convergence condition; In the case where the error meets the convergence condition, obtaining the target transfer function according to the transfer function that meets the convergence condition.
4. The method according to claim 3, wherein The obtaining the target transfer function according to the transfer function that meets the convergence condition in the case where the error meets the convergence condition includes: Obtaining a gradient corresponding to the target transfer function according to the second test audio signal and the error; Obtaining the target transfer function based on the gradient and the transfer function that meets the convergence condition.
5. The method according to claim 2, characterized in that, The standard transfer function includes a standard amplitude; the determining whether the audio collection device is abnormal according to the comparison relationship between the deviation value and the error range includes: Performing a Fourier transform on the target transfer function to obtain the amplitude of the target transfer function at each frequency point; In the case where the performance deviation value between the amplitude and the standard amplitude is outside the error range, determining that the audio collection device is abnormal.
6. The method according to any one of claims 2 to 5, characterized in that The standard transfer function is a transfer function corresponding to a standard audio collection device, and the standard audio collection device is an audio collection device of the same type as the audio collection device and in the same assembly environment.
7. The method according to claim 1, wherein The standard quality parameter is a standard acoustic parameter; the determining the deviation value between the quality parameter and the standard quality parameter includes: Determining an acoustic deviation value between the acoustic parameter and the standard acoustic parameter.
8. The method according to claim 7, characterized in that, The standard acoustic parameter is determined through the following steps: Use the average or median value of the acoustic parameters of the same group of the audio acquisition devices as the standard acoustic parameters.
9. The method according to claim 8, characterized in that The standard acoustic parameters include at least one of the following: The standard ambient noise floor, standard sensitivity, standard signal-to-noise ratio, and standard frequency response of the first test audio signal.
10. The method according to claim 9, wherein The standard acoustic parameter is the standard ambient noise floor; the step of using the average or median value of the acoustic parameters of the same group of the audio acquisition devices as the standard acoustic parameter includes: Use the average or median value of the ambient noise floor signals collected by the same group of the audio acquisition devices as the standard ambient noise floor.
11. The method according to claim 9, characterized in that The standard acoustic parameter is the standard sensitivity; the step of using the average or median value of the acoustic parameters of the same group of the audio acquisition devices as the standard acoustic parameter includes: Use the average or median value of the sensitivities of the first test audio signals collected by the same group of the audio acquisition devices as the standard sensitivity.
12. The method according to claim 9, wherein The standard acoustic parameter is the standard signal-to-noise ratio; The step of using the average or median value of the acoustic parameters of the same group of the audio acquisition devices as the standard acoustic parameter includes: Use the difference between the standard sensitivity and the standard ambient noise floor as the standard signal-to-noise ratio; wherein, the standard sensitivity is the average or median value of the sensitivities of the first test audio signals collected by the same group of the audio acquisition devices; the standard ambient noise floor is the average or median value of the ambient noise floor signals collected by the same group of the audio acquisition devices.
13. The method according to claim 9, characterized in that The standard acoustic parameter is the standard frequency response; The step of using the average or median value of the acoustic parameters of the same group of the audio acquisition devices as the standard acoustic parameter includes: Use the average or median value of the amplitudes of each frequency point of the first test audio signal collected by the same group of the audio acquisition devices in the Fourier transform domain as the standard frequency response.
14. The method according to claim 7, characterized in that The step of determining whether the audio acquisition device is abnormal according to the comparison relationship between the deviation value and the error range includes: When the acoustic deviation value is outside the error range, determine that the audio acquisition device is abnormal.
15. The method according to claim 1, wherein The audio playback device includes a first audio playback device and a second audio playback device; the deviation value includes a performance deviation value and an acoustic deviation value; The step of determining whether the audio acquisition device is abnormal according to the comparison relationship between the deviation value and the error range includes: When the first performance deviation value of the audio acquisition device is outside the error range and the first acoustic deviation value is within the error range, determine the second performance deviation value of the audio acquisition device; the first performance deviation value and the first acoustic deviation value are obtained according to the second test audio signal played by the first audio playback device collected by the audio acquisition device, and the second performance deviation value is obtained according to the second test audio signal played by the second audio playback device collected by the audio acquisition device; When the second performance deviation value is outside the error range, determine that the audio acquisition device is abnormal.
16. A test device for an audio acquisition device, characterized in that, Includes: A playback control module configured to control the audio playback device to play test audio, and the audio playback device is installed in the cockpit of the vehicle; An acquisition module, configured to acquire a first test audio signal, where the first test audio signal is an audio signal acquired by an audio acquisition device installed in the cockpit after the test audio is played; A parameter determination module, configured to determine a quality parameter of the audio acquisition device according to the first test audio signal; wherein, the quality parameter is used to characterize the performance parameter and / or acoustic parameter of the audio acquisition device; A deviation value determination module, configured to determine a deviation value between the quality parameter and a standard quality parameter; An abnormality detection module, configured to determine whether the audio acquisition device is abnormal according to a comparison relationship between the deviation value and an error range.
17. A test device for an audio acquisition device, characterized in that, It includes: An audio playback device, used to play a test audio, and the audio playback device is assembled in the cockpit of the vehicle; An audio acquisition device, used to acquire a first test audio signal, where the first test audio signal is an audio signal acquired by an audio acquisition device installed in the cockpit after the test audio is played; A controller, communicatively connected to the audio playback device and the audio acquisition device respectively, and configured to execute the steps of the method according to any one of claims 1 to 15.
18. A vehicle, characterized in that, The vehicle includes a cockpit, and the following are arranged in the cockpit: An audio playback device, used to play a test audio, and the audio playback device is assembled in the cockpit of the vehicle; An audio acquisition device, used to acquire a first test audio signal, where the first test audio signal is an audio signal acquired by an audio acquisition device installed in the cockpit after the test audio is played; A controller, communicatively connected to the audio playback device and the audio acquisition device respectively, and configured to execute the steps of the method according to any one of claims 1 to 15.