Disclosure of Invention
Aiming at the technical problems, the invention provides a testing device and a testing system for analyzing the voice delay of voice equipment and a method for testing the voice delay by adopting the device or the system, which are used for rapidly and accurately testing the transmission delay of multiple paths of voices.
The test device for analyzing the voice delay of the voice equipment comprises a controller, a voice output device and a voice receiver, and further comprises:
the signal generator is connected with the controller and the voice output device and is used for generating a test signal with specified frequency spectrum characteristics under the control of the controller and outputting the test signal to the tested voice equipment through the voice output device;
the signal detector is connected with the controller and the voice receiver and is used for monitoring whether the voice receiver receives a voice signal returned by the tested voice equipment or not under the control of the controller and confirming whether the frequency spectrum characteristics of the voice signal are consistent with the frequency spectrum characteristics of the test signal or not when the voice signal is received;
a timer connected to the controller for recording the output time of the test signal and the receiving time of the voice signal under the control of the controller;
a memory connected to the controller, the signal generator, the signal detector and the timer for storing the spectral characteristic parameters and the output time of the test signal, and the spectral characteristic parameters and the receiving time of the voice signal under the control of the controller;
and the calculator is connected with the controller and the memory and is used for acquiring the output time of the test signal and the receiving time of the voice signal stored in the memory and calculating the time difference between the output time and the receiving time of the voice signal under the control of the controller when the frequency spectrum characteristic of the voice signal is consistent with the frequency spectrum characteristic of the test signal.
According to an embodiment of the present invention, when the receiving time of the voice signal is a time when the signal detector confirms that the spectral feature of the voice signal is identical to the spectral feature of the test signal, the calculator is further configured to subtract a time difference between the output time of the test signal and the receiving time of the voice signal from the detection of the voice signal to the confirmation of the voice signal, as a voice delay of the tested voice device.
According to an embodiment of the invention, the spectral characteristics of the test signal are different from the spectral characteristics of the system noise and the ambient noise of the speech device under test.
According to an embodiment of the invention, the speech output comprises at least one output port and the speech receiver comprises at least one receiving port.
Further, each of the output port and the receiving port is also provided with an interface for connecting with an oscilloscope, respectively.
According to an embodiment of the present invention, the controller is further connected to the voice output device and the voice receiver, and is configured to control and select output ports and receiving ports of the voice output device and the voice receiver.
The test system for analyzing the voice delay of the voice equipment comprises:
the test device;
the client device is connected with the testing device and is used for sending a control instruction for testing to a controller of the testing device and/or acquiring parameter information comprising a testing result.
In addition, the invention also provides a test method for analyzing the voice delay of the voice equipment by using the test device, which comprises the following steps:
s10, a signal generator generates a test signal with specified frequency spectrum characteristics under the control of a controller, and outputs the test signal to tested voice equipment through a voice output device;
s20, a signal detector monitors whether a voice receiver receives a voice signal returned by the tested voice equipment under the control of a controller, and confirms whether the frequency spectrum characteristics of the voice signal are consistent with those of a test signal when the voice signal is received;
s30, the timer records the output time of the test signal and the receiving time of the voice signal under the control of the controller;
s40, the memory stores the output time and the frequency spectrum characteristic parameters of the test signal and the receiving time and the frequency spectrum characteristic parameters of the voice signal under the control of the controller;
s50, when the frequency spectrum characteristics of the voice signal are consistent with those of the test signal, the calculator obtains the output time of the test signal and the receiving time of the voice signal in the memory under the control of the controller, and calculates the time difference between the output time and the receiving time.
According to an embodiment of the present invention, the step S50 further includes subtracting, as the voice delay of the voice device under test, the time difference between the output time of the test signal and the receiving time of the voice signal from the detection of the voice signal to the confirmation of the voice signal when the receiving time of the voice signal is the time at which the signal detector confirms that the spectral characteristic of the voice signal coincides with the spectral characteristic of the test signal.
According to an embodiment of the invention, a signal having spectral characteristics different from those of system noise and environmental noise of the speech device under test is selected as the test signal.
One or more embodiments of the present invention may have the following advantages over the prior art:
1) The invention realizes the automatic test of the voice delay and improves the precision and efficiency of the test.
2) The invention can realize simultaneous testing of multipath voice delay by arranging a plurality of output ports and receiving ports, thereby improving testing efficiency and reducing testing cost.
3) The invention is provided with an interface for connecting an oscilloscope, and can check waveforms of the test signal and the voice signal, thereby being capable of detecting distortion condition of the test signal after being transmitted by the tested voice equipment.
4) The invention can conveniently test the voice delay by directly connecting the existing earphone interface of the tested voice equipment with the testing device without destroying, modifying and leading the tested voice equipment, and has simple and convenient operation.
5) The vehicle-mounted power supply is suitable for voice time delay test under the vehicle-mounted moving state, and has strong applicability.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent.
Example 1
Fig. 1 is a schematic diagram of the composition and structure of a test device for analyzing the voice delay of a voice device according to an embodiment of the present invention. The specific structure of the device is described in detail below in connection with fig. 1.
The apparatus 10 generally includes a controller 100, a speech output 110, a speech receiver 120, a signal generator 130, a signal detector 140, a timer 150, a memory 160 and a calculator 170, and a power supply 180. Wherein:
and a signal generator 130 connected to the controller 100 and the voice output unit 110, for generating a test signal having a specified spectral characteristic under the control of the controller 100, and outputting the test signal to the voice device under test 20 through the voice output unit 110.
Specifically, the above-described voice outputter 110 includes at least one output port, and each output port may also preferably be equipped with an interface for connecting with the oscilloscope 30, by means of which the waveform of the test signal output by each output port to the voice device under test 20 is viewed. In this embodiment, the output port is preferably a 3.5 mm earphone interface of the national standard (OMTP) or a 3.5 mm earphone interface of the international standard (CTIA), and the two ends of the connection cable connecting the output port and the tested voice device 20 are preferably 3.5 mm earphone plugs of the national standard (OMTP) or 3.5 mm earphone plugs of the international standard (CTIA).
In the present embodiment, a signal having a spectral characteristic different from that of the system noise and the environmental noise of the voice device under test 20 is preferably used as the test signal, and for example, a sine wave, a square wave, a triangular wave, or the like may be used as the test signal.
And a signal detector 140, connected to the controller 100 and the voice receiver 120, for monitoring whether the voice receiver 120 receives the voice signal returned by the tested voice device 20 under the control of the controller 100, and confirming whether the spectrum characteristic of the voice signal is consistent with the spectrum characteristic of the test signal when receiving the voice signal.
Specifically, the above-described voice receiver 120 includes at least one receiving port, and each receiving port is further equipped with an interface for connecting with the oscilloscope 30, and the waveform of the voice signal returned by the voice device under test 20 is checked through another channel of the connected oscilloscope 30. Thereby detecting the distortion of the test signal transmitted through the tested voice device 20 by comparing the waveforms of the test signal and the voice signal. The receiving port of the voice receiver 120 in this embodiment is preferably a 3.5 mm earphone interface of the national standard (OMTP) or a 3.5 mm earphone interface of the international standard (CTIA), and both ends of the connection cable connecting the receiving port thereof and the tested voice device 20 are preferably 3.5 mm earphone plugs of the national standard (OMTP) or 3.5 mm earphone plugs of the international standard (CTIA).
A timer 150 connected to the controller 100 for recording the output time of the test signal and the receiving time of the voice signal under the control of the controller 100.
A memory 160 connected to the controller 100, the signal generator 130 and the signal detector 140, and the timer 150, for storing the spectral characteristic parameters and the output time of the test signal, and the spectral characteristic parameters and the reception time of the voice signal under the control of the controller 100.
Specifically, the memory 160 may preferably include both volatile memory and nonvolatile memory (not shown). The volatile memory is connected to the controller 100, the signal generator 130 and the signal detector 140, and the timer 150, and is used for storing at least the spectral characteristic parameters and the output time of the test signal, and the spectral characteristic parameters and the receiving time of the voice signal under the control of the controller 100. Meanwhile, the volatile memory is also connected with the nonvolatile memory, and the stored information is sent to the nonvolatile memory. Therefore, the combination of the volatile memory and the nonvolatile memory can ensure the high efficiency of the voice delay test and the integrity of the voice delay related information storage. It should be noted that the present embodiment does not specifically limit the type and the number of the memories 160. In the implementation process, the person skilled in the art can set the implementation process according to actual needs.
In this embodiment, if the receiving time of the voice signal is a time when the signal detector 140 confirms that the spectral characteristics of the voice signal are consistent with those of the test signal, the memory 160 further stores a time from monitoring of the voice signal to confirmation of the voice signal by the signal detector 140. Further, for a test signal with a specified spectral characteristic, since it is confirmed by the same signal detector 140 in the test apparatus 10 whether the spectral characteristic of the voice signal is identical to the spectral characteristic of the test signal, the transmission rate and decoding rate of the signal are generally fixed, and thus the time from monitoring the voice signal to confirming the voice signal by the signal detector 140 is a constant known amount. The known amount is typically pre-stored in the memory 160 in the form of system parameters.
And a calculator 170 connected to the controller 100 and the memory 160, for acquiring an output time of the test signal and a receiving time of the voice signal in the memory 160 and calculating a time difference therebetween under the control of the controller 100 when the spectral characteristics of the voice signal are identical to those of the test signal.
As described above, if the reception time of the voice signal is a time when the signal detector 140 confirms that the spectral characteristics of the voice signal coincide with those of the test signal, the voice delay is preferably calculated according to the schematic diagram shown in fig. 2, and the calculator 170 subtracts the time difference between the output time T1 of the test signal and the reception time T2 of the voice signal from the time FT of the signal detector 140, which is prestored in the memory 160, from the time of monitoring the voice signal to the time of confirming the voice signal, as the voice delay Δt of the voice device under test 20, i.e., Δt=t2-T1-FT.
In addition, in the present embodiment, the controller 100 may be further connected to the voice output device 110 and the voice receiver 120, for controlling and selecting output ports and receiving ports of the voice output device 110 and the voice receiver 120.
In this embodiment, if the test signal is a signal, the controller 100 selects one path from the multiple paths of voice channels to output, i.e. selects one output port and one corresponding receiving port. If the test signal is a multi-path signal, then the multi-path voice delay test can be performed simultaneously based on a multi-threading mechanism. The multithreading mechanism is that the controller 100 controls the voice output 110 to output a test signal with a specific spectral characteristic through a plurality of output ports, and simultaneously controls the voice receiver 120 to receive a corresponding voice signal returned through the tested voice device 20 through a receiving port corresponding to each of the output ports.
In addition, the test device 10 may be further provided with an in-vehicle power supply connected to the controller 100, the voice output 110, the voice receiver 120, the signal generator 130, the signal detector 140, the timer 150, the memory 160, and the calculator 170 for supplying power to all circuit devices of the test device 10 in the in-vehicle moving state, so that the test device 10 is not limited to the laboratory test, but is also suitable for the test in the in-vehicle moving state.
Example two
Fig. 3 is a schematic diagram of the composition and structure of a test system for analyzing the voice delay of a voice device according to an embodiment of the present invention. As can be seen from fig. 3, the testing system includes, in addition to the testing device 10 described above, a client device 40 and/or an oscilloscope 30 communicatively coupled to the testing device 10. The client device 40 is mainly used for sending control instructions for testing and/or acquiring parameter information including test results to the controller 100 of the test device 10.
Fig. 4 is a schematic diagram of connection between a test system and a tested voice device 20 according to an embodiment of the present invention, and fig. 5 is a flowchart of a method for testing a voice delay by using the test system according to an embodiment of the present invention. The following describes in detail the specific steps of using the test system to test the voice delay of the tested voice device 20 by taking the test of one-path voice delay as an example with reference to fig. 4 and 5:
in step 210, the signal generator 130 generates a test signal having a specified spectral characteristic under the control of the controller 100, and outputs the test signal to the tested voice device 20 through the voice output 110.
In this step, the controller 100 transmits a generation instruction and an output instruction to the signal generator 130 and the voice outputter 110, respectively. The signal generator 130 generates a test signal having a specified spectral characteristic upon receiving the generation instruction, and transmits the test signal to the speech output 110. The voice outputter 110 outputs the test signal to the voice device under test 20 after receiving the output instruction and the test signal. Further, if the test signal output is successful, the voice outputter 110 may also return information of the successful output to the controller 100; if the test signal output fails, the voice outputter 110 returns information of the output failure to the controller 100.
In this embodiment, the spectral characteristics of the test signal are different from those of the system noise and the environmental noise of the tested voice device 20, and may be, for example, sine waves, square waves, triangular waves, or the like.
In step 220, the signal detector 140 monitors whether the voice receiver 120 receives the voice signal returned from the tested voice device 20 under the control of the controller 100, and confirms whether the spectral characteristics of the voice signal are consistent with those of the test signal when the voice signal is received.
In this step, the controller 100 transmits a reception instruction and a detection instruction to the voice receiver 120 and the signal detector 140, respectively. The voice receiver 120 receives the voice signal returned through the tested voice device 20 after receiving the receiving instruction, and sends it to the signal detector 140. After receiving the detection instruction, the signal detector 140 first monitors whether the voice receiver 120 receives a voice signal, if so, returns a message of successful reception to the controller 100, and otherwise returns a message of failure reception to the controller 100. Further, the signal detector 140 detects whether the spectrum characteristics of the voice signal are consistent with those of the test signal after detecting that the voice receiver 120 receives the voice signal, and returns a successful confirmation message to the controller 100 when confirming the consistency, otherwise returns a failed confirmation message to the controller 100.
In step 230, the timer 150 records the output time of the test signal and the receiving time of the voice signal under the control of the controller 100.
In this step, after receiving the information of successful output returned from the voice output unit 110, the controller 100 sends an output timing instruction to the timer 150. The timer 150 records the output time of the test signal after receiving the output timing command. After receiving the confirmation success information returned from the signal detector 140, the controller 100 sends a reception timing instruction to the timer 150. The timer 150 records the reception time of the voice signal after receiving the reception timing instruction.
In step 240, the memory 160 stores the output time and spectral feature parameters of the test signal, and the receiving time and spectral feature parameters of the voice signal under the control of the controller 100.
In this step, after receiving the successful output information returned from the speech output unit 110, the controller 100 sends an instruction to store the test signal and output timing to the memory 160. The memory 160 stores the spectral feature parameters of the test signal and the output time of the test signal after receiving the instruction to store the test signal and the output timing. After receiving the confirmation success information returned from the signal detector 140, the controller 100 sends an instruction to the memory 160 to store the voice signal and the reception timing. The memory 160 stores the spectral feature parameters of the voice signal and the reception time of the voice signal after receiving the instruction to store the voice signal and the reception time.
In step 250, when the spectral characteristics of the voice signal are consistent with those of the test signal, the calculator 170 obtains the output time T1 of the test signal and the receiving time T2 of the voice signal in the memory 160 under the control of the controller 100, and calculates a time difference Δt=t2-T1 therebetween.
In this step, the controller 100 receives the information returned from the signal detector 140 to confirm success and then sends a calculation instruction to the calculator 170. The calculator 170, upon receiving the calculation instruction, acquires the output time of the test signal and the reception time of the voice signal in the memory 160, and calculates the difference between the output time of the test signal and the reception time of the voice signal. The difference is the voice delay of the tested voice device 20.
It should be noted herein that the steps of the method for testing voice delay of the present invention are not limited thereto, and any person skilled in the art shall not depart from the spirit and scope of the present invention by adjusting or replacing the steps of the method.
For example, in another case as shown in fig. 6, if the receiving time of the voice signal is a time when the signal detector 140 confirms that the spectral characteristic of the voice signal coincides with the spectral characteristic of the test signal, the calculator 170, after receiving the calculation instruction, acquires the time from the detection of the voice signal to the confirmation of the voice signal by the signal detector 140 in addition to the output time of the test signal and the receiving time of the voice signal in the memory 160, and preferably calculates the voice delay according to the schematic diagram shown in fig. 2, and the calculator 170 subtracts the time FT from the detection of the voice signal to the confirmation of the voice signal by the signal detector 140 as the voice delay Δt of the tested voice device 20, i.e., Δt=t2-T1-FT. The scheme subtracts the error brought by the system (the time FT from the detection of the voice signal to the confirmation of the voice signal) in the process of calculating the voice time delay, and further improves the test accuracy.
For a specific procedure, reference may be made to the workflow diagram shown in fig. 6 in embodiment three.
Example III
Step 310, connecting an output port of a certain path of the test system with a Microphone (MIC) port of the tested voice device 20 by using the connection cable, simultaneously connecting a receiving port corresponding to the output port of the path with a Speaker (SPK) port of the tested voice device 20 by using the connection cable, and starting the test system and the tested voice device 20 to enable the test system to be in a test state and the tested voice device 20 to be in a normal call state.
Step 320, connecting the oscilloscope 30 interface of the output port and the oscilloscope 30 interface of the receiving port selected by the test system with the channel 1 and the channel 2 of the oscilloscope 30 respectively by using the probe, and starting the oscilloscope 30.
Step 330, a voice delay test instruction is sent to the test system by the client device 40.
In step 340, the controller 100 transmits the generation instruction and the output instruction to the signal generator 130 and the voice output 110, respectively. The signal generator 130 generates a test signal (also referred to as a specific voice signal) having a specific spectral characteristic upon receiving the generation instruction, and transmits the test signal to the voice output 110. The voice outputter 110 outputs the test signal to the voice device under test 20 after receiving the output instruction and the test signal. Further, if the test signal output is successful, the voice outputter 110 may also return information of the successful output to the controller 100, and display the successful output on the client device 40; if the test signal output fails, the voice outputter 110 returns information of the failed output to the controller 100 and displays the failed output on the client device 40, thereby ending the test.
In step 350, after the controller 100 receives the successful output information returned by the voice output unit 110, it sends an output timing instruction to the timer 150. The timer 150 records the output time T1 of the test signal after receiving the output timing instruction.
In step 360, the controller 100 transmits a reception instruction and a detection instruction to the voice receiver 120 and the signal detector 140, respectively. The voice receiver 120 receives the voice signal returned through the tested voice device 20 after receiving the receiving instruction, and sends it to the signal detector 140. After receiving the detection instruction, the signal detector 140 first monitors whether the voice receiver 120 receives the voice signal, if the voice signal is received, returns the information of successful reception to the controller 100 and displays the successful reception on the client device 40, otherwise returns the information of failure reception to the controller 100 and displays the failure reception on the client device 40, thereby ending the test. Further, the signal detector 140 detects whether the spectrum characteristic of the voice signal is consistent with the spectrum characteristic of the test signal after detecting that the voice receiver 120 receives the voice signal, and returns the successful confirmation information to the controller 100 and displays the successful confirmation on the client device 40 when confirming the consistency, otherwise returns the failed confirmation information to the controller 100 and displays the failed confirmation on the client device 40, thereby ending the test.
In step 370, after the controller 100 receives the confirmation success information returned by the signal detector 140, it sends a reception timing instruction to the timer 150. The timer 150 records the reception time T2 of the voice signal after receiving the reception timing instruction.
At step 380, after the controller 100 receives the successful acknowledgement from the signal detector 140, it sends a calculation instruction to the calculator 170. After receiving the calculation instruction, the calculator 170 obtains the output time T1 of the test signal and the receiving time T2 of the voice signal in the memory 160, and the time FT from monitoring the voice signal to confirming the voice signal by the signal detector 140, and the calculator 170 subtracts the time FT from monitoring the voice signal to confirming the voice signal by the time difference between the output time T1 of the test signal and the receiving time T2 of the voice signal by the signal detector 140 as the voice delay Δt of the tested voice device 20, i.e., Δt=t2-T1-FT.
The invention has the advantages that:
1) The wireless intercom terminal, the wired intercom terminal, the voice intercom system and the voice delay of the broadcast call system can be rapidly tested, and the wireless intercom terminal, the wired intercom terminal, the voice delay of the voice intercom system and the broadcast call system are convenient and rapid and high in accuracy.
2) The testing device is compatible with a 3.5 millimeter earphone interface of the national standard (OMTP) and a 3.5 millimeter earphone interface of the international standard (CTIA), and can conveniently test various wireless terminal devices.
3) The tested voice equipment is not required to be destroyed, modified and leaded. For the current mainstream communication equipment, such as mobile phones, voice intercom equipment and the like, the existing earphone interface of the equipment is directly connected with a testing device, so that the voice delay can be conveniently tested.
4) The test of multipath voice delay can be performed simultaneously.
5) The test device is not limited to laboratory tests, and is also suitable for testing in a vehicle-mounted moving state.
6) The testing device comprises an interface connected with the oscilloscope, can test the voice time delay under laboratory conditions, can check waveforms sent and received by the testing device, and can detect distortion conditions of the voice waveforms after being transmitted by the tested voice equipment.
The above description is only a specific embodiment of the present invention, and the scope of the present invention is not limited thereto, and any person skilled in the art should modify or replace the present invention within the technical specification described in the present invention.