Disclosure of Invention
The problem that in the prior art, at least part of tested products do not have Bluetooth function modules, the microphones in the products cannot be tested, or the performance of the Bluetooth function modules of part of products is poor, so that the result of testing the microphones is inaccurate is solved.
In a first aspect, an embodiment of the present invention provides a method for testing an electroacoustic parameter of a microphone in a product, where the method is used in an electroacoustic testing terminal outside a anechoic chamber, and includes:
determining a reference parameter according to a test item in the test instruction, and generating a test audio and a recording instruction according to the reference parameter;
sending the recording instruction to an agent end in a silencing room;
responding to a recording starting state fed back by a microphone in a tested product through an agent end in the anechoic chamber, and sending the test audio to a simulation mouth in the anechoic chamber for playing;
receiving a recording audio recorded by a microphone in a tested product and fed back by the agent end in the anechoic chamber;
analyzing the actual parameters of the recorded audio, and determining the microphone audio parameters in the product through a tracking algorithm according to the actual parameters and the reference parameters.
In a second aspect, an embodiment of the present invention provides a method for testing an electroacoustic parameter of a microphone in a product, which is used at an agent end in a anechoic chamber, and includes:
responding to a recording instruction sent by an electroacoustic testing end outside the anechoic chamber, and generating an effective recording instruction for controlling a tested product;
controlling the tested product to start recording through the effective recording instruction based on physical connection and/or wireless ADB connection established with the tested product in advance;
responding to a recording starting state fed back by a tested product, and feeding back the recording starting state to an electroacoustic testing end outside the anechoic chamber;
and receiving the recording audio recorded by the microphone in the tested product, and feeding the recording audio back to the electroacoustic testing end outside the anechoic chamber.
In a third aspect, an embodiment of the present invention provides a system for testing an electroacoustic parameter of a microphone in a product, where the system is used for an electroacoustic testing terminal outside a sound-deadening chamber, and the system includes:
the test information generation program module is used for determining a reference parameter according to a test item in the test instruction and generating a test audio and a recording instruction according to the reference parameter;
the recording instruction sending program module is used for sending the recording instruction to an agent end in the anechoic chamber;
the test audio playing program module is used for responding to a recording starting state fed back by a microphone in a tested product through the agent end in the anechoic chamber and sending the test audio to a simulation mouth in the anechoic chamber for playing;
the recording audio receiving program module is used for receiving the recording audio recorded by the microphone in the tested product fed back by the agent end in the anechoic chamber;
and the electroacoustic parameter determining program module is used for analyzing the actual parameters of the recorded audio and determining the electroacoustic parameters of the microphone in the product through a tracking algorithm according to the actual parameters and the reference parameters.
In a fourth aspect, an embodiment of the present invention provides a system for testing an acoustic parameter of a microphone in a product, where the system is used at an agent end in a anechoic chamber, and the system includes:
the effective instruction generation program module is used for responding to a recording instruction sent by an electroacoustic testing end outside the anechoic chamber and generating an effective recording instruction for controlling a tested product;
the effective instruction forwarding program module is used for controlling the tested product to start recording through the effective recording instruction based on physical connection and/or wireless ADB connection which is established with the tested product in advance;
the recording state forwarding program module is used for responding to a recording starting state fed back by a tested product and feeding back the recording starting state to an electroacoustic testing end outside the anechoic chamber;
and the recording audio forwarding program module is used for receiving the recording audio recorded by the microphone in the tested product and feeding the recording audio back to the electroacoustic testing end outside the anechoic chamber.
In a fifth aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the method for testing of microphone electroacoustic parameters within a product of any of the embodiments of the present invention.
In a sixth aspect, an embodiment of the present invention provides a storage medium, on which a computer program is stored, where the program is executed by a processor to implement the steps of the method for testing an electroacoustic parameter of a microphone in a product according to any of the embodiments of the present invention.
The embodiment of the invention has the beneficial effects that: the transmission method of the Bluetooth is replaced by using the agent terminal to establish connection for the electroacoustic test terminal and the tested product. The electroacoustic test terminal can be connected with microphones of various tested products, so that the problems of data loss, large delay or unstable delay in the Bluetooth transmission process are solved, and the accuracy of the test result is ensured.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 shows a flow chart of an electroacoustic testing terminal used outside a anechoic chamber for a testing method of electroacoustic parameters of a microphone in a product according to an embodiment of the present invention, which includes the following steps:
s11: determining a reference parameter according to a test item in the test instruction, and generating a test audio and a recording instruction according to the reference parameter;
s12: sending the recording instruction to an agent end in a silencing room;
s13: responding to a recording starting state fed back by a microphone in a tested product through an agent end in the anechoic chamber, and sending the test audio to a simulation mouth in the anechoic chamber for playing;
s14: receiving a recording audio recorded by a microphone in a tested product and fed back by the agent end in the anechoic chamber;
s15: analyzing the actual parameters of the recorded audio, and determining the microphone audio parameters in the product through a tracking algorithm according to the actual parameters and the reference parameters.
In the present embodiment, the present method can be incorporated into an electroacoustic test apparatus or an electroacoustic test system. When the electroacoustic tester is used for testing a microphone of a product, the tested product may not have Bluetooth or the performance of a Bluetooth functional module is poor, but most products have usb debugging ports (some usb debugging ports are visible outside the product, and some usb debugging ports are inside the product and are invisible outside).
Because few electroacoustic test ends can call the command of an operating system through a built-in interface, the product is directly controlled through physical connection and wireless ADB (Android Debug Bridge). If possible, implementation is very difficult. In addition, because the electroacoustic test system is arranged outside the silencing room, the distance between the electroacoustic test system and the silencing room is several meters, and excessive loss is introduced due to the fact that a usb data line is too long in physical connection, so that the problem of incapability of communication is caused. Therefore, the agent terminal is used as the transfer of the electroacoustic test terminal and the tested product.
Since the test needs to be performed in the anechoic chamber, the electroacoustic test terminal is outside the anechoic chamber, the tested product is in the anechoic chamber, and the proxy terminal as a relay is also in the anechoic chamber.
For step S11, in response to a test command issued by a tester, the electroacoustic test terminal determines a corresponding reference parameter according to the item tested in the command. The corresponding test audio is generated by the reference parameters, and the corresponding test item is determined in the test since there are many types of test items. For example, in the first test of a microphone in a product, each test item needs to be tested. In this case, the number of reference parameters to be determined is large, and the time for generating the test audio is long. After the first test, for example, it is determined that part of the electroacoustic parameters pass through, and when part of the electroacoustic parameters do not pass through, all the items can be selected for testing after the corresponding parts of the microphone in the product are adjusted for higher accuracy; for testing efficiency, only the items which fail in the first test can be selected for testing. Therefore, when testing, a tester can select corresponding test items according to actual needs, so that the testing time is controlled. At the same time of generating the test audio, a recording instruction for controlling a microphone in the tested product needs to be generated.
In step S12, the recording command determined in step S11 is transmitted to the agent in the anechoic room based on the connection established in advance with the agent in the anechoic room.
For step S13, the electroacoustic test terminal responds to the recording on state fed back by the agent terminal, and plays the test audio generated in step S11 through the simulated mouth in the electroacoustic test system control anechoic chamber.
For step S14, since the recording command has been sent to the product under test in step S12, the microphone of the product under test is in the recording state, the simulated mouth in step S13 plays the test audio, and the microphone records the audio played by the simulated mouth to determine the recorded audio. And after the recording is finished, receiving the recording audio recorded by the microphone in the tested product fed back from the silencing indoor agent end.
For step S15, the actual parameters of the recorded audio are analyzed by an existing method, and then the electroacoustic parameters of the microphone in the product are determined by a tracking algorithm, such as a harmonic tracking algorithm, according to the actual parameters and the reference parameters.
Through the implementation method, the proxy terminal is used for establishing connection for the electroacoustic test terminal and the tested product, and the Bluetooth transmission method is replaced. The electroacoustic test terminal can be connected with microphones of various tested products, so that the problems of data loss, large delay or unstable delay in the Bluetooth transmission process are solved, and the accuracy of the test result is ensured.
As an implementation manner, in this embodiment, after determining a reference parameter according to a test item in the test instruction and generating a test audio and a recording instruction by using the reference parameter, the method further includes:
determining a first audio duration of the test audio;
after receiving the recording audio recorded by the microphone in the tested product and sent by the agent end in the anechoic chamber, the method further comprises the following steps:
determining a recording waveform of the recording audio, segmenting the recording audio according to the waveform, and determining an effective recording audio with a second audio duration, wherein the first audio duration is the same as the second audio duration.
In this embodiment, since a part of blank audio may be recorded during the process of recording audio, a segmentation is performed according to the waveform of the recorded audio to determine an effective recorded audio, and the test audio needs to have the same length and frequency range as the effective recorded audio, so as to be used for calculating the harmonic tracking algorithm.
The principle of segmentation is that the frequency range of the waveform is consistent with the frequency range of the sweep wave played by the artificial mouth. Allowing the cut audio to have a non-swept frequency wave signal with a certain time length at the beginning, wherein the time length does not exceed the record filling time set by the test system. And then, exporting a cut waveform file, wherein the sampling rate of the exported waveform is required to be consistent with the sampling rate of a microphone of the electroacoustic testing system.
For example, the sweep wave generated by the electro-acoustic testing system is known, with a frequency from 8000Hz to 100Hz, a duration of 8.3s, and a set recording fill time of 100 ms. The cut-off audio is then also 8000Hz to 100Hz for a duration of 8.35s, allowing a non-swept wave signal of no more than 100ms to begin because of the 100ms recording fill. The electroacoustic test system sampling rate is 44100Hz, so the cut audio is re-sampled to 44100Hz when derived.
According to the implementation method, the effective recording audio time length is segmented by determining the time length of the testing audio, so that two inputs (the testing audio and the recording audio) of the tracking algorithm are completely aligned, and the testing accuracy is improved.
As an implementation manner, in this embodiment, the test instruction at least includes: detecting a frequency wave signal;
when the test instruction at least comprises a detection frequency wave signal, the test item at least comprises: frequency response, total harmonic distortion, phase.
After the electro-acoustic parameters of the microphone in the product are determined through the tracking algorithm, the method further comprises the following steps:
and detecting the electroacoustic parameters, and feeding back at least the abnormal assembly of the sound receiving channel and/or the abnormal length of the sound receiving channel and/or the abnormal audio recording when the frequency response and/or the total harmonic distortion and/or the phase parameters are abnormal.
In this embodiment, the microphone frequency response, phase, and total harmonic distortion can be obtained by a harmonic tracking algorithm of the electroacoustic test system. After the electroacoustic parameters have been determined, they can be used to evaluate whether the microphone within the product meets certain requirements.
For all products with microphones (single microphone, microphone array), the fluctuations of the frequency response, total harmonic distortion, cannot be too large. For example, the radio channel assembly does not meet the standard, the radio channel is too long, which causes large frequency response fluctuation, and the total harmonic distortion of the low-cost microphone is large, which all destroy the voice quality, affect the performance of the voice signal processing algorithm, and reduce the experience of voice interaction, such as low wake-up rate, poor recognition accuracy, and the like.
For the production of microphone arrays, it is also required that the frequency response uniformity and phase difference between each microphone be within a certain range. If the range is exceeded, the performance of the microphone array speech enhancement algorithm is reduced, the experience of speech interaction is also reduced, and the problems of low awakening rate, poor recognition accuracy and the like occur.
According to the implementation method, the configuration of the tested product is inquired about which configuration is abnormal according to the determined electroacoustic parameters as reference, so that the position of the tested product to be improved is determined according to the parameters, and the microphone of the tested product is prompted to indicate the position to be improved. Thereby improving the testing effect.
Fig. 2 shows a flowchart of an agent end in a anechoic chamber for a method for testing electroacoustic parameters of a microphone in a product according to an embodiment of the present invention, which includes the following steps:
s21: responding to a recording instruction sent by an electroacoustic testing end outside the anechoic chamber, and generating an effective recording instruction for controlling a tested product;
s22: controlling the tested product to start recording through the effective recording instruction based on physical connection and/or wireless ADB connection established with the tested product in advance;
s23: responding to a recording starting state fed back by a tested product, and feeding back the recording starting state to an electroacoustic testing end outside the anechoic chamber;
s24: and receiving the recording audio recorded by the microphone in the tested product, and feeding the recording audio back to the electroacoustic testing end outside the anechoic chamber.
In the present embodiment, the agent terminal inside the noise elimination chamber is connected in advance to the electroacoustic test terminal outside the noise elimination chamber. And the agent end can interact with the electroacoustic test end.
For step S21, the agent end receives the recording command sent by the electroacoustic testing end outside the anechoic chamber, and since the connection has been established in advance, information and data can be mutually transmitted. After receiving the recording command, the electroacoustic test terminal may not know the specific product to be tested, and thus cannot generate the command for controlling the product to be tested. Therefore, after the electroacoustic test end issues the control command to the agent end, the agent end can acquire a corresponding product signal of the tested product due to the fact that the agent end is connected with the tested product in advance, and therefore the electroacoustic test end sends out control to the corresponding effective recording command of the tested product according to different products.
For step S22, the agent terminal is connected to the tested product through a physical connection and/or a wireless ADB (Android Debug Bridge) established in advance, and since most of the products are ADB shell tinycap/arecord and other instructions to control the microphone to start recording, the recording file is stored in the flash of the tested product.
For step S23, the agent end responds to the recording start state fed back by the tested product, and feeds back the recording start state to the electroacoustic testing end outside the anechoic chamber to remind the electroacoustic testing end to control the simulation mouth to play the test audio.
And step S24, after the recording starting state is fed back to the electroacoustic testing end, the electroacoustic testing end controls the simulation mouth to play a testing audio, the tested product is also recorded through the microphone to generate a recording audio, after the audio to be tested is played, the agent end receives the recording audio recorded by the microphone in the flash of the tested product, and feeds the recording audio back to the electroacoustic testing end outside the anechoic chamber.
Through the implementation method, the proxy terminal is used for establishing connection for the electroacoustic test terminal and the tested product, and the Bluetooth transmission method is replaced. The electroacoustic test terminal can be connected with microphones of various tested products, so that the problems of data loss, large delay or unstable delay in the Bluetooth transmission process are solved, and the accuracy of the test result is ensured.
Fig. 3 is a schematic structural diagram of an electroacoustic testing terminal used outside a sound-deadening chamber, which is provided by an embodiment of the present invention, and the system can execute the testing method for the electroacoustic parameters of the microphone in the product according to any of the above embodiments, and is configured in a terminal.
The embodiment provides a test system for microphone electroacoustical parameter in product for the outdoor electroacoustic test end of noise elimination includes: a test information generation program module 11, a recording instruction transmission program module 12, a test audio playback program module 13, a recording audio reception program module 14, and an electroacoustic parameter determination program module 15.
The test information generation program module 11 is configured to determine a reference parameter according to a test item in the test instruction, and generate a test audio and a recording instruction according to the reference parameter; the recording instruction sending program module 12 is used for sending the recording instruction to an agent end in the anechoic chamber; the test audio playing program module 13 is configured to send the test audio to a simulation mouth in the anechoic chamber for playing in response to a recording start state fed back by a microphone in the product to be tested through the agent end in the anechoic chamber; the recording audio receiving program module 14 is configured to receive a recording audio recorded by a microphone in the product to be tested, which is fed back by the agent end in the anechoic chamber; and the electroacoustic parameter determining program module 15 is used for analyzing the actual parameters of the recorded audio, and determining the electroacoustic parameters of the microphone in the product through a tracking algorithm according to the actual parameters and the reference parameters.
Further, after the test information generating program module, the method further includes: an audio duration determination program module for determining a first audio duration of the test audio;
after the recorded audio receiving program module, the method further comprises:
and the audio segmentation program module is used for determining a recording waveform of the recording audio, segmenting the recording audio according to the waveform and determining an effective recording audio with a second audio duration, wherein the first audio duration is the same as the second audio duration.
Further, the test instructions include at least: detecting a frequency wave signal;
when the test instruction at least comprises a detection frequency wave signal, the test item at least comprises: frequency response, total harmonic distortion, phase.
Further, after the electroacoustic parameter determination program module, the method further comprises:
and the abnormity feedback program module is used for detecting the electroacoustic parameters and feeding back at least the abnormal assembly of the sound receiving channel and/or the abnormal length of the sound receiving channel and/or the abnormal recording of the audio when the frequency response and/or the total harmonic distortion and/or the abnormal phase parameters are abnormal.
Fig. 4 is a schematic structural diagram of an agent end in a anechoic chamber, where the system is used for testing an electroacoustic parameter of a microphone in a product according to an embodiment of the present invention, and the system can perform the testing method for the electroacoustic parameter of the microphone in the product according to any of the above embodiments, and is configured in a terminal.
The system for testing the microphone electro-acoustic parameters in the product provided by the embodiment is used for an agent end in a silencing room, and comprises: an effective instruction generation program module 21, an effective instruction forwarding program module 22, a recording state feedback program module 23 and a recording audio feedback program module 24.
The effective instruction generation program module 21 is configured to generate an effective recording instruction for controlling a product to be tested in response to a recording instruction sent by an electroacoustic testing terminal outside the anechoic chamber; the effective instruction forwarding program module 22 is configured to control the tested product to start recording through the effective recording instruction based on a physical connection and/or a wireless ADB connection established with the tested product in advance; the recording state feedback program module 23 is configured to respond to a recording start state fed back by a product to be tested, and feed back the recording start state to an electroacoustic testing end outside the anechoic chamber; the recording audio feedback program module 24 is configured to receive the recording audio recorded by the microphone in the product to be tested, and feed the recording audio back to the electroacoustic testing terminal outside the anechoic chamber.
The embodiment of the invention also provides a nonvolatile computer storage medium, wherein the computer storage medium stores computer executable instructions which can execute the test method for the electroacoustic parameters of the microphone in the product in any method embodiment;
as one embodiment, a non-volatile computer storage medium of the present invention stores computer-executable instructions configured to:
determining a reference parameter according to a test item in the test instruction, and generating a test audio and a recording instruction according to the reference parameter;
sending the recording instruction to an agent end in a silencing room;
responding to a recording starting state fed back by a microphone in a tested product through an agent end in the anechoic chamber, and sending the test audio to a simulation mouth in the anechoic chamber for playing;
receiving a recording audio recorded by a microphone in a tested product and fed back by the agent end in the anechoic chamber;
analyzing the actual parameters of the recorded audio, and determining the microphone audio parameters in the product through a tracking algorithm according to the actual parameters and the reference parameters.
The embodiment of the invention also provides a nonvolatile computer storage medium, wherein the computer storage medium stores computer executable instructions which can execute the test method for the electroacoustic parameters of the microphone in the product in any method embodiment;
as one embodiment, a non-volatile computer storage medium of the present invention stores computer-executable instructions configured to:
responding to a recording instruction sent by an electroacoustic testing end outside the anechoic chamber, and generating an effective recording instruction for controlling a tested product;
controlling the tested product to start recording through the effective recording instruction based on physical connection and/or wireless ADB connection established with the tested product in advance;
responding to a recording starting state fed back by a tested product, and feeding back the recording starting state to an electroacoustic testing end outside the anechoic chamber;
and receiving the recording audio recorded by the microphone in the tested product, and feeding the recording audio back to the electroacoustic testing end outside the anechoic chamber.
As a non-volatile computer readable storage medium, may be used to store non-volatile software programs, non-volatile computer executable programs, and modules, such as program instructions/modules corresponding to the methods of testing software in embodiments of the present invention. One or more program instructions are stored in a non-transitory computer readable storage medium that, when executed by a processor, perform a method for testing of microphone electroacoustic parameters within a product in any of the method embodiments described above.
The non-volatile computer-readable storage medium may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of a device of test software, and the like. Further, the non-volatile computer-readable storage medium may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the non-transitory computer readable storage medium optionally includes memory located remotely from the processor, which may be connected to the means for testing software over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
An embodiment of the present invention further provides an electronic device, which includes: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the method for testing of microphone electroacoustic parameters within a product of any of the embodiments of the present invention.
The client of the embodiment of the present application exists in various forms, including but not limited to:
(1) mobile communication devices, which are characterized by mobile communication capabilities and are primarily targeted at providing voice and data communications. Such terminals include smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include PDA, MID, and UMPC devices, such as ipads.
(3) Portable entertainment devices such devices may display and play multimedia content. Such devices include audio and video players (e.g., ipods), handheld game consoles, electronic books, as well as smart toys and portable car navigation devices.
(4) Other electronic devices with microphone functionality.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.