CN116193347A - Audio test system, method and storage medium - Google Patents
Audio test system, method and storage medium Download PDFInfo
- Publication number
- CN116193347A CN116193347A CN202310159551.1A CN202310159551A CN116193347A CN 116193347 A CN116193347 A CN 116193347A CN 202310159551 A CN202310159551 A CN 202310159551A CN 116193347 A CN116193347 A CN 116193347A
- Authority
- CN
- China
- Prior art keywords
- audio
- test
- preset
- terminal
- sound
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R29/00—Monitoring arrangements; Testing arrangements
Landscapes
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Otolaryngology (AREA)
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Reverberation, Karaoke And Other Acoustics (AREA)
- Electrically Operated Instructional Devices (AREA)
Abstract
The embodiment of the application provides an audio test system, an audio test method and a storage medium, relates to the technical field of earphone test, and can realize automatic audio test based on application scenes, thereby saving manpower and improving efficiency. An audio testing method comprising: generating and outputting preset audio to the audio test equipment, wherein the preset audio comprises a plurality of frequency components, and the energy among the frequency components has a preset relation; acquiring test audio data output by audio test equipment; processing the test audio data, and converting the test audio data from a time domain expression form to a frequency domain expression form to obtain a processed audio signal; extracting signals to be judged in the processed audio signals according to a preset relation; and determining a test result according to the signal to be judged.
Description
Technical Field
The present disclosure relates to the field of earphone testing technologies, and in particular, to an audio testing system, an audio testing method, and a storage medium.
Background
With the development of Bluetooth technology, bluetooth wireless earphone is more and more mature, and current test to audio quality often needs artifical subjective judgement, or relies on the deep learning model, carries out discernment judgement after training based on a large amount of training samples, and test efficiency is lower.
Disclosure of Invention
An audio test system, an audio test method and a storage medium can realize automatic audio test based on application scenes, save manpower and improve efficiency.
In a first aspect, an audio testing method is provided, including: generating and outputting preset audio to the audio test equipment, wherein the preset audio comprises a plurality of frequency components, and the energy among the frequency components has a preset relation; acquiring test audio data output by audio test equipment; processing the test audio data, and converting the test audio data from a time domain expression form to a frequency domain expression form to obtain a processed audio signal; extracting signals to be judged in the processed audio signals according to a preset relation; and determining a test result according to the signal to be judged.
In one possible implementation, the processing is a fourier transform.
In one possible implementation, the preset audio corresponds to a preset frequency band; according to a preset relation, extracting the signal to be judged in the processed audio signal comprises the following steps: and extracting a signal to be judged in the processed audio signal according to the preset frequency band and the preset relation.
In one possible implementation, an audio test apparatus includes: the first terminal is used for playing preset audio; the wireless earphone is used for playing preset audio from the first terminal; the artificial ear is used for collecting sound, and the sound collected by the artificial ear comprises sound played by the wireless earphone; the double-channel sound card is used for recording sound collected by the artificial ear into test audio data.
In one possible implementation, an audio test apparatus includes: the sound equipment is used for playing preset audio; the wireless earphone is used for collecting sound through the microphone, and the sound collected by the wireless earphone comprises preset audio played by the sound equipment; the first terminal is used for recording sound collected by the wireless earphone as test audio data.
In one possible implementation, an audio test apparatus includes: the sound equipment is used for playing preset audio; the wireless earphone is used for collecting sound through the microphone, and the sound collected by the wireless earphone comprises preset audio played by the sound equipment; the first terminal is used for receiving sound collected by the wireless earphone; and the second terminal is used for receiving the sound collected by the wireless earphone output by the first terminal through call connection and recording the sound as test audio data.
In one possible implementation, an audio test apparatus includes: the sound equipment is used for playing preset audio; the wireless earphone is used for collecting sound through the microphone, and the sound collected by the wireless earphone comprises preset audio played by the sound equipment; the first terminal is used for recording sound collected by the wireless earphone as test audio data and outputting the test audio data; and the second terminal is used for receiving the sound collected by the wireless earphone output by the first terminal through call connection.
In one possible implementation, an audio test apparatus includes: the sound equipment is used for playing preset audio; the second terminal is used for collecting sound through the microphone, and the sound collected by the second terminal comprises preset audio played by the sound equipment; the first terminal is used for receiving sound collected by the second terminal through call connection; the wireless earphone is used for playing sound collected by the second terminal and received by the first terminal; the artificial ear is used for collecting sound, and the sound collected by the artificial ear comprises sound played by the wireless earphone; the double-channel sound card is used for recording sound collected by the artificial ear into test audio data.
In one possible implementation, an audio test apparatus includes: the sound equipment is used for playing preset audio; the second terminal is used for collecting sound through the microphone, and the sound collected by the second terminal comprises preset audio played by the sound equipment; the first terminal is used for receiving sound collected by the second terminal through call connection and recording the sound as reference audio data; the wireless earphone is used for playing sound collected by the second terminal and received by the first terminal; the artificial ear is used for collecting sound, and the sound collected by the artificial ear comprises sound played by the wireless earphone; the double-channel sound card is used for recording sound collected by the artificial ear into test audio data; according to the preset frequency band and the preset relation, extracting the signal to be judged in the processed audio signal comprises the following steps: and extracting a signal to be judged in the processed audio signal according to the preset frequency band, the preset relation and the reference audio data.
In one possible implementation, the preset audio includes a first preset audio and a second preset audio, the first preset audio corresponds to a first preset frequency band, the second preset audio corresponds to a second preset frequency band, and the first preset frequency band is smaller than the second preset frequency band.
In one possible implementation manner, the preset audio includes a third preset audio and a fourth preset audio, the third preset audio corresponds to a third preset frequency band, the fourth preset audio corresponds to a fourth preset frequency band, the third preset frequency band is smaller than the fourth preset frequency band, the energy magnitudes among the plurality of frequency components of the third preset audio have a third preset relationship, and the energy magnitudes among the plurality of frequency components of the fourth preset audio have a fourth preset relationship; the audio test equipment comprises first audio test equipment and second audio test equipment; the method for obtaining the test audio data output by the audio test equipment comprises the following steps: acquiring first test audio data output by first audio test equipment; acquiring second test audio data output by second audio test equipment; processing the test audio data, converting the test audio data from a time domain expression form to a frequency domain expression form, and obtaining a processed audio signal comprises: processing the first test audio data, and converting the first test audio data from a time domain expression form to a frequency domain expression form to obtain a processed first audio signal; processing the second test audio data, and converting the second test audio data from a time domain expression form to a frequency domain expression form to obtain a processed second audio signal; according to the preset frequency band and the preset relation, extracting the signal to be judged in the processed audio signal comprises the following steps: extracting a first signal to be judged in the processed first audio signal according to a third preset frequency band and a third preset relation; extracting a second signal to be judged in the processed second audio signal according to a fourth preset frequency band and a fourth preset relation; determining a test result according to the signal to be judged comprises: and determining a first test result according to the first signal to be judged, and determining a second test result according to the second signal to be judged.
In a second aspect, an audio testing system is provided, comprising: the control device comprises a processor and a memory, wherein the memory is used for storing at least one instruction, and the instruction is loaded and executed by the processor to realize the audio test method; an audio test device communicatively coupled to the control device, the audio test device comprising: the earphone is in communication connection with the control device; the first terminal is in communication connection with the control device and the earphone.
In one possible implementation, the headset is a wireless headset, the wireless headset having a bluetooth connection function; the first terminal has a bluetooth connection function.
In one possible implementation, the audio test apparatus further includes: the wireless earphone is arranged on the artificial ear, and the artificial ear is used for simulating the human ear to collect sound played by the wireless earphone; the double-channel sound card is connected to the control device and is used for recording sound collected by the artificial ear into double-channel audio data; the sound equipment is in communication connection with the control device; the second terminal is in communication connection with the control device, has a wireless communication function, and has a wireless communication function.
In a third aspect, a computer storage medium is provided, comprising computer instructions that, when executed on an electronic device, cause the electronic device to perform the above-described audio test method.
According to the audio test system, the audio test method and the storage medium, the audio with the energy magnitude with the preset relation among the frequency components is constructed as the input signal of the audio test equipment, after the signal is transmitted in the audio test equipment, the signal can be identified and extracted according to the preset relation, so that the automatic audio test based on the application scene can be realized, the labor is saved, and the efficiency is improved; the method does not need massive data to operate, has flexible construction for signals, is easier to extract and judge the characteristics of the signals with known preset relations, and identifies the accuracy manuscript; moreover, the method is insensitive to the sound size, and the energy size among frequency components is kept approximately unchanged no matter how the gain changes; when noise and other environmental sounds exist in a test environment within a certain range, the influence of the noise on the method is small.
Drawings
Fig. 1 is a schematic flow chart of an audio testing method in an embodiment of the application;
Fig. 2 is a schematic signal diagram of a preset audio in an embodiment of the present application;
FIG. 3 is a schematic diagram of a frequency domain signal of the preset audio in FIG. 2 after FFT processing;
FIG. 4 is a schematic diagram of a normal signal and an intermittent stuck-at abnormal signal according to an embodiment of the present application;
FIG. 5 is a schematic diagram of two noise anomaly signals according to an embodiment of the present application;
FIG. 6 is a block diagram of an audio testing system according to an embodiment of the present application;
FIG. 7 is a schematic block diagram of an audio test system according to an embodiment of the present application after being divided from a software layer;
FIG. 8 is a schematic diagram illustrating communication between partial structures of an audio test system according to an embodiment of the present application;
fig. 9 is a schematic diagram of a signal transfer function of a music playing scene in the embodiment of the present application;
FIG. 10 is a schematic diagram of a signal transfer function of a recording scene according to an embodiment of the present application;
fig. 11 is a schematic diagram of a signal transfer function of a communication uplink scenario in the embodiment of the present application;
fig. 12 is a signal diagram of test audio data in a call scenario in an embodiment of the present application;
fig. 13 is a schematic diagram of another signal transfer function of a communication uplink scenario in the embodiment of the present application;
fig. 14 is a schematic diagram of a signal transfer function of a communication downlink scenario in the embodiment of the present application;
Fig. 15 is a schematic diagram of another signal transfer function of a downlink scenario of a communication type in the embodiment of the present application;
FIG. 16 is a schematic diagram illustrating a signal transfer function of another music playing scene according to the embodiment of the present application;
FIG. 17 is a schematic diagram of aliasing of two sets of audio signals with background noise according to an embodiment of the present application;
FIG. 18 is a schematic diagram of a plurality of audio test devices according to an embodiment of the present application;
FIG. 19 is a flowchart of another audio testing method according to an embodiment of the present application;
FIG. 20 is a flow chart of another audio testing method according to an embodiment of the present application;
FIG. 21 is a block diagram of another audio testing system according to an embodiment of the present application;
FIG. 22 is a schematic view of a shielded container and container control structure in an embodiment of the present application;
fig. 23 is a schematic diagram of an audio test system corresponding to different scenes in the embodiment of the application;
FIG. 24 is a schematic flow chart of a method for testing audio related to a disconnection and connection test in an embodiment of the present application;
fig. 25 is a schematic flow chart of a multi-service test related to an audio test method in an embodiment of the application;
fig. 26 is a schematic flow chart of a touch test related to an audio test method in an embodiment of the application;
Fig. 27 is a schematic flowchart of a wearing test in an audio testing method according to an embodiment of the present application.
Detailed Description
The terminology used in the description section of the present application is for the purpose of describing particular embodiments of the present application only and is not intended to be limiting of the present application.
The embodiment of the application provides an audio test method, which is applied to an audio test system, wherein the audio test system comprises a control device and audio test equipment, the audio test equipment comprises an earphone and a first terminal, the earphone is in communication connection with the first terminal and the control device, the earphone is used as audio output equipment of the first terminal during test, the earphone can be a wireless earphone or a wired earphone, and an execution main body of the method can be the control device. As shown in fig. 1, the audio test method includes:
that is, the preset audio is a signal having a plurality of frequency components and an internal frequency component having a certain characteristic distribution, and the expression thereof is as follows:
F(s)=k 1 *f 1 (s)+k 2 *f 2 (s)+…+k n-1 *f n-1 (s)+k n *f n (s)
wherein f x (s) represents a specific frequency component, k n Representing the energy level of the frequency component, if 0db is set as the maximum energy of the signal, all k x *f x (s)<0db, x is 1, 2, …, n.
Preset relation is k 1 、k 2 、…、k n The relation between the two, the preset relation can be expressed by a function M (n). As shown in fig. 2, taking a 4-segment audio signal as an example of the preset audio, the signal is a single-frequency signal of 500-650hz in the time domain, and the duration of each segment of signal is 1s, wherein the amplitude of the first segment signal is the same as that of the third segment signal, and the amplitude of the second segment signal is the same as that of the fourth segment signal.
The manner of outputting the preset audio to the audio test device is not limited herein, for example, the preset audio may be played through sound, and input through a microphone of the earphone, that is, the preset audio may be input as uplink data to the earphone; the preset audio can also be directly transmitted to the first terminal in a wired or wireless communication mode, the first terminal plays the preset audio so as to transmit the preset audio to the earphone, or the preset audio is played through a sound, and the preset audio is input through a microphone of the first terminal, namely, the preset audio can be input as downlink data to the earphone.
after the preset audio is output to the audio test equipment, the preset audio signal is transmitted in the audio test equipment, noise may be introduced in the transmission process, the preset audio is recorded as test audio data output after the transmission of the preset audio in the audio test equipment is completed, and the test audio data comprises the preset audio and the noise introduced in the transmission process. In the process of transmitting the preset audio, the preset relation does not change obviously along with the change of the volume. From the input of the preset audio signal to the output of the final test audio data, there are G(s) obtained by linearly superimposing a plurality of transfer functions, and the G(s) finally approximates a constant K (which can be regarded as a gain), that is, the G(s) may be obtained by linearly superimposing transfer functions.
As shown in fig. 3, assuming that the audio signal shown in fig. 2 is subjected to FFT processing, it is known from the frequency domain diagram that the integrated energy is the same since each signal has the same duration and the 1 and 3 signal amplitudes are the same. The signal components with frequencies of 500hz have energies close to those of 600hz, and the signal energies of 550hz and 650hz are close. And the signals of the groups 1, 3, 2 and 4 are different. The energy relationship within such a signal, after passing through the audio test equipment, remains. That is, it is assumed that the energy magnitudes among the plurality of frequency components of the preset audio F(s) have a relationship of a function M (n), that is, a preset relationship, and that, after G(s) is obtained by linear superposition of transfer functions, the energy magnitudes among the plurality of frequency components of F(s) have a relationship of M (n), M (n) ≡m (n) (approximately equal). When the feature extraction is performed on the test audio data output by the audio test equipment, it can be judged that: whether or not the relation of the energy magnitudes between the respective frequency components approximately satisfies M (n) is sufficient.
According to the audio test method, the audio with the energy magnitude with the preset relation among the frequency components is constructed as the input signal of the audio test equipment, after the signal is transmitted in the audio test equipment, the signal can be identified and extracted according to the preset relation, so that automatic audio test based on application scenes can be realized, labor is saved, and efficiency is improved; the method does not need massive data to operate, has flexible signal construction, is easier to extract and judge the characteristics of the signals with known preset relations, and has high identification accuracy; moreover, the method is insensitive to the sound size, and the energy size among frequency components is kept approximately unchanged no matter how the gain changes; when noise and other environmental sounds exist in a test environment within a certain range, the influence of the noise on the method is small.
In some possible implementation manners, the audio testing method in the foregoing embodiments may be applied to a multi-scenario and multi-service testing process, where a preset frequency band may be set for a preset audio, that is, the preset audio generated in the foregoing step 1001 and output to an audio testing device corresponds to the preset frequency band, and the foregoing step 1004 specifically includes extracting a signal to be determined in the processed audio signal according to the preset frequency band and a preset relationship, that is, when feature extraction is performed, it needs to determine whether each preset frequency component exists, and whether the relationship of energy sizes between each frequency component approximately satisfies M (n). The following is a specific example.
For example, in a multi-scenario testing process, two sets of audio testing devices are provided to perform testing simultaneously in the same space, and at this time, if a preset audio is output by playing audio in space through sound, the two sets of audio testing devices may receive the audio of the other party, so that the testing result may be adversely affected. Therefore, for such a multi-scenario testing process, in step 1004, the signal to be determined in the processed audio signal may be extracted according to the preset audio and the corresponding preset relationship. The method comprises the steps that when an audio signal obtained by an A audio test device is extracted, the influence of the audio signal corresponding to the B audio test device can be eliminated, similarly, when the audio signal obtained by the B audio test device is extracted, the influence of the audio signal corresponding to the A audio test device can be eliminated, and therefore, the multi-scene test can be more efficiently realized.
For example, in a multi-service testing process, the same set of audio testing equipment needs to acquire preset audio corresponding to at least two services and judge a testing result. In order to correctly identify and extract the audio signals corresponding to different services respectively, the following method may be used for testing.
Assuming that the audio signal corresponding to the C service belongs to the C frequency band, wherein the energy magnitudes among the plurality of frequency components have a C preset relationship, the audio signal corresponding to the D service belongs to the D frequency band, wherein the energy magnitudes among the plurality of frequency components have a D preset relationship, the C frequency band and the D frequency band are different and do not overlap, the preset audio includes the audio signal corresponding to the C service and the audio signal corresponding to the D service, then, for the processed audio signal, the signal to be judged corresponding to the C service can be extracted according to the C frequency band and the C preset relationship, and the signal to be judged corresponding to the D service can be extracted according to the D frequency band and the D preset relationship, and because the signals corresponding to the different services are respectively extracted, whether the signals corresponding to the different services meet the expectations can be judged in a targeted manner. It should be noted that, in addition to being applicable to the testing process of multiple scenes and multiple services, in the scheme of extracting the signal to be judged in the processed audio signal according to the preset frequency band and the preset relation, since the pre-designated frequency component must exist, the abnormal output results such as common silence, howling, buzzing and the like can be well identified by the algorithm, as shown in fig. 5, the algorithm can extract the signal to be judged in the environmental noise such as white noise and pink noise, that is, even if the algorithm is not applied to the testing process of multiple scenes or multiple services, the testing accuracy can be improved.
The embodiment of the application also provides an audio test system, which comprises: the control device, the control device includes a processor and a memory, the memory is used for storing at least one instruction, the instruction is loaded and executed by the processor to implement the audio test method in any embodiment of the application, that is, the execution subject of the audio test method referred to in fig. 1 may be the control device; an audio test device communicatively coupled to the control device, the audio test device comprising: the earphone is in communication connection with the control device; the first terminal and the control device are in communication connection, for example, the first terminal and the control device can have a bluetooth connection function, so as to realize communication connection between the first terminal and the control device.
It should be noted that, only the basic audio test method and the corresponding audio test system are described above, and on the basis of this, the audio test method may have a more complex flow, and the audio test system may have more functions and devices. The audio test system and audio test method in other possible embodiments are further described below.
In one possible implementation, the headset is a wireless headset, the wireless headset having a bluetooth connection function; the first terminal has a bluetooth connection function, that is, the wireless earphone is connected with the first terminal through bluetooth, so that the wireless earphone can be used as an audio output device of the first terminal, if the wireless earphone has a microphone, the wireless earphone can be used as the audio input device of the first terminal at the same time, and for convenience of description, the following embodiments take the earphone as the wireless earphone for illustration. As shown in fig. 6, the embodiment of the present application provides an audio test system, which includes a control device 1 and an audio test apparatus, where the control device 1 may be any device with a control function, such as a computer. The audio test apparatus includes: the wireless earphone 2, the wireless earphone 2 is communicatively connected to the control device 1, the wireless earphone 2 has bluetooth connection function, the wireless earphone 2 has a microphone, the wireless earphone 2 can be any form bluetooth earphone such as real wireless stereo (True Wireless Stereo, TWS), etc., in addition, the wireless earphone 2 can be in earphone product form or in non-earphone form, as long as can embody earphone function, for example, when the wireless earphone 2 is in non-earphone form, it can be an Evaluation Kit (EVK) plus element in earphone, the EVK is used to replace the chip in finished earphone, the EVK is used to evaluate the chip performance, the hardware/software that analyzes and displays the product characteristics can be called EVK, and when the control device 1 is matched with the control device 1, the control device 1 issues configuration to the chip to realize control; the wireless earphone 2 is arranged on the artificial ear 3, wherein the artificial ear 3 comprises a left ear part and a right ear part, two speakers (speakers) of the wireless earphone 2 are respectively a left channel speaker and a right channel speaker (differentiating left from right), the left channel speaker and the right channel speaker are respectively arranged on the left ear part and the right ear part corresponding to the artificial ear 3 as output ends, and the artificial ear 3 is used for simulating the human ear to collect sound played by the wireless earphone 2; the binaural sound card 4 is in communication connection with the control device 1, and the binaural sound card 4 is used for recording sound collected by the artificial ear 3 into binaural audio data containing left and right channels; the sound equipment 5 is in communication connection with the control device 1; a first terminal 61, the first terminal 61 being in communication connection with the control device 1, the first terminal 61 having a bluetooth connection function and a wireless communication function; the second terminal 62, the second terminal 62 is in communication connection with the control device 1, and the second terminal 62 has a wireless communication function; the first terminal 61 and the second terminal 62 may be mobile terminal devices such as a mobile phone or a tablet computer, where the first terminal 61 is a terminal that needs to establish bluetooth connection with the wireless headset 2 in the test process, and the second terminal 62 is a terminal that is used to cooperate with the first terminal 61 to construct a scene in the test process.
Specifically, taking the first terminal 61 and the second terminal 62 as mobile phones as examples, the test system and the test method according to the embodiments of the present application may replace manual operations and test scene construction, and automatically provide a determination result, where the test system and the test method include that whether the earphone communicates with the mobile phone, whether the expression effect of some behaviors of the earphone on the mobile phone side meets the expectations, and whether the basic functions and performances of the earphone as the audio input/output device of the mobile phone meet the requirements. An audio test method will be described below as an example. The audio test system is divided from the software level, as shown in fig. 7, where the terminal control module, the wireless earphone control module, the shielding container control module, and the acoustic device control module are modules corresponding to the physical control objects, and the use case module, the log module, the interface module, and the audio judgment algorithm module are mainly functional modules at the system level of the software level. As shown in fig. 7 and 8, the module therein is explained below.
The terminal control module is mainly realized through communication between the control device 1 and the terminal, the first terminal 61 and the second terminal 62 can establish wired real-time communication with the control device 1 through android debug bridge (Android Debug Bridge, ADB) sockets, corresponding test software is arranged on the first terminal 61 and the second terminal 62, in the test process, the test software running on the terminal can execute and reply the test instruction sent by the control device 1, and the control device 1 collects the execution result of the automatic test instruction on the terminal;
The wireless earphone control module can comprise an event control module and a log module, and is used for controlling the EVK carrying the wireless audio chip. The event control module mainly simulates a charging Box (Charge-Box, CBOX) to send instructions (such as a switch Box, pairing, clearing information and the like) to the earphone in an instruction mode, and simulates events (such as wearing/taking down, clicking/long pressing) collected by some sensors mounted outside the earphone, and through the series of event combinations, the earphone can be simulated to be in different service scenes, so that different tests are completed. In addition, the system can capture the log of the audio chip through the EVK, and effectively judge whether the behavior under certain special scenes is executed according to expectations according to keywords appearing in the log, so as to assist in testing the system functions/performances;
the acoustic equipment control module mainly controls the artificial ear 3 and the binaural sound card 4, collects output audio signals of wireless audio equipment (mainly referred to as Bluetooth headphones) and stores the output audio signals as left and right binaural audio files. The sound 5 may also be controlled to play audio files of specified content as input signals to a wireless audio device, mainly referred to as a bluetooth headset. In addition, the service module in the control device 1 is responsible for some similar data processing calculations and some general functions;
The audio judgment algorithm module is mainly used for judging the effectiveness and partial performances of some input/output signals of the earphone, can judge whether the audio test results obtained by the left earphone/Mic (microphone) and the right earphone/Mic (microphone) meet the expectations, can comprehensively identify and judge the effectiveness, the performances and the like of the recorded audio signals, and finally determines whether the test is passed. The audio judgment algorithm module can analyze and judge the audio data generated by the acoustic equipment control module and the audio data generated by the terminal control module, and can identify related audio quality problems including, but not limited to, silence, intermittent, stuck, delayed playing and the like.
All or part of the control instructions and the return values of instruction execution of the control instructions are abstracted into application programming interfaces (Application Program Interface, APIs) for users to write test cases.
The interface module is mainly provided for a user operation interface and can be used for selecting use cases and testing related function configuration;
the log module records a system log of the automatic test system, including a log generated by test case execution and the like;
the case module is mainly used for providing an API abstracted by an automatic test system to a user for case writing, and can execute test cases and count test results.
By using the functional modules to mutually cooperate, different use scenes of the wireless audio equipment can be constructed, so that corresponding automatic tests are completed.
In one possible implementation manner, the audio test method may be applied to a music playing scene, as shown in fig. 9, fig. 9 is a schematic diagram of a signal transfer function of the application of the audio test method to the music playing scene, where the audio test device includes: the first terminal 61, the first terminal 61 is used for playing the preset audio; a wireless earphone 2, the wireless earphone 2 being for playing a preset audio from the first terminal 61; the artificial ear 3, the artificial ear 3 is used for collecting sound, the sound collected by the artificial ear 3 comprises the sound played by the wireless earphone 2, and meanwhile, external noise can be possibly introduced; the binaural sound card 4, the binaural sound card 4 is used for recording the sound that the artificial ear 3 gathered as test audio data.
In a possible implementation manner, the audio test method may be applied to a recording scene, as shown in fig. 10, fig. 10 is a schematic diagram of a signal transfer function of the audio test method applied to the recording scene in this embodiment, where the audio test device includes: the sound equipment 5 is used for playing preset audio; the wireless earphone 2, the wireless earphone 2 is used for collecting the sound through the microphone, the sound collected by the wireless earphone 2 comprises the preset audio played by the sound equipment 5, and meanwhile, the external noise can be possibly introduced; the first terminal 61, the first terminal 61 is used for recording the sound collected by the wireless earphone 2 as test audio data.
In a possible implementation manner, the audio test method may be applied to a communication type uplink scenario, as shown in fig. 11, fig. 11 is a schematic signal transfer function diagram of the application of the audio test method to the communication type uplink scenario, where the audio test device includes: the sound equipment 5 is used for playing preset audio; the wireless earphone 2 is used for collecting sound through the microphone, and the sound collected by the wireless earphone 2 comprises preset audio played by the sound equipment 5; a first terminal 61, where the first terminal 61 is configured to receive sound collected by the wireless headset 2; the second terminal 62, the second terminal 62 is configured to receive, through a call connection, sound collected by the wireless headset 2 output by the first terminal 61 and record the sound as test audio data.
As shown in fig. 12, fig. 12 illustrates a signal diagram of test audio data in a call scenario, where the signal in the box is a signal corresponding to the original preset audio, it can be seen that the energy between multiple frequency components changes due to the problems of signal distortion and the like. Therefore, in the call scene, because of the problems of signal distortion and the like in the communication process, loose constraint conditions can be set when signal extraction and judgment are performed. In addition, the conversation scenario may be improved in some ways, and the details will be described later.
In a possible implementation manner, as shown in fig. 13, fig. 13 is a schematic diagram of another signal transfer function of an audio test method applied to a communication uplink scene in this embodiment of the present application, which may be considered as an improvement of the scheme shown in fig. 11, where the audio test device includes: the sound equipment 5 is used for playing preset audio; the wireless earphone 2 is used for collecting sound through the microphone, and the sound collected by the wireless earphone 2 comprises preset audio played by sound equipment; the first terminal 61, the first terminal 61 is used for recording the sound collected by the wireless earphone 2 as test audio data output; the second terminal 62, the second terminal 62 is configured to receive, through a call connection, sound collected by the wireless headset output by the first terminal 61. In practice, the method shown in fig. 13 differs from the method shown in fig. 11 in that the call recording signal is recorded as the test audio data by the first terminal 61 instead, so that the problems of signal distortion and the like introduced during the communication of the call connection can be avoided.
In a possible implementation manner, as shown in fig. 14, fig. 14 is a schematic diagram of a signal transfer function of an audio test method applied to a communication downlink scenario in this embodiment of the present application, where the audio test device includes: the sound equipment 5 is used for playing preset audio; the second terminal 62, the second terminal 62 is configured to collect sound through the microphone mic, and the sound collected by the second terminal 62 includes preset audio played by the stereo 5; a first terminal 61, the first terminal 61 being configured to receive sound collected by the second terminal 62 through a call connection; the wireless earphone 2, the wireless earphone 2 is used for playing the sound collected by the second terminal 62 received by the first terminal 61; the artificial ear 3 is used for collecting sound, and the sound collected by the artificial ear 3 comprises sound played by the wireless earphone 2; the binaural sound card 4, the binaural sound card 4 is used for recording the sound that the artificial ear 3 gathered as test audio data.
In a possible implementation manner, as shown in fig. 15, fig. 15 is a schematic diagram of a signal transfer function of an audio test method applied to a downlink scene of a communication class in the embodiment of the present application, which is a modification of the method shown in fig. 14, where the audio test device includes: the sound equipment 5 is used for playing preset audio; the second terminal 62, the second terminal 62 is configured to collect sound through a microphone, and the sound collected by the second terminal 62 includes preset audio played by sound; the first terminal 61, the first terminal 61 is used for receiving the sound collected by the second terminal 62 through the call connection and recording the sound as the reference audio data; the wireless earphone 2, the wireless earphone 2 is used for playing the sound collected by the second terminal 62 received by the first terminal 61; the artificial ear 3 is used for collecting sound, and the sound collected by the artificial ear 3 comprises sound played by the wireless earphone 2; the double-channel sound card 4 is used for recording the sound collected by the artificial ear 3 into test audio data; in step 1005, extracting the signal to be determined from the processed audio signal according to the preset frequency band and the preset relation includes: and extracting a signal to be judged in the processed audio signal according to the preset frequency band, the preset relation and the reference audio data. In the scheme shown in fig. 15, in order to improve the problems of signal distortion and the like caused by the communication process of the call connection, the preset relationship is corrected by using the reference audio data, so as to improve the accuracy of extracting the signal to be judged.
In one possible embodiment, as shown in fig. 16 and 17, the preset audio includes a first preset audio and a second preset audio, the first preset audio corresponds to a first preset frequency band, the second preset audio corresponds to a second preset frequency band, and the first preset frequency band is smaller than the second preset frequency band. For audio signals with noise and aliasing of multiple groups of audio signals, the method can also be used for input signal construction and output signal feature extraction. For example, assume that the first preset audio is a signal composed of frequency components of 500-650hz, and the second preset audio is a signal composed of frequency components of 1000-1150hz, with a pink noise signal. The frequency components of the 2 groups of signals are reserved through the spectrogram obtained through FFT, and the relation of the frequency components in the groups approximately meets the corresponding preset relation. That is, in the above-mentioned various scenarios, multiple sets of preset audio may be input, and through the transmission of the audio test device, the obtained test audio data includes multiple sets of audio signals with aliasing and accompanying noise, and since different sets of audio signals may be distinguished by corresponding frequency bands, the method in the embodiment of the present application may still extract and identify the signals to be determined corresponding to the different sets of audio signals respectively. The method realizes the test of multi-service scenes, such as a sudden incoming call or ringing alarm in the process of playing music.
In each scene, the environmental noise component can be transmitted into the system through a mic or artificial ear, and the final recording file comprises the noise signal frequency component; when audio files of a plurality of frequency components are presented (played) simultaneously, all frequency components will be saved in a linearly superimposed manner with the time shift of the audio track, and thus the output audio file will contain the plurality of frequency components as analyzed from the frequency domain.
In one possible embodiment, as shown in fig. 18, the preset audio includes a third preset audio and a fourth preset audio, the third preset audio corresponds to a third preset frequency band, the fourth preset audio corresponds to a fourth preset frequency band, the third preset frequency band is smaller than the fourth preset frequency band, the energy magnitudes among the plurality of frequency components of the third preset audio have a third preset relationship, and the energy magnitudes among the plurality of frequency components of the fourth preset audio have a fourth preset relationship; the audio test equipment comprises first audio test equipment and second audio test equipment; the method for obtaining the test audio data output by the audio test equipment comprises the following steps: acquiring first test audio data output by first audio test equipment; acquiring second test audio data output by second audio test equipment; processing the test audio data, converting the test audio data from a time domain expression form to a frequency domain expression form, and obtaining a processed audio signal comprises: processing the first test audio data, and converting the first test audio data from a time domain expression form to a frequency domain expression form to obtain a processed first audio signal; processing the second test audio data, and converting the second test audio data from a time domain expression form to a frequency domain expression form to obtain a processed second audio signal; according to the preset frequency band and the preset relation, extracting the signal to be judged in the processed audio signal comprises the following steps: extracting a first signal to be judged in the processed first audio signal according to a third preset frequency band and a third preset relation; extracting a second signal to be judged in the processed second audio signal according to a fourth preset frequency band and a fourth preset relation; determining a test result according to the signal to be judged comprises: and determining a first test result according to the first signal to be judged, and determining a second test result according to the second signal to be judged.
Specifically, in the same space, the sound has superposition effect, and the audio test equipment works simultaneously, for example, when in a call or a recording scene, the played audio signals can influence each other, and the audio signals are input as noise signals of other systems. In this embodiment, different frequency bands are selected and the component relationships describe different signals as inputs, that is, the frequency bands between different preset audios are mutually exclusive (without intersection), so that even if the preset audios are input to other test devices, different input signals can be distinguished when the identification signals are extracted due to different frequency bands between different audios, and therefore the test result of the audio test device cannot be interfered by other devices.
In the above-described various scenes, the audio signals are linearly superimposed, and thus G(s) approaches a constant K in a fixed time. Summarizing the above scenario, the main delivery scenario of the mobile phone and the wireless audio headset is covered, such as play class: music playing, alert tones (short message, alarm, incoming call ring); recording: a recorder, a WeChat voice message; conversation type: typical two-way calls, weChat audio/video calls, video conferencing calls; signal aliasing class: the music and the conversation are provided with a sound prompting tone.
In order to enable the input preset audio to be more accurately identified by an identification algorithm when being output after passing through a transfer function, the method can have the following characteristics:
1. the input audio signal has a clear frequency component and a plurality of frequency components;
2. certain characteristic rules are presented in the frequency components of the input audio signals, so that the characteristic extraction is convenient for an identification algorithm;
3. the input audio signal needs to have a certain characteristic rule, and the characteristic internal rule is not obviously changed along with the increase and decrease of the sound volume;
4. the characteristic frequency energy of the input audio signal needs to be significantly different from the noise signal (here, the noise signal includes white noise/white noise and other generalized level noise), so that the characteristics cannot be submerged in the noise signal and cannot be extracted.
Embodiments of the present application are described below with reference to a few more specific examples.
As shown in fig. 19, an embodiment of the present application provides an audio testing method, which may be used in the above-mentioned audio testing system, where the audio testing method includes:
After the wireless headset 2 and the first terminal 61 establish a bluetooth connection, the audio test method further comprises one or any combination of the following tests: the wireless earphone comprises a call test, a disconnection and connection return test, a multi-service test, a touch test and a wearing test, wherein the call test is a wireless earphone test of a first terminal in a call scene, the disconnection and connection return test is a test of a Bluetooth connection between the first terminal and the wireless earphone in a disconnection or connection restoration scene, the multi-service test is a wireless earphone test in a scene comprising a plurality of wireless earphone services, the touch test is a test based on a touch function of the wireless earphone, and the wearing test is a test triggered on the function based on a wearing state of the wireless earphone.
In one possible implementation, the call test includes:
After a call connection is established between the first terminal 61 and the second terminal 62, performing a downlink call test and/or an uplink call test;
the downlink call test includes:
in the process of playing the preset audio by the stereo 5, step 204, the control device 1 controls the binaural sound card 4 to record the sound collected by the artificial ear 3 as downlink audio data, and the downlink audio data is the test audio data.
That is, in the downlink call test, after the preset audio played by the stereo 5 is input into the second terminal 62, the audio is transmitted to the first terminal 61 through the call connection, then transmitted to the wireless earphone 2 through the first terminal 61 for playing, then collected by the artificial ear 3, recorded as downlink audio data by the binaural sound card 4, and then the control device 1 can perform validity judgment according to the downlink audio data, so as to realize the audio test in the downlink call scene;
The uplink call test includes:
in the process of playing the preset audio, in step 206, the control device 1 controls the second terminal 62 to record the audio in the call process as uplink audio data, where the uplink audio data is the test audio data.
That is, in the uplink call test, the preset audio played by the stereo 5 is input to the microphone of the wireless headset 2, and is transmitted to the first terminal 61 through the bluetooth connection between the wireless headset 2 and the first terminal 61, and is then transmitted to the second terminal 62 through the call connection between the first terminal 61 and the second terminal 62, and is then recorded as uplink audio data through the call recording of the second terminal 62, and then the second terminal 62 can transmit the uplink audio data to the control device 1, and the control device 1 can perform validity judgment according to the uplink audio data, so as to test whether the uplink and downlink of the wireless headset as the terminal audio are normal in the voice call scene.
According to the audio test system and the audio test method, through the control of the control device on each device, audio test under the conversation scene based on the wireless earphone can be achieved, corresponding operation and test scene construction are carried out through replacing manual work, automatic audio test based on the application scene can be achieved, labor is saved, and efficiency is improved.
In one possible embodiment, as shown in fig. 20, after a call connection is established between the first terminal 61 and the second terminal 62, a downlink call test is performed, and an uplink call test is performed after the downlink call test is performed; before the control device 1 controls the stereo 5 to play the preset audio, the downlink call test further includes the control device 1 controlling the first terminal 61 to record the audio in the call process as the reference audio data.
Specifically, for example, the step 101 includes: the control device 1 sends an open box pairing instruction to the wireless earphone 2, and the control device 1 sends a bluetooth device scanning instruction with a specified name to the first terminal 61, wherein the specified name is the name of the wireless earphone 2; the step 102 includes: the wireless earphone 2 enters a pairing mode in response to an open box pairing instruction, the first terminal 61 starts to scan Bluetooth equipment with a specified name in response to a Bluetooth equipment scanning instruction, and when the first terminal 61 scans the wireless earphone 2, the wireless earphone 2 is paired, and Bluetooth connection between the first terminal 61 and the wireless earphone 2 is established; step 201 comprises: the control device 1 sends a call making instruction to the first terminal 61, and the control terminal 1 sends a call answering instruction to the second terminal 62; step 202 comprises: the first terminal 61 makes a call to the second terminal 62 in response to a call making instruction, and the second terminal 62 makes a call in response to a call making instruction to establish a call connection between the first terminal 61 and the second terminal 62; step 203 comprises: after the two terminals establish a call connection, the control device 1 controls the first terminal 61 to close and open a call record so as to record the audio in the call process as reference audio data, and the control device 1 controls the sound equipment 5 to play preset audio, wherein the preset audio played by the sound equipment 5 is input through the microphone of the second terminal 62; step 204 includes: the control device 1 controls the double-channel sound card 4 to record sound collected by the artificial ear 3 into downlink audio data; after that, the first terminal 61 ends the call recording, cancels the mute, and uploads the call recording to the control device 1, wherein the call recording is the reference audio data; thereafter, step 205 includes: the control device 1 controls the second terminal 62 to close the microphone and open the call record, and the recorded audio is uplink audio data; the control device 1 controls the sound equipment 5 to play preset audio, and the preset audio played by the sound equipment 5 is input through the microphone of the wireless earphone 2; then, the second terminal 62 ends the call and uploads the recorded uplink audio data to the control device 1, that is, step 206 includes the control device 1 controlling the second terminal 62 to record the audio in the call process as the uplink audio data; the control device 1 judges the validity of the audio signal by the call recording and the audio data recorded by the two-channel sound card.
For the judgment of the validity of the audio signal, the judgment may be referred to according to the played preset audio source, for example, the preset audio is a signal with multiple frequency components and internal frequency components having a certain characteristic distribution. For the recorded uplink audio data and downlink audio data, the recorded uplink audio data and downlink audio data contain frequency characteristics of preset audio, so that signal extraction and judgment can be performed on the recorded audio data according to the frequency characteristics.
However, the downlink audio data is obtained by inputting the preset audio played by the stereo 5 into the second terminal 62, transmitting the preset audio to the first terminal 61 through the call connection, transmitting the preset audio to the wireless earphone 2 through the first terminal 61 for playing, then collecting the preset audio by the artificial ear 3, and recording the preset audio by the two-channel sound card 4, wherein the signal distortion and other problems in the communication process may be introduced in the communication transmission process of the call connection, and the signal extraction and judgment may be inaccurate due to the distortion, so that in order to solve the problem of low judgment accuracy caused thereby, the call recording on the first terminal 61 side may be introduced to obtain the reference audio data, and because the distortion influence in the communication process is also introduced in the reference audio data, the extraction and judgment of the audio signal may be corrected according to the reference audio data, so as to improve the judgment accuracy.
For similar reasons, the uplink audio data also has a problem of inaccurate signal extraction and judgment due to distortion in the communication process. To improve this problem, in one possible implementation, the uplink audio data may be obtained by recording the audio of the first terminal 61 instead, so that adverse effects caused by distortion introduced during the communication process of the terminal may be eliminated.
In one possible implementation, as shown in fig. 21 to 23, the audio test system further includes: a shielding container 7, the shielding container 7 having a cover, the shielding container 7 being for shielding a wireless signal when the cover is closed, a bluetooth connection module of one of the wireless headset 2 and the first terminal 61 being disposed inside the shielding container 7, a bluetooth connection module of the other of the wireless headset 2 and the first terminal 61 being disposed outside the shielding container 7; the shielding container 7 may further comprise a container control mechanism 8, wherein the container control mechanism 8 is used for controlling the opening and closing of the cover body, and the container control mechanism 8 is connected to the control device 1 in a communication manner; the container control mechanism 8 may realize the opening and closing control of the cover body through the push rod mechanism illustrated in fig. 7, in addition, the container control mechanism 8 may further include a driving device for driving the push rod mechanism, the driving device may include a power supply circuit and a driving circuit at the bottom layer, the driving device may be a separate electric cabinet, and the driving device is electrically connected to the push rod structure and the control device 1, that is, the container control mechanism 8 may realize the communication connection with the control device 1 through the driving device; in addition, the container control mechanism 8 may further include a limit sensor, where the limit sensor is used to sense the position of the cover and feedback control the push rod mechanism, for example, when the limit sensor senses that the cover is closed in place, the push rod mechanism is controlled to stop moving, or when the limit sensor senses that the cover is opened in place, the push rod mechanism is controlled to stop moving.
Specifically, for example, the first terminal 61 is disposed in the shielding container 7, the wireless headset 2 is disposed outside the shielding container 7, when the cover of the shielding container 7 is closed, the bluetooth connection between the wireless headset 2 and the first terminal 61 is disconnected due to the shielding effect of the shielding container 7 on the bluetooth signal, and when the cover of the shielding container 7 is opened, the bluetooth connection between the wireless headset 2 and the first terminal 61 can be maintained. The shielding container 7 may be provided with an interface through which the first terminal 61 may be connected to the outside of the shielding container 7 and thus to the control device 1 by means of a connection line, so that even if the cover of the shielding container 7 is closed, only the wireless signal is shielded and the communication connection between the control device 1 and the first terminal 61 is not adversely affected. Referring to the module division manner shown in fig. 7, the module divided from the software level by the test system further includes a shielding container control module, where an entity corresponding to the shielding container control module is a shielding container, for example, a shielding box, and the shielding box may be an electrically controlled shielding box obtained by performing electromechanical transformation on a common manual shielding box (for example, opening and closing of the shielding box is realized by controlling an electrically driven push-pull rod). The nature of the test performed by the shielding container 7 uses the shielding effect of the shielding container 7 on the bluetooth signal, so long as shielding of the bluetooth signal can be achieved. For the wireless earphone 2 and the first terminal 61, it is necessary to have bluetooth connection modules respectively to realize the bluetooth connection function, and when testing by using the bluetooth shielding effect of the shielding container 7, the two may be placed respectively inside and outside the shielding container 7 as in the above embodiment, or only one of the bluetooth connection modules may be placed inside the shielding container 7, and the other bluetooth connection module may be placed outside the shielding container 7, and the test based on the bluetooth disconnection may be performed as well.
One of the bluetooth connection module of the wireless earphone 2 (which may be a device formed by components such as an EVK carrying an audio chip and a speaker of the earphone thereof) and the bluetooth connection module of the first terminal 61 is placed in a shielding case, and the shielding case is controlled to open and close by communication between the control device 1 and a universal asynchronous receiver/Transmitter (UART) of a control board of the shielding case, so that a scene of disconnecting/recovering connection of a wireless connection between the mobile phone and the audio device is simulated. That is, by shielding the container 7, it is possible to simulate the function of the wireless headset 2 in the scenario where the bluetooth connection between the first terminal 61 and the wireless headset 2 is disconnected and the connection is restored, so that the scenario construction of disconnection and restoration is achieved without manually changing the distance between the terminal and the wireless headset when the test of the scenario is performed, thereby improving the test efficiency. For an audio test system including a shielded container, the audio test method of the embodiments of the present application may still be applied to determine audio validity.
In one possible implementation manner, the wireless earphone test system may include two shielding containers, where the two shielding containers correspond to a left ear and a right ear of the artificial ear respectively, the first terminal is disposed outside the two shielding containers, the left ear of the artificial ear and a corresponding wireless earphone of the left ear are placed in one shielding case, the right ear of the artificial ear and another corresponding wireless earphone of the right ear are placed in another shielding case, and the two shielding cases are placed in different through the left ear and the right ear respectively, so that scenes such as binaural disconnection, establishment, primary-secondary switching and the like can be simulated.
In one possible implementation manner, the wireless earphone testing system may include two shielding containers, where the two shielding containers are a first shielding container and a second shielding container, the wireless earphone includes a left ear bluetooth connection module and a left ear speaker corresponding to the electrical connection, the wireless earphone further includes a right ear bluetooth connection module and a right ear speaker corresponding to the electrical connection, where the left ear speaker is used to emit sound of a left side channel, the left ear bluetooth connection module is used to implement bluetooth connection of the left side channel, the right ear speaker is used to emit sound of a right side channel, the right ear bluetooth connection module is used to implement bluetooth connection of the right side channel, when the disconnection and the return of the bluetooth connection are tested, the left ear bluetooth connection module may be placed in the first shielding container, the right ear bluetooth connection module is placed in the second shielding container, the artificial ear includes a left ear component and a right ear component, the artificial ear and the first terminal are placed outside the first shielding container and the second shielding container, the left channel speaker is placed on the left ear component, and the right channel speaker is placed on the right ear component. It should be noted that, the nature of the test performed by using the shielding container 7 uses the shielding effect of the shielding container 7 on the bluetooth signal, when the wireless earphone 2 is tested, since the wireless earphone 2 may not be a finished wireless earphone 2, but may be a device capable of implementing the function of the wireless earphone 2, for example, in the aforementioned test mode using the EVK instead of the chip in the finished earphone, the EVK and the earphone speaker connected thereto may be tested as the wireless earphone 2, and at this time, if the EVK has the bluetooth connection module, the EVK may be placed in the shielding container, and the left ear speaker and the right ear speaker connected to the EVK are placed outside the shielding container. The same principle applies to the first terminal, if a part of the components and the bluetooth connection module are separable, it is also possible to place only the bluetooth connection module in the shielding container and the other components in the shielding container.
In a possible embodiment, on the basis that the audio test system includes the shielding container 7, as shown in fig. 24, after the bluetooth connection is established between the wireless headset 2 and the first terminal 61, the audio test method further includes a disconnection-connection-back test, which includes: the control module 1 controls the first terminal 61 to play preset audio, wherein the preset audio can be the same as or different from other preset audio; after the control module 1 controls the first terminal 61 to play the preset audio, the control module 1 controls the cover of the shielding container 7 to be closed; after the control module 1 controls the cover of the shielding container 7 to be closed, the control module 1 controls the cover of the shielding container 7 to be opened; after the control module 1 controls the cover body of the shielding container 7 to be opened, the control device 1 controls the first terminal 61 to replay preset audio and controls the two-channel sound card 4 to record sound collected by the artificial ear 3 into the back connection audio data; the control device 1 judges the validity of the loop-back audio data so as to realize the audio judgment under the scene of breaking the loop-back, and the loop-back audio data is the test audio data. In this way, disconnection and restoration of the bluetooth connection are achieved without manually changing the distance between the first terminal 61 and the wireless headset 2, improving the test efficiency.
In one possible embodiment, the disconnection-connection-back test further comprises: after the control module 1 controls the cover of the shielding container 7 to be closed and before the control module 1 controls the cover of the shielding container 7 to be opened, the control device 1 sends a first checking instruction to the first terminal 61, and the first terminal 61 responds to the first checking instruction to check whether the Bluetooth connection with the wireless earphone 2 is disconnected or not and whether the playing of the preset audio is suspended or not; after the control module 1 controls the cover of the shielding container 7 to be opened, the control device 1 sends a second checking instruction to the first terminal 61 before the control device 1 controls the first terminal 61 to play back the preset audio, and the first terminal 61 responds to the second checking instruction to check whether the Bluetooth connection with the wireless earphone 2 is restored or not, and whether the play back of the preset audio is restored or not. Through the checking process, the disconnection and connection back conditions of the Bluetooth connection and the audio playing function can be further tested.
In one possible implementation, the wireless headset 2 includes a control module communicatively coupled to the control device 1 for simulating the headset charging case or the sensor to generate event instructions including one or any combination of the following: the earphone charging box opening instruction, the earphone charging box closing instruction, the wireless pairing instruction, the earphone wearing instruction, the earphone taking-down instruction and the earphone button clicking instruction. The control module is, for example, a module in the EVK described above. Through simulation of events, testing in different scenes can be achieved more efficiently.
In one possible implementation, the control module is further configured to obtain a log of the wireless headset, that is, capture and screening of the device log may be implemented.
In one possible implementation, as shown in fig. 25, after the bluetooth connection is established between the wireless headset 2 and the first terminal 61, the audio test method further includes a multi-service test, where the multi-service test includes: the control device 1 controls the binaural sound card 4 to start recording the sound collected by the artificial ear 3 into multi-scene audio data, and controls the first terminal 61 to play preset audio; during the process of playing the preset audio by the first terminal 61, the control terminal 1 may send a short message instruction to the second terminal 62, and the second terminal 62 sends a message to the first terminal 61 in response to the short message instruction; the first terminal 61 sounds a message alert sound in the process of playing a preset audio in response to the message sent by the second terminal 62; the first terminal 61 continuously checks the message, and when the first terminal 61 checks the message, the first terminal stops playing the preset audio; after the first terminal 61 stops playing the preset audio, sending a test completion instruction to the control apparatus 1; after the control device 1 receives the test completion instruction, the control device controls the binaural sound card 4 to finish recording the multi-scene audio data, and determines whether the recorded multi-scene audio data has preset audio and message prompt tones at the same time, so as to realize audio test under the multi-service scene, wherein the multi-scene audio data is the test audio data. The preset audio frequency is preset, so that the frequency characteristics of the preset audio frequency are different from those of the prompting voice, and in the multi-scene audio frequency data, the preset audio frequency and the prompting voice can be distinguished and identified according to the respective frequency characteristics of the preset audio frequency and the prompting voice so as to judge whether the music playing effect in the multi-service scene accords with the expectations or not. The multi-service test can judge whether the response of the first terminal accords with the expectation or not in the multi-service state (meanwhile, the music playing is doped with the short message prompt tone) by sending the short message to the first terminal by the second terminal in the music playing. According to the requirement, the method can be set in the process of playing music, if a short message is received, the playing volume of the music is temporarily reduced, meanwhile, a short message prompt tone is played, after the short message prompt tone is played, the playing volume of the music is restored, and under the scene, whether the method meets the expectation can be further judged according to multi-scene audio data.
In one possible implementation, as shown in fig. 26, the touch test includes: the control device 1 controls the first terminal 61 to add at least 2 pieces of music to the play list; the control device 1 sends a music control instruction to the wireless earphone 2 and sends a music check instruction corresponding to the music control instruction to the first terminal 61, wherein the music control instruction is a last music instruction, a next music instruction, a pause instruction or a play instruction; the first terminal 61 checks whether or not the current music is successfully controlled in response to the music check instruction. For example, touch testing includes: the control device 1 controls the first terminal to add 2 pieces of music to the play list and pause the play; the control device 1 sends a next music examination instruction to the wireless headset 2 and sends a next music examination instruction to the first terminal 61, and the first terminal 61 examines whether the current music is switched to the next music in response to the next music examination instruction; the control device 1 transmits a last music check instruction to the wireless headset 2 and transmits a last music check instruction to the first terminal 61, and the first terminal 61 checks whether the current music is switched to the last music in response to the last music check instruction; the control device 1 transmits a pause play instruction to the wireless headset 2 and transmits a pause check instruction to the first terminal 61, and the first terminal 61 checks whether the current music is in a pause state in response to the pause check instruction; the control device 1 transmits a play instruction to the wireless headset 2 and transmits a play check instruction to the first terminal 61, and the first terminal 61 checks whether the current music is in a play state in response to the play check instruction. Here, the various control instructions sent by the control device 1 to the wireless earphone 2 are realized by simulating the touch function operation of the earphone in the real scene, so as to realize the test in the touch scene. The touch test may determine whether the first terminal response meets the expectations by performing a touch operation (music playing/pausing/last song/next song) on the wireless earphone during music playing.
In one possible embodiment, as shown in fig. 27, the wear test includes: the control device 1 controls the first terminal 61 to add at least 2 pieces of music to the play list; the control device 1 sends a wearing action instruction to the wireless earphone 2, and sends a music check instruction corresponding to the wearing action instruction to the first terminal 61, wherein the wearing action instruction is an instruction of outputting a box from a left ear and inputting an ear, an instruction of outputting a box from a right ear and inputting an ear, or an instruction of outputting ears from both the left ear and the right ear; the first terminal 61 checks whether or not the current music is successfully controlled in response to the music check instruction. For example, wear testing includes: the control device 1 controls the first terminal 61 to add music and pause playing, then the control device 1 sends a left ear out-of-box in-ear instruction to the wireless earphone 2, then sends a playing check instruction to the first terminal 61, the first terminal 61 responds to the playing check instruction to check whether the current music starts playing or not, and the control device 1 judges whether the left ear is sound and the right ear is silent or not through manual ear recording; then the control device 1 sends a right ear out-of-box and in-ear instruction to the wireless earphone 2, and then judges whether the ears are voiced or not through manual ear recording; the control device 1 then sends an ear command to the wireless headset 2 from both the left and right ears and a pause check command to the first terminal 61, and the first terminal 61 checks whether the current music is in a pause state in response to the pause check command. It should be noted that the specific steps are only examples, and the specific testing procedure may be set according to the service flow and service logic of the wireless earphone itself. For example, the logic of playing music by the wireless earphone may be playing when the wireless earphone is in the ear, or may be playing only when the wireless earphone is in the ear through playing touch operation, and the corresponding testing processes under the two different logics may be different, and may be specifically set according to the needs. The wearing test can judge whether the first terminal response accords with the expected test scene by performing a simulation behavior operation (wearing/taking down) on the wireless earphone during music playing (the simulation behavior operation on the wireless earphone refers to simulating information input through a sensor by instructions, and the wearing/taking down or ear in/out actions of the earphone are simulated).
In addition, it should be noted that, the foregoing test method is only a part of embodiments that can be implemented by the test system, and the embodiments of the present application can implement tests in various scenarios based on the wireless earphone and the first terminal, and the embodiments of the present application do not limit a specific test procedure, as shown in fig. 23, the pairing connection is a minimum scenario that can be implemented by the test system, and the tests between the two under the pairing connection scenario can be implemented by the first terminal and the wireless earphone; on the basis, the test of the playing scene is further realized, and then the artificial ear and the binaural sound card are needed; further realizing the test of the recording scene, a microphone and a sound are needed, wherein the microphone can be a microphone of a wireless earphone; further realizing the test of the conversation scene, a second terminal and a sound are needed; further realizing the test of the disconnection and connection scene, the shielding container and the container control mechanism are needed. Maximizing a scenario is a test procedure that includes all of the scenarios described above.
In one possible implementation, the audio test method is used for multiple sets of audio test systems, including a first set of audio test systems and a second set of audio test systems; the frequency ranges of the preset audio frequency used for the first set of audio frequency testing system and the preset audio frequency used for the second set of audio frequency testing system are different; and/or the frequency bands of the preset audio for the first set of audio test systems and the preset audio for the second set of audio test systems are different. Therefore, a plurality of test systems can be arranged in the same space for simultaneous test, and the frequency bands of the audio signals between different test systems are different, so that the different systems cannot interfere with each other when judging the audio signals.
The first terminal and the second terminal in the embodiment of the application may be any electronic device that can be used with a wireless headset, for example, a mobile phone, a tablet computer, a personal computer (personal computer, PC), a personal digital assistant (personal digital assistant, PDA), a smart watch, a netbook, a wearable electronic device, an augmented reality (augmented reality, AR) device, a Virtual Reality (VR) device, a vehicle-mounted device, a smart car, a smart sound box, a smart glasses, a smart television, a server, and the like.
The embodiment of the application also provides a computer storage medium, which comprises computer instructions, wherein the computer instructions, when running on the electronic device, cause the electronic device to execute the audio test method of any embodiment.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk), etc.
In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relation of association objects, and indicates that there may be three kinds of relations, for example, a and/or B, and may indicate that a alone exists, a and B together, and B alone exists. Wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of the following" and the like means any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
The foregoing is merely a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and variations may be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims (14)
1. An audio testing method, comprising:
generating and outputting preset audio to an audio test device, wherein the preset audio comprises a plurality of frequency components, and the energy magnitudes among the plurality of frequency components have preset relations;
Acquiring test audio data output by the audio test equipment;
processing the test audio data, and converting the test audio data from a time domain expression form to a frequency domain expression form to obtain a processed audio signal;
extracting a signal to be judged in the processed audio signal according to the preset relation;
and determining a test result according to the signal to be judged.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the processing is a fourier transform.
3. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the preset audio frequency corresponds to a preset frequency band;
the extracting the signal to be judged in the processed audio signal according to the preset relation comprises: and extracting a signal to be judged in the processed audio signal according to the preset frequency band and the preset relation.
4. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the audio test apparatus includes:
the first terminal is used for playing the preset audio;
the wireless earphone is used for playing the preset audio from the first terminal;
the artificial ear is used for collecting sound, and the sound collected by the artificial ear comprises sound played by the wireless earphone;
And the double-channel sound card is used for recording the sound collected by the artificial ear into the test audio data.
5. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the audio test apparatus includes:
the sound equipment is used for playing the preset audio;
the wireless earphone is used for collecting sound through a microphone, and the sound collected by the wireless earphone comprises the preset audio played by the sound equipment;
the first terminal is used for recording the sound collected by the wireless earphone into the test audio data.
6. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the audio test apparatus includes:
the sound equipment is used for playing the preset audio;
the wireless earphone is used for collecting sound through a microphone, and the sound collected by the wireless earphone comprises the preset audio played by the sound equipment;
the first terminal is used for receiving sound collected by the wireless earphone;
and the second terminal is used for receiving the sound collected by the wireless earphone output by the first terminal through call connection and recording the sound as the test audio data.
7. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the audio test apparatus includes:
the sound equipment is used for playing the preset audio;
the wireless earphone is used for collecting sound through a microphone, and the sound collected by the wireless earphone comprises the preset audio played by the sound equipment;
the first terminal is used for recording sound collected by the wireless earphone into the test audio data and outputting the test audio data;
and the second terminal is used for receiving the sound collected by the wireless earphone output by the first terminal through call connection.
8. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the audio test apparatus includes:
the sound equipment is used for playing the preset audio;
the second terminal is used for collecting sound through a microphone, and the sound collected by the second terminal comprises the preset audio played by the sound equipment;
the first terminal is used for receiving the sound collected by the second terminal through call connection;
the wireless earphone is used for playing sound collected by the second terminal and received by the first terminal;
The artificial ear is used for collecting sound, and the sound collected by the artificial ear comprises sound played by the wireless earphone;
and the double-channel sound card is used for recording the sound collected by the artificial ear into the test audio data.
9. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the audio test apparatus includes:
the sound equipment is used for playing the preset audio;
the second terminal is used for collecting sound through a microphone, and the sound collected by the second terminal comprises the preset audio played by the sound equipment;
the first terminal is used for receiving the sound collected by the second terminal through call connection and recording the sound as reference audio data;
the wireless earphone is used for playing sound collected by the second terminal and received by the first terminal;
the artificial ear is used for collecting sound, and the sound collected by the artificial ear comprises sound played by the wireless earphone;
the double-channel sound card is used for recording the sound collected by the artificial ear into the test audio data;
the extracting the signal to be judged in the processed audio signal according to the preset frequency band and the preset relation comprises:
And extracting a signal to be judged in the processed audio signal according to the preset frequency band, the preset relation and the reference audio data.
10. The method according to any one of claims 1 to 7, wherein,
the preset audios comprise third preset audios and fourth preset audios, the third preset audios correspond to third preset frequency bands, the fourth preset audios correspond to fourth preset frequency bands, the third preset frequency bands are smaller than the fourth preset frequency bands, the energy magnitudes among a plurality of frequency components of the third preset audios have a third preset relation, and the energy magnitudes among a plurality of frequency components of the fourth preset audios have a fourth preset relation;
the audio test equipment comprises first audio test equipment and second audio test equipment;
the step of obtaining the test audio data output by the audio test equipment comprises the following steps:
acquiring first test audio data output by the first audio test equipment;
acquiring second test audio data output by the second audio test equipment;
the processing the test audio data, converting the test audio data from a time domain expression form to a frequency domain expression form, and obtaining the processed audio signal comprises the following steps:
Processing the first test audio data, and converting the first test audio data from a time domain expression form to a frequency domain expression form to obtain a processed first audio signal;
processing the second test audio data, and converting the second test audio data from a time domain expression form to a frequency domain expression form to obtain a processed second audio signal;
the extracting the signal to be judged in the processed audio signal according to the preset frequency band and the preset relation comprises:
extracting a first signal to be judged in the processed first audio signal according to the third preset frequency band and the third preset relation;
extracting a second signal to be judged in the processed second audio signal according to the fourth preset frequency band and the fourth preset relation;
determining a test result according to the signal to be judged comprises:
and determining a first test result according to the first signal to be judged, and determining a second test result according to the second signal to be judged.
11. An audio testing system, comprising:
control means comprising a processor and a memory for storing at least one instruction which when loaded and executed by the processor implements the audio test method of any one of claims 1 to 10;
An audio test device communicatively coupled to the control device, the audio test device comprising:
the earphone is in communication connection with the control device;
and the first terminal is in communication connection with the control device and the earphone.
12. The system of claim 11, wherein the system further comprises a controller configured to control the controller,
the earphone is a wireless earphone, and the wireless earphone has a Bluetooth connection function;
the first terminal has a Bluetooth connection function.
13. The system of claim 12, wherein the audio test device further comprises:
the wireless earphone is arranged on the artificial ear, and the artificial ear is used for simulating a human ear to collect sound played by the wireless earphone;
the double-channel sound card is connected to the control device and is used for recording sound collected by the artificial ear into double-channel audio data;
the sound equipment is in communication connection with the control device;
the second terminal is in communication connection with the control device, has a wireless communication function, and has a wireless communication function.
14. A computer storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the audio test method of any one of claims 1 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310159551.1A CN116193347A (en) | 2023-02-16 | 2023-02-16 | Audio test system, method and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310159551.1A CN116193347A (en) | 2023-02-16 | 2023-02-16 | Audio test system, method and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116193347A true CN116193347A (en) | 2023-05-30 |
Family
ID=86448322
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310159551.1A Pending CN116193347A (en) | 2023-02-16 | 2023-02-16 | Audio test system, method and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116193347A (en) |
-
2023
- 2023-02-16 CN CN202310159551.1A patent/CN116193347A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103179495B (en) | The ear microphone of mobile terminal and the audio testing method of receiver and system | |
CN101313483B (en) | Configuration of echo cancellation | |
US6035046A (en) | Recorded conversation method for evaluating the performance of speakerphones | |
CN109195090B (en) | Method and system for testing electroacoustic parameters of microphone in product | |
CN103179240A (en) | Audio test method and system for mobile terminal | |
CN110246515A (en) | Removing method, device, storage medium and the electronic device of echo | |
CN103179496A (en) | Audio test method and system for earphone microphone and receiver of mobile terminal | |
CN108347686A (en) | Audio testing method and device, intelligent equipment and storage medium | |
CN103181197B (en) | For testing the method for listening device and for testing the device of listening device | |
CN104036771A (en) | Signal processing device, signal processing method, and storage medium | |
CN110956976B (en) | Echo cancellation method, device and equipment and readable storage medium | |
CN212013054U (en) | Noise-reduction earphone testing equipment | |
CN108335701B (en) | Method and equipment for sound noise reduction | |
CN113241085B (en) | Echo cancellation method, device, equipment and readable storage medium | |
CN107371115A (en) | A kind of detection method, storage medium and the terminal of complete machine loudspeaker performance | |
CN104601769A (en) | Automatic mobile phone main board audio testing system | |
CN111863011B (en) | Audio processing method and electronic equipment | |
CN111182116A (en) | Multi-channel audio testing device and testing method | |
CN111145773B (en) | Sound field restoration method and device | |
CN108259653B (en) | Voice test method, device and system | |
US20210400410A1 (en) | System and method for evaluating an ear seal using normalization | |
CN113517000A (en) | Echo cancellation test method, terminal and storage device | |
CN116193347A (en) | Audio test system, method and storage medium | |
Yan et al. | Telesonar: Robocall Alarm System by Detecting Echo Channel and Breath Timing | |
CN112995882B (en) | Intelligent equipment audio open loop test method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |