A kind of test device for analyzing speech ciphering equipment voice delay time, system and method
Technical field
The present invention relates to the voice delay time field tests of voice communication apparatus, more particularly, to one kind are used for analyzing speech ciphering equipment
The test device of voice delay time, system and method.
Background technology
The demand that can voice quality meet user be weigh voice communication apparatus whether qualified and introduce to the market important
Index.Wherein, voice delay time is one of factor of impact voice quality most critical.In voice call process, voice delay time increases
It is added to the problems such as the out of order, packet loss that to a certain degree will cause Transmission system or voice overlap.For example, when unidirectional end is arrived
When the voice delay time at end is more than 25ms, that is, sound returns in 50ms, and speaker is by imperceptible echo;And work as unidirectional end-to-end
Voice delay time when being more than 25ms, if not taking any measure, speaker may feel that obvious echo, thus impact is logical
The quality of words.Therefore, the test carrying out voice transfer time delay to voice communication apparatus becomes more and more important.
At present, it is all by traditional speech quality measurement instrument, voice delay time to be tested in prior art, but pass
There is problems with the speech quality measurement instrument of system:(1) need in test process manually to operate, complex operation, the essence of test
Degree and efficiency are all very low;(2) quality test of single channel voice can only be carried out, testing cost is very high.
Content of the invention
For above-mentioned technical problem, the present invention propose a kind of test device for analyzing speech ciphering equipment voice delay time,
System, and the method using this device or system testing voice delay time, in order to fast and accurately to test the transmission of multi-path voice
Time delay.
The test device of this analysis speech ciphering equipment voice delay time includes controller, voice output device, voice receiver, also wraps
Include:
Signal generator, it connects described controller and voice output device, for generating under the control of described controller
There is the test signal of designated spectrum feature, and by described voice output device to tested speech ciphering equipment output described test letter
Number;
Signal detector, it connects described controller and voice receiver, for monitoring under the control of described controller
Whether described voice receiver receives the voice signal that tested speech ciphering equipment returns, and confirms institute's predicate when receiving voice signal
Whether the spectrum signature of message number is consistent with the spectrum signature of described test signal;
Timer, it connects described controller, for recording the defeated of described test signal under the control of described controller
Go out the reception time of time and described voice signal;
Memory, it connects described controller, signal generator and signal detector and timer, in described control
The spectrum signature parameter and the output time that control the described test signal of lower storage of device processed, and the frequency spectrum of described voice signal is special
Levy parameter and reception time;
Calculator, it connects described controller and memory, for when the spectrum signature of described voice signal and described survey
When the spectrum signature of trial signal is consistent, under the control of described controller, obtain the described test letter of storage in described memory
Number output time and described voice signal the reception time, and calculate the time difference between the two.
According to embodiments of the invention, described calculator is additionally operable to, and is described letter when the reception time of described voice signal
When number detector confirms the spectrum signature of the described voice signal moment consistent with the spectrum signature of described test signal, will be described
Time difference between the reception time of the output time of test signal and described voice signal deduct again described signal detector from
Monitor that voice signal arrives the time confirming voice signal, as the voice delay time of tested speech ciphering equipment.
According to embodiments of the invention, the spectrum signature of described test signal is different from the system noise of tested speech ciphering equipment
Spectrum signature with ambient noise.
According to embodiments of the invention, described voice output device includes at least one output port, described voice receiver
Including at least one receiving port.
Further, each described output port and receiving port are also respectively equipped with for connecting oscillographic interface.
According to embodiments of the invention, described controller is also connected with described voice output device and voice receiver, for controlling
The output port of the system described voice output device of selection and voice receiver and receiving port.
The test system of this analysis speech ciphering equipment voice delay time, including:
Described test device;
Client terminal device, it connects described test device, for sending test to the controller of described test device
Control instruction and/or obtain and include the parameter information of test result.
Additionally, the present invention also provides a kind of method of testing analyzing speech ciphering equipment voice delay time using described test device,
Comprise the following steps:
S10, signal generator generates the test signal with designated spectrum feature under the control of the controller, and passes through language
Sound follower exports test signal to tested speech ciphering equipment;
S20, signal detector monitors whether voice receiver receives tested speech ciphering equipment return under the control of the controller
Voice signal, and confirm the spectrum signature whether of spectrum signature and the test signal of voice signal when receiving voice signal
Cause;
S30, timer records the output time of test signal and the reception time of voice signal under the control of the controller;
S40, memory stores output time and the spectrum signature parameter of test signal, Yi Jiyu under the control of the controller
The reception time of message number and spectrum signature parameter;
S50, when the spectrum signature of voice signal and the spectrum signature of test signal are consistent, calculator is in the control of controller
The output time of test signal and the reception time of voice signal in the lower acquisition memory of system, and calculate the time between the two
Difference.
According to embodiments of the invention, described S50 also includes, and is described signal inspection when the reception time of described voice signal
When survey device confirms the spectrum signature of the described voice signal moment consistent with the spectrum signature of described test signal, by described test
Time difference between the reception time of the output time of signal and described voice signal deducts described signal detector again from monitoring
To voice signal to the time confirming voice signal, as the voice delay time of tested speech ciphering equipment.
According to embodiments of the invention, choose system noise and the ambient noise that spectrum signature is different from tested speech ciphering equipment
Spectrum signature signal as test signal.
Compared with prior art, one or more embodiments of the invention can have the advantage that:
1) present invention achieves the automatic test of voice delay time, improve precision and the efficiency of test.
2) present invention can realize surveying while multi-path voice time delay by arranging multiple output ports and receiving port
Examination, improves testing efficiency, reduces testing cost.
3) present invention is equipped with the waveform that can check test signal and voice signal for connecting oscillographic interface, enters
And can detect test signal transmit through tested speech ciphering equipment after distortion situation.
4) present invention need not carry out destroying to tested speech ciphering equipment, transform and lead, existing using tested speech ciphering equipment
Earphone interface be directly connected to test device can easily tested speech time delay, simple, convenient.
5) present invention is equipped with vehicle power it is adaptable to the voice delay time under vehicle-mounted mobile state is tested, strong applicability.
Other features and advantages of the present invention will illustrate in the following description, and, partly become from specification
Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by specification, rights
In claim and accompanying drawing, specifically noted structure is realizing and to obtain.
Brief description
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for specification, the reality with the present invention
Apply example to be provided commonly for explaining the present invention, be not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is to be used in embodiments of the invention analyzing the composition structural representation of the test device of speech ciphering equipment voice delay time
Figure;
Fig. 2 is the schematic diagram calculating voice delay time in embodiments of the invention;
Fig. 3 is to be used in embodiments of the invention analyzing the composition structural representation of the test system of speech ciphering equipment voice delay time
Figure;
Fig. 4 is to be used for analyzing the test system of speech ciphering equipment voice delay time and tested speech ciphering equipment in embodiments of the invention
Connection diagram;
Fig. 5 is the workflow diagram of tested speech time delay method in embodiments of the invention;
Fig. 6 is the workflow diagram of tested speech time delay method in another embodiment of the present invention.
Specific embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with drawings and Examples to the present invention
It is described in further detail.
Embodiment one
Fig. 1 is to be used in embodiments of the invention analyzing the composition structural representation of the test device of speech ciphering equipment voice delay time
Figure.Explain the concrete structure of this device with reference to Fig. 1.
This device 10 mainly include controller 100, voice output device 110, voice receiver 120, signal generator 130,
Signal detector 140, timer 150, memory 160 and calculator 170 and power supply 180.Wherein:
Signal generator 130, it connects described controller 100 and voice output device 110, in described controller 100
Control the lower test signal generating and there is designated spectrum feature, and by described voice output device 110 to tested speech ciphering equipment
The 20 described test signals of output.
Specifically, above-mentioned voice output device 110 includes at least one output port, and each output port can also be excellent
Selection of land equipped with the interface for connecting oscillograph 30, by the oscillograph 30 being connected to check each output port export to
The waveform of the test signal of tested speech ciphering equipment 20.Its output port is preferably national standard (OMTP) in the present embodiment
3.5 millimeters of earphone interfaces or 3.5 millimeters of earphone interfaces of international standard (CTIA), connect its output port and tested speech ciphering equipment
The two ends of 20 connection cables are preferably 3.5 millimeters of headset plugs of national standard (OMTP) or the 3.5 of international standard (CTIA)
Millimeter headset plug.
In the present embodiment, it is preferred to use spectrum signature is different from system noise and the ambient noise of tested speech ciphering equipment 20
Spectrum signature signal as test signal, for example can be using sine wave, square wave or triangular wave etc. as test signal.
Signal detector 140, it connects described controller 100 and voice receiver 120, in described controller 100
Control lower monitor whether described voice receiver 120 receives the voice signal that tested speech ciphering equipment 20 returns, and receiving language
Confirm during message whether the spectrum signature of described voice signal is consistent with the spectrum signature of described test signal.
Specifically, above-mentioned voice receiver 120 includes at least one receiving port, and each receiving port is further equipped with
For connecting the interface of oscillograph 30, the one other channel of the oscillograph 30 by connecting checks that tested speech ciphering equipment 20 returns
Voice signal waveform.Thus by the waveform of contrast test signal and voice signal, detection test signal is through tested voice
Distortion situation after equipment 20 transmission.The receiving port of voice receiver 120 is preferably national standard in the present embodiment
(OMTP) 3.5 millimeters of earphone interfaces or 3.5 millimeters of earphone interfaces of international standard (CTIA), connect its receiving port and tested
The two ends of the connection cables of speech ciphering equipment 20 are preferably 3.5 millimeters of headset plugs or the international standard of national standard (OMTP)
(CTIA) 3.5 millimeters of headset plugs.
Timer 150, it connects described controller 100, for recording described test under the control of described controller 100
The reception time of the output time of signal and described voice signal.
Memory 160, it connects described controller 100, signal generator 130 and signal detector 140 and timer
150, for storing spectrum signature parameter and the output time of described test signal under the control of described controller 100, and
The spectrum signature parameter of described voice signal and reception time.
Specifically, above-mentioned memory 160 can preferably comprise volatile memory and nonvolatile memory two is deposited
Reservoir (not shown).Volatile memory connects controller 100, signal generator 130 and signal detector 140 and meter
When device 150, at least the storage spectrum signature parameter of test signal and output time under the control of the controller 100, and
The spectrum signature parameter of voice signal and reception time.Meanwhile, volatile memory is also connected with nonvolatile memory, is deposited
The information of storage is sent to nonvolatile memory.So, the combination by volatile memory and nonvolatile memory can
Ensure the high efficiency of voice delay time test, can guarantee that the integrality of voice delay time relevant information storage again.It should be noted that this
Embodiment does not do specific restriction to the type of memory 160 and quantity.In specific implementation process, those skilled in the art can
To set to it according to actual needs.
In the present embodiment, if the reception time of described voice signal confirms institute's predicate for described signal detector 140
The spectrum signature of the message number moment consistent with the spectrum signature of described test signal, then memory 160 is also stored with signal
Detector 140 from monitor voice signal to confirm voice signal time.Further, for a kind of designated spectrum feature
Test signal, due to all confirming spectrum signature and the survey of voice signal by the same signal detector 140 in test device 10
Whether the spectrum signature of trial signal is consistent, and the transfer rate reconciliation bit rate of therefore signal is generally fixing, and then signal detector
140 from monitor voice signal to confirm voice signal time be a constant known quantity.This known quantity would generally be to be
The form of system parameter is pre-stored in memory 160.
Calculator 170, it connects described controller 100 and memory 160, for when the spectrum signature of described voice signal
When consistent with the spectrum signature of described test signal, under the control of described controller 100, obtain institute in described memory 160
State the output time of test signal and the reception time of described voice signal, and calculate the time difference between the two.
If as described above, the reception time of described voice signal confirms described voice letter for described signal detector 140
Number spectrum signature moment consistent with the spectrum signature of described test signal, then preferably according to the schematic diagram shown in Fig. 2
Calculate voice delay time, calculator 170 is by the time between the reception time T2 of the output time T1 of test signal and voice signal
Difference deduct again the signal detector 140 prestoring in memory 160 from monitor voice signal to confirm voice signal time FT,
As the voice delay time △ T of tested speech ciphering equipment 20, i.e. △ T=T2-T1-FT.
Additionally, in the present embodiment, controller 100 can also connect described voice output device 110 and voice receiver
120, for the output port of voice output device 110 and voice receiver 120 and receiving port described in control selections.
In the present embodiment, if test signal is a road signal, then controller 100 gates from multi-path voice passage
One tunnel is exported, that is, select an output port and a corresponding receiving port.If test signal is multiple signals, that
The test of multi-path voice time delay can be carried out based on multi-thread mechanism simultaneously.Multi-thread mechanism is, and controller 100 controls language
Sound follower 110 has the test signal of specific frequency spectrum feature, control voice receiver simultaneously by the output of multiple output ports
120 receive, by the receiving port corresponding with described each output port, the corresponding voice returning via tested speech ciphering equipment 20
Signal.
Additionally, this test device 10 may be fitted with vehicle power, its connect controller 100, voice output device 110,
Voice receiver 120, signal generator 130, signal detector 140, timer 150, memory 160 and calculator 170, use
There is provided electric energy in all circuit devcies for test device 10 under vehicle-mounted mobile state, make this test device 10 be not limited to test
Room is tested, and is also applied for test under vehicle-mounted mobile state.
Embodiment two
Fig. 3 is to be used in embodiments of the invention analyzing the composition structural representation of the test system of speech ciphering equipment voice delay time
Figure.As can be seen from Figure 3, in addition to above-mentioned test device 10, this test system also includes the visitor with test device 10 communication connection
Family end device 40 and/or oscillograph 30.Client terminal device 40 is mainly used in sending to the controller 100 of test device 10 for example to be surveyed
Control instruction on probation and/or obtain and include the parameter information of test result.
Fig. 4 is the connection diagram of test system and tested speech ciphering equipment 20 in embodiments of the invention, and Fig. 5 is the present invention
Embodiment in using test system and test voice delay time method workflow diagram.With reference to Fig. 4 and Fig. 5 to test a road
The concrete steps that using this test system, tested speech ciphering equipment 20 is carried out with voice time-delay test are described in detail as a example voice delay time:
Step 210, signal generator 130 generates the test letter with designated spectrum feature under the control of the controller 100
Number, and described test signal is exported to tested speech ciphering equipment 20 by described voice output device 110.
In this step, controller 100 to signal generator 130 and voice output device 110 send respectively generation instruction and
Output order.Signal generator 130 generates the test signal with designated spectrum feature after receiving generation instruction, and is sent to
Voice output device 110.Voice output device 110 exports this test signal to tested language after receiving output order and test signal
Sound equipment 20.Further, if test signal exports successfully, voice output device 110 can also return output to controller 100
Successfully information;If test signal exports unsuccessfully, voice output device 110 returns the information of output failure to controller 100.
In the present embodiment, the spectrum signature of test signal is different from the system noise of tested speech ciphering equipment 20 and environment is made an uproar
The spectrum signature of sound, for example, can be sine wave, square wave or triangular wave etc..
Step 220, signal detector 140 monitors whether described voice receiver 120 receives under the control of the controller 100
The voice signal that tested speech ciphering equipment 20 returns, and spectrum signature and the institute of described voice signal is confirmed when receiving voice signal
Whether the spectrum signature stating test signal is consistent.
In this step, controller 100 to voice receiver 120 and signal detector 140 send respectively reception instruction and
Detection instruction.Voice receiver 120 receives, after receiving reception instruction, the voice signal returning through tested speech ciphering equipment 20, concurrently
Give signal detector 140.After receiving detection instruction, whether monitoring voice receiver 120 first receives signal detector 140
To voice signal, if receiving voice signal, returning to controller 100 and receiving successful information, otherwise returning to controller 100
Return the information of reception failure.Further, signal detector 140 is after monitoring that voice receiver 120 receives voice signal,
Whether the spectrum signature of detection voice signal is consistent with the spectrum signature of test signal, when confirming consistent, returns to controller 100
Return and confirm successful information, otherwise return, to controller 100, the information confirming failure.
Step 230, timer 150 records the output time of described test signal and described under the control of the controller 100
The reception time of voice signal.
In this step, after controller 100 receives the successful information of output of voice output device 110 return, to timer
150 send output riming instructions.Timer 150, after receiving output riming instructions, records the output time of test signal.Control
After device 100 receives the successful information of confirmation of signal detector 140 return, send to timer 150 and receive riming instructions.Timing
Device 150, after receiving reception riming instructions, records the reception time of voice signal.
Step 240, memory 160 stores output time and the frequency spectrum of described test signal under the control of the controller 100
Characteristic parameter, and reception time of described voice signal and spectrum signature parameter.
In this step, after controller 100 receives the successful information of output of voice output device 110 return, to memory
160 instructions sending storage test signal and output timing.Memory 160 is receiving the finger of storage test signal and output timing
After order, store the spectrum signature parameter of test signal and the output time of test signal.Controller 100 receives signal detector
After the successful information of confirmation of 140 returns, send storage of speech signals and the instruction of reception timing to memory 160.Memory
160 receive storage of speech signals and receive timing instruction after, the spectrum signature parameter of storage of speech signals and voice signal
The reception time.
Step 250, when the spectrum signature of described voice signal is consistent with the spectrum signature of described test signal, calculator
170 obtain the output time T1 of test signal described in described memory 160 and described voice letter under the control of the controller 100
Number reception time T2, and calculate time difference △ T=T2-T1 between the two.
In this step, after controller 100 receives the successful information of confirmation of signal detector 140 return, to calculator
170 transmission computationses.Calculator 170 after receiving computations, obtain memory 160 in test signal output time and
The reception time of voice signal, and calculate the output time of test signal and the difference of the reception time of voice signal.This difference
It is the voice delay time of tested speech ciphering equipment 20.
Here should be pointed out that the execution step of the tested speech time delay method of the present invention is not limited thereto, any
Be familiar with those skilled in the art in the case of the principle without departing substantially from the present invention and thought, the adjustment to said method step or
Replace, all should be within protection scope of the present invention.
For example, for another as shown in Figure 6 in the case of, if the reception time of voice signal be signal detector
Spectrum signature moment consistent with the spectrum signature of test signal of 140 confirmation voice signals, then, calculator 170 is receiving
After computations, except obtaining the output time of test signal and in addition to the reception time of voice signal in memory 160, also can obtain
Take signal detector 140 from monitor voice signal to confirm voice signal time, and preferably according to shown in Fig. 2 show
It is intended to calculate voice delay time, calculator 170 is by between the reception time T2 of the output time T1 of test signal and voice signal
Time difference again subtraction signal detector 140 from monitor voice signal to confirm voice signal time FT, as tested voice
The voice delay time △ T of equipment 20, i.e. △ T=T2-T1-FT.The program has deducted system institute during calculating voice delay time
Bring error (signal detector from monitor voice signal to confirm voice signal time FT), further increase test
Accuracy.
Detailed process may refer to the workflow diagram shown in Fig. 6 in embodiment three.
Embodiment three
Step 310, using connection cables by the Mike of the output port on a certain for test system road and tested speech ciphering equipment 20
Wind (MIC) mouth connects, and utilizes connection cables by the receiving port corresponding with this road output port and tested speech ciphering equipment simultaneously
20 loudspeaker (SPK) mouth connects, and opens test system and tested speech ciphering equipment 20, makes test system be in test mode, quilt
Survey speech ciphering equipment 20 and be in normal talking state.
Step 320, using probe by oscillograph 30 interface of selected for test system output port and receiving port
Oscillograph 30 interface is connected with the channel 1 of oscillograph 30 and channel 2 respectively, and opens oscillograph 30.
Step 330, sends voice delay time test instruction using client terminal device 40 to test system.
Step 340, sends generation from controller 100 respectively to signal generator 130 and voice output device 110 and instructs and defeated
Go out instruction.Signal generator 130 generates test signal (the also referred to as specific language with specific frequency spectrum feature after receiving generation instruction
Message number), and it is sent to voice output device 110.This is tested after receiving output order and test signal by voice output device 110
Signal output gives tested speech ciphering equipment 20.Further, if test signal exports successfully, voice output device 110 can also be to
Controller 100 returns and exports successful information, and display output success on client terminal device 40;If test signal output is lost
Lose, voice output device 110 returns the information of output failure to controller 100, and display output failure on client terminal device 40,
Thus terminating this test.
Step 350, after controller 100 receives the successful information of output of voice output device 110 return, to timer
150 send output riming instructions.Timer 150, after receiving output riming instructions, records the output time T1 of test signal.
Step 360, sends reception instruction respectively from controller 100 to voice receiver 120 and signal detector 140 and examines
Survey instruction.Voice receiver 120 receives, after receiving reception instruction, the voice signal returning through tested speech ciphering equipment 20, and sends
To signal detector 140.After receiving detection instruction, whether monitoring voice receiver 120 first receives signal detector 140
Voice signal, if receiving voice signal, returning to controller 100 and receiving successful information, and on client terminal device 40
Display receives successfully, otherwise returns the information of reception failure to controller 100, and shows that on client terminal device 40 reception is lost
Lose, thus terminating this test.Further, signal detector 140 receives voice signal monitoring voice receiver 120
Afterwards, whether the spectrum signature of detection voice signal is consistent with the spectrum signature of test signal, when confirming consistent, to controller
100 return and confirm successful information, and shows on client terminal device 40 and confirms successfully, otherwise to controller 100 return confirmation
The information of failure, and show on client terminal device 40 and confirm unsuccessfully, thus terminating this test.
Step 370, after controller 100 receives the successful information of confirmation of signal detector 140 return, to timer
150 send reception riming instructions.Timer 150, after receiving reception riming instructions, records the reception time T2 of voice signal.
Step 380, after controller 100 receives the successful information of confirmation of signal detector 140 return, to calculator
170 transmission computationses.Calculator 170, after receiving computations, obtains the output time T1 of test signal in memory 160
With the reception time T2 of voice signal, and signal detector 140 from monitor voice signal to confirm voice signal time
FT, the time difference between the reception time T2 of the output time T1 of test signal and voice signal is deducted letter by calculator 170 again
Number detector 140 from monitoring voice signal to the time FT confirming voice signal, as tested speech ciphering equipment 20 voice when
Prolong △ T, i.e. △ T=T2-T1-FT.
It is an advantage of the invention that:
1) wireless talkback terminal, wired intercom terminal, voice inter-speaking system, broadcast call system can rapidly be tested
Voice delay time, convenient and swift, accuracy is high.
2) 3.5 millis of 3.5 millimeters of earphone interfaces of test device compatibility national standard (OMTP) and international standard (CTIA)
Rice earphone interface, can conveniently test all kinds of wireless terminal devices.
3) tested speech ciphering equipment need not be carried out destroying, transform, lead.For at present compared with the verbal system of main flow, for example
Mobile phone, speech talkback equipment etc., being directly connected to test device using the existing earphone interface of equipment can easily tested speech
Time delay.
4) test of multi-path voice time delay can be carried out simultaneously.
5) test device is not limited to laboratory test, is also applied for test under vehicle-mounted mobile state.
6) test device contains the oscillographic interface of connection, in laboratory conditions not only can tested speech time delay, also
The waveform that test device sends and receives can be checked, can detect speech waveform transmit through tested speech ciphering equipment after distortion feelings
Condition.
The above, only the present invention be embodied as case, protection scope of the present invention is not limited thereto, any ripe
Know those skilled in the art in technical specification of the present invention, modifications of the present invention or replacement, all should be in the present invention
Protection domain within.