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
- terminal
- preset
- test
- 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)
- Electrically Operated Instructional Devices (AREA)
- Reverberation, Karaoke And Other Acoustics (AREA)
Abstract
Description
技术领域technical field
本申请涉及耳机测试技术领域,特别涉及一种音频测试系统、方法和存储介质。The present application relates to the technical field of earphone testing, in particular to an audio testing system, method and storage medium.
背景技术Background technique
随着蓝牙技术的发展,蓝牙无线耳机越来越成熟,现有的针对音频质量的测试,往往需要人工主观判断,或者依赖深度学习模型,基于大量的训练样本进行训练后进行识别判断,测试效率较低。With the development of Bluetooth technology, Bluetooth wireless headsets are becoming more and more mature. Existing tests for audio quality often require manual subjective judgments, or rely on deep learning models to identify and judge based on a large number of training samples. lower.
发明内容Contents of the invention
一种音频测试系统、方法和存储介质,可以实现自动化的基于应用场景的音频测试,节省人力、提高效率。An audio test system, method and storage medium can realize automatic audio test based on application scenarios, save manpower and improve efficiency.
第一方面,提供一种音频测试方法,包括:生成并输出预设音频至音频测试设备,预设音频包括多个频率成分,多个频率成分之间的能量大小具有预设关系;获取音频测试设备输出的测试音频数据;对测试音频数据进行处理,将测试音频数据由时域表达形式转换为频域表达形式,得到处理后的音频信号;根据预设关系,提取处理后的音频信号中的待判断信号;根据待判断信号确定测试结果。In the first aspect, an audio test method is provided, including: generating and outputting preset audio to audio test equipment, the preset audio includes multiple frequency components, and the energy magnitudes between multiple frequency components have a preset relationship; obtaining audio test The test audio data output by the device; process the test audio data, convert the test audio data from the time-domain expression form to the frequency-domain expression form, and obtain the processed audio signal; extract the processed audio signal according to the preset relationship The signal to be judged; the test result is determined according to the signal to be judged.
在一种可能的实施方式中,处理为傅里叶变换。In a possible implementation manner, the processing is Fourier transform.
在一种可能的实施方式中,预设音频对应预设频段;根据预设关系,提取处理后的音频信号中的待判断信号包括:根据预设频段和预设关系,提取处理后的音频信号中的待判断信号。In a possible implementation manner, the preset audio corresponds to a preset frequency band; extracting the signal to be judged in the processed audio signal according to the preset relationship includes: extracting the processed audio signal according to the preset frequency band and the preset relationship The signal to be judged in .
在一种可能的实施方式中,音频测试设备包括:第一终端,第一终端用于播放预设音频;无线耳机,无线耳机用于播放来自于第一终端的预设音频;人工耳,人工耳用于采集声音,人工耳采集的声音包括无线耳机播放的声音;双声道声卡,双声道声卡用于将人工耳采集的声音录制为测试音频数据。In a possible implementation manner, the audio testing device includes: a first terminal, the first terminal is used to play preset audio; a wireless earphone, the wireless earphone is used to play preset audio from the first terminal; artificial ear, artificial The ear is used to collect sound, and the sound collected by the artificial ear includes the sound played by the wireless earphone; the dual-channel sound card is used to record the sound collected by the artificial ear as test audio data.
在一种可能的实施方式中,音频测试设备包括:音响,音响用于播放预设音频;无线耳机,无线耳机用于通过麦克风采集声音,无线耳机采集的声音包括音响播放的预设音频;第一终端,第一终端用于将无线耳机采集的声音录制为测试音频数据。In a possible implementation manner, the audio testing equipment includes: a sound box, the sound box is used to play preset audio; a wireless earphone, the wireless earphone is used to collect sound through a microphone, and the sound collected by the wireless earphone includes the preset audio played by the sound box; A terminal, the first terminal is used to record the sound collected by the wireless earphone as test audio data.
在一种可能的实施方式中,音频测试设备包括:音响,音响用于播放预设音频;无线耳机,无线耳机用于通过麦克风采集声音,无线耳机采集的声音包括音响播放的预设音频;第一终端,第一终端用于接收无线耳机采集的声音;第二终端,第二终端用于通过通话连接接收第一终端输出的无线耳机采集的声音并录制为测试音频数据。In a possible implementation manner, the audio testing equipment includes: a sound box, the sound box is used to play preset audio; a wireless earphone, the wireless earphone is used to collect sound through a microphone, and the sound collected by the wireless earphone includes the preset audio played by the sound box; One terminal, the first terminal is used to receive the sound collected by the wireless earphone; the second terminal, the second terminal is used to receive the sound collected by the wireless earphone output by the first terminal through the call connection and record it as test audio data.
在一种可能的实施方式中,音频测试设备包括:音响,音响用于播放预设音频;无线耳机,无线耳机用于通过麦克风采集声音,无线耳机采集的声音包括音响播放的预设音频;第一终端,第一终端用于将无线耳机采集的声音录制为测试音频数据输出;第二终端,第二终端用于通过通话连接接收第一终端输出的无线耳机采集的声音。In a possible implementation manner, the audio testing equipment includes: a sound box, the sound box is used to play preset audio; a wireless earphone, the wireless earphone is used to collect sound through a microphone, and the sound collected by the wireless earphone includes the preset audio played by the sound box; One terminal, the first terminal is used to record the sound collected by the wireless earphone as test audio data output; the second terminal, the second terminal is used to receive the sound collected by the wireless earphone output by the first terminal through a call connection.
在一种可能的实施方式中,音频测试设备包括:音响,音响用于播放预设音频;第二终端,第二终端用于通过麦克风采集声音,第二终端采集的声音包括音响播放的预设音频;第一终端,第一终端用于通过通话连接接收第二终端采集的声音;无线耳机,无线耳机用于播放第一终端接收到的第二终端采集的声音;人工耳,人工耳用于采集声音,人工耳采集的声音包括无线耳机播放的声音;双声道声卡,双声道声卡用于将人工耳采集的声音录制为测试音频数据。In a possible implementation manner, the audio testing device includes: a sound box, the sound box is used to play preset audio; a second terminal, the second terminal is used to collect sound through a microphone, and the sound collected by the second terminal includes the preset sound played by the sound box. Audio; the first terminal, the first terminal is used to receive the sound collected by the second terminal through the call connection; the wireless earphone, the wireless earphone is used to play the sound collected by the second terminal received by the first terminal; the artificial ear, the artificial ear is used for Collecting sound, the sound collected by the artificial ear includes the sound played by the wireless earphone; the binaural sound card, the binaural sound card is used to record the sound collected by the artificial ear as test audio data.
在一种可能的实施方式中,音频测试设备包括:音响,音响用于播放预设音频;第二终端,第二终端用于通过麦克风采集声音,第二终端采集的声音包括音响播放的预设音频;第一终端,第一终端用于通过通话连接接收第二终端采集的声音并录制为参考音频数据;无线耳机,无线耳机用于播放第一终端接收到的第二终端采集的声音;人工耳,人工耳用于采集声音,人工耳采集的声音包括无线耳机播放的声音;双声道声卡,双声道声卡用于将人工耳采集的声音录制为测试音频数据;根据预设频段和预设关系,提取处理后的音频信号中的待判断信号包括:根据预设频段、预设关系和参考音频数据,提取处理后的音频信号中的待判断信号。In a possible implementation manner, the audio testing device includes: a sound box, the sound box is used to play preset audio; a second terminal, the second terminal is used to collect sound through a microphone, and the sound collected by the second terminal includes the preset sound played by the sound box. Audio: the first terminal, the first terminal is used to receive the sound collected by the second terminal through the call connection and record it as reference audio data; the wireless earphone, the wireless earphone is used to play the sound collected by the second terminal received by the first terminal; manual ear, the artificial ear is used to collect sound, and the sound collected by the artificial ear includes the sound played by the wireless earphone; the two-channel sound card, the two-channel sound card is used to record the sound collected by the artificial ear as test audio data; according to the preset frequency band and preset Assuming the relationship, extracting the signal to be determined from the processed audio signal includes: extracting the signal to be determined from the processed audio signal according to a preset frequency band, a preset relationship and reference audio data.
在一种可能的实施方式中,预设音频包括第一预设音频和第二预设音频,第一预设音频对应第一预设频段,第二预设音频对应第二预设频段,第一预设频段小于第二预设频段。In a possible implementation manner, 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 audio corresponds to a second preset frequency band. A preset frequency band is smaller than the second preset frequency band.
在一种可能的实施方式中,预设音频包括第三预设音频和第四预设音频,第三预设音频对应第三预设频段,第四预设音频对应第四预设频段,第三预设频段小于第四预设频段,第三预设音频的多个频率成分之间的能量大小具有第三预设关系,第四预设音频的多个频率成分之间的能量大小具有第四预设关系;音频测试设备包括第一音频测试设备和第二音频测试设备;获取音频测试设备输出的测试音频数据包括:获取第一音频测试设备输出的第一测试音频数据;获取第二音频测试设备输出的第二测试音频数据;对测试音频数据进行处理,将测试音频数据由时域表达形式转换为频域表达形式,得到处理后的音频信号包括:对第一测试音频数据进行处理,将第一测试音频数据由时域表达形式转换为频域表达形式,得到处理后的第一音频信号;对第二测试音频数据进行处理,将第二测试音频数据由时域表达形式转换为频域表达形式,得到处理后的第二音频信号;根据预设频段和预设关系,提取处理后的音频信号中的待判断信号包括:根据第三预设频段和第三预设关系,提取处理后的第一音频信号中的第一待判断信号;根据第四预设频段和第四预设关系,提取处理后的第二音频信号中的第二待判断信号;根据待判断信号确定测试结果包括:根据第一待判断信号确定第一测试结果,根据第二待判断信号确定第二测试结果。In a possible implementation manner, the preset audio includes a third preset audio and a fourth preset audio, the third preset audio corresponds to the third preset frequency band, the fourth preset audio corresponds to the fourth preset frequency band, and the third preset audio corresponds to the fourth preset frequency band. The three preset frequency bands are smaller than the fourth preset frequency band, the energy levels among the multiple frequency components of the third preset audio frequency have a third preset relationship, and the energy levels among the multiple frequency components of the fourth preset audio frequency have a first preset relationship. Four preset relationships; the audio test equipment includes a first audio test equipment and a second audio test equipment; obtaining the test audio data output by the audio test equipment includes: obtaining the first test audio data output by the first audio test equipment; obtaining the second audio The second test audio data output by the test equipment; the test audio data is processed, and the test audio data is converted from a time-domain expression form to a frequency-domain expression form, and the processed audio signal includes: processing the first test audio data, 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 to convert the second test audio data from a time-domain expression form to a frequency domain expression form; domain expression form to obtain the processed second audio signal; according to the preset frequency band and the preset relationship, extracting the signal to be judged in the processed audio signal includes: according to the third preset frequency band and the third preset relationship, extracting and processing The first signal to be judged in the first audio signal after processing; according to the fourth preset frequency band and the fourth preset relationship, extract the second signal to be judged in the second audio signal after processing; determine the test result according to the signal to be judged The method includes: determining the first test result according to the first signal to be judged, and determining the second test result according to the second signal to be judged.
第二方面,提供一种音频测试系统,包括:控制装置,控制装置包括处理器和存储器,存储器用于存储至少一条指令,指令由处理器加载并执行时以实现上述的音频测试方法;音频测试设备,通信连接于控制装置,音频测试设备包括:耳机,耳机通信连接于控制装置;第一终端,第一终端与控制装置以及耳机之间通信连接。In a second aspect, an audio test system is provided, including: a control device, the control device includes a processor and a memory, and the memory is used to store at least one instruction, and when the instruction is loaded and executed by the processor, the above-mentioned audio test method is realized; audio test The equipment is communicatively connected to the control device, and the audio testing equipment includes: earphones, which are communicatively connected to the control device; a first terminal, which is communicatively connected to the control device and the earphones.
在一种可能的实施方式中,耳机为无线耳机,无线耳机具有蓝牙连接功能;第一终端具有蓝牙连接功能。In a possible implementation manner, the headset is a wireless headset, and the wireless headset has a Bluetooth connection function; the first terminal has a Bluetooth connection function.
在一种可能的实施方式中,音频测试设备还包括:人工耳,无线耳机设置于人工耳上,人工耳用于模拟人耳采集无线耳机播放的声音;双声道声卡,双声道声卡通信连接于控制装置,双声道声卡用于将人工耳采集的声音录制为双声道音频数据;音响,音响与控制装置之间通信连接;第二终端,第二终端与控制装置之间通信连接,第二终端具有无线通信功能,第一终端具有无线通信功能。In a possible implementation manner, the audio testing equipment also includes: artificial ear, wireless earphone is arranged on the artificial ear, and artificial ear is used for simulating human ear to collect the sound played by the wireless earphone; two-channel sound card, two-channel sound card communication Connected to the control device, the binaural sound card is used to record the sound collected by the artificial ear as binaural audio data; audio, the communication connection between the audio and the control device; the second terminal, the communication connection between the second terminal and the control device , the second terminal has a wireless communication function, and the first terminal has a wireless communication function.
第三方面,提供一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述的音频测试方法。In a third aspect, a computer storage medium is provided, which includes computer instructions, and when the computer instructions are run on the electronic device, the electronic device is made to execute the above-mentioned audio testing method.
本申请实施例中的音频测试系统、方法和存储介质,通过构造频率成分之间能量大小具有预设关系的音频作为音频测试设备输入信号,信号在音频测试设备中传递之后,即可以根据这种预设关系来对信号进行识别提取,可以实现自动化的基于应用场景的音频测试,节省人力、提高效率;这种方法不需要海量数据进行运算,对于信号的构造灵活,且对于预设关系已知的信号的特征提取和判断较为容易,识别准确率稿;并且,这种方法对于声音大小不敏感,无论增益如何变化,其中频率成分之间能量大小均维持近似不变;在一定范围内的测试环境存在噪音等环境声时,噪音对本方法的影响较小。In the audio testing system, method and storage medium in the embodiment of the present application, by constructing the audio with the preset relationship between the energy of the frequency components as the input signal of the audio testing equipment, after the signal is transmitted in the audio testing equipment, it can be based on this Preset relationships to identify and extract signals can realize automated audio testing based on application scenarios, saving manpower and improving efficiency; this method does not require massive data for calculations, is flexible for signal construction, and has known preset relationships The feature extraction and judgment of the signal are relatively easy, and the recognition accuracy is high; moreover, this method is not sensitive to the sound level, no matter how the gain changes, the energy between the frequency components remains approximately unchanged; the test within a certain range When there are ambient sounds such as noise in the environment, the impact of noise on this method is small.
附图说明Description of drawings
图1为本申请实施例中一种音频测试方法的流程示意图;Fig. 1 is the schematic flow chart of a kind of audio testing method in the embodiment of the present application;
图2为本申请实施例中一种预设音频的信号示意图;FIG. 2 is a schematic diagram of a preset audio signal in an embodiment of the present application;
图3为图2中预设音频经过FFT处理后的频域信号示意图;FIG. 3 is a schematic diagram of a frequency-domain signal of the preset audio in FIG. 2 after FFT processing;
图4为本申请实施例中正常信号和间断卡顿异常信号的示意图;Fig. 4 is a schematic diagram of a normal signal and an intermittent stalled abnormal signal in the embodiment of the present application;
图5为本申请实施例中两种噪声异常信号的示意图;FIG. 5 is a schematic diagram of two abnormal noise signals in the embodiment of the present application;
图6为本申请实施例中一种音频测试系统的结构框图;FIG. 6 is a structural block diagram of an audio testing system in an embodiment of the present application;
图7为本申请实施例中一种音频测试系统从软件层面划分后的模块示意图;FIG. 7 is a schematic diagram of modules of an audio test system divided from the software level in the embodiment of the present application;
图8为本申请实施例中一种音频测试系统部分结构之间的通信示意图;FIG. 8 is a schematic diagram of communication between some structures of an audio test system in an embodiment of the present application;
图9为本申请实施例中一种音乐播放类场景的信号传递函数示意图;FIG. 9 is a schematic diagram of a signal transfer function of a music playing scene in an embodiment of the present application;
图10为本申请实施例中一种录音类场景的信号传递函数示意图;FIG. 10 is a schematic diagram of a signal transfer function of a recording scene in an embodiment of the present application;
图11为本申请实施例中一种通信类上行场景的信号传递函数示意图;FIG. 11 is a schematic diagram of a signal transfer function of a communication-type uplink scenario in an embodiment of the present application;
图12为本申请实施例中一种通话场景中测试音频数据的信号图;FIG. 12 is a signal diagram of test audio data in a call scene in an embodiment of the present application;
图13为本申请实施例中一种通信类上行场景的另一种信号传递函数示意图;FIG. 13 is a schematic diagram of another signal transfer function of a communication type uplink scenario in the embodiment of the present application;
图14为本申请实施例中一种通信类下行场景的信号传递函数示意图;FIG. 14 is a schematic diagram of a signal transfer function of a communication-type downlink scenario in an embodiment of the present application;
图15为本申请实施例中一种通信类下行场景的另一种信号传递函数示意图;FIG. 15 is a schematic diagram of another signal transfer function in a communication-type downlink scenario in the embodiment of the present application;
图16为本申请实施例中另一种音乐播放类场景的信号传递函数示意图;FIG. 16 is a schematic diagram of a signal transfer function of another music playing scene in the embodiment of the present application;
图17为本申请实施例中一种带底噪的两组音频信号混叠示意图;Fig. 17 is a schematic diagram of the aliasing of two sets of audio signals with background noise in the embodiment of the present application;
图18为本申请实施例中多套音频测试设备的示意图;Figure 18 is a schematic diagram of multiple sets of audio testing equipment in the embodiment of the present application;
图19为本申请实施例中另一种音频测试方法的流程示意图;Fig. 19 is a schematic flow chart of another audio testing method in the embodiment of the present application;
图20为本申请实施例中另一种音频测试方法的流程示意图;FIG. 20 is a schematic flow diagram of another audio testing method in the embodiment of the present application;
图21为本申请实施例中另一种音频测试系统的结构框图;FIG. 21 is a structural block diagram of another audio testing system in the embodiment of the present application;
图22为本申请实施例中一种屏蔽容器和容器控制结构的示意图;Fig. 22 is a schematic diagram of a shielded container and a container control structure in an embodiment of the present application;
图23为本申请实施例中一种音频测试系统对应不同场景的示意图;FIG. 23 is a schematic diagram of an audio test system corresponding to different scenarios in the embodiment of the present application;
图24为本申请实施例中一种音频测试方法中涉及断连回连测试的流程示意图;FIG. 24 is a schematic flow diagram of an audio test method involving a disconnection and reconnection test in an embodiment of the present application;
图25为本申请实施例中一种音频测试方法中涉及多业务测试的流程示意图;FIG. 25 is a schematic flow diagram of an audio testing method involving multi-service testing in an embodiment of the present application;
图26为本申请实施例中一种音频测试方法中涉及触控测试的流程示意图;FIG. 26 is a schematic flow diagram of an audio testing method involving touch testing in an embodiment of the present application;
图27为本申请实施例中一种音频测试方法中涉及佩戴测试的流程示意图。Fig. 27 is a schematic flow chart of an audio testing method in an embodiment of the present application involving wearing testing.
具体实施方式Detailed ways
本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。The terms used in the embodiments of the present application are only used to explain specific embodiments of the present application, and are not intended to limit the present application.
本申请实施例提供一种音频测试方法,该音频测试方法应用于音频测试系统,音频测试系统包括控制装置和音频测试设备,音频测试设备包括耳机和第一终端,耳机和第一终端以及控制装置之间通信连接,在测试时,耳机作为第一终端的音频输出设备,耳机可以为无线耳机或有线耳机,本申请实施例的方法的执行主体可以为控制装置。如图1所示,音频测试方法包括:An embodiment of the present application provides an audio test method, the audio test method is applied to an audio test system, the audio test system includes a control device and audio test equipment, the audio test equipment includes earphones and a first terminal, earphones and a first terminal, and a control device During the test, the earphone is used as the audio output device of the first terminal, the earphone can be a wireless earphone or a wired earphone, and the execution body of the method in the embodiment of the present application can be a control device. As shown in Figure 1, audio testing methods include:
步骤1001、生成并输出预设音频至音频测试设备,预设音频包括多个频率成分,多个频率成分之间的能量大小具有预设关系;
即预设音频为具有多频率成分且内部频率成分成一定特征分布的信号,其表达式如下所示:That is, the preset audio is a signal with multiple frequency components and the internal frequency components form a certain characteristic distribution, and its expression is as follows:
F(s)=k1*f1(s)+k2*f2(s)+…+kn-1*fn-1(s)+kn*fn(s)F(s)=k 1 *f 1 (s)+k 2 *f 2 (s)+…+k n-1 *f n-1 (s)+k n *f n (s)
其中fx(s)表示特定频率成分,kn表示该频率成分的能量大小,如果设0db为该信号的最大能量,则所有kx*fx(s)<0db,x的取值为1、2、…、n。Where f x (s) represents a specific frequency component, k n represents the energy of the frequency component, if 0db is the maximum energy of the signal, then all k x *f x (s)<0db, the value of x is 1 , 2, ..., n.
预设关系也就是k1、k2、…、kn之间的关系,预设关系可以用函数M(n)表示。如图2所示,以一个4段音频信号作为预设音频为例,该信号在时域上为500-650hz的单频信号,每段信号持续时长为1s,其中第一段和第三段信号幅值相同,第二段和第四段信号幅值相同。The preset relationship is the relationship among k 1 , k 2 , . . . , k n , and the preset relationship can be represented by a function M(n). As shown in Figure 2, taking a 4-segment audio signal as the preset audio as an example, the signal is a single-frequency signal of 500-650hz in the time domain, and the duration of each signal is 1s, of which the first segment and the third segment The signal amplitudes are the same, and the signal amplitudes of the second segment and the fourth segment are the same.
这里对于输出预设音频至音频测试设备的方式不做限定,例如,可以通过音响来播放预设音频,通过耳机的麦克风输入,即对于耳机来讲,预设音频可以作为上行数据输入;也可以直接将预设音频通过有线或无线通信的方式传输至第一终端,第一终端播放预设音频,以此将预设音频传输至耳机,或者通过音响来播放预设音频,通过第一终端的麦克风输入预设音频,即对于耳机来讲,预设音频可以作为下行数据输入。There is no limit to the way of outputting the preset audio to the audio test equipment. For example, the preset audio can be played through the stereo, and the microphone input through the earphone, that is, for the earphone, the preset audio can be used as the uplink data input; Directly transmit the preset audio to the first terminal through wired or wireless communication, and the first terminal plays the preset audio, so as to transmit the preset audio to the earphone, or play the preset audio through the speaker, and pass the first terminal’s The microphone inputs the preset audio, that is, for the headset, the preset audio can be used as downlink data input.
步骤1002、获取音频测试设备输出的测试音频数据;
在将预设音频输出至音频测试设备之后,预设音频信号会在音频测试设备中传递,在传递的过程中,可能会引入噪声,预设音频在音频测试设备中传递完成之后,会被录制为测试音频数据输出,测试音频数据会包括预设音频和在传递过程中引入的噪声。预设音频在传递的过程中,预设关系随着音量变化不会有明显改变。从预设音频信号的输入到最终测试音频数据的输出,中存在若干传递函数线性叠加得到的G(s),G(s)最终近似一个常数K(可看做增益),即所述G(s)可以是将传递函数进行线性叠加得到的。After the preset audio is output to the audio test equipment, the preset audio signal will be transmitted in the audio test equipment. During the transmission process, noise may be introduced. After the preset audio is transmitted in the audio test equipment, it will be recorded. To test audio data output, the test audio data will include preset audio and noise introduced during the transfer process. During the transmission of preset audio, the preset relationship will not change significantly as the volume changes. From the input of the preset audio signal to the output of the final test audio data, there are G(s) obtained by linear superposition of several transfer functions, and G(s) finally approximates a constant K (which can be regarded as a gain), that is, the G( s) can be obtained by performing linear superposition of transfer functions.
步骤1003、对测试音频数据进行处理,将测试音频数据由时域表达形式转换为频域表达形式,得到处理后的音频信号,处理过程具体可以为傅里叶变换,例如快速傅里叶变换(Fast Fourier Transform,FFT);
步骤1004、根据预设关系,提取处理后的音频信号中的待判断信号;
如图3所示,假设对于图2所示的音频信号进行FFT处理,从频域图中可知,由于每段信号持续时间相同,1、3段信号幅值相同,因此累计的能量相同。所以频率为500hz的信号成分与600hz的信号成分具有的能量是相近的,550hz和650hz的信号能量接近。且1、3组合2、4组信号之间又存在差异性。这种信号内部的能量关系,经过音频测试设备的传递后,关系仍然存在。也就是说,假设预设音频F(s)的多个频率成分之间的能量大小具有的关系为函数M(n),即预设关系,经过传递函数的线性叠加得到G(s)后,F(s)的多个频率成分之间的能量大小具有的关系为m(n),有M(n)≈m(n)(近似相等)。在对音频测试设备输出的测试音频数据进行特征提取时,可以判断:各个频率成分之间的能量大小的关系是否近似满足M(n)即可。As shown in Figure 3, assuming that FFT processing is performed on the audio signal shown in Figure 2, it can be seen from the frequency domain diagram that since the duration of each segment of the signal is the same, the amplitude of the 1st and 3rd segment signals is the same, so the accumulated energy is the same. Therefore, the energy of the signal component with a frequency of 500hz is similar to that of the signal component of 600hz, and the energy of the signal at 550hz and 650hz is close. And there are differences between the 1, 3 combination, 2, 4 group signals. The energy relationship inside the signal still exists after the transmission of the audio test equipment. That is to say, assuming that the relationship between the energy of multiple frequency components of the preset audio F(s) is a function M(n), that is, the preset relationship, after obtaining G(s) through the linear superposition of the transfer function, The relationship between the energy magnitudes of multiple frequency components of F(s) is m(n), and M(n)≈m(n) (approximately equal). When performing feature extraction on the test audio data output by the audio test equipment, it can be judged whether the relationship between the energy magnitudes of the various frequency components approximately satisfies M(n).
步骤1005、根据待判断信号确定测试结果,识别提取出原始输入的预设音频所对应的待判断信号之后,即可以基于该信号来确定输入信号的有效性。由于预先指定的频率成分必须满足内部的关系M(n),因此间断、卡顿、起播延迟等异常输出结果也可以被该算法很好地识别出来,如图4所示的间断异常可以被该算法很好地识别出来。Step 1005: Determine the test result according to the signal to be judged. After identifying and extracting the signal to be judged corresponding to the original input preset audio, the validity of the input signal can be determined based on the signal. Since the pre-specified frequency components must satisfy the internal relationship M(n), abnormal output results such as discontinuities, freezes, and start delays can also be well identified by the algorithm. The discontinuous anomalies shown in Figure 4 can be identified by The algorithm does a good job of identifying it.
本申请实施例中的音频测试方法,通过构造频率成分之间能量大小具有预设关系的音频作为音频测试设备输入信号,信号在音频测试设备中传递之后,即可以根据这种预设关系来对信号进行识别提取,可以实现自动化的基于应用场景的音频测试,节省人力、提高效率;这种方法不需要海量数据进行运算,对于信号的构造灵活,且对于预设关系已知的信号的特征提取和判断较为容易,识别准确率高;并且,这种方法对于声音大小不敏感,无论增益如何变化,其中频率成分之间能量大小均维持近似不变;在一定范围内的测试环境存在噪音等环境声时,噪音对本方法的影响较小。In the audio testing method in the embodiment of the present application, by constructing the audio with the preset relationship between the energy of the frequency components as the input signal of the audio testing equipment, after the signal is transmitted in the audio testing equipment, it can be tested according to this preset relationship Signal identification and extraction can realize automated audio testing based on application scenarios, saving manpower and improving efficiency; this method does not require massive data for calculation, and is flexible for signal construction, and for feature extraction of signals with known preset relationships It is easier to judge and judge, and the recognition accuracy is high; moreover, this method is not sensitive to the sound level, no matter how the gain changes, the energy level between the frequency components remains approximately unchanged; there are noises and other environments in the test environment within a certain range Noise has little effect on this method.
在一些可能的实施方式中,上述实施例中的音频测试方法可以应用于多场景和多业务的测试过程中,此时,可以对于预设音频设置预设频段,即上述步骤1001中生成并输出至音频测试设备预设音频对应预设频段,上述步骤1004具体为根据预设频段和预设关系,提取处理后的音频信号中的待判断信号,即在进行特征提取时,需要判断预设的各频率成分是否存在的同时,各个频率成分之间的能量大小的关系是否近似满足M(n)。下面具体举例说明。In some possible implementations, the audio testing method in the above-mentioned embodiments can be applied to the multi-scenario and multi-service testing process. At this time, the preset frequency band can be set for the preset audio, which is generated and output in the
例如,在多场景的测试过程中,有两套音频测试设备,在同一空间范围内同时进行测试,此时,如果输出预设音频的方式是通过音响在空间中播放音频,那么,两套音频测试设备有可能会接收到对方的音频,从而可能会对测试结果产生不良影响。因此,针对这种多场景的测试过程,在上述步骤1004中,可以根据预设音频及其对应的预设关系,提取处理后的音频信号中的待判断信号。假设A音频测试设备对应的预设音频属于A频段,B音频测试设备对应的预设音频属于B频段,且A频段和B频段不同且无交叠,两者得到的音频信号同时包括两个频段的信号,在对A音频测试设备所得到的音频信号进行提取时,仅仅在A频段进行提取,这样,就可以排除B音频测试设备所对应的音频信号的影响,类似的,在对B音频测试设备所得到的音频信号进行提取时,仅仅在B频段进行提取,这样,就可以排除A音频测试设备所对应的音频信号的影响,即可以更加高效地实现多场景的测试。For example, in the multi-scenario test process, there are two sets of audio test equipment that are tested simultaneously in the same space. The test equipment may receive the other party's audio, which may adversely affect the test results. Therefore, for this multi-scenario testing process, in the
例如,在多业务的测试过程中,同一套音频测试设备需要对基于至少两个业务对应的预设音频进行获取并判断测试结果。为了正确识别和分别提取得到不同业务对应的音频信号,可以通过下面的方法进行测试。For example, in the multi-service testing process, the same set of audio testing equipment needs to acquire preset audio corresponding to at least two services and judge the test results. In order to correctly identify and separately extract audio signals corresponding to different services, the following method can be used for testing.
假设C业务对应的音频信号属于C频段,其中多个频率成分之间的能量大小具有C预设关系,D业务对应的音频信号属于D频段,其中多个频率成分之间的能量大小具有D预设关系,C频段和D频段不同且无交叠,预设音频包括C业务对应音频信号和D业务对应的音频信号,那么,针对处理后的音频信号,可以根据C频段和C预设关系提取C业务所对应的待判断信号,根据D频段和D预设关系提取D业务所对应的待判断信号,由于不同业务所对应的信号被分别提取,因此,可以针对性判断不同业务所对应的信号是否符合预期。需要说明的是,除了可以应用于多场景和多业务的测试过程之外,根据预设频段和预设关系,提取处理后的音频信号中的待判断信号的方案中,由于预先指定的频率成分必须存在,常见的无声、啸叫、蜂鸣等异常输出结果可以被该算法很好地识别出来,如图5所示,上述算法可以于白噪和粉噪等环境噪声中将待判断信号提取出来,也就是说,即便没有应用于多场景或多业务的测试过程,也可以提高测试的准确性。Assume that the audio signal corresponding to the C service belongs to the C frequency band, and the energy between multiple frequency components has a C preset relationship, and the audio signal corresponding to the D service belongs to the D frequency band, and the energy between multiple frequency components has a D preset relationship. Assuming a relationship, the C frequency band and the D frequency band are different and have no overlap, and 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, it can be extracted according to the preset relationship between the C frequency band and C The signal to be judged corresponding to the C service is extracted according to the D frequency band and D preset relationship. Since the signals corresponding to different services are extracted separately, the signals corresponding to different services can be judged in a targeted manner Is it as expected. It should be noted that, in addition to being applicable to the multi-scenario and multi-service testing process, in the scheme of extracting the signal to be judged from the processed audio signal according to the preset frequency band and preset relationship, due to the pre-specified frequency component must exist, common abnormal output results such as silence, howling, and buzzing can be well identified by the algorithm, as shown in Figure 5, the above algorithm can extract the signal to be judged from environmental noise such as white noise and pink noise In other words, even if the testing process is not applied to multiple scenarios or multiple services, the accuracy of the test can be improved.
本申请实施例还提供一种音频测试系统,包括:控制装置,控制装置包括处理器和存储器,存储器用于存储至少一条指令,指令由处理器加载并执行时以实现本申请任意实施例中的音频测试方法,也就是说,上述图1所涉及的音频测试方法的执行主体可以为控制装置;音频测试设备,通信连接于控制装置,音频测试设备包括:耳机,耳机通信连接于控制装置;第一终端,第一终端与控制装置之间通信连接,例如,第一终端、控制装置可以具有蓝牙连接功能,用以实现第一终端与控制装置之间的通信连接。The embodiment of the present application also provides an audio test system, including: a control device, the control device includes a processor and a memory, and the memory is used to store at least one instruction, and when the instruction is loaded and executed by the processor, it can realize the control device in any embodiment of the present application. Audio testing method, that is to say, the executive body of the audio testing method involved in the above-mentioned Figure 1 can be a control device; the audio testing equipment is connected to the control device in communication, and the audio testing equipment includes: earphones, and the earphones are connected to the control device in communication; A terminal, a communication connection between the first terminal and the control device, for example, the first terminal and the control device may have a Bluetooth connection function to realize the communication connection between the first terminal and the control device.
需要说明的是,上面仅仅介绍了基础的音频测试方法及其对应的音频测试系统,在此基础上,音频测试方法可以具有更加复杂的流程,音频测试系统可以具有更多的功能以及装置。下面进一步对其他的可能的实施方案中的音频测试系统和音频测试方法进行说明。It should be noted that the above only introduces the basic audio test method and its corresponding audio test system. On this basis, the audio test method can have a more complicated process, and the audio test system can have more functions and devices. The audio test system and the audio test method in other possible implementations will be further described below.
在一种可能的实施方式中,耳机为无线耳机,无线耳机具有蓝牙连接功能;第一终端具有蓝牙连接功能,即无线耳机通过与第一终端之间的蓝牙连接,使得该无线耳机作为其音频输出设备使用,如果无线耳机就有麦克风,则可以同时作为第一终端的音频输入设备,为方便描述,后续实施例均以耳机为无线耳机为例进行说明。如图6所示,本申请实施例提供一种音频测试系统,包括控制装置1和音频测试设备,控制装置1可以为计算机等任何具有控制功能的装置。音频测试设备包括:无线耳机2,无线耳机2通信连接于控制装置1,无线耳机2具有蓝牙连接功能,无线耳机2具有麦克风,无线耳机2可以为真实无线立体声(True Wireless Stereo,TWS)等任意形式的蓝牙耳机,另外,无线耳机2可以为以耳机产品的形态呈现,也可以为以非耳机形态呈现,只要能够体现耳机功能即可,例如,当无线耳机2以非耳机形态呈现时,可以为评估套件(Evaluation Kit,EVK)加耳机中元件,EVK用于替代成品耳机中的芯片,EVK是用来评估芯片性能,分析和展示产品特性的,凡是能帮助分析和展示产品特性的硬件/软件都可以叫EVK,和控制装置1配套使用时,是通过控制装置1下发配置给芯片实现控制的;人工耳3,无线耳机2设置于人工耳3上,其中,人工耳3包括左耳部件和右耳部件,无线耳机2的两个扬声器(speaker)(区分左右)分别为左声道扬声器和右声道扬声器,左声道扬声器和右声道扬声器分别作为输出端设置于人工耳3对应的左耳部件和右耳部件上,人工耳3用于模拟人耳采集无线耳机2播放的声音;双声道声卡4,双声道声卡4通信连接于控制装置1,双声道声卡4用于将人工耳3采集的声音录制为包含左右声道的双声道音频数据;音响5,音响5与控制装置1之间通信连接;第一终端61,第一终端61与控制装置1之间通信连接,第一终端61具有蓝牙连接功能和无线通信功能;第二终端62,第二终端62与控制装置1之间通信连接,第二终端62具有无线通信功能;第一终端61和第二终端62可以为手机或平板电脑等移动终端设备,第一终端61是在测试过程中需要与无线耳机2之间建立蓝牙连接的终端,第二终端62是在测试过程中用于与第一终端61配合构建场景的终端。In a possible implementation manner, the headset is a wireless headset, and the wireless headset has a Bluetooth connection function; the first terminal has a Bluetooth connection function, that is, the wireless headset is connected to the first terminal through Bluetooth, so that the wireless headset can be used as its audio For the output device, if the wireless earphone has a microphone, it can be used as the audio input device of the first terminal at the same time. For the convenience of description, the subsequent embodiments will all take the earphone as an example for illustration. As shown in FIG. 6 , the embodiment of the present application provides an audio test system, including a
具体地,以第一终端61和第二终端62为手机为例,本申请实施例的测试系统和方法,可以对包括耳机与手机通信、耳机的一些行为在手机侧的表达效果是否符合预期、耳机作为手机音频输入/输出设备所表现出的基本功能及性能是否满足要求,替代人工进行相应的操作和测试场景构建,并自动给出判断结果。以下以一种音频测试方法为例进行说明。从软件层面对音频测试系统进行划分,可以如图7所示,其中终端控制模块、无线耳机控制模块、屏蔽容器控制模块和声学设备控制模块为对应有实体控制对象的模块,用例模块、日志模块、界面模块和音频判断算法模块主要是软件层面系统级的功能模块。如图7和图8所示,下面对其中模块进行说明。Specifically, taking the
终端控制模块主要通过控制装置1和终端之间的通信实现,第一终端61和第二终端62均可以通过安卓调试桥(Android Debug Bridge,ADB)套接字(Socket)与控制装置1建立有线实时通信,第一终端61和第二终端62上设置有对应的测试软件,在测试过程中,终端上运行的测试软件可以对控制装置1发送的测试指令进行执行和回复,控制装置1对于终端上自动化测试指令执行结果进行收集;The terminal control module is mainly implemented through the communication between the
无线耳机控制模块,可以包括事件控制模块以及日志模块,是对于搭载无线音频芯片的EVK进行控制的模块。其中事件控制模块,主要是指通过指令的方式模拟充电盒(Charge-Box,CBOX)给耳机发送指令(如开关盒,配对、清除信息等),以及模拟耳机外部搭载的一些传感器所收集到的事件(如佩戴/取下、点击/长按),通过这一系列的事件组合,可以模拟耳机处于不同的业务场景,从而完成不同的测试。此外系统可以通过EVK对于音频芯片的日志进行捕获,并根据日志中出现的关键字对于处于某些特殊场景下的行为是否按照预期进行执行,进行有效的判断,从而辅助进行系统功能/性能的测试;The wireless earphone control module may include an event control module and a log module, and is a module for controlling the EVK equipped with a wireless audio chip. Among them, the event control module mainly refers to simulating the charging box (Charge-Box, CBOX) to send instructions (such as switch box, pairing, clearing information, etc.) Events (such as wear/take off, click/long press), through this series of event combinations, can simulate different business scenarios of the headset, so as to complete different tests. In addition, the system can capture the log of the audio chip through EVK, and make an effective judgment on whether the behavior in some special scenarios is executed as expected according to the keywords appearing in the log, so as to assist in the system function/performance test ;
声学设备控制模块主要控制人工耳3和双声道声卡4,采集无线音频设备(主要指蓝牙耳机)的输出音频信号并储存为左右声道立体声音频文件。也可以控制音响5,播放指定内容的音频文件作为无线音频设备(主要指蓝牙耳机)的输入信号。除此之外,控制装置1中的业务模块还会负责一些类似数据处理计算、以及一些通用功能;The acoustic equipment control module mainly controls the
音频判断算法模块,主要是对耳机的一些输入/输出信号的有效性及部分性能进行判断的一个模块,能够判断左右耳机/Mic(microphone)所得到的音频测试结果是否符合预期,可对录制的音频信号的有效性、性能等进行综合识别和判断,最终决定测试是否通过。音频判断算法模块,可对声学设备控制模块产生的音频数据,以及终端控制模块产生的音频数据进行分析和判断,可识别出包括且不限于无声、断续、卡顿、延迟起播等相关音频质量问题。The audio judgment algorithm module is mainly a module for judging the validity and partial performance of some input/output signals of the earphones. It can judge whether the audio test results obtained by the left and right earphones/Mic (microphone) are in line with expectations. The validity and performance of the audio signal are comprehensively identified and judged, and finally determine 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 including but not limited to silent, intermittent, stuck, delayed start, etc. Quality issues.
以上各模块,所有或部分的控制指令及其指令执行的返回值均被抽象为应用编程接口(Application Program Interface,API),提供给用户编写测试用例使用。For each of the above modules, all or part of the control instructions and the return values of the instruction execution are abstracted into application programming interfaces (Application Program Interface, API), which are provided for users to write test cases.
界面模块,主要提供给用户操作界面,可进行用例选择,测试相关功能配置;The interface module is mainly provided for the user operation interface, which can select use cases and test related function configurations;
日志模块,记录自动化测试系统的系统日志,包括测试用例执行生成的日志等;The log module records the system logs of the automated test system, including logs generated by test case execution, etc.;
用例模块,主要是提供自动化测试系统抽象出的API给用户进行用例编写,并且能够执行测试用例、统计测试结果。The use case module mainly provides the API abstracted by the automated test system for users to write use cases, and can execute test cases and count test results.
使用上述功能模块相互配合,就可以构建无线音频设备的不同使用场景,从而完成相应的自动化测试。By using the above-mentioned functional modules to cooperate with each other, different usage scenarios of wireless audio equipment can be constructed to complete corresponding automated tests.
在一种可能的实施方式中,音频测试方法可以应用于音乐播放类场景,如图9所示,图9为本申请实施例中音频测试方法应用于音乐播放类场景的信号传递函数示意图,音频测试设备包括:第一终端61,第一终端61用于播放预设音频;无线耳机2,无线耳机2用于播放来自于第一终端61的预设音频;人工耳3,人工耳3用于采集声音,人工耳3采集的声音包括无线耳机2播放的声音,同时还可能引入外界的噪声;双声道声卡4,双声道声卡4用于将人工耳3采集的声音录制为测试音频数据。In a possible implementation, the audio testing method can be applied to a music playing scene, as shown in FIG. The test equipment includes: a
在一种可能的实施方式中,音频测试方法可以应用于录音类场景,如图10所示,图10为本申请实施例中音频测试方法应用于录音类场景的信号传递函数示意图,音频测试设备包括:音响5,音响5用于播放预设音频;无线耳机2,无线耳机2用于通过麦克风采集声音,无线耳机2采集的声音包括音响5播放的预设音频,同时还可能引入外界的噪声;第一终端61,第一终端61用于将无线耳机2采集的声音录制为测试音频数据。In a possible implementation, the audio test method can be applied to a recording scene, as shown in Figure 10, which is a schematic diagram of the signal transfer function of the audio test method applied to a recording scene in the embodiment of the present application, audio test equipment Including: audio 5,
在一种可能的实施方式中,音频测试方法可以应用于通信类上行场景,如图11所示,图11为本申请实施例中音频测试方法应用于通信类上行场景的一种信号传递函数示意图,音频测试设备包括:音响5,音响5用于播放预设音频;无线耳机2,无线耳机2用于通过麦克风采集声音,无线耳机2采集的声音包括音响5播放的预设音频;第一终端61,第一终端61用于接收无线耳机2采集的声音;第二终端62,第二终端62用于通过通话连接接收第一终端61输出的无线耳机2采集的声音并录制为测试音频数据。In a possible implementation, the audio test method can be applied to communication-type uplink scenarios, as shown in FIG. 11 , which is a schematic diagram of a signal transfer function in which the audio test method is applied to communication-type uplink scenarios in the embodiment of the present application. , the audio test equipment includes: audio 5,
如图12所示,图12示意了通话场景中测试音频数据的信号图,其中,方框内的信号是原本预设音频所对应的信号,可以看出,由于信号失真等问题,多个频率成分之间的能量大小发生了变化。所以说,在通话场景,由于会引入通信过程中的信号失真等问题,在进行信号提取和判断时,可以设置较为宽松的约束条件。另外,也可以通过一些方式对通话场景进行改进,具体会在后续内容中说明。As shown in Figure 12, Figure 12 shows the signal diagram of the test audio data in the call scene, where the signal in the box is the signal corresponding to the original preset audio, it can be seen that due to problems such as signal distortion, multiple frequencies The magnitude of energy changes between components. Therefore, in the call scene, due to the introduction of signal distortion and other problems in the communication process, looser constraints can be set when performing signal extraction and judgment. In addition, the call scene can also be improved in some ways, which will be explained in the follow-up content.
在一种可能的实施方式中,如图13所示,图13为本申请实施例中音频测试方法应用于通信类上行场景的另一种信号传递函数示意图,可以认为是针对图11所示方案的一种改进方案,音频测试设备包括:音响5,音响5用于播放预设音频;无线耳机2,无线耳机2用于通过麦克风采集声音,无线耳机2采集的声音包括音响播放的预设音频;第一终端61,第一终端61用于将无线耳机2采集的声音录制为测试音频数据输出;第二终端62,第二终端62用于通过通话连接接收第一终端61输出的无线耳机采集的声音。实际上,图13所示的方法和图11所示的方法的区别在于,改为通过第一终端61录制通话录音信号作为测试音频数据,这样,就可以避免通话连接的通信过程引入的信号失真等问题。In a possible implementation, as shown in FIG. 13 , FIG. 13 is a schematic diagram of another signal transfer function in which the audio test method in the embodiment of the present application is applied to a communication-type uplink scenario, which can be considered for the solution shown in FIG. 11 An improved solution, the audio test equipment includes:
在一种可能的实施方式中,如图14所示,图14为本申请实施例中音频测试方法应用于通信类下行场景的一种信号传递函数示意图,音频测试设备包括:音响5,音响5用于播放预设音频;第二终端62,第二终端62用于通过麦克风mic采集声音,第二终端62采集的声音包括音响5播放的预设音频;第一终端61,第一终端61用于通过通话连接接收第二终端62采集的声音;无线耳机2,无线耳机2用于播放第一终端61接收到的第二终端62采集的声音;人工耳3,人工耳3用于采集声音,人工耳3采集的声音包括无线耳机2播放的声音;双声道声卡4,双声道声卡4用于将人工耳3采集的声音录制为测试音频数据。In a possible implementation, as shown in FIG. 14, FIG. 14 is a schematic diagram of a signal transfer function in which the audio test method is applied to a communication downlink scenario in the embodiment of the present application. The audio test equipment includes: audio 5,
在一种可能的实施方式中,如图15所示,图15为本申请实施例中音频测试方法应用于通信类下行场景的一种信号传递函数示意图,是基于图14所示的方法的一种改进方案,音频测试设备包括:音响5,音响5用于播放预设音频;第二终端62,第二终端62用于通过麦克风采集声音,第二终端62采集的声音包括音响播放的预设音频;第一终端61,第一终端61用于通过通话连接接收第二终端62采集的声音并录制为参考音频数据;无线耳机2,无线耳机2用于播放第一终端61接收到的第二终端62采集的声音;人工耳3,人工耳3用于采集声音,人工耳3采集的声音包括无线耳机2播放的声音;双声道声卡4,双声道声卡4用于将人工耳3采集的声音录制为测试音频数据;上述步骤1005、根据预设频段和预设关系,提取处理后的音频信号中的待判断信号包括:根据预设频段、预设关系和参考音频数据,提取处理后的音频信号中的待判断信号。在图15所示的方案中,为了改善由于通话连接的通信过程引入的信号失真等问题,利用参考音频数据对预设关系进行修正,以提高提取待判断信号的准确性。In a possible implementation, as shown in FIG. 15, FIG. 15 is a schematic diagram of a signal transfer function in which the audio test method in the embodiment of the present application is applied to a communication-type downlink scenario, and is based on the method shown in FIG. 14. An improved solution, the audio testing equipment includes: a
在一种可能的实施方式中,如图16和图17所示,预设音频包括第一预设音频和第二预设音频,第一预设音频对应第一预设频段,第二预设音频对应第二预设频段,第一预设频段小于第二预设频段。对于多组音频信号混叠并伴随有噪音的音频信号,也可用上述方法进行输入信号构造与输出信号特征提取。例如,假设第一预设音频是由500-650hz频率成分组成的信号,第二预设音频是由1000-1150hz频率成分组成的信号,并带有粉噪信号。通过FFT得到的频谱图,2组信号的频率成分均得到保留且组内各频率成分关系也近似满足各自对应的预设关系。也就是说,在上述各种场景中,均可以输入多组预设音频,通过音频测试设备的传递,所得到的测试音频数据包括多组音频信号混叠并伴随有噪音的音频信号,由于不同组音频信号可以通过对应的频段来区分,因此,通过本申请实施例中的方法,仍可以对其中的不同组音频信号所对应的待判断信号分别提取识别。这种方式即实现了多业务场景的测试,例如播放音乐过程中突然来电或者响起闹铃。In a possible implementation manner, as shown in Figure 16 and Figure 17, the preset audio includes a first preset audio and a second preset audio, the first preset audio corresponds to the first preset frequency band, and the second preset The 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 in which multiple groups of audio signals are aliased and accompanied by noise, the above method can also be used for input signal construction and output signal feature extraction. For example, it is assumed that the first preset audio frequency is a signal composed of 500-650 Hz frequency components, and the second preset audio frequency is a signal composed of 1000-1150 Hz frequency components with pink noise signals. In the spectrogram obtained by FFT, the frequency components of the two groups of signals are preserved, and the relationship of each frequency component in the group also approximately satisfies the corresponding preset relationship. That is to say, in the above-mentioned various scenarios, multiple sets of preset audio can be input, and through the transmission of the audio test equipment, the obtained test audio data includes multiple sets of audio signals mixed with audio signals accompanied by noise. Groups of audio signals can be distinguished by corresponding frequency bands. Therefore, through the method in the embodiment of the present application, signals to be judged corresponding to different groups of audio signals can still be extracted and identified respectively. This method realizes the test of multi-service scenarios, such as a sudden call or an alarm ringing during music playback.
在上述各场景中,环境噪声成分会通过mic或者人工耳传入系统,最终录音文件将包括噪音信号频率成分;当多个频率成分的音频文件同时出现(播放)时,伴随音轨的时移所有频率成分将以线性叠加的方式进行保存,因此输出音频文件从频域进行分析将包含上述多个频率成分。In each of the above scenarios, the environmental noise component will be transmitted to the system through the mic or the artificial ear, and the final recording file will include the noise signal frequency component; when audio files with multiple frequency components appear (play) at the same time, the time shift of the audio track will be accompanied All frequency components will be saved in the form of linear superposition, so the output audio file will contain the above multiple frequency components when analyzed from the frequency domain.
在一种可能的实施方式中,如图18所示,预设音频包括第三预设音频和第四预设音频,第三预设音频对应第三预设频段,第四预设音频对应第四预设频段,第三预设频段小于第四预设频段,第三预设音频的多个频率成分之间的能量大小具有第三预设关系,第四预设音频的多个频率成分之间的能量大小具有第四预设关系;音频测试设备包括第一音频测试设备和第二音频测试设备;获取音频测试设备输出的测试音频数据包括:获取第一音频测试设备输出的第一测试音频数据;获取第二音频测试设备输出的第二测试音频数据;对测试音频数据进行处理,将测试音频数据由时域表达形式转换为频域表达形式,得到处理后的音频信号包括:对第一测试音频数据进行处理,将第一测试音频数据由时域表达形式转换为频域表达形式,得到处理后的第一音频信号;对第二测试音频数据进行处理,将第二测试音频数据由时域表达形式转换为频域表达形式,得到处理后的第二音频信号;根据预设频段和预设关系,提取处理后的音频信号中的待判断信号包括:根据第三预设频段和第三预设关系,提取处理后的第一音频信号中的第一待判断信号;根据第四预设频段和第四预设关系,提取处理后的第二音频信号中的第二待判断信号;根据待判断信号确定测试结果包括:根据第一待判断信号确定第一测试结果,根据第二待判断信号确定第二测试结果。In a possible implementation manner, as shown in FIG. 18 , the preset audio includes a third preset audio and a fourth preset audio, the third preset audio corresponds to the third preset frequency band, and the fourth preset audio corresponds to the first Four preset frequency bands, the third preset frequency band is smaller than the fourth preset frequency band, the energy between the multiple frequency components of the third preset audio has a third preset relationship, and the energy between the multiple frequency components of the fourth preset audio The energy size between has the 4th preset relationship; The audio test equipment comprises the first audio test equipment and the second audio test equipment; Obtaining the test audio data output by the audio test equipment includes: obtaining the first test audio output by the first audio test equipment data; obtain the second test audio data output by the second audio test equipment; process the test audio data, convert the test audio data from a time-domain expression form to a frequency-domain expression form, and obtain the processed audio signal comprising: first The test audio data is processed, and the first test audio data is converted from the time domain expression form to the frequency domain expression form, and the first audio signal after processing is obtained; the second test audio data is processed, and the second test audio data is converted from the time domain expression form Converting the domain expression form into a frequency domain expression form to obtain the processed second audio signal; according to the preset frequency band and the preset relationship, extracting the signal to be judged in the processed audio signal includes: according to the third preset frequency band and the third The preset relationship extracts the first signal to be judged in the processed first audio signal; according to the fourth preset frequency band and the fourth preset relationship, extracts the second signal to be judged in the processed second audio signal; according to The determination of the test result by the signal to be judged includes: determining the first test result according to the first signal to be judged, and determining the second test result according to the second signal to be judged.
具体地,在同一空间内,声音存在叠加效应,音频测试设备同时工作,如在通话、录音场景下时,播放的音频信号会相互影响,作为其他系统的噪音信号进行输入。该实施方式中,选取不同频段且成分关系描述不同的信号作为输入,即不同预设音频之间的频段互斥(没有交集),这样,即便预设音频输入至其他的测试设备,由于不同音频之间的频段不同,因此,在提取识别信号时,仍可以对不同的输入信号进行区分,因此音频测试设备的测试结果不会被其他设备干扰。Specifically, in the same space, there is a superposition effect of sound, and the audio test equipment works at the same time. For example, in the scene of a call or recording, the played audio signals will affect each other and be input as noise signals of other systems. In this embodiment, different frequency bands and signals with different component relationship descriptions are selected as input, that is, the frequency bands between different preset audio frequencies are mutually exclusive (no intersection). In this way, even if the preset audio frequencies are input to other test equipment, due to different The frequency bands between them are different, so when extracting the identification signal, different input signals can still be distinguished, so the test results of the audio test equipment will not be interfered by other equipment.
上述各种场景中,音频信号均为线性叠加,因此在固定时间内,G(s)接近常数K。综述上述场景,覆盖了手机与无线音频耳机的主要交付场景,如播放类:音乐播放、提示音(短信、闹铃、来电铃声);录音类:录音机、微信语音消息;通话类:典型双向通话、微信音/视频通话、视频会议通话;信号混叠类:音乐中提示音响起、通话中提示音响起等。In the above scenarios, the audio signals are linearly superimposed, so G(s) is close to the constant K within a fixed time. Summarize the above scenarios, covering the main delivery scenarios of mobile phones and wireless audio headsets, such as playback category: music playback, prompt tone (SMS, alarm, incoming call ringtone); recording category: recorder, WeChat voice message; call category: typical two-way conversation , Wechat audio/video call, video conference call; signal aliasing: the sound of the prompt in the music, the sound of the prompt in the call, etc.
为了使输入的预设音频,经过传递函数后能够再输出时能够更准确被识别算法识别,其可以具备如下几个特点:In order to enable the input preset audio to be more accurately recognized by the recognition algorithm when it is output after passing through the transfer function, it can have the following characteristics:
1、输入音频信号具备明确的频率成分,且具备多个频率成分;1. The input audio signal has a clear frequency component and has multiple frequency components;
2、输入音频信号具备的频率成分内部呈现一定的特征规律,方便识别算法进行特征提取;2. The frequency components of the input audio signal have certain characteristic rules inside, which is convenient for the recognition algorithm to perform feature extraction;
3、输入音频信号需要具备一定的特征规律,且其特征内部规律伴随音量变大变小不会有明显改变;3. The input audio signal needs to have a certain characteristic law, and its characteristic internal law will not change significantly as the volume becomes larger or smaller;
4、输入音频信号的特征频率能量需要明显区别于噪声信号(这里的噪声信号包括白噪/粉噪以及其他广义层面的噪声),可以确保其特征不会淹没于噪声信号中无法被提取。4. The characteristic frequency energy of the input audio signal needs to be clearly distinguished from the noise signal (the noise signal here includes white noise/pink noise and other generalized noise), so as to ensure that its characteristics will not be submerged in the noise signal and cannot be extracted.
下面通过一些更具体的实施例对本申请实施例进行说明。The embodiments of the present application will be described below through some more specific embodiments.
如图19所示,本申请实施例提供一种音频测试方法,可以用于上述的音频测试系统,音频测试方法包括:As shown in Figure 19, the embodiment of the present application provides an audio test method that can be used in the above-mentioned audio test system. The audio test method includes:
步骤101、控制装置1向无线耳机2和第一终端61发送对应的蓝牙连接指令;
步骤102、无线耳机2和第一终端61响应于对应的蓝牙连接指令建立蓝牙连接;
在无线耳机2和第一终端61建立蓝牙连接之后,音频测试方法还包括以下各项测试之一或任意组合:通话测试、断连回连测试、多业务测试、触控测试和佩戴测试,通话测试是指第一终端在通话场景下的无线耳机测试,断连回连测试是指第一终端与无线耳机之间蓝牙连接断开或恢复连接场景下的测试,多业务测试是指包括多个使用无线耳机业务的场景下的无线耳机测试,触控测试是指基于无线耳机触控功能的测试,佩戴测试是指基于无线耳机佩戴状态对功能触发的测试。After the
在一种可能的实施方式中,通话测试包括:In a possible implementation manner, the call test includes:
步骤201、控制装置1向第一终端61和第二终端62发送对应的通话指令;
步骤202、第一终端61和第二终端62响应于对应的通话指令建立通话连接,这里的通话可以为电话通话、网络语音通话、网络视频通话等各种类型的即时语音通话,后续仅以电话通话为例进行说明;
在第一终端61和第二终端62之间建立通话连接之后,执行下行通话测试和/或上行通话测试;After the call connection is established between the
下行通话测试包括:Downlink testing includes:
步骤203、控制装置1控制第一终端61闭麦并控制音响5播放预设音频,使音响5播放的预设音频输入第二终端62,控制第一终端61闭麦也可以说是控制第一终端61静音,第一终端61无法通过自身的麦克风或者所连接的无线耳机2的麦克风进行输入,因此,通过音响5所播放的音频即会通过第二终端62的麦克风输入,而无法通过第一终端61输入;
在音响5播放预设音频的过程中,步骤204、控制装置1控制双声道声卡4将人工耳3采集的声音录制为下行音频数据,下行音频数据即为测试音频数据。During the process of playing preset audio by the
也就是说,在下行通话测试中,音响5所播放的预设音频输入第二终端62后,通过通话连接传输至第一终端61,再通过第一终端61传输至无线耳机2进行播放,然后被人工耳3采集到,再通过双声道声卡4录制为下行音频数据,之后,控制装置1即可以根据下行音频数据来进行有效性的判断,实现下行通话场景下的音频测试;That is to say, in the downlink call test, after the preset audio played by the
上行通话测试包括:Uplink call tests include:
步骤205、控制装置1控制第二终端62闭麦并控制音响5播放预设音频,使音响5播放的预设音频输入无线耳机2的麦克风,当测试方法即包括下行通话测试也包括上行通话测试时,下行通话测试和上行通话测试中的预设音频可以相同,也可以不同;
在音响播放预设音频的过程中,步骤206、控制装置1控制第二终端62将通话过程中的音频录制为上行音频数据,上行音频数据即为测试音频数据。During the process of playing the preset audio by the stereo, in
也就是说,在上行通话测试中,音响5所播放的预设音频输入无线耳机2的麦克风,并通过无线耳机2与第一终端61之间的蓝牙连接传输至第一终端61,再通过第一终端61与第二终端62之间的通话连接传输至第二终端62,然后通过第二终端62的通话录音录制为上行音频数据,之后,第二终端62可以将上行音频数据传输至控制装置1,控制装置1可以根据上行音频数据来进行有效性的判断,实现在语音通话场景下,测试无线耳机作为终端音频的上下行是否正常。That is to say, in the uplink call test, the preset audio played by the
本申请实施例中的音频测试系统和方法,通过控制装置对各设备的控制,可以实现基于无线耳机的通话场景下的音频测试,通过替代人工进行相应的操作和测试场景构建,可以实现自动化的基于应用场景的音频测试,节省人力、提高效率。The audio test system and method in the embodiment of the present application can realize the audio test in the call scene based on the wireless earphone through the control of each device by the control device, and can realize the automatic test by replacing the corresponding manual operation and test scene construction. Audio testing based on application scenarios saves manpower and improves efficiency.
在一种可能的实施方式中,如图20所示,在第一终端61和第二终端62之间建立通话连接之后,执行下行通话测试,并在执行下行通话测试之后执行上行通话测试;在控制装置1控制音响5播放预设音频之前,下行通话测试还包括控制装置1控制第一终端61将通话过程中的音频录制为参考音频数据。In a possible implementation manner, as shown in FIG. 20, after the call connection is established between the
具体地,例如,上述步骤101包括:控制装置1向无线耳机2发送开盒配对指令,控制装置1向第一终端61发送指定名称的蓝牙设备扫描指令,指定名称为无线耳机2的名称;上述步骤102包括:无线耳机2响应于开盒配对指令进入配对模式,第一终端61响应于蓝牙设备扫描指令开始扫描指定名称的蓝牙设备,当第一终端61扫描到无线耳机2时,则配对、建立第一终端61和无线耳机2之间的蓝牙连接;步骤201包括:控制装置1向第一终端61发送拨打电话指令,控制终端1向第二终端62发送接听接话指令;步骤202包括:第一终端61响应于拨打电话指令向第二终端62拨打电话,第二终端62响应于接听电话指令接听电话,以建立第一终端61和第二终端62之间的通话连接;步骤203包括:在两个终端建立通话连接后,控制装置1控制第一终端61闭麦并开启通话录音,以将通话过程中的音频录制为参考音频数据,并且控制装置1控制音响5播放预设音频,音响5所播放的预设音频会通过第二终端62的麦克风输入;步骤204包括:控制装置1控制双声道声卡4将人工耳3采集的声音录制为下行音频数据;之后,第一终端61结束通话录音,取消静音,将通话录音上传至控制装置1,该通话录音即为参考音频数据;之后,步骤205包括:控制装置1控制第二终端62闭麦并开启通话录音,所录制的音频为上行音频数据;控制装置1控制音响5播放预设音频,音响5所播放的预设音频会通过无线耳机2的麦克风输入;之后,第二终端62结束通话,并将所录制的上行音频数据上传至控制装置1,即步骤206包括控制装置1控制第二终端62将通话过程中的音频录制为上行音频数据;控制装置1通过通话录音和双声道声卡录制的音频数据判断音频信号有效性。Specifically, for example, the above step 101 includes: the control device 1 sends an unpacking and pairing instruction to the wireless headset 2, the control device 1 sends a bluetooth device scanning command with a specified name to the first terminal 61, and the specified name is the name of the wireless headset 2; Step 102 includes: the wireless earphone 2 enters the pairing mode in response to the pairing instruction of opening the box, and the first terminal 61 responds to the bluetooth device scanning instruction to start scanning the bluetooth device of the specified name, and when the first terminal 61 scans the wireless earphone 2, then pairing, Establish a Bluetooth connection between the first terminal 61 and the wireless headset 2; step 201 includes: the control device 1 sends a call instruction to the first terminal 61, and the control terminal 1 sends an answer instruction to the second terminal 62; step 202 includes: The first terminal 61 makes a call to the second terminal 62 in response to the dialing instruction, and the second terminal 62 answers the call in response to the instruction of answering the call, so as to establish a call connection between the first terminal 61 and the second terminal 62; step 203 includes: After the two terminals establish a call connection, the control device 1 controls the first terminal 61 to turn off the microphone and turn on the call recording, so as to record the audio during the call as reference audio data, and the control device 1 controls the audio 5 to play the preset audio, and the audio 5. The preset audio played will be input through the microphone of the
对于音频信号有效性的判断,可以根据所播放的预设音频源来参考判断,例如,预设音频为一种多频率成分且内部频率成分具有一定特征分布的信号。对于录制的上行音频数据和下行音频数据,其会包含预设音频的频率特征,因此,可以根据频率特征对所录制的音频数据进行信号提取和判断。The validity of the audio signal can be judged based on the played preset audio source. For example, the preset audio is a signal with multiple frequency components and the internal frequency components have a certain characteristic distribution. For the recorded uplink audio data and downlink audio data, it will contain the frequency characteristics of the preset audio, therefore, signal extraction and judgment can be performed on the recorded audio data according to the frequency characteristics.
但是,下行音频数据是音响5所播放的预设音频输入第二终端62后,通过通话连接传输至第一终端61,再通过第一终端61传输至无线耳机2进行播放,然后被人工耳3采集到,再通过双声道声卡4录制得到的,其中通话连接的通信传输过程可能会引入通信过程中的信号失真等问题,这种失真可能会导致根据频率特征对信号提取和判断的不准确,因此,为了改善由此导致的判断准确性低的问题,可以引入在第一终端61侧进行通话录音得到参考音频数据,由于参考音频数据中同样引入了通信过程中的失真影响,因此,可以根据参考音频数据对音频信号的提取和判断进行修正,以提高判断准确性。However, the downlink audio data is that the preset audio played by the
类似的原因,上行音频数据同样存在由于通信过程中的失真而导致的信号提取和判断不准确的问题。为了改善这个问题,在一种可能的实施方式中,对于上行音频数据的获取,可以改为通过第一终端61的录音得到,这样,就可以排除终端通信过程引入的失真导致的不良影响。For similar reasons, uplink audio data also has the problem of inaccurate signal extraction and judgment due to distortion in the communication process. In order to improve this problem, in a possible implementation manner, the acquisition of uplink audio data can be obtained through the recording of the
在一种可能的实施方式中,如图21至图23所示,音频测试系统还包括:屏蔽容器7,屏蔽容器7具有盖体,屏蔽容器7用于在盖体闭合时屏蔽无线信号,无线耳机2和第一终端61中的一者的蓝牙连接模块设置于屏蔽容器7内,无线耳机2和第一终端61中的另一者的蓝牙连接模块设置于屏蔽容器7外;屏蔽容器7还可以包括容器控制机构8,容器控制机构8用于控制盖体的开合,容器控制机构8通信连接于控制装置1;容器控制机构8可以通过图7中示意的推杆机构来实现盖体的开合控制,除此之外,容器控制机构8还可以包括用于驱动推杆机构的驱动装置,驱动装置可以包括底层的供电电路和驱动电路,驱动装置可以为单独的电控箱,驱动装置电连接于推杆结构和控制装置1,即容器控制机构8可以通过驱动装置实现与控制装置1之间的通信连接;另外,容器控制机构8还可以包括限位感应器,限位感应器用于感应盖体的位置并反馈控制推杆机构,例如,当限位感应器感应到盖体闭合到位后控制推杆机构停止动作,或者当限位感应器感应到盖体打开到位后控制推杆机构停止动作。In a possible implementation, as shown in FIGS. 21 to 23 , the audio test system further includes: a shielding
具体地,例如,将第一终端61设置于屏蔽容器7内,将无线耳机2设置于屏蔽容器7之外,当屏蔽容器7的盖体关闭时,由于屏蔽容器7对蓝牙信号的屏蔽作用,会断开无线耳机2与第一终端61之间的蓝牙连接,当屏蔽容器7的盖体打开时,无线耳机2能够与第一终端61之间保持蓝牙连接。屏蔽容器7上可以设置接口,以使第一终端61可以通过连接线的方式通过该接口连接至屏蔽容器7之外,进而连接至控制装置1,这样,即便屏蔽容器7的盖体关闭,也只会屏蔽无线信号,不会对控制装置1与第一终端61之间的通信连接造成不良影响。参考图7所示的模块划分方式对屏蔽容器7进行说明,测试系统从软件层面划分的模块还包括屏蔽容器控制模块,该屏蔽容器控制模块对应的实体为屏蔽容器,例如屏蔽箱,屏蔽箱可以是通过对普通手动屏蔽箱进行机电改造后得到的电动控制屏蔽箱(例如通过电动推拉杆的控制来实现屏蔽箱的开合)。利用屏蔽容器7来进行测试的本质利用屏蔽容器7对蓝牙信号的屏蔽作用,所以只要能够实现对蓝牙信号的屏蔽即可。对于无线耳机2和第一终端61来说,需要各自分别具有蓝牙连接模块,以实现蓝牙连接功能,在利用屏蔽容器7的蓝牙屏蔽作用进行测试时,可以像上面的实施例一样,将两者分别置于屏蔽容器7之内和之外,也可以仅仅将其中一者的蓝牙连接模块置于屏蔽容器7内,将另外一者的蓝牙连接模块置于屏蔽容器7之外,同样可以进行基于蓝牙断连回连的测试。Specifically, for example, the
将无线耳机2(可以为携带音频芯片的EVK及其耳机扬声器等组件所组成的装置)的蓝牙连接模块和第一终端61的蓝牙连接模块中的一者放入屏蔽箱,通过控制装置1与屏蔽箱控制板的通用异步收发器(Universal Asynchronous Receiver/Transmitter,UART)通信,来控制屏蔽箱开合,从而模拟手机与音频设备无线连接断开/恢复连接的场景。也就是说,通过屏蔽容器7,可以模拟第一终端61与无线耳机2之间的蓝牙连接断开连接以及恢复连接的场景下的无线耳机2的功能,这样,在进行该场景的测试时,则无需人工改变终端与无线耳机之间距离来实现断开连接和恢复连接的场景构建,从而提高了测试效率。对于包括屏蔽容器的音频测试系统,仍可以应用本申请实施例的音频测试方法来判断音频有效性。Put one of the bluetooth connection module of the wireless earphone 2 (which can be composed of components such as an EVK carrying an audio chip and its headphone speaker) and the bluetooth connection module of the
在一种可能的实施方式中,无线耳机测试系统可以包括两个屏蔽容器,两个屏蔽容器分别对应人工耳的左耳和右耳,第一终端设置于两个屏蔽容器之外,人工耳的左耳及其对应的无线耳机的一个speaker置于一个屏蔽箱内,人工耳的右耳及其对应的无线耳机的另一个speaker置于另一个屏蔽箱内,通过左右耳分别置于不同的两个屏蔽箱内可以模拟实现双耳断连与建连、主副切换等场景。In a possible implementation manner, the wireless earphone testing system may include two shielding containers, the two shielding containers correspond to the left ear and the right ear of the artificial ear respectively, the first terminal is arranged outside the two shielding containers, and the artificial ear One speaker of the left ear and its corresponding wireless earphone is placed in a shielding box, the right ear of the artificial ear and the other speaker of the corresponding wireless earphone are placed in another shielding box, and the left and right ears are respectively placed in two different shielding boxes. In a shielding box, scenarios such as disconnection and establishment of binaural connections, primary and secondary switching, etc. can be simulated.
在一种可能的实施方式中,无线耳机测试系统可以包括两个屏蔽容器,两个屏蔽容器分别为第一屏蔽容器和第二屏蔽容器,无线耳机包括左耳蓝牙连接模块和对应电连接的左耳扬声器,无线耳机还包括右耳蓝牙连接模块和对应电连接的右耳扬声器,其中,左耳扬声器用于发出左侧声道的声音,左耳蓝牙连接模块用于实现左侧声道的蓝牙连接,右耳扬声器用于发出右侧声道的声音,右耳蓝牙连接模块用于实现右侧声道的蓝牙连接,在测试蓝牙连接的断连和回连情况时,可以将左耳蓝牙连接模块置于第一屏蔽容器内,将右耳蓝牙连接模块置于第二屏蔽容器内,人工耳包括左耳部件和右耳部件,人工耳和第一终端置于第一屏蔽容器和第二屏蔽容器之外,左声道扬声器设置于左耳部件上,右声道扬声器设置于右耳部件上。需要说明的是,利用屏蔽容器7来进行测试的本质利用屏蔽容器7对蓝牙信号的屏蔽作用,在对无线耳机2进行测试时,由于无线耳机2可能并非不是一个成品的无线耳机2,而有可能是能够实现无线耳机2功能的装置,比如在之前提到的使用EVK替代成品耳机中的芯片的测试方式中,可以将EVK及其连接的耳机扬声器等作为无线耳机2来进行测试,此时,如果EVK中具有蓝牙连接模块,即可以将EVK置于屏蔽容器内,而将EVK所连接的左耳扬声器和右耳扬声器置于屏蔽容器之外。同样的原理,对于第一终端来说,如果其部分组件和蓝牙连接模块之间是可分立的,那么也可以仅仅将蓝牙连接模块置于屏蔽容器内,而将其他组件置于屏蔽容器内。In a possible implementation manner, the wireless earphone testing system may include two shielding containers, the two shielding containers are respectively a first shielding container and a second shielding container, and the wireless earphone includes a left ear Bluetooth connection module and a corresponding left ear The ear speaker, the wireless headset also includes a right ear Bluetooth connection module and a correspondingly electrically connected right ear speaker, wherein the left ear speaker is used to emit the sound of the left channel, and the left ear Bluetooth connection module is used to realize the Bluetooth connection of the left channel. connection, the right ear speaker is used to emit the sound of the right channel, and the right ear Bluetooth connection module is used to realize the Bluetooth connection of the right channel. When testing the disconnection and reconnection of the Bluetooth connection, the left ear Bluetooth connection can be The module is placed in the first shielding container, and the right ear Bluetooth connection module is placed in the second shielding container. The artificial ear includes left ear parts and right ear parts, and the artificial ear and the first terminal are placed in the first shielding container and the second shielding container. Outside the container, the left channel speaker is set on the left ear part, and the right channel speaker is set on the right ear part. It should be noted that the essence of using the shielding
在一种可能的实施方式中,在音频测试系统包括屏蔽容器7的基础上,如图24所示,在无线耳机2和第一终端61建立蓝牙连接之后,音频测试方法还包括断连回连测试,断连回连测试包括:控制模块1控制第一终端61播放预设音频,预设音频可以与其他的预设音频相同,也可以不同;在控制模块1控制第一终端61播放预设音频之后,控制模块1控制屏蔽容器7的盖体关闭;在控制模块1控制屏蔽容器7的盖体关闭之后,控制模块1控制屏蔽容器7的盖体打开;控制模块1控制屏蔽容器7的盖体打开之后,控制装置1控制第一终端61重新播放预设音频并控制双声道声卡4将人工耳3采集的声音录制为回连音频数据;控制装置1判断回连音频数据有效性,以此实现断连回连场景下的音频判断,回连音频数据即为测试音频数据。通过这种方式,无需人工改变第一终端61和无线耳机2之间的距离来实现断开蓝牙连接和恢复蓝牙连接,提高了测试效率。In a possible implementation, on the basis that the audio test system includes the shielding
在一种可能的实施方式中,断连回连测试还包括:在控制模块1控制屏蔽容器7的盖体关闭之后,控制模块1控制屏蔽容器7的盖体打开之前,控制装置1向第一终端61发送第一检查指令,第一终端61响应于第一检查指令,检查与无线耳机2之间的蓝牙连接是否断开,预设音频的播放是否暂停;在控制模块1控制屏蔽容器7的盖体打开之后,控制装置1控制第一终端61重新播放预设音频之前,控制装置1向第一终端61发送第二检查指令,第一终端61响应于第二检查指令,检查与无线耳机2之间的蓝牙连接是否恢复,预设音频的播放是否恢复。通过上述检查过程,可以进一步对蓝牙连接的断连和回连情况以及音频播放的功能进行测试。In a possible implementation, the disconnection and reconnection test further includes: after the
在一种可能的实施方式中,无线耳机2包括控制模块,控制模块通信连接于控制装置1,控制模块用于模拟耳机充电盒或传感器产生事件指令,事件指令包括以下各项之一或任意组合:耳机充电盒开盒指令、耳机充电盒关盒指令、无线配对指令、耳机佩戴指令、耳机取下指令、耳机按键点击指令。控制模块例如为上述的EVK中的模块。通过对事件的模拟,可以更高效地实现不同场景下的测试。In a possible implementation, the
在一种可能的实施方式中,控制模块还用于获取无线耳机的日志,即可以实现对设备日志进行捕获和筛选。In a possible implementation manner, the control module is also used to obtain logs of the wireless earphones, that is, capture and filter device logs.
在一种可能的实施方式中,如图25所示,在无线耳机2和第一终端61建立蓝牙连接之后,音频测试方法还包括多业务测试,多业务测试包括:控制装置1控制双声道声卡4开始将人工耳3采集的声音录制为多场景音频数据,并控制第一终端61播放预设音频;在第一终端61播放预设音频的过程中,控制终端1可以发送短信指令至第二终端62,第二终端62响应于短信指令发送消息至第一终端61;第一终端61响应于第二终端62发送的消息,在播放预设音频的过程中响起消息提示音;第一终端61持续查看消息,当第一终端61查看到消息时,停止播放预设音频;在第一终端61停止播放预设音频之后,发送测试完成指示至控制装置1;当控制装置1接收到测试完成指示之后,控制双声道声卡4结束录制多场景音频数据,并确定录制完成的多场景音频数据中是否同时具备预设音频和消息提示音,以实现多业务场景下的音频测试,多场景音频数据即为测试音频数据。其中,由于预设音频是预先设置的,因此可以设置其频率特征与提示音的频率特征不同,这样,在多场景音频数据中,就可以根据预设音频的和提示音各自的频率特征来对两者进行区分和识别,以判断在多业务场景下的音乐播放效果是否符合预期。多业务测试可以通过在音乐播放中由第二终端发送短信给第一终端,判断在多业务状态下(同时音乐播放中掺杂有短信提示音)第一终端响应是否符合预期。根据需要,可以设置为在播放音乐的过程中,如果接收到短信,则暂时降低音乐的播放音量,同时播放短信提示音,在短信提示音播放完成之后,再恢复音乐的播放音量,在这种场景下,可以进一步根据多场景音频数据来判断是否符合这种预期。In a possible implementation, as shown in FIG. 25 , after the
在一种可能的实施方式中,如图26所示,触控测试包括:控制装置1控制第一终端61添加至少2首音乐到播放列表;控制装置1发送音乐控制指令至无线耳机2,并发送与音乐控制指令对应的音乐检查指令至第一终端61,音乐控制指令为上一曲指令、下一曲指令、暂停指令或播放指令;第一终端61响应于音乐检查指令,检查当前音乐是否控制成功。例如,触控测试包括:控制装置1控制第一终端添加2首音乐到播放列表,并暂停播放;控制装置1发送下一曲指令至无线耳机2,并发送下一曲检查指令至第一终端61,第一终端61响应于下一曲检查指令,检查当前音乐是否切换到下一曲;控制装置1发送上一曲指令至无线耳机2,并发送上一曲检查指令至第一终端61,第一终端61响应于上一曲检查指令,检查当前音乐是否切换到上一曲;控制装置1发送暂停播放指令至无线耳机2,并发送暂停检查指令至第一终端61,第一终端61响应于暂停检查指令检查当前音乐是否处于暂停状态;控制装置1发送播放指令至无线耳机2,并发送播放检查指令至第一终端61,第一终端61响应于播放检查指令检查当前音乐是否处于播放状态。这里控制装置1发送至无线耳机2的各种控制指令是通过模拟真实场景下对耳机的触控功能操作来实现的,以此来实现触控场景下的测试。触控测试可以在进行音乐播放中通过对无线耳机进行触控操作(音乐播放/暂停/上一曲/下一曲)判断第一终端响应是否符合预期。In a possible implementation, as shown in FIG. 26 , the touch test includes: the
在一种可能的实施方式中,如图27所示,佩戴测试包括:控制装置1控制第一终端61添加至少2首音乐到播放列表;控制装置1发送佩戴动作指令至无线耳机2,并发送与佩戴动作指令对应的音乐检查指令至第一终端61,佩戴动作指令为左耳出盒并入耳的指令、右耳出盒并入耳的指令或者左耳、右耳均出耳的指令;第一终端61响应于音乐检查指令,检查当前音乐是否控制成功。例如,佩戴测试包括:控制装置1控制第一终端61添加音乐并暂停播放,之后控制装置1发送左耳出盒并入耳指令至无线耳机2,然后发送播放检查指令至第一终端61,第一终端61响应于播放检查指令检查当前音乐是否开始播放,以及控制装置1通过人工耳录音判断,是否左耳有声右耳无声;之后控制装置1发送右耳出盒并入耳指令至无线耳机2,然后通过人工耳录音判断,双耳是否有声;之后控制装置1发送左、右耳均出耳指令至无线耳机2,并发送暂停检查指令至第一终端61,第一终端61响应于暂停检查指令检查当前音乐是否处于暂停状态。需要说明的是,这里的具体步骤仅为举例,具体的测试过程可以根据无线耳机本身的业务流程和业务逻辑来设置。例如,无线耳机播放音乐的逻辑可以为入耳则执行播放,也可以为入耳后通过播放触控操作才执行播放,这两种不同的逻辑下所对应的测试过程可能不同,具体可以根据需要进行设置。佩戴测试可以在进行音乐播放中通过对无线耳机进行模拟行为操作(佩戴/取下)判断第一终端响应是否符合预期的测试场景(这里对无线耳机进行模拟行为操作是指通过指令模拟通过传感器输入的信息,模拟耳机的佩戴/取下或者叫做入耳/出耳动作)。In a possible implementation, as shown in FIG. 27 , the wearing test includes: the
另外需要说明的是,前面描述的测试方法仅为测试系统可以实现的部分实施例,本申请实施例可以实现基于无线耳机与第一终端实现各种场景下的测试,本申请实施例对于具体的测试过程不做限定,如图23所示,配对连接是测试系统可以实现的最小化场景,通过第一终端和无线耳机可以实现两者之间在配对连接场景下的测试;在此基础上,进一步实现播放场景的测试,则需要人工耳和双声道声卡来;进一步实现录音场景的测试,则需要麦克风和音响,这里的麦克风可以为无线耳机自带的麦克风;进一步实现通话场景的测试,则需要第二终端和音响;进一步实现断连回连场景的测试,则需要屏蔽容器和容器控制机构。最大化场景是包括上述所有场景的测试过程。In addition, it should be noted that the test methods described above are only some examples that can be realized by the test system. The embodiment of the present application can realize tests in various scenarios based on the wireless earphone and the first terminal. The embodiment of the present application is specific to the The test process is not limited. As shown in Figure 23, the paired connection is the minimum scenario that can be realized by the test system. The test between the first terminal and the wireless headset can be realized in the paired connection scenario; on this basis, To further realize the test of the playback scene, artificial ears and a binaural sound card are required; to further realize the test of the recording scene, a microphone and a speaker are required. The microphone here can be the microphone that comes with the wireless headset; to further realize the test of the call scene, A second terminal and audio are required; to further realize the test of disconnection and reconnection scenarios, a shielded container and a container control mechanism are required. The maximization scenario is a test procedure that includes all of the above scenarios.
在一种可能的实施方式中,音频测试方法用于多套音频测试系统,多套音频测试系统包括第一套音频测试系统和第二套音频测试系统;用于第一套音频测试系统的预设音频和用于第二套音频测试系统的预设音频的频段不同;和/或,用于第一套音频测试系统的预设音频和用于第二套音频测试系统的预设音频的频段不同。这样,可以在同一空间内布置多套测试系统,同时进行测试,由于不同测试系统之间的音频信号的频段不同,因此,在对音频信号进行判断时,不同系统之间不会相互干扰。In a possible implementation, the audio test method is used for multiple sets of audio test systems, and the multiple sets of audio test systems include a first set of audio test systems and a second set of audio test systems; The frequency bands of the preset audio and the preset audio used for the second audio test system are different; and/or, the frequency bands of the preset audio used for the first audio test system and the preset audio used for the second audio test system different. In this way, multiple sets of test systems can be arranged in the same space to conduct tests simultaneously. Since the frequency bands of the audio signals of different test systems are different, different systems will not interfere with each other when judging the audio signals.
本申请实施例中的第一终端和第二终端可以为任意能够与无线耳机搭配使用的电子设备,例如可以为手机、平板电脑、个人计算机(personal computer,PC)、个人数字助理(personal digital assistant,PDA)、智能手表、上网本、可穿戴电子设备、增强现实技术(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、车载设备、智能汽车、智能音响、智能眼镜、智能电视、服务器等。The first terminal and the second terminal in the embodiment of the present application may be any electronic device that can be used in conjunction with a wireless headset, such as a mobile phone, a tablet computer, a personal computer (personal computer, PC), a personal digital assistant (personal digital assistant) , PDA), smart watch, netbook, wearable electronic device, augmented reality technology (augmented reality, AR) device, virtual reality (virtual reality, VR) device, vehicle equipment, smart car, smart audio, smart glasses, smart TV, server etc.
本申请实施例还提供一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述任意实施例的音频测试方法。An embodiment of the present application further provides a computer storage medium, including computer instructions, which, when the computer instructions are run on the electronic device, cause the electronic device to execute the audio testing method of any of the above embodiments.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid StateDisk)等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it 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 the computer, the processes or functions according to the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means. 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 or a data center integrated with one or more available media. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk).
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three kinds of relationships, for example, A and/or B may indicate that A exists alone, A and B exist simultaneously, or B exists alone. Among them, A and B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single items 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, and c may be single or multiple.
以上仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, there may be various modifications and changes in the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application.
Claims (14)
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) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111866690A (en) * | 2019-04-25 | 2020-10-30 | 深圳市冠旭电子股份有限公司 | Method and device for testing a microphone |
CN112104969A (en) * | 2020-10-23 | 2020-12-18 | 苏州思必驰信息科技有限公司 | Detection method and device for Bluetooth headset |
EP3957085A1 (en) * | 2019-04-18 | 2022-02-23 | Hearing Diagnostics Limited | Hearing test system |
CN114786111A (en) * | 2022-04-29 | 2022-07-22 | 上海勤宽科技有限公司 | Earphone testing system, method, device, storage medium and program product |
CN115604621A (en) * | 2022-10-31 | 2023-01-13 | 歌尔科技有限公司(Cn) | Earphone testing method, device, equipment and computer readable storage medium |
-
2023
- 2023-02-16 CN CN202310159551.1A patent/CN116193347A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3957085A1 (en) * | 2019-04-18 | 2022-02-23 | Hearing Diagnostics Limited | Hearing test system |
CN111866690A (en) * | 2019-04-25 | 2020-10-30 | 深圳市冠旭电子股份有限公司 | Method and device for testing a microphone |
CN112104969A (en) * | 2020-10-23 | 2020-12-18 | 苏州思必驰信息科技有限公司 | Detection method and device for Bluetooth headset |
CN114786111A (en) * | 2022-04-29 | 2022-07-22 | 上海勤宽科技有限公司 | Earphone testing system, method, device, storage medium and program product |
CN115604621A (en) * | 2022-10-31 | 2023-01-13 | 歌尔科技有限公司(Cn) | Earphone testing method, device, equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101313483B (en) | Configuration of echo cancellation | |
CN101313482B (en) | Determination of audio device quality | |
CN103179495A (en) | Audio test method and system for earphone microphone and receiver of mobile terminal | |
CN109195090B (en) | Method and system for testing electroacoustic parameters of microphone in product | |
CN104601769B (en) | A kind of cell phone mainboard automated audio test system | |
WO2019033986A1 (en) | Sound playback device detection method, apparatus, storage medium, and terminal | |
US6035046A (en) | Recorded conversation method for evaluating the performance of speakerphones | |
CN103179240A (en) | Audio test method and system for mobile terminal | |
CN103179496A (en) | Audio test method and system for earphone microphone and receiver of mobile terminal | |
CN110956976B (en) | Echo cancellation method, device and equipment and readable storage medium | |
CN113241085A (en) | Echo cancellation method, device, equipment and readable storage medium | |
CN212013054U (en) | Noise-reduction earphone testing equipment | |
CN113517000A (en) | Test method, terminal and storage device for echo cancellation | |
CN111182116A (en) | Multi-channel audio testing device and testing method | |
CN108259653B (en) | A voice testing method, device and system | |
CN114582362B (en) | A processing method and a processing device | |
CN106708741B (en) | The test method and system of voice application | |
CN109246742B (en) | An automatic answering method and mobile terminal for incoming paging | |
CN112243182B (en) | Pickup circuit, method and device | |
CN116193347A (en) | Audio test system, method and storage medium | |
US10997984B2 (en) | Sounding device, audio transmission system, and audio analysis method thereof | |
CN105577863A (en) | Recording method and device | |
CN113113046B (en) | Performance detection method and device for audio processing, storage medium and electronic equipment | |
CN111556406B (en) | Audio processing method, audio processing device and earphone | |
CN110933240B (en) | Voice frequency automatic testing device and method of VoIP terminal |
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 |