Summary of the invention
The technical problem to be solved in the present invention is, when the voice quality for the above-mentioned cordless communication network of prior art is tested, the defect that resource utilization is low and testing efficiency is low, provides a kind of voice quality method of testing and system.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of voice quality method of testing, for the call voice quality of testing wireless communication network, said method comprising the steps of:
Steps A, the first test terminal receive voice quality test request, institute's Voice Quality test request comprises mark and the called number of cordless communication network to be measured, and described called number is the number belonging to described cordless communication network to be measured in the number of the second test terminal;
Step B, the first test terminal, according to institute's Voice Quality test request, send voice call connection request by cordless communication network to be measured to the second test terminal;
After step C, voice call connection establishment, the received pronunciation being used for voice quality test is play in the first test terminal, and the received pronunciation of the first test terminal broadcasting received is recorded in the second test terminal;
After the received pronunciation play described first test terminal has been recorded in step D, the second test terminal, play the received pronunciation for testing, the received pronunciation of the second test terminal broadcasting received is recorded in the first test terminal;
Step e, the first test terminal disconnect and being connected with the voice call between the second test terminal after having recorded the received pronunciation play described second test terminal;
Step F, the first test terminal, according to the voice recorded and received pronunciation, are analyzed and calculate the first average suggestion value; Second test terminal, according to the voice recorded and received pronunciation, is analyzed and calculates the second average suggestion value;
Second average suggestion value is sent to the first test terminal by step G, the second test terminal;
Smaller value in first average suggestion value and the second average suggestion value and the average suggestion value of standard preset compare, to obtain test result by step H, the first test terminal.
Preferably, in described step F, described first test terminal utilizes PESQ algorithm to calculate the described first average suggestion value; Described second test terminal utilizes PESQ algorithm to calculate the second average suggestion value.
Preferably, described step C also comprises: the first test terminal gathers the first session parameter in playing standard voice process, and the second test terminal gathers the second session parameter in recorded speech process; Described first and second session parameter include signal strength signal intensity;
Described step D also comprises: the first test terminal gathers the 3rd session parameter in recorded speech process, and the second test terminal gathers the 4th session parameter in playing standard voice process; Described third and fourth session parameter includes signal strength signal intensity.
Preferably, described step G also comprises:
Described second session parameter and the 4th session parameter are sent to the first test terminal by described second test terminal.
Preferably, described test result also comprises: the result that the smaller value in described first session parameter and the second session parameter compares with the parameter value preset by the first test terminal, and the result that the smaller value in described 3rd session parameter and the 4th session parameter compares with the parameter value preset by the first test terminal.
Preferably, described method also comprises:
Step I, after step H, described result is shown to the interface of the first test terminal and/or described result is sent to a terminal preset.
A kind of phonetic quality testing system, for the communication sound quality of testing wireless communication network, described system comprises: the first test terminal and the second test terminal, and described first test terminal is communicated by cordless communication network to be measured with the second test terminal;
Wherein, described first test terminal comprises: first resource dispatching management module, the first voice playing module be connected with first resource dispatching management module respectively, the first voice recording module, the first data processing module;
Described second test terminal comprises: Secondary resource dispatching management module, the second voice playing module be connected with Secondary resource dispatching management module respectively, the second voice recording module, the second data processing module;
First resource dispatching management module, for receiving voice quality test request, and send voice call connection request, also for first voice playing module, first voice recording module and first data processing module control by cordless communication network to be measured to the second test terminal according to institute's Voice Quality test request;
First voice playing module, for when after the voice call connection establishment of the first test terminal and the second test terminal, plays the received pronunciation for testing to the second test terminal;
First voice recording module, for recording the voice that the second voice playing module is play;
First data processing module, for the voice recorded according to the first voice recording module and received pronunciation analysis calculate the first average suggestion value;
Secondary resource dispatching management module, sends the connection request of voice call, and controls the second voice playing module, the second voice recording module and the second data processing module for receiving the first test terminal;
Second voice playing module, for playing the received pronunciation for testing to the first test terminal;
Second voice recording module, for recording the received pronunciation that the first voice playing module is play;
Second data processing module, calculates the second average suggestion value for the speech analysis recorded according to the second voice recording module, and the described second average suggestion value is sent to the first test terminal;
Described first data processing module is also for comparing the smaller value in the first average suggestion value and the second average suggestion value and the average suggestion value of standard preset, to obtain test result;
The voice quality test request that described first resource dispatching management module receives comprises mark and the called number of cordless communication network to be measured, and described called number is the number belonging to described cordless communication network to be measured in the number of described second test terminal.
Preferably, described first test terminal also comprises the first parameter acquisition module, and described second test terminal also comprises the second parameter acquisition module;
First parameter acquisition module is for gathering the first session parameter in the first voice playing module playing standard voice process, and the 3rd session parameter in the first voice recording module recorded speech process of collection;
Second parameter acquisition module for gathering the second session parameter in the second voice recording module recorded speech process, and gathers the 4th session parameter in the second voice playing module playing standard voice process;
Described first, second, third and fourth session parameter includes: signal strength signal intensity;
Described first resource dispatching management module is also for controlling described first parameter acquisition module;
Described Secondary resource dispatching management module is also for controlling described second parameter acquisition module.
Preferably, described second data processing module is also for sending to the first test terminal by the second session parameter and the 4th by parameter; Described first data processing module is also for comparing the smaller value in described first session parameter and the second session parameter and the parameter value preset, and the smaller value in described 3rd session parameter and the 4th session parameter and the parameter value preset are compared, to obtain test result.
Preferably, described first data processing module utilizes PESQ algorithm to calculate the described first average suggestion value; Described second data processing module utilizes PESQ algorithm to calculate the second average suggestion value.
Implement voice quality method of testing of the present invention and system, there is following beneficial effect: in test process, reduce the conflict between test resource, reduce the wasting of resources, improve the utilance of resource; Test result is more accurate; Automatically performing test assignment, therefore without the need to taking a lot of human resources, improve testing efficiency; And for tester, easy to operate, reduce the testing complex degree of tester.
Embodiment
In order to there be understanding clearly to technical characteristic of the present invention, object and effect, now contrast accompanying drawing and describe the specific embodiment of the present invention in detail.
In the description of the embodiment of the present invention, it is to be appreciated that " second " of " first " of the first test terminal and the second test terminal is only for distinguishing 2 different test terminals.In addition, " first ", " second " in " the first average suggestion value ", " the second average suggestion value " that occur during the present invention describes etc. etc. only for describing object, and can not be interpreted as instruction or hint relative importance.
The voice quality method of testing of the embodiment of the present invention and system, can facilitate tester to carry out tone testing to the cordless communication network of different systems; In test process, by the mark increasing cordless communication network to be tested in voice quality test request, accurately to test the voice quality of corresponding network, improve test accuracy; Adopt method of testing and the system of the embodiment of the present invention, first test terminal and the second test terminal all utilize subjective speech quality assessment (Perceptualevaluationofspeechquality, PESQ) algorithm is averaged suggestion value (MeanOpinionScore, MOS) calculating, makes the MOS value of acquisition more accurate; And the first test terminal and the second test terminal all calculate MOS value, caller and called voice quality all can get, and make the evaluation of voice quality more realistic.The voice quality method of testing that the embodiment of the present invention provides and system, automatically perform test assignment, therefore without the need to taking a lot of human resources, improves testing efficiency.And for tester, easy to operate, reduce the testing complex degree of tester.
In an embodiment of the present invention, tested cordless communication network can comprise GSM, WCDMA, TD-SCDMA, CDMA20001xEV-DO, 4G network etc.
First test terminal and the second test terminal all support that the voice quality of at least two or more cordless communication networks is tested in an embodiment of the present invention.The implementation method that test terminal supports the voice quality of two or more cordless communication networks to test is: on test terminal, arrange at least plural network card (GSM, EVDO, WCDMA or TD-SCDMA etc.) interface or draw-in groove, and the communication unit that corresponding setting is corresponding with network card interface or draw-in groove, test terminal can at least be established a communications link with two or more cordless communication networks.
Be illustrated in figure 1 the flow chart of the voice quality method of testing of the embodiment of the present invention.The method comprises:
Step S101, the first test terminal receive voice quality test request, institute's Voice Quality test request comprises mark and the called number of cordless communication network to be measured, and described called number is the number belonging to described cordless communication network to be measured in the number of the second test terminal.
Also comprised before step S101: the first test terminal receives called number and selects, and receive calling number selection.
In an embodiment of the present invention, different calling numbers belongs to different cordless communication networks, and different called numbers also belongs to different cordless communication networks.If the voice quality test of EVDO, WCDMA and TD-SCDMA these 3 kinds of cordless communication networks is supported in the first test terminal, then the first test terminal should comprise three corresponding with EVDO, WCDMA and TD-SCDMA network respectively calling numbers.Have selected some calling numbers, cordless communication network to be measured is just determined, then called number should select the number belonging to this cordless communication network to be measured in the number of the second test terminal.So just can guarantee that voice quality test is undertaken by same cordless communication network.
User can according to test needs, the number that the cordless communication network arbitrary with to be tested selecting test terminal to support is corresponding.
In an embodiment of the present invention, calling number and called number produce by the one of following three kinds of modes: undertaken inputting by the smart machine (as PC or mobile phone, Pad etc.) of connecting test terminal by user and produce, automatically selected calling number and called number by test terminal, inputted by the input keyboard of test terminal or touch-screen by user according to preset rules.Voice quality test request also can be produced by one in following three kinds of modes: undertaken inputting by the smart machine (as PC or mobile phone, Pad etc.) of connecting test terminal by user and produce, automatically sent test request by test terminal, carry out input generation by user by the input keyboard of test terminal or touch-screen according to preset rules.Wherein, automatically select caller and called number by test terminal according to preset rules, and automatically send test request, can carry out in the following manner: preset the time and calling number, called number that automatically send test request.When test terminal detects that preset rules meets, namely automatically send test request.Because calling number and cordless communication network to be measured are one to one, therefore, according to calling number, the first test terminal can judge that this voice quality tests the cordless communication network that will test.In addition, preset rules also can comprise other rule.
Step S102, the first test terminal, according to institute's Voice Quality test request, send voice call connection request by cordless communication network to be measured to the second test terminal.
Before carrying out voice quality test, need between the first test terminal and the second test terminal, connect to carry out voice call.
In step s 102, need to judge whether the first test terminal and the second test terminal are successfully set up voice call and be connected.If not, then wait for, when the dialing time threshold value preset then, the first test terminal sends voice call connection request to the second test terminal again.After resending connection request, set up voice call connection if also unsuccessful, then wait for again, so circulation is until successfully set up call connection.If but when the first test terminal reaches connection establishment request threshold value by cordless communication network to be measured to send stand-by period from voice call connection request to the second test terminal, the first test terminal stops sending to the second test terminal the request of connecting.Then in such cases, voice quality test will stop.
If successfully establish voice call to connect, continue to perform subsequent step.
After step S103, voice call connection establishment, the received pronunciation being used for voice quality test is play in the first test terminal, and the received pronunciation of the first test terminal broadcasting received is recorded in the second test terminal.
While the first test terminal playing standard voice, the first test terminal is by the first session parameter of collection first test terminal and the second test terminal communication process.
Second test terminal is also by the second session parameter of collection second test terminal and the first test terminal communication process.
Described first session parameter and the second session parameter comprise: signal strength signal intensity.In addition, described first session parameter and the second session parameter also can comprise cell information etc.
After the received pronunciation play described first test terminal has been recorded in step S104, the second test terminal, play the received pronunciation for testing, the received pronunciation of the second test terminal broadcasting received is recorded in the first test terminal.
Received pronunciation when the first test terminal plays end, then the second test terminal starts playing standard voice, and the received pronunciation of the second test terminal broadcasting received is recorded in the first test terminal.
Record in the process of received pronunciation in the second test terminal playing standard voice and the first test terminal, the first test terminal is by the 3rd session parameter of collection first test terminal and the second test terminal communication process.And the second test terminal is also by the 4th session parameter of collection second test terminal and the first test terminal communication process.
Described 3rd session parameter and the 4th session parameter comprise: signal strength signal intensity.In addition, described 3rd session parameter and the 4th session parameter also can comprise cell information etc.
In an embodiment of the present invention, the received pronunciation that the first test terminal is play and the received pronunciation that the second test terminal is play are identical, MOS value, parameter value etc. in subsequent step can be made like this to calculate more convenient.
After the received pronunciation play described second test terminal has been recorded in step S105, the first test terminal, disconnect and being connected with the voice call between the second test terminal.
Step S106, the first test terminal, according to the voice recorded and received pronunciation, are analyzed and calculate the first average suggestion value; Second test terminal, according to the voice recorded and received pronunciation, is analyzed and calculates the second average suggestion value.
In this step, the voice that the first test terminal recording received pronunciation obtains are probably different from the received pronunciation prestored, and it determines MOS value by the voice and received pronunciation comparing recording.Calculate the MOS value (the first average suggestion value) of this voice quality test in the first test terminal while, the second test terminal also calculates the MOS value (the second average suggestion value) of this voice quality test.Second test terminal adopts the difference of voice and the mark voice comparing recording equally, to determine the MOS value of this tone testing.
Wherein, the first test terminal and the second test terminal all use subjective speech quality assessment (Perceptualevaluationofspeechquality, PESQ) algorithm to calculate MOS value, thus make the MOS value of acquisition more accurate.
Subjective speech quality assessment (Perceptualevaluationofspeechquality, PESQ) algorithm is adjusted by level by standard voice signals with by the degraded signal (voice namely recorded) after wireless network transmissions, then carry out filtering with input filter mock standard telephone receiver.These two signals are aimed in time, and are converted by the sense of hearing.This conversion comprises compensation to system neutral filtering and change in gain and equilibrium, then by cognitive model, thus be mapped to the prediction to subjective Mean Opinion Score.Generally, the otherness of recording signal and standard voice signals is larger, and the MOS score value calculated is lower.
Second average suggestion value is sent to the first test terminal by step S107, the second test terminal.
In this step, the second session parameter obtained in step 103 and 104 and the 4th session parameter are also sent to the first test terminal by the second test terminal.
Smaller value in first average suggestion value and the second average suggestion value and the average suggestion value of standard preset compare, to obtain test result by step S108, the first test terminal.
In this step, the second average suggestion value that the second test terminal calculates by the first test terminal and the first average suggestion value compare, and the smaller value in both and the average suggestion value of standard preset are compared.When the first average suggestion value is equal with the second average suggestion value, then any one average suggestion value and the average suggestion value of standard preset are compared.Such as, the first average suggestion value is the 3.4, second average suggestion value is 3.3, and the average suggestion value of standard preset is 3.7.Then the second average suggestion value 3.3 compares with the average suggestion value 3.7 of standard preset by the first test terminal, and can obtain test result is that the average suggestion value that this voice quality is tested is less than the average suggestion value of default standard.Can learn that the voice quality that this voice quality is tested does not meet standard further according to this test result.
In addition, the result that smaller value in described first session parameter and the second session parameter and the parameter value preset also compare by the first test terminal is as test result, and the result that the smaller value in described 3rd session parameter and the 4th session parameter and the parameter value preset compare by the first test terminal is as test result.Such as, the signal strength signal intensity in the first session parameter is-82dBm, and the signal strength signal intensity in the second session parameter is-85dBm, and the signal strength signal intensity in the 3rd session parameter is-82dBm, and the signal strength signal intensity in the 4th session parameter is-84dBm, and default parameter value is-90dBm.Then-85dBm and-84dBm compares with-90dBm by the first test terminal respectively, and the comparative result obtained is session parameter and is greater than default parameter value.
In an embodiment of the present invention, recording first, second, third, fourth session parameter, and the smaller value in session parameter and the parameter value preset are compared, is to reflect caller and called voice call quality respectively.
And adopt the smaller value in the first and second average suggestion values and default average suggestion value to compare, because average suggestion value is directly proportional to voice call quality, in caller test terminal or called test terminal, as long as the average suggestion value having a side to calculate is less than default average suggestion value, even if the average suggestion value that then the opposing party calculates is more than or equal to default average suggestion value, the test result of the voice quality of this call is also less than default average suggestion value for average suggestion value.
Described method also comprises: step S109, after step S108, described result is shown to the interface of the first test terminal and/or described result is sent to a terminal preset.Such as, test result can be sent to the server of administrative center, by this server, the problem reflected in test result be analyzed.
As shown in Figure 2, be the structure chart of the phonetic quality testing system of the embodiment of the present invention.In an embodiment of the present invention, phonetic quality testing system comprises:
First test terminal 10 and the second test terminal 10, test terminal 20, first are communicated by cordless communication network to be measured with the second test terminal 20.
First test terminal 10 comprises: first resource dispatching management module 101, the first voice playing module 102, first voice recording module 103, first data processing module 104, the first parameter acquisition module 105 be connected with first resource dispatching management module 101 respectively;
Second test terminal 20 comprises: Secondary resource dispatching management module 201, the second voice playing module 202, second voice recording module 203, second data processing module 204, the second parameter acquisition module 205 be connected with Secondary resource dispatching management module 201 respectively;
First resource dispatching management module 101, for receiving voice quality test request, and sends voice call connection request by cordless communication network to be measured to the second test terminal 20 according to institute's Voice Quality test request.First resource dispatching management module 101 also can be used for controlling the first voice playing module 102, first voice recording module 103, first data processing module 104 and the first parameter acquisition module 105, to realize the integrated scheduling to test process.The control of the first voice playing module 102, first voice recording module 103, first data processing module 104 and the first parameter acquisition module 105 is comprised: control modules and start working and time of power cut-off, and call different modules etc. as required.
First voice playing module 102, for when after the voice call connection establishment of the first test terminal 10 and the second test terminal 20, plays the received pronunciation being used for voice quality test to the second test terminal 20.
First voice recording module 103, for recording the received pronunciation that the second speech play mould 203 is play.
First data processing module 104, for the voice recorded according to the first voice recording module 103 and received pronunciation analysis calculate the first average suggestion value.
First parameter acquisition module 105, for gathering the first session parameter in the first speech play mould 102 playing standard voice process, and the 3rd session parameter in the first voice recording module 103 recorded speech process of collection.
Secondary resource dispatching management module 201, for receiving the voice call connection request that the first test terminal 10 sends.Secondary resource dispatching management module 201 also can be used for controlling the second voice playing module 202, second voice recording module 203, second data processing module 204 second parameter acquisition module 205, to realize the integrated scheduling to test process.The control of the second voice playing module 202, second voice recording module 203, second data processing module 204 and the second parameter acquisition module 205 is comprised: control modules and start working and time of power cut-off, and call different modules etc. as required.
Second voice playing module 202, for playing the received pronunciation being used for voice quality test to the first test terminal 10.
Second voice recording module 203, for recording the received pronunciation that the first voice playing module 103 is play.
Second data processing module 204, for the voice recorded according to the second voice recording module 203 and received pronunciation analysis calculate the second average suggestion value, and sends to the first test terminal 10 by the described second average suggestion value.
Second parameter acquisition module 205, for gathering the second session parameter in the second Speech Record molding 203 recorded speech process, and gathers the 4th session parameter in the second voice playing module 202 playing standard voice process.
First data processing module 104 is also for comparing the smaller value in the first average suggestion value and the second average suggestion value and the average suggestion value of standard preset, to obtain test result;
Second data processing module 204 is also for sending to the first test terminal by the second session parameter and the 4th by parameter.
First data processing module 104 is also for comparing the smaller value in the first session parameter and the second session parameter and the parameter value preset, and the smaller value in the 3rd session parameter and the 4th session parameter and the parameter value preset are compared, to obtain test result.
The voice quality test request that first resource dispatching management module 101 receives comprises mark and the called number of cordless communication network to be measured, and called number is the number belonging to cordless communication network to be measured in the number of the second test terminal 20.
Described first, second, third and fourth session parameter includes: signal strength signal intensity.
First test terminal 10 is caller test terminal, and the second test terminal 20 is called test terminal.
Phonetic quality testing system of the present invention is treated testing wireless communication network according to tone testing request and is automatically tested, and can be dispatched modules by the first and second resource scheduling management modules, thus the Resourse Distribute controlled in whole test process, reasonably can distribute, utilize every resource, reduce resource contention, reduce wasting of resources phenomenon, improve the utilance of resource.
Should be understood that in the above embodiment of the present invention, the first test terminal 10 and the second test terminal 20 can be the hardware devices such as testing mobile phone, computer, also can be the special test equipments with communication function.This special test equipment comprises necessary hardware, circuit and/or program to realize the functions such as communication, display, input.
By reference to the accompanying drawings embodiments of the invention are described above; but the present invention is not limited to above-mentioned embodiment; above-mentioned embodiment is only schematic; instead of it is restrictive; those of ordinary skill in the art is under enlightenment of the present invention; do not departing under the ambit that present inventive concept and claim protect, also can make a lot of form, these all belong within protection of the present invention.