CN109246664B - Voice test method and device - Google Patents

Voice test method and device Download PDF

Info

Publication number
CN109246664B
CN109246664B CN201710443425.3A CN201710443425A CN109246664B CN 109246664 B CN109246664 B CN 109246664B CN 201710443425 A CN201710443425 A CN 201710443425A CN 109246664 B CN109246664 B CN 109246664B
Authority
CN
China
Prior art keywords
called
calling
calling device
session
called device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710443425.3A
Other languages
Chinese (zh)
Other versions
CN109246664A (en
Inventor
陈泽铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Datang Mobile Communications Equipment Co ltd
Original Assignee
Shanghai Datang Mobile Communications Equipment Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Datang Mobile Communications Equipment Co ltd filed Critical Shanghai Datang Mobile Communications Equipment Co ltd
Priority to CN201710443425.3A priority Critical patent/CN109246664B/en
Publication of CN109246664A publication Critical patent/CN109246664A/en
Application granted granted Critical
Publication of CN109246664B publication Critical patent/CN109246664B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
    • G10L25/60Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination for measuring the quality of voice signals

Abstract

The invention discloses a voice testing method, which comprises the following steps: the called device acquires the time difference between the calling device and the called device through the Bluetooth connection with the calling device according to the voice test request; the calling equipment sends a calling request to the called equipment and establishes a session with the called equipment; the called device determines the playing time of the audio test data according to the time difference and the current time of the called device, and plays the audio test data to the calling device through the session, the calling device records the audio data received through the session and sends the recorded audio data to the voice test device, or the called device determines the recording time of the audio data according to the time difference and the current time of the called device, records the audio test data played by the calling device through the session and sends the recorded audio data to the voice test device; the voice test equipment determines the quality of the conversation according to the received audio data and the audio test data.

Description

Voice test method and device
Technical Field
The present invention relates to the field of wireless communications technologies, and in particular, to a voice testing method and apparatus.
Background
The voice quality is an important factor reflecting the network quality, and before the voice test is performed on the tested equipment, time synchronization needs to be performed on all the tested equipment, and the following three synchronization methods are mainly adopted in the current voice test:
the method comprises the following steps: connecting all the tested devices to the same external device, and controlling the tested devices to play and record voice data through the external device;
the second method comprises the following steps: establishing connection between the tested equipment and a server through a wireless network, and synchronizing the time of the tested equipment by taking the time of the server as a reference;
the third method comprises the following steps: all the tested devices form a local area network, and the time of any one tested device is used as a reference to synchronize the time of other tested devices.
In the first method, external equipment needs to be added, and all the tested equipment needs to be connected with the external equipment, so that the carrying is inconvenient during the drive test. In the second method, the time synchronization cannot be performed when the device under test cannot be connected to the wireless network. In the third method, the tested equipment cannot establish a local area network during the drive test, and thus time synchronization cannot be realized.
Disclosure of Invention
The embodiment of the invention provides a voice test method and a voice test device, which are used for improving the reliability of time synchronization of tested equipment and further improving the accuracy of a voice test result.
The embodiment of the invention provides the following specific technical scheme:
in a first aspect, an embodiment of the present invention provides a voice testing method, including:
the called device acquires the time difference between the calling device and the called device through Bluetooth connection with the calling device according to the voice test request;
the calling equipment sends a calling request to the called equipment according to the voice test request, and establishes a session with the called equipment;
the called device determines the playing time of audio test data according to the time difference and the current time of the called device, and plays the audio test data to the calling device through the session, the calling device records the audio data received through the session and sends the recorded audio data to the voice test device, or the called device determines the recording time of the audio data according to the time difference and the current time of the called device, records the audio test data played by the calling device through the session and sends the recorded audio data to the voice test device; wherein the duration of the session holding is longer than the playing duration of the audio test data;
and the voice test equipment determines the quality of the conversation according to the received audio data and the audio test data.
Optionally, the method further comprises: and if the time difference is larger than a first threshold value, the called device is connected with the calling device again through the Bluetooth, and the time difference between the calling device and the called device is obtained.
Optionally, the obtaining, by the called device through bluetooth connection with the calling device, a time difference between the calling device and the called device includes: the called device sends a synchronization request to the calling device through the Bluetooth connection between the called device and the calling device, wherein the synchronization request is used for acquiring the current time of the clock of the calling device; and the called device determines the time difference between the calling device and the called device according to a response message returned by the calling device and the current time of the clock of the called device, wherein the response message carries the current time of the clock of the calling device.
Optionally, the method further comprises: the called device determines Bluetooth transmission delay according to the time of receiving the response message returned by the calling device and the time of sending the synchronous request to the calling device; and if the Bluetooth transmission delay is greater than a second threshold value, the called device sends a synchronization request to the calling device again.
Optionally, after the session is established for a set duration, the calling device plays the voice test data to the called device through the session, or after the session is established for a set duration, the called device determines a playing time of the audio test data according to the time difference and the current time of the called device, and plays the audio test data to the calling device through the session.
In a second aspect, an embodiment of the present invention provides a speech testing apparatus, including:
the device comprises a setting module, a judging module and a judging module, wherein the setting module is used for configuring the tested device where the device is located as a calling device or a called device;
a control module to: when the device to be tested is a calling device, triggering the calling device to establish a session with a called device according to the indication of the called device, and indicating a processing module to record audio test data played by the called device through the session and send the recorded audio data to a voice test device; when the device to be tested is a called device, indicating an acquisition module to acquire the time difference between the calling device and the called device according to a voice test request, indicating a processing module to determine the playing time of audio test data, and playing the audio test data to the calling device through the session;
the obtaining module is used for obtaining the time difference between the calling device and the called device through the Bluetooth connection between the calling device and the called device;
the processing module is used for recording audio test data played by the called device through the session according to the indication of the control module, sending the recorded audio test data to the voice test device, determining the playing time of the audio test data according to the time difference and the current time of the called device, and playing the audio test data to the calling device through the session.
Optionally, the obtaining module is further configured to: and if the time difference is larger than a first threshold value, the called device is connected with the calling device again through the Bluetooth, and the time difference between the calling device and the called device is obtained.
Optionally, the obtaining module is specifically configured to: sending a synchronization request to the calling device through the Bluetooth connection between the called device and the calling device, wherein the synchronization request is used for acquiring the current time of the clock of the calling device; and determining the time difference between the called device and the calling device according to a response message returned by the calling device and the current time of the clock of the called device, wherein the response message carries the current time of the clock of the calling device.
Optionally, the obtaining module is further configured to: determining Bluetooth transmission delay according to the time of receiving a response message returned by the calling equipment and the time of sending a synchronous request to the calling equipment; and if the Bluetooth transmission delay is greater than a second threshold value, re-sending a synchronization request to the calling equipment.
Optionally, the processing module is specifically configured to: and after the session is established for a set time, determining the playing time of audio test data according to the time difference and the current time of the called device, and playing the audio test data to the calling device through the session.
In a third aspect, an embodiment of the present invention provides a speech testing apparatus, including:
the device comprises a setting module, a judging module and a judging module, wherein the setting module is used for configuring the tested device where the device is located as a calling device or a called device;
a control module to: when the device to be tested is the calling device, triggering the calling device to establish a session with the called device according to the indication of the called device, and indicating a processing module to play audio test data to the called device through the session; when the device to be tested is a called device, indicating an acquisition module to acquire the time difference between the calling device and the called device according to a voice test request, indicating a processing module to determine the recording time of audio data, recording the audio test data played by the calling device through the session, and sending the recorded audio data to the voice test device;
the obtaining module is used for obtaining the time difference between the calling device and the called device through the Bluetooth connection between the calling device and the called device;
and the processing module is used for playing audio test data to the called device through the session according to the indication of the control module, determining the recording time of the audio data according to the time difference and the current time of the called device, recording the audio test data played by the calling device through the session, and sending the recorded audio data to the voice test device.
Optionally, the obtaining module is further configured to: and if the time difference is larger than a first threshold value, the called device is connected with the calling device again through the Bluetooth, and the time difference between the calling device and the called device is obtained.
Optionally, the obtaining module is specifically configured to: sending a synchronization request to the calling device through the Bluetooth connection between the called device and the calling device, wherein the synchronization request is used for acquiring the current time of the clock of the calling device; and determining the time difference between the called device and the calling device according to a response message returned by the calling device and the current time of the clock of the called device, wherein the response message carries the current time of the clock of the calling device.
Optionally, the obtaining module is further configured to: determining Bluetooth transmission delay according to the time of receiving a response message returned by the calling equipment and the time of sending a synchronous request to the calling equipment; and if the Bluetooth transmission delay is greater than a second threshold value, re-sending a synchronization request to the calling equipment.
Optionally, the processing module is specifically configured to: and after the session is established for a set time, playing voice test data to the called equipment through the session.
In a fourth aspect, an embodiment of the present invention provides another speech testing method, including:
the calling device acquires the time difference between the called device and the calling device through Bluetooth connection between the calling device and the called device according to the voice test request;
the calling equipment sends a calling request to the called equipment and establishes a session with the called equipment;
the calling device determines the playing time of audio test data according to the time difference and the current time of the calling device, and plays the audio test data to the called device through the session, the called device records the audio data received through the session and sends the recorded audio data to the voice test device, or the calling device determines the recording time of the audio data according to the time difference and the current time of the calling device, records the audio test data played by the called device through the session, and sends the recorded audio data to the voice test device; wherein the duration of the session holding is longer than the playing duration of the audio test data;
and the voice test equipment determines the quality of the conversation according to the received audio data and the audio test data.
Optionally, the method further comprises: and if the time difference is larger than a first threshold value, the calling device acquires the time difference between the called device and the calling device through Bluetooth connection between the calling device and the called device again.
Optionally, the obtaining, by the calling device through bluetooth connection with the calling device, a time difference between the calling device and the called device includes: the calling device sends a synchronization request to the called device through the Bluetooth connection between the calling device and the called device, wherein the synchronization request is used for acquiring the current time of the clock of the called device; and the calling equipment determines the time difference between the called equipment and the calling equipment according to a response message returned by the called equipment and the current time of the clock of the calling equipment, wherein the response message carries the current time of the clock of the called equipment.
Optionally, the method further comprises: the calling device determines Bluetooth transmission delay according to the time of receiving the response message returned by the called device and the time of sending the synchronous request to the called device; and if the Bluetooth transmission delay is greater than a second threshold value, the calling equipment sends a synchronization request to the called equipment again.
Optionally, after the session is established for a set duration, the calling device determines a playing time of audio test data according to the time difference and the current time of the calling device, and plays the audio test data to the called device through the session, or after the session is established for a set duration, the called device plays the audio test data to the calling device through the session.
In a fifth aspect, an embodiment of the present invention provides a speech testing apparatus, including:
the device comprises a setting module, a judging module and a judging module, wherein the setting module is used for configuring the tested device where the device is located as a calling device or a called device;
a control module to: when the device to be tested is a calling device, indicating an acquisition module to acquire a time difference between the called device and the calling device according to a voice test request, triggering the calling device and the called device to establish a session, indicating a processing module to determine the playing time of audio test data, and playing the audio test data to the called device through the session; when the device to be tested is the called device, the instruction processing module records the audio test data played by the calling device through the session and sends the recorded audio data to the voice test device;
the obtaining module is used for obtaining the time difference between the calling device and the called device through the Bluetooth connection between the calling device and the called device;
and the processing module is used for determining the playing time of audio test data according to the time difference and the current time of the calling equipment, playing the audio test data to the called equipment through the session, recording the audio test data played by the calling equipment through the session, and sending the recorded audio data to the voice test equipment.
Optionally, the obtaining module is further configured to: and if the time difference is larger than a first threshold value, the calling device acquires the time difference between the called device and the calling device through Bluetooth connection between the calling device and the called device again.
Optionally, the obtaining module is specifically configured to: sending a synchronization request to the called device through the Bluetooth connection between the called device and the calling device, wherein the synchronization request is used for acquiring the current time of the clock of the called device; and determining the time difference between the called device and the calling device according to a response message returned by the called device and the current time of the clock of the calling device, wherein the response message carries the current time of the clock of the called device.
Optionally, the obtaining module is further configured to: determining Bluetooth transmission delay according to the time of receiving a response message returned by the called device and the time of sending a synchronization request to the called device; and if the Bluetooth transmission delay is larger than a second threshold value, re-sending a synchronization request to the called equipment.
Optionally, the processing module is specifically configured to: and after the session is established for a set time, determining the playing time of audio test data according to the time difference and the current time of the calling equipment, and playing the audio test data to the called equipment through the session.
In a sixth aspect, an embodiment of the present invention provides a speech testing apparatus, including:
the device comprises a setting module, a judging module and a judging module, wherein the setting module is used for configuring the tested device where the device is located as a calling device or a called device;
a control module to: when the device to be tested is a calling device, indicating an acquisition module to acquire a time difference between the called device and the calling device according to a voice test request, triggering the calling device and the called device to establish a session, indicating a processing module to determine the recording time of audio data, recording audio test data played by the called device through the session, and sending the recorded audio data to the voice test device; when the tested equipment where the device is located is called equipment, indicating a processing module to play audio test data to the calling equipment through the conversation;
the obtaining module is used for obtaining the time difference between the calling device and the called device through the Bluetooth connection between the calling device and the called device;
and the processing module is used for playing audio test data to the calling equipment through the session according to the indication of the control module, determining the recording time of the audio data according to the time difference and the current time of the calling equipment, recording the audio test data played by the called equipment through the session, and sending the recorded audio data to the voice test equipment.
Optionally, the obtaining module is further configured to: and if the time difference is larger than a first threshold value, the calling device acquires the time difference between the called device and the calling device through Bluetooth connection between the calling device and the called device again.
Optionally, the obtaining module is specifically configured to: sending a synchronization request to the called device through the Bluetooth connection between the called device and the calling device, wherein the synchronization request is used for acquiring the current time of the clock of the called device; and determining the time difference between the called device and the calling device according to a response message returned by the called device and the current time of the clock of the calling device, wherein the response message carries the current time of the clock of the called device.
Optionally, the obtaining module is further configured to: determining Bluetooth transmission delay according to the time of the response message returned by the called device and the time of sending a synchronization request to the called device; and if the Bluetooth transmission delay is larger than a second threshold value, re-sending a synchronization request to the called equipment.
Optionally, the processing module is specifically configured to: and after the set duration is established for the session, voice test data is played to the calling equipment through the session.
Based on the technical scheme, in the embodiment of the invention, the called device acquires the time difference between the calling device and the called device through the Bluetooth connection between the called device and the calling device according to the voice test request; the calling equipment sends a calling request to the called equipment according to the voice test request, and establishes a session with the called equipment; the called device determines the playing time of the audio test data according to the acquired time difference and the current time of the called device, and plays the audio test data to the calling device through the session, the calling device records the audio data received through the session and sends the recorded audio data to the voice test device, or the called device determines the recording time of the audio data according to the acquired time difference and the current time of the called device, records the audio test data played by the calling device through the session and sends the recorded audio data to the voice test device, wherein the duration of the session is longer than the playing duration of the audio test data; the voice test equipment determines the quality of the conversation according to the received audio data and the audio test data. The called device acquires the time difference between the calling device and the called device through the Bluetooth connection between the called device and the calling device, and performs time synchronization with the calling device, so that the reliability of the time synchronization of the tested device is improved, and the accuracy of a voice test result is improved.
Drawings
FIG. 1 is a flow chart illustrating a voice test method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a voice test method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a voice testing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a voice testing apparatus according to an embodiment of the present invention.
Detailed Description
In the embodiment of the invention, both the calling device and the called device are tested devices in a voice test process, wherein the tested devices have the functions of voice communication, voice data playing and voice data recording, such as a mobile phone or a tablet personal computer.
In a specific embodiment, the tested devices are all installed with an application for voice testing, and a tester can perform voice testing through the application. The application may provide a test setup interface that allows a tester to configure the device under test as either a calling device or a called device through the setup interface. The application can also provide a test interface, and allows a tester to click a test function key in the interface to start a voice test process, so that one-key voice test is realized. For example, if the device to be tested is configured as a called device, after the test function key is clicked, the called device starts a voice test process, acquires a time difference between the calling device and the called device through bluetooth connection with the calling device, instructs the calling device and the called device to establish a session, determines a playing time of audio data according to the acquired time difference and the current time of the called device, and plays audio test data to the calling device through the session; at this time, the tested device configured as the corresponding calling device sends a call request to the called device according to the indication of the called device, establishes a session with the called device, records audio data played by the called device and received through the session, and sends the recorded audio data to the voice test device. If the device to be tested is configured as a called device, after the test function key is clicked, the called device starts a voice test process, acquires a time difference between the calling device and the called device through bluetooth connection with the calling device, instructs the calling device and the called device to establish a session, determines a recording time of audio data according to the acquired time difference and the current time of the called device, records audio test data played by the calling device through the session, and sends the recorded audio data to the voice test device; and at the moment, the tested equipment configured as the corresponding calling equipment sends a calling request to the called equipment according to the indication of the called equipment, establishes a session with the called equipment and plays audio test data to the called equipment through the session.
At a certain moment in the voice testing process, if the calling device plays the audio test data through the session between the calling device and the called device, the called device can only record the audio data received through the session at the moment, and if the calling device records the audio data received through the session between the calling device and the called device, the called device can only play the audio test data through the session at the moment, so that the playing source of the voice test data in the voice testing process is unique, and the reliability of the voice test result is improved.
Fig. 1 exemplarily shows a flow of a voice testing method provided by an embodiment of the present invention, in which a called device refers to a device under test configured as a called device, and a calling device refers to a device under test configured as a calling device. As shown in the figure, the process mainly comprises the following steps:
step 101: and the called device acquires the time difference between the calling device and the called device through the Bluetooth connection between the called device and the calling device according to the voice test request.
In specific implementation, a tester can submit a voice test request through a test interface provided by an application for voice test installed in the called device. For example, the tester may submit the voice test request by clicking a button named "start test" provided in the interface to trigger the called device and the calling device to start the voice test, or, for example, the tester may submit the voice test request by clicking a button named "synchronize" provided in the interface to trigger the time synchronization process between the calling device and the called device. During the period, if the Bluetooth connection is established between the calling device and the called device, the time difference between the calling device and the called device is obtained through the Bluetooth connection between the calling device and the called device, if the Bluetooth connection is not established between the calling device and the called device, the called device starts a Bluetooth mode, nearby devices which start the Bluetooth mode are scanned, after the calling device is found, the Bluetooth connection is established between the called device and the calling device, and the time difference between the calling device and the called device is obtained through the Bluetooth connection.
Step 102: the calling device sends a call request to the called device to establish a session with the called device.
Specifically, the calling device sends a call request to the called device according to the indication of the called device, and establishes a session with the called device. For example, after acquiring the time difference between the calling device and the called device, the called device instructs, through bluetooth connection with the calling device, the calling device to send a call request to the called device according to the instruction of the called device, and establishes a session with the called device.
Step 103: and the called device determines the playing time of the audio test data according to the time difference and the current time of the called device, and plays the audio test data to the calling device through the conversation. Optionally, the duration of the session is longer than the playing duration of the audio test data.
The voice test data is built in the called device or provided by other devices connected with the called device. Specifically, if the voice test data is provided by another device connected to the called device, at this time, a Microphone (MIC) of the called device is connected to the other device, so that the called device plays the voice test data to the calling device through the other device.
Step 104: the calling device records the audio data received through the session and sends the recorded audio data to the voice test device.
Specifically, the time t3 at which the calling device records the audio data received through the session is the current time of the clock of the calling device.
Step 105: the voice test equipment determines the quality of the conversation according to the received audio data and the audio test data.
Specifically, the voice testing device processes the received audio data and the audio testing data by using a subjective Quality Evaluation of Speech Quality (PESQ) algorithm to obtain a Mean Opinion Score (MOS) of the session, and determines the Quality of the session according to the obtained MOS.
In step 101, the called device obtains a time difference between the calling device and the called device by the following steps: the called device sends a synchronization request to the calling device through the Bluetooth connection between the called device and the calling device, and determines the time difference between the called device and the calling device according to the current time of the clock of the calling device and the current time of the clock of the called device carried in the response message returned by the calling device, wherein the synchronization request is used for acquiring the current time of the clock of the calling device. Specifically, the called device sends a synchronization request to the calling device through a bluetooth connection with the calling device, the calling device carries the current Time of a clock of the calling device in a response message, and returns the response message to the called device, and the called device takes a difference value between the Time of the clock when the called device receives the response message and the Time of the clock of the calling device carried in the response message as a Time difference between the calling device and the called device, wherein the called device sends the synchronization request to the calling device by using a Network Time Protocol (NTP). At this time, the called device is an NTP Client (NTP Client), and the calling device is an NTP Server (NTP Server). After the called device obtains the time difference between the calling device and the calling device, the clock of the called device can be set according to the time difference, so that the time of the called device and the time of the calling device are synchronized.
Optionally, if the time difference obtained by the called device is greater than a first threshold, the called device obtains the time difference between the calling device and the called device through bluetooth connection with the calling device again, where the first threshold is determined according to experience or simulation results. When the time difference acquired by the called device is larger than the first threshold value, the called device determines that the time of the calling device is asynchronous with the time of the called device, and sends a synchronization request to the calling device through Bluetooth connection with the calling device again to perform time synchronization again without stopping voice testing or operating by a tester. Specifically, when the called device performs a voice test, a synchronization request is sent to the calling device at intervals of a set duration through bluetooth connection with the calling device to monitor whether the called device and the calling device are synchronized, and when the called device and the calling device are not synchronized, a synchronization state is recovered in time.
Because the called device is connected with the calling device through the Bluetooth, the time difference between the calling device and the called device is obtained, and the time synchronization between the calling device and the called device is realized, so the time synchronization precision between the calling device and the called device is influenced by the size of the Bluetooth transmission delay. In order to ensure the accuracy of time synchronization between the called device and the calling device, the bluetooth transmission delay should be as small as possible, the called device determines the bluetooth transmission delay according to the time when the called device receives the response message returned by the calling device and the time when the called device sends the synchronization request to the calling device, and if the bluetooth transmission delay is greater than a second threshold, that is, the bluetooth connection between the calling device and the called device is abnormal (at this time, the bluetooth transmission delay is large), the called device sends the synchronization request to the calling device again, wherein the second threshold is determined according to experience or simulation results, for example, the second threshold is 40 ms.
In step 103, if the time difference between the called device and the calling device is offset and the current time of the clock of the called device is t1, the called device determines the playing time t2 of the audio test data according to the following formula:
t2=t1+offset
in implementation, because there may be noise when the calling device and the called device just establish a session, and there may be delay between the calling device and the called device, the called device determines the playing time of the audio test data after the session is established for a set time (e.g. 3s), and plays the audio test data to the calling device through the session, so as to reduce the influence of the noise and the delay of the calling device and the called device on the voice test.
In implementation, when the duration of session maintenance between the calling device and the called device is long, the called device plays voice test data to the calling device through the session at a set duration (e.g. 2s) every time, and the calling device periodically records the voice data received through the session until the session is ended. And if the playing time length of the audio data recorded by the calling equipment is less than the playing time length of the voice test data when the conversation is ended, discarding the recorded audio data.
Fig. 2 exemplarily shows a flow of another speech testing method provided by the embodiment of the present invention, where the flow mainly includes the following steps:
step 201: and the called device acquires the time difference between the calling device and the called device through the Bluetooth connection between the called device and the calling device according to the voice test request.
In the implementation, the method for acquiring the time difference between the calling device and the called device by the called device refers to the description in step 103, and is not described herein again.
Step 202: the calling device sends a call request to the called device to establish a session with the called device.
Step 203: and the called device determines the recording time of the audio data according to the time difference and the current time of the called device, records the audio test data played by the calling device through the session, and sends the recorded audio data to the voice test device. Optionally, the duration of the session is longer than the playing duration of the audio test data.
The voice test data is built in the calling equipment or provided by other equipment connected with the calling equipment. Specifically, if the voice test data is provided by another device connected to the calling device, at this time, the MIC of the calling device is connected to the another device, so that the calling device plays the voice test data to the called device through the another device.
Specifically, if the time difference between the called device and the calling device is offset and the current time of the clock of the called device is t1, the called device determines the recording time t4 of the audio data according to the following formula:
t4=t1+offset
in implementation, because there may be noise when the calling device and the called device just establish a session, and there is a delay between the calling device and the called device, after the session is established for a set time (e.g. 3s), the calling device plays audio test data to the called device through the session, so as to reduce the influence of the noise and the delay of the calling device and the called device on a voice test. Specifically, the time t5 when the calling device plays the audio test data through the session is the current time of the calling device clock.
In implementation, when the duration of session maintenance between the calling device and the called device is long, the calling device plays voice test data to the calling device through the session at a set duration (e.g. 2s) every time, and the called device periodically records the voice data received through the session until the session is ended. And if the playing time length of the audio data recorded by the called equipment is less than the playing time length of the voice test data when the conversation is ended, discarding the recorded audio data.
Step 204: the voice test equipment determines the quality of the conversation according to the received audio data and the audio test data.
In practice, the method for determining the quality of the session by the voice test device is described in step 105, and is not described herein again.
In implementation, the calling device may also obtain a time difference between the calling device and the called device through bluetooth connection with the called device according to the voice test request, and perform time synchronization with the called device. Specifically, a calling device sends a synchronization request to a called device through a bluetooth connection with the called device, the synchronization request is used for acquiring the current time of a clock of the called device, the called device carries the current time of the clock of the called device in a response message and returns the response message to the calling device, the calling device takes the difference between the time of the clock when the calling device receives the response message and the time of the clock of the called device carried in the response message as the time difference between the called device and the calling device, and the called device sends the synchronization request to the calling device by adopting an NTP protocol. At this time, the calling device is an NTP Client, and the called device is an NTP Server.
Optionally, if the time difference obtained by the calling device is greater than the first threshold, the calling device obtains the time difference between the calling device and the called device through bluetooth connection with the calling device again. When the time difference acquired by the calling device is larger than the first threshold value, the calling device determines that the time of the calling device is asynchronous with that of the called device, and sends a synchronization request to the called device through Bluetooth connection with the called device again to perform time synchronization again without stopping voice testing or operation of a tester. Specifically, when the calling device performs a voice test, a synchronization request is sent to the called device at intervals of a set duration through bluetooth connection with the called device to monitor whether the called device and the calling device are synchronized, and when the called device and the calling device are not synchronized, a synchronization state is recovered in time.
Because the calling device is connected with the called device through the Bluetooth, the time difference between the called device and the calling device is obtained, and the time synchronization between the calling device and the called device is realized, so the time synchronization precision between the calling device and the called device is also influenced by the size of the Bluetooth transmission delay. In order to ensure the accuracy of time synchronization between the called device and the calling device, the bluetooth transmission delay should be as small as possible, the calling device determines the bluetooth transmission delay according to the time when the calling device receives the response message returned by the called device and the time when the calling device sends the synchronization request to the called device, and if the bluetooth transmission delay is greater than a second threshold, that is, the bluetooth connection between the calling device and the called device is abnormal (at this time, the bluetooth transmission delay is large), the called device sends the synchronization request to the calling device again, wherein the second threshold is determined according to experience or simulation results, for example, the second threshold is 40 ms.
It should be noted that, in the embodiment of the present invention, the voice testing method shown in fig. 1 and fig. 2 is directed to a session established between a calling device and a called device. In practical application, a plurality of sessions may be established between the calling device and the called device in one voice test plan, and a voice test is performed, at this time, step 101 to step 105 are executed for each session in the voice test plan, or step 201 to step 204 are executed, and the quality of each session is determined until the voice test plan is finished. Optionally, in a voice test plan, after a session between the calling device and the called device is ended, delaying for a set time length (for example, 5s), and performing a next voice test to determine the quality of a new session established between the calling device and the called device.
Based on the technical scheme, in the embodiment of the invention, the called device acquires the time difference between the calling device and the called device through the Bluetooth connection between the called device and the calling device according to the voice test request; the calling equipment sends a calling request to the called equipment according to the voice test request, and establishes a session with the called equipment; the called device determines the playing time of the audio test data according to the acquired time difference and the current time of the called device, and plays the audio test data to the calling device through the session, the calling device records the audio data received through the session and sends the recorded audio data to the voice test device, or the called device determines the recording time of the audio data according to the acquired time difference and the current time of the called device, records the audio test data played by the calling device through the session and sends the recorded audio data to the voice test device, wherein the duration of the session is longer than the playing duration of the audio test data; the voice test equipment determines the quality of the conversation according to the received audio data and the audio test data. The called device acquires the time difference between the calling device and the called device through the Bluetooth connection between the called device and the calling device, and performs time synchronization with the calling device, so that the reliability of the time synchronization of the tested device is improved, and the accuracy of a voice test result is improved.
Based on the same inventive concept, the embodiment of the present invention further provides a speech testing apparatus 300, and the specific implementation of the apparatus can refer to the description of the method embodiment, and the repeated parts are not repeated, as shown in fig. 3, the apparatus mainly includes:
a setting module 301, configured to configure a device under test where the apparatus is located as a calling device or a called device;
a control module 302 to: when the device to be tested is the calling device, triggering the calling device to establish a session with the called device according to the indication of the called device, and indicating the processing module 303 to record the audio test data played by the called device through the session and send the recorded audio data to the voice test device; when the device under test is a called device, indicating the acquisition module 304 to acquire the time difference between the calling device and the called device according to the voice test request, and indicating the processing module 303 to determine the playing time of the audio test data, and playing the audio test data to the calling device through the session;
the obtaining module 304 is configured to obtain a time difference between the calling device and the called device through a bluetooth connection between the calling device and the called device;
the processing module 303 is configured to record audio test data played by the called device through the session according to the instruction of the control module, send the recorded audio test data to the voice test device, determine a playing time of the audio test data according to the time difference and the current time of the called device, and play the audio test data to the calling device through the session.
Optionally, the obtaining module 304 is further configured to: and if the time difference is larger than a first threshold value, the called device is connected with the calling device again through the Bluetooth, and the time difference between the calling device and the called device is obtained.
Optionally, the obtaining module 304 is specifically configured to: sending a synchronization request to the calling device through the Bluetooth connection between the called device and the calling device, wherein the synchronization request is used for acquiring the current time of the clock of the calling device; and determining the time difference between the called device and the calling device according to a response message returned by the calling device and the current time of the clock of the called device, wherein the response message carries the current time of the clock of the calling device.
Optionally, the obtaining module 304 is further configured to: determining Bluetooth transmission delay according to the time of receiving a response message returned by the calling equipment and the time of sending a synchronous request to the calling equipment; and if the Bluetooth transmission delay is greater than a second threshold value, re-sending a synchronization request to the calling equipment.
Optionally, the processing module 304 is specifically configured to: and after the session is established for a set time, determining the playing time of audio test data according to the time difference and the current time of the called device, and playing the audio test data to the calling device through the session.
Based on the same inventive concept, the embodiment of the present invention further provides a speech testing apparatus 400, and the specific implementation of the apparatus can refer to the description of the method embodiment, and repeated descriptions are omitted, as shown in fig. 4, the apparatus mainly includes:
a setting module 401, configured to configure a device under test where the apparatus is located as a calling device or a called device;
a control module 402 for: when the device under test is a calling device, triggering the calling device to establish a session with a called device according to the indication of the called device, and indicating the processing module 403 to play audio test data to the called device through the session; when the device under test is a called device, indicating an acquisition module 404 to acquire a time difference between the calling device and the called device according to the voice test request, and indicating a processing module 403 to determine a recording time of audio data, recording audio test data played by the calling device through the session, and sending the recorded audio data to the voice test device;
the obtaining module 404 is configured to obtain a time difference between the calling device and the called device through bluetooth connection between the calling device and the called device;
the processing module 403 is configured to play audio test data to the called device through the session according to the instruction of the control module 402, determine a recording time of the audio data according to the time difference and the current time of the called device, record the audio test data played by the calling device through the session, and send the recorded audio data to the voice test device.
Optionally, the obtaining module 404 is further configured to: and if the time difference is larger than a first threshold value, the called device is connected with the calling device again through the Bluetooth, and the time difference between the calling device and the called device is obtained.
Optionally, the obtaining module 404 is specifically configured to: sending a synchronization request to the calling device through the Bluetooth connection between the called device and the calling device, wherein the synchronization request is used for acquiring the current time of the clock of the calling device; and determining the time difference between the called device and the calling device according to a response message returned by the calling device and the current time of the clock of the called device, wherein the response message carries the current time of the clock of the calling device.
Optionally, the obtaining module 404 is further configured to: determining Bluetooth transmission delay according to the time of receiving a response message returned by the calling equipment and the time of sending a synchronous request to the calling equipment; and if the Bluetooth transmission delay is greater than a second threshold value, re-sending a synchronization request to the calling equipment.
Optionally, the processing module 404 is specifically configured to: and after the session is established for a set time, playing voice test data to the called equipment through the session.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (7)

1. A method for testing speech, comprising:
the called device acquires the time difference between the calling device and the called device through Bluetooth connection with the calling device according to the voice test request;
the calling equipment sends a calling request to the called equipment and establishes a session with the called equipment;
the called device determines the playing time of audio test data according to the time difference and the current time of the called device, and plays the audio test data to the calling device through the session, the calling device records the audio data received through the session and sends the recorded audio data to the voice test device, or the called device determines the recording time of the audio data according to the time difference and the current time of the called device, records the audio test data played by the calling device through the session and sends the recorded audio data to the voice test device; wherein the duration of the session holding is longer than the playing duration of the audio test data;
the voice test equipment determines the quality of the conversation according to the received audio data and the audio test data;
the method for acquiring the time difference between the calling device and the called device by the called device through the Bluetooth connection between the called device and the calling device comprises the following steps:
the called device sends a synchronization request to the calling device through the Bluetooth connection between the called device and the calling device, wherein the synchronization request is used for acquiring the current time of the clock of the calling device;
and the called device determines the time difference between the calling device and the called device according to a response message returned by the calling device and the current time of the clock of the called device, wherein the response message carries the current time of the clock of the calling device.
2. The method of claim 1, wherein the method further comprises:
and if the time difference is larger than a first threshold value, the called device is connected with the calling device again through the Bluetooth, and the time difference between the calling device and the called device is obtained.
3. The method of claim 1, wherein the method further comprises:
the called device determines Bluetooth transmission delay according to the time of receiving the response message returned by the calling device and the time of sending the synchronous request to the calling device;
and if the Bluetooth transmission delay is greater than a second threshold value, the called device sends a synchronization request to the calling device again.
4. A speech testing device, comprising:
the device comprises a setting module, a judging module and a judging module, wherein the setting module is used for configuring the tested device where the device is located as a calling device or a called device;
a control module to: when the device to be tested is a calling device, triggering the calling device to establish a session with the called device according to the indication of the called device, and indicating a processing module to record audio test data played by the called device through the session and send the recorded audio data to a voice test device; when the device to be tested is a called device, indicating an acquisition module to acquire the time difference between the calling device and the called device according to a voice test request, indicating a processing module to determine the playing time of audio test data, and playing the audio test data to the calling device through the session;
the obtaining module is used for obtaining the time difference between the calling device and the called device through the Bluetooth connection between the calling device and the called device;
the processing module is used for recording audio test data played by the called device through the session according to the indication of the control module, sending the recorded audio test data to the voice test device, determining the playing time of the audio test data according to the time difference and the current time of the called device, and playing the audio test data to the calling device through the session;
wherein the obtaining module is specifically configured to:
sending a synchronization request to the calling device through the Bluetooth connection between the called device and the calling device, wherein the synchronization request is used for acquiring the current time of the clock of the calling device;
and determining the time difference between the calling equipment and the called equipment according to a response message returned by the calling equipment and the current time of the clock of the called equipment, wherein the response message carries the current time of the clock of the calling equipment.
5. The apparatus of claim 4, wherein the acquisition module is further to:
and if the time difference is larger than a first threshold value, the called device is connected with the calling device again through the Bluetooth, and the time difference between the calling device and the called device is obtained.
6. A speech testing device, comprising:
the device comprises a setting module, a judging module and a judging module, wherein the setting module is used for configuring the tested device where the device is located as a calling device or a called device;
a control module to: when the device to be tested is the calling device, establishing a session with the called device according to the indication of the called device, and indicating a processing module to play audio test data to the called device through the session; when the device to be tested is a called device, indicating an acquisition module to acquire the time difference between the calling device and the called device according to a voice test request, indicating a processing module to determine the recording time of audio data, recording the audio test data played by the calling device through the session, and sending the recorded audio data to the voice test device;
the obtaining module is used for obtaining the time difference between the calling device and the called device through the Bluetooth connection between the calling device and the called device;
the processing module is used for playing audio test data to the called device through the session according to the indication of the control module, determining the recording time of the audio data according to the time difference and the current time of the called device, recording the audio test data played by the calling device through the session, and sending the recorded audio data to the voice test device for session quality evaluation;
wherein the obtaining module is specifically configured to:
sending a synchronization request to the calling device through the Bluetooth connection between the called device and the calling device, wherein the synchronization request is used for acquiring the current time of the clock of the calling device;
and determining the time difference between the calling equipment and the called equipment according to a response message returned by the calling equipment and the current time of the clock of the called equipment, wherein the response message carries the current time of the clock of the calling equipment.
7. The apparatus of claim 6, wherein the acquisition module is further to:
and if the time difference is larger than a first threshold value, the called device is connected with the calling device again through the Bluetooth, and the time difference between the calling device and the called device is obtained.
CN201710443425.3A 2017-06-13 2017-06-13 Voice test method and device Active CN109246664B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710443425.3A CN109246664B (en) 2017-06-13 2017-06-13 Voice test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710443425.3A CN109246664B (en) 2017-06-13 2017-06-13 Voice test method and device

Publications (2)

Publication Number Publication Date
CN109246664A CN109246664A (en) 2019-01-18
CN109246664B true CN109246664B (en) 2021-07-23

Family

ID=65083043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710443425.3A Active CN109246664B (en) 2017-06-13 2017-06-13 Voice test method and device

Country Status (1)

Country Link
CN (1) CN109246664B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109818700B (en) * 2019-02-01 2021-02-12 国网江苏省电力有限公司 Synchronization method and device of wide area system protection device, plant station and topological architecture
CN110335590B (en) * 2019-07-04 2021-09-03 中国联合网络通信集团有限公司 Voice recognition test method, device and system
CN115334050B (en) * 2022-08-11 2023-09-15 迈普通信技术股份有限公司 Call processing method, device, session initiation protocol server and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110654A (en) * 2007-08-17 2008-01-23 中兴通讯股份有限公司 Method and device for testing network delay time
CN104871584A (en) * 2014-06-24 2015-08-26 华为技术有限公司 Access network equipment and communication method

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100558052C (en) * 2006-09-30 2009-11-04 华为技术有限公司 Method for checking media channel quality in a kind of IP network between the media gateway
CN101827336B (en) * 2009-03-05 2014-12-17 华为技术有限公司 Method and device for playing ring-back tone
US8948789B2 (en) * 2012-05-08 2015-02-03 Qualcomm Incorporated Inferring a context from crowd-sourced activity data
CN102685789B (en) * 2012-05-22 2014-07-16 北京东方文骏软件科技有限责任公司 Method for evaluating QoE (Quality Of Experience) of voice service user perception experience by simulating user behaviors
CN103067963B (en) * 2012-12-25 2016-02-24 上海大唐移动通信设备有限公司 A kind of voice dial testing apparatus and method
CN103209360B (en) * 2013-03-04 2018-02-13 小米科技有限责任公司 A kind of shared method and apparatus of multi-party video
KR101528543B1 (en) * 2013-08-29 2015-06-12 주식회사 이노와이어리스 method for measuring call delay time
US9473876B2 (en) * 2014-03-31 2016-10-18 Blackberry Limited Method and system for tunneling messages between two or more devices using different communication protocols
KR101573138B1 (en) * 2014-04-04 2015-12-01 삼성전자주식회사 Method and apparatus for measuring user physical activity
CN104852880A (en) * 2015-04-21 2015-08-19 四川大学 Synchronization method and terminal for direct communication between LTE terminal
CN106341529B (en) * 2016-08-25 2019-11-05 努比亚技术有限公司 Contact information adding set and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110654A (en) * 2007-08-17 2008-01-23 中兴通讯股份有限公司 Method and device for testing network delay time
CN104871584A (en) * 2014-06-24 2015-08-26 华为技术有限公司 Access network equipment and communication method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A DAB data forwarding system based on bluetooth technology;Hongsheng Zhang;《 2012 9th International Conference on Fuzzy Systems and Knowledge Discovery》;20120709;全文 *
基于蓝牙的实时多媒体传输技术研究及系统实现;孙启金;《知网》;20150815;全文 *

Also Published As

Publication number Publication date
CN109246664A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
JP6994505B2 (en) Relocation of mobile edge applications
US9313336B2 (en) Systems and methods for processing audio signals captured using microphones of multiple devices
CN105448312B (en) Audio sync playback method, apparatus and system
CN109246664B (en) Voice test method and device
EP2767039B1 (en) Quality of user experience testing for video transmissions
US20130024196A1 (en) Systems and methods for using a mobile device to deliver speech with speaker identification
CN106504770B (en) Call quality testing system, testing method and testing device
CN105933375B (en) Method and device for monitoring microphone connection session and server
CN109521988B (en) Audio playing synchronization method and device
CN109525736B (en) Voice dial testing loopback method and device
CN107770569A (en) Multimedia synchronous broadcast method, apparatus and system
CN112040225B (en) Playing delay difference measuring method, device, equipment, system and storage medium
CN111383656B (en) Voiceprint live broadcast method, voiceprint live broadcast device, server, client device and storage medium
CN109525873B (en) Audio playing synchronization method and device
CN105025356B (en) The audio frequency broadcast system method and system of audio-frequence player device
JP2015106768A (en) Program for communication device, communication device, and communication method
CN107493587B (en) Media gateway testing method, device and system
CN113572898B (en) Method and corresponding device for detecting silent abnormality in voice call
US10284452B2 (en) VoIP quality test via manual phone call into VoIP monitoring system
JP2010219733A (en) Conference recording device, method of recording conference, and conference recording program
CN108632557B (en) Audio and video synchronization method and terminal
CN112039612B (en) Time delay measuring method, device, equipment, system and storage medium
CN110809081A (en) Method, system, storage medium and electronic device for detecting call fault
CN113992547B (en) Test method and system for automatically detecting packet loss rate in real-time voice
CN112235685B (en) Sound box networking method and sound box system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant