WO2015172310A1 - Audio data testing method and device - Google Patents

Audio data testing method and device Download PDF

Info

Publication number
WO2015172310A1
WO2015172310A1 PCT/CN2014/077359 CN2014077359W WO2015172310A1 WO 2015172310 A1 WO2015172310 A1 WO 2015172310A1 CN 2014077359 W CN2014077359 W CN 2014077359W WO 2015172310 A1 WO2015172310 A1 WO 2015172310A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio data
synchronization identifier
synchronization
time interval
identifier
Prior art date
Application number
PCT/CN2014/077359
Other languages
French (fr)
Chinese (zh)
Inventor
谭冠中
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201480005075.7A priority Critical patent/CN105517651B/en
Priority to PCT/CN2014/077359 priority patent/WO2015172310A1/en
Publication of WO2015172310A1 publication Critical patent/WO2015172310A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and a device for testing audio data. ⁇ Background technique ⁇
  • FIG. 1 is a schematic diagram of audio data of a transmitting end and a receiving end in the prior art. As shown in FIG. 1 , after the audio data is transmitted and reaches the receiving end, the receiving end receives the audio data at a higher time than the transmitting end. There is a delay between the moments of the audio data.
  • the transmitting end and the receiving end are required to test and process the audio data at the starting point of the same audio data. Therefore, how to implement the synchronous testing of the audio data during the testing of the transmitting end and the receiving end is an urgent problem to be solved.
  • the embodiment of the present invention provides a method and a device for testing audio data, which can easily and conveniently synchronize the audio data.
  • an embodiment of the present invention provides a method for testing audio data, including:
  • the first synchronization identifier is used to indicate a moment when the receiving end starts testing the first audio data.
  • the obtaining the second audio data according to the first synchronization identifier and the first audio data includes:
  • the first synchronization identifier is third audio data.
  • the third audio data comprises at least one dual tone multi-frequency DTMF pulse signal.
  • the obtaining the second audio data according to the first synchronization identifier and the first audio data includes:
  • the second synchronization identifier is used to indicate a time when the receiving end stops testing the first audio data.
  • the first synchronization identifier and the first The first time interval is included between the audio data, and the first time interval is greater than or equal to 0 ms.
  • the second synchronization identifier and the first audio data include a second time interval, The second time interval is greater than or equal to 0 ms.
  • the second synchronization identifier is a fourth audio data.
  • the fourth audio data includes at least one DTMF pulse signal.
  • an embodiment of the present invention provides a method for testing audio data, including: receiving second audio data sent by a transmitting end, where the second audio data includes a first synchronization identifier and first audio data, where a synchronization identifier is used to indicate a time at which the first audio data is started to be tested; and the first audio data is tested at a time when the first synchronization indicator indicates a start of the test.
  • the first synchronization identifier and the first audio data include a first time interval; the moment when the first synchronization identifier indicates a start test , starting to test the first audio data, including:
  • timing is started
  • the first audio data is tested if the timing duration reaches the preset first time interval.
  • the second audio data further includes a second synchronization identifier, where the method further includes: Detecting the second synchronization identifier;
  • the first audio data is stopped from being tested.
  • the method further includes:
  • timing duration reaches a preset test duration, the test of the first audio data is stopped.
  • an embodiment of the present invention provides a test device for audio data, where the device is a sender, and the device includes:
  • a processor configured to obtain second audio data according to the first synchronization identifier and the first audio data, where the first synchronization identifier is used to indicate a time when the receiving end starts testing the first audio data;
  • a transmitter configured to send the second audio data to the receiving end.
  • the processor is specifically configured to:
  • the first synchronization identifier is a third audio data.
  • the third possible implementation in the third aspect In the current mode, the third audio data includes at least one DTMF pulse signal.
  • the processor is specifically configured to: insert the first synchronization identifier before the first audio data, and insert a second after the first audio data Synchronizing the identifier to obtain the second audio data;
  • the second synchronization identifier is used to indicate a time when the receiving end stops testing the first audio data.
  • the first synchronization identifier and the first The first time interval is included between the audio data, and the first time interval is greater than or equal to 0 ms.
  • the second synchronization identifier and the first audio data include a second time interval, The second time interval is greater than or equal to 0 ms.
  • the second synchronization identifier is a fourth audio data.
  • the fourth audio data includes at least one DTMF pulse signal.
  • an embodiment of the present invention provides a test device for audio data, where the device is a receiving end, and the device includes:
  • a receiver configured to receive second audio data that is sent by the sending end, where the second audio data includes a first synchronization identifier and first audio data, where the first synchronization identifier is used to indicate to start testing the first audio data.
  • a processor configured to start testing the first audio data at a time when the first synchronization indicator indicates a start test.
  • the first synchronization identifier and the first audio The first time interval is included between the data; the processor is specifically configured to:
  • timing is started
  • the first audio data is tested if the timing duration reaches the preset first time interval.
  • the second audio data further includes a second synchronization identifier; For: detecting the second synchronization identifier;
  • the first audio data is stopped from being tested.
  • the processor is further configured to:
  • timing duration reaches a preset test duration, the test of the first audio data is stopped.
  • the transmitting end adds a synchronization identifier to the sent audio data to be tested, and uses the synchronization identifier to indicate the time at which the receiving end starts testing the audio data, so that the transmitting end and the receiving end can test the audio data at the same starting point, Synchronous testing of audio data is simple and convenient, so that the transmitting end and the receiving end can achieve synchronization accuracy within several tens of milliseconds.
  • FIG. 1 is a schematic diagram of audio data of a transmitting end and a receiving end in the prior art
  • FIG. 2 is a schematic diagram of a DTMF pulse signal in an embodiment of the present invention
  • 3 is a schematic structural diagram of a system used in the technical solution provided by the embodiment of the present invention
  • FIG. 4 is a schematic flowchart diagram of Embodiment 1 of a method for testing audio data according to an embodiment of the present invention
  • FIG. 5 is a first schematic diagram of audio data in an embodiment of the present invention.
  • FIG. 6 is a second schematic diagram of audio data in an embodiment of the present invention.
  • Embodiment 7 is a schematic flow chart of Embodiment 2 of a method for testing audio data according to an embodiment of the present invention
  • FIG. 8 is a functional block diagram of Embodiment 1 of a test apparatus for audio data according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of Embodiment 1 of a test apparatus for audio data according to an embodiment of the present invention.
  • FIG. 10 is a functional block diagram of Embodiment 2 of a test apparatus for audio data according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of Embodiment 2 of a test apparatus for audio data according to an embodiment of the present invention.
  • the Dual Tone Multi Frequency (DTMF) pulse signal is composed of a high frequency signal group and a low frequency signal group, and the high frequency signal group and the low frequency signal group each have four kinds of frequency DTMF pulse signals; as shown in Table 1, A high frequency signal and a low frequency signal can be superimposed to form a DTMF pulse signal, which can use a number from 1 to 9, a letter in A ⁇ D, # or * It is indicated that a DTMF pulse signal composed of, for example, a high frequency signal of 1209 Hz and a low frequency signal of 697 Hz may represent the number 1.
  • FIG. 2 is a schematic diagram of a DTMF pulse signal according to an embodiment of the present invention.
  • each DTMF pulse signal corresponds to an audio duration, which is the DTMF pulse width shown in FIG.
  • the system used in the technical solution provided by the embodiment of the present invention is composed of a transmitting end and a receiving end, and the transmitting end is mainly used for sending audio data to be tested to the receiving end, so that the receiving end can receive the received audio.
  • the data is tested and the test results are obtained.
  • the functions of the transmitting end and the receiving end are changed, that is, the transmitting end inserts the synchronization identifier before the audio data to be tested, or before the audio data and after the audio data, and then sends the synchronization identifier together with the audio data.
  • the receiving end starts or stops the test of the audio data according to the synchronization identifier.
  • the audio data may be audio code based on Pulse Code Modulation (PCM);
  • the sender may be a client device, such as a personal computer (PC), a laptop, a mobile phone or a tablet.
  • the receiving end can be a server.
  • the communication mode between the sender and the receiver may be a wired mode, such as the Internet, or a wireless mode, such as a wireless network such as 3G.
  • the embodiment of the present invention provides a method for testing audio data.
  • FIG. 4 it is a schematic flowchart of Embodiment 1 of a method for testing audio data according to an embodiment of the present invention.
  • the method of this embodiment is in audio.
  • the sender side of the data is implemented. As shown in the figure, the method includes the following steps:
  • Step 401 Obtain second audio data according to the first synchronization identifier and the first audio data.
  • the first synchronization identifier may be pre-stored in the sending end; or the sending end may also generate the first synchronization identifier.
  • the first synchronization identifier may be the third audio data.
  • FIG. 5 it is a first schematic diagram of audio data in the embodiment of the present invention. As shown in FIG. 5, the third audio data is used.
  • At least one DTMF pulse signal may be included, and the pulse width of each DTMF pulse signal is that, in the embodiment of the present invention, one or more DTMF pulse signals having a pulse width of one may be utilized as the first synchronization indicator.
  • the pulse width of each DTMF pulse signal needs to be equal to or greater than 65 ms, and if at least two DTMF pulse signals are included, the interval between each two DTMF pulse signals needs to be equal to or greater than 65ms.
  • the receiving end obtains the second audio data according to the first synchronization identifier and the first audio data
  • the method may include the following two types:
  • the first type the receiving end inserts the first synchronization identifier before the first audio data, and obtains the second audio data, so that the second audio data includes a first synchronization identifier and first audio data, the first audio
  • the data is the audio data that the receiver needs to test synchronously.
  • the first synchronization identifier may be third audio data
  • the third audio data may include at least one DTMF pulse signal, and inserting at least one DTMF pulse signal before the first audio data, which is equivalent to using the DTMF pulse signal as test data. Part of the transmission.
  • a first time interval ⁇ may be set between the first synchronization identifier and a starting point of the first audio data, where the first time interval ⁇ is greater than or Equal to 0ms.
  • the first time interval ⁇ is equal to 0 ms, there is no time interval between the first synchronization identifier and the first audio data, and the first audio data is the first audio data; if the first time interval t 2 is greater than 0 ms And indicating that there is a time interval between the first synchronization identifier and the first audio data, and is required to be after the first synchronization identifier, and after the first time interval ⁇ , is the first audio data.
  • a reasonable first time interval t 2 can be set so that the receiving end has enough time to recognize the first synchronization indicator.
  • the second type In some test scenarios, the test duration can be preset in the receiving end, and the receiving end starts counting when the first audio data is started to be tested. When the timing reaches the test duration, the receiving end automatically stops testing. The first audio data, when the test is stopped, the first audio data may not be tested, or may have been tested. In the above test scenario, the first method may be used to insert the first synchronization identifier only in front of the first audio data, and only the first synchronization identifier needs to be used to indicate when the receiver starts to perform the test, and no indication is needed.
  • test duration is not set in advance at the receiving end, so that the transmitting end needs to send the synchronization identifier for instructing to stop the test when transmitting the first audio data.
  • the second synchronization identifier may be pre-stored in the sending end; or the second synchronization identifier may be generated by the sending end.
  • the second synchronization identifier is similar to the first synchronization identifier, and may be the fourth audio.
  • FIG. 6, is a second schematic diagram of audio data in an embodiment of the present invention.
  • the fourth audio data may include at least one DTMF pulse signal, and the pulse width of each DTMF pulse signal is That is, in the embodiment of the present invention, one or more DTMF pulse signals having a pulse width of ⁇ may be utilized as the second synchronization indicator.
  • the second audio data includes a first synchronization identifier, a first audio data, and a second synchronization identifier, which is equivalent to using the DTMF pulse signal included in the first synchronization identifier and the DTMF pulse signal included in the second synchronization identifier as part of the test data.
  • a second time interval may be set between the first audio data and the second synchronization identifier, where the second time interval is greater than or equal to 0 ms.
  • the second time interval is equal to 0 ms, there is no time interval between the second synchronization identifier and the first audio data, and the second synchronization identifier is after the first audio data; if the second time interval is greater than 0 ms, the indication is There is a time interval between the second synchronization identifier and the first audio data. It is required to be after the first audio data, and after the second time interval, is the second synchronization identifier. Wherein, a reasonable second time interval t 4 can be set, so that the receiving end has enough time to recognize the second synchronization identifier.
  • Step 402 Send the second audio data to the receiving end.
  • the transmitting end after obtaining a second audio data, the second audio data transmitted to the receiving end, as shown in Figure 5, the second audio data over the transport time t 3, arrive at the receiving end.
  • FIG. 7 is a schematic flowchart of Embodiment 2 of a method for testing audio data according to an embodiment of the present invention.
  • the method in this embodiment is in audio.
  • the receiving end side of the data is implemented. As shown in the figure, the method includes the following steps:
  • Step 701 Receive second audio data that is sent by the sending end, where the second audio data includes a first synchronization identifier and first audio data, where the first synchronization identifier is used to indicate a time when the first audio data is started to be tested.
  • the receiving end receives the second audio data that is sent by the sending end, where the second audio data includes the first synchronization identifier and the first audio data, or the second audio data includes the first synchronization identifier and the first audio data. And a second synchronization identifier.
  • the first synchronization identifier is used to indicate a time when the first audio data is tested, and the second synchronization identifier is used to indicate a time when the first audio data is stopped.
  • Step 702 Start testing the first audio data at a time when the first synchronization indicator indicates a start test.
  • starting to test the first audio data may include the following two methods:
  • the first type the first time interval between the first synchronization identifier and the first audio data is equal to 0, the receiving end detects the first synchronization identifier, and when the receiving end detects the first synchronization identifier, according to the preset
  • the first time interval t 2 the test processing of the first audio data is performed immediately to obtain the test result; for example, the test processing of the first audio data may be an alignment test of the quality influence of the transmission channel quality on the audio.
  • the first time interval t 2 between the first synchronization identifier and the first audio data is not equal to
  • the receiving end detects the first synchronization identifier; when the receiving end detects the first synchronization identifier, starts timing with a preset timer; when the timer duration of the timer reaches a preset first time interval At the time of ⁇ , the first audio data is tested to obtain a test result.
  • the method further includes: detecting the second synchronization identifier, and stopping detecting the first audio data if the second synchronization identifier is detected.
  • the method may further include: if the receiving end starts testing the first audio data, the receiving end starts timing, and when the timing duration reaches a preset testing duration, the receiving end stops testing.
  • the first audio data is described.
  • the receiving end may detect the DTMF pulse signal by using a detection algorithm, so as to realize the DTMF from the audio data. Pulse signal, thereby obtaining a first synchronization identifier or a second synchronization identifier; wherein the detection algorithm may be a Goertzel algorithm.
  • Embodiments of the present invention further provide an apparatus embodiment for implementing the steps and methods in the foregoing method embodiments.
  • FIG. 8 is a functional block diagram of Embodiment 1 of a test apparatus for audio data according to an embodiment of the present invention.
  • the device is the foregoing sending end, and the device includes:
  • the processor 80 is configured to obtain second audio data according to the first synchronization identifier and the first audio data, where the first synchronization identifier is used to indicate a time when the receiving end starts testing the first audio data, and the transmitter 81 And sending the second audio data to the receiving end.
  • the processor 80 is specifically configured to: insert the first synchronization identifier before the first audio data, to obtain the second audio data.
  • the first synchronization identifier is third audio data.
  • the third audio data includes at least one dual tone multi-frequency DTMF pulse signal.
  • the processor 80 is specifically configured to: insert the first synchronization identifier before the first audio data, insert a second synchronization identifier after the first audio data, to obtain the second audio data;
  • the second synchronization identifier is used to indicate a moment when the receiving end stops testing the first audio data.
  • the first synchronization identifier and the first audio data include a first time interval, and the first time interval is greater than or equal to 0 ms.
  • the second synchronization identifier and the first audio data include a second time interval, where the second time interval is greater than or equal to 0 ms.
  • the second synchronization identifier is fourth audio data.
  • the fourth audio data includes at least one DTMF pulse signal.
  • FIG. 9 is a schematic structural diagram of Embodiment 1 of a test apparatus for audio data according to an embodiment of the present invention.
  • the device is the foregoing sending end, and the device includes:
  • a memory 90 configured to store one or more sets of program codes
  • the processor 91 is coupled to the memory 90 and the transmitter 92, respectively, for invoking the program code stored in the memory 90 to perform the method shown in FIG. 4, and specifically includes: obtaining, according to the first synchronization identifier and the first audio data, a second audio data, where the first synchronization identifier is used to indicate a time when the receiving end starts testing the first audio data;
  • the transmitter 92 is configured to send the second audio data to the receiving end.
  • processor 91 and the transmitter 92 in this embodiment are capable of executing the method shown in FIG. 4, and the portions not described in detail in this embodiment, reference may be made to the related description of FIG.
  • FIG. 10 is a functional block diagram of Embodiment 2 of a test apparatus for audio data according to an embodiment of the present invention.
  • the device is the receiving end, and the device includes:
  • the receiver 100 is configured to receive second audio data that is sent by the sending end, where the second audio data includes a first synchronization identifier and first audio data, where the first synchronization identifier is used to indicate to start testing the first audio data.
  • the processor 101 is configured to start at the time of starting the test indicated by the first synchronization identifier.
  • the first audio data is tested.
  • the first synchronization identifier and the first audio data include a first time interval.
  • the processor 101 is specifically configured to: detect the first synchronization identifier; and if the first synchronization identifier is detected , starting timing; if the timing duration reaches the preset first time interval, the first audio data is tested.
  • the second audio data further includes a second synchronization identifier; the processor 101 is further configured to: detect the second synchronization identifier; if the second synchronization identifier is detected, stop testing the first audio data.
  • the processor 101 is further configured to: start timing when the first audio data is started to be tested; and stop testing the first audio data if the timing duration reaches a preset test duration.
  • the second synchronization identifier includes a second time interval, and the processor 101 is configured to: start time counting if the second synchronization identifier is detected; and if the timing duration reaches the second time interval The duration of time, stopping testing the first audio data.
  • FIG. 1 is a schematic structural diagram of Embodiment 2 of a test apparatus for audio data according to an embodiment of the present invention. As shown in the figure, the device is the receiving end, and the device includes:
  • the receiver 1 10 is configured to receive second audio data that is sent by the sending end, where the second audio data includes a first synchronization identifier and first audio data, where the first synchronization identifier is used to indicate to start testing the first audio. The moment of the data;
  • the memory 1 1 1 is configured to store one or more sets of program codes
  • the processor 1 12 is coupled to the receiver 1 10 and the memory 1 1 1 respectively, and is configured to call the program code stored in the memory to perform the method shown in FIG. 7 , and specifically includes: indicating, by the first synchronization identifier At the moment when the test is started, the first audio data is tested.
  • receiver 1 10 and the processor 1 12 in this embodiment can perform the method shown in FIG. 7, and the portions not described in detail in this embodiment, reference may be made to the related description of FIG.
  • both the sender and the receiver can be Mean Opinion Score (Mean Opinion Score, M ⁇ S) test device, wherein the processor in the sender can be a cool edit for the music editing application.
  • M ⁇ S Mean Opinion Score
  • the transmitting end adds a synchronization identifier to the audio data to be tested, and uses the synchronization identifier to indicate the time at which the receiving end starts testing the audio data, so that the transmitting end and the receiving end can test the audio data at the same starting point, Simultaneously and conveniently realize the synchronous test of audio data, so that the transmitting end and the receiving end can achieve synchronization precision within several tens of milliseconds.
  • the transmitting end uses the control message independent of the audio data to control the receiving end to start testing and stop the test, and the receiving end also needs to confirm whether the control message is received.
  • the technical solution of the embodiment of the present invention is Compared with the technology, the transmitting end only needs to use the synchronization identifier as part of the audio data, and sends it to the receiving end, and does not need to separately send the control instruction. Therefore, the implementation method is relatively simple, the implementation complexity of the device is reduced, and the audio data is tested. Efficiency and reliability.

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

An audio data testing method and device, the method comprising: acquiring second audio data according to a first synchronization identifier and first audio data (401); and transmitting the second audio data to a receiving end, the first synchronization identifier being used to indicate the time when the receiving end starts to test the first audio data (402). The method easily and conveniently realizes audio data synchronization testing.

Description

音频数据的测试方法及设备  Audio data testing method and device
【技术领域】 [Technical Field]
本发明涉及通信领域, 尤其涉及一种音频数据的测试方法及设备。 【背景技术】  The present invention relates to the field of communications, and in particular, to a method and a device for testing audio data. 【Background technique】
目前有一种测试场景, 即发送端需要将待测试的音频数据发送到接收端, 接收端对音频数据进行测试。请参考图 1 , 其为现有技术中发送端和接收端的 音频数据的示意图, 如图 1 所示, 音频数据经过传输后, 达到接收端时, 接 收端收到音频数据的时刻比发送端发出音频数据的时刻之间存在延时 。  Currently, there is a test scenario in which the transmitting end needs to send the audio data to be tested to the receiving end, and the receiving end tests the audio data. Please refer to FIG. 1 , which is a schematic diagram of audio data of a transmitting end and a receiving end in the prior art. As shown in FIG. 1 , after the audio data is transmitted and reaches the receiving end, the receiving end receives the audio data at a higher time than the transmitting end. There is a delay between the moments of the audio data.
上述测试场景中, 要求发送端和接收端在相同的音频数据的起始点, 对 音频数据进行测试处理, 因此发送端和接收端在测试时如何实现音频数据的 同步测试是亟待解决的问题。  In the above test scenario, the transmitting end and the receiving end are required to test and process the audio data at the starting point of the same audio data. Therefore, how to implement the synchronous testing of the audio data during the testing of the transmitting end and the receiving end is an urgent problem to be solved.
【发明内容】 [Summary of the Invention]
有鉴于此, 本发明实施例提供了一种音频数据的测试方法及设备, 可以 简单方便地实现音频数据的同步 'J试。  In view of this, the embodiment of the present invention provides a method and a device for testing audio data, which can easily and conveniently synchronize the audio data.
第一方面, 本发明实施例提供了一种音频数据的测试方法, 包括:  In a first aspect, an embodiment of the present invention provides a method for testing audio data, including:
依据第一同步标识和第一音频数据, 获得第二音频数据;  Obtaining second audio data according to the first synchronization identifier and the first audio data;
向接收端发送所述第二音频数据;  Transmitting the second audio data to the receiving end;
其中, 所述第一同步标识用于指示所述接收端开始测试所述第一音频数 据的时刻。  The first synchronization identifier is used to indicate a moment when the receiving end starts testing the first audio data.
在第一方面的第一种可能的实现方式中, 所述依据第一同步标识和第一音频 数据, 获得第二音频数据, 包括:  In a first possible implementation manner of the first aspect, the obtaining the second audio data according to the first synchronization identifier and the first audio data includes:
在所述第一音频数据前插入所述第一同步标识, 获得所述第二音频数据。 结合第一方面或第一方面的第一种可能的实现方式, 在第一方面的第二 种可能的实现方式中, 所述第一同步标识为第三音频数据。 Inserting the first synchronization identifier before the first audio data to obtain the second audio data. In combination with the first aspect or the first possible implementation of the first aspect, the second in the first aspect In a possible implementation manner, the first synchronization identifier is third audio data.
结合第一方面的第二种可能的实现方式, 在第一方面的第三种可能的实 现方式中, 所述第三音频数据包括至少一个双音多频 DTMF脉冲信号。  In conjunction with the second possible implementation of the first aspect, in a third possible implementation of the first aspect, the third audio data comprises at least one dual tone multi-frequency DTMF pulse signal.
在第一方面的第四种可能的实现方式中, 所述依据第一同步标识和第一音频 数据, 获得第二音频数据, 包括:  In a fourth possible implementation manner of the first aspect, the obtaining the second audio data according to the first synchronization identifier and the first audio data includes:
在所述第一音频数据前插入所述第一同步标识,在所述第一音频数据后插入 所述第二同步标识, 获得所述第二音频数据;  Inserting the first synchronization identifier before the first audio data, inserting the second synchronization identifier after the first audio data, to obtain the second audio data;
其中, 所述第二同步标识用于指示所述接收端停止测试所述第一音频数 据的时刻。  The second synchronization identifier is used to indicate a time when the receiving end stops testing the first audio data.
结合第一方面的第一种可能的实现方式或第一方面的第四种可能的实现 方式, 在第一方面的第五种可能的实现方式中, 所述第一同步标识与所述第 一音频数据之间包括第一时间间隔, 所述第一时间间隔大于或者等于 0ms。  In conjunction with the first possible implementation of the first aspect, or the fourth possible implementation of the first aspect, in a fifth possible implementation manner of the first aspect, the first synchronization identifier and the first The first time interval is included between the audio data, and the first time interval is greater than or equal to 0 ms.
结合第一方面的第五种可能的实现方式, 在第一方面的第六种可能的实 现方式中, 所述第二同步标识与所述第一音频数据之间包括第二时间间隔, 所述第二时间间隔大于或者等于 0ms。  With the fifth possible implementation of the first aspect, in a sixth possible implementation manner of the first aspect, the second synchronization identifier and the first audio data include a second time interval, The second time interval is greater than or equal to 0 ms.
结合第一方面的第四种可能的实现方式或第一方面的第六种可能的实现 方式, 在第一方面的第七种可能的实现方式中, 所述第二同步标识为第四音 频数据。  In conjunction with the fourth possible implementation of the first aspect, or the sixth possible implementation of the first aspect, in a seventh possible implementation of the first aspect, the second synchronization identifier is a fourth audio data. .
结合第一方面的第七种可能的实现方式, 在第一方面的第八种可能的实 现方式中, 所述第四音频数据包括至少一个 DTMF脉冲信号。  In conjunction with the seventh possible implementation of the first aspect, in an eighth possible implementation of the first aspect, the fourth audio data includes at least one DTMF pulse signal.
第二方面, 本发明实施例提供了一种音频数据的测试方法, 包括: 接收发送端发送的第二音频数据, 所述第二音频数据包括第 ―同步标识和第 一音频数据, 所述第一同步标识用于指示开始测试所述第一音频数据的时刻; 在所述第一同步标识指示的开始测试的时刻, 开始对所述第一音频数据 进行测试。 在第二方面的第一种可能的实现方式中, 所述第一同步标识与所述第一音频 数据之间包括第一时间间隔; 所述在所述第一同步标识指示的开始测试的时刻, 开始对所述第一音频数据进行测试, 包括: In a second aspect, an embodiment of the present invention provides a method for testing audio data, including: receiving second audio data sent by a transmitting end, where the second audio data includes a first synchronization identifier and first audio data, where a synchronization identifier is used to indicate a time at which the first audio data is started to be tested; and the first audio data is tested at a time when the first synchronization indicator indicates a start of the test. In a first possible implementation manner of the second aspect, the first synchronization identifier and the first audio data include a first time interval; the moment when the first synchronization identifier indicates a start test , starting to test the first audio data, including:
检测所述第一同步标识;  Detecting the first synchronization identifier;
若检测到所述第一同步标识, 开始计时;  If the first synchronization identifier is detected, timing is started;
若计时时长达到预设的第一时间间隔的时长, 开始测试所述第一音频数 据。  The first audio data is tested if the timing duration reaches the preset first time interval.
结合第二方面或第二方面的第一种可能的实现方式,在第二方面的第二种可 能的实现方式中, 所述第二音频数据还包括第二同步标识; 所述方法还包括: 检测所述第二同步标识;  With the second aspect or the first possible implementation of the second aspect, in a second possible implementation manner of the second aspect, the second audio data further includes a second synchronization identifier, where the method further includes: Detecting the second synchronization identifier;
若检测到所述第二同步标识, 停止测试所述第一音频数据。  If the second synchronization indicator is detected, the first audio data is stopped from being tested.
结合第二方面或第二方面的第一种可能的实现方式,在第二方面的第三种可 能的实现方式中, 所述方法还包括:  With reference to the second aspect or the first possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the method further includes:
若开始对所述第一音频数据进行测试, 开始计时;  If the first audio data is tested, start timing;
若计时时长达到预设的测试时长, 停止测试所述第一音频数据。  If the timing duration reaches a preset test duration, the test of the first audio data is stopped.
第三方面, 本发明实施例提供了一种音频数据的测试设备, 所述设备为发送 端, 所述设备包括:  In a third aspect, an embodiment of the present invention provides a test device for audio data, where the device is a sender, and the device includes:
处理器,用于依据第一同步标识和第一音频数据,获得第二音频数据;其中, 所述第一同步标识用于指示接收端开始测试所述第一音频数据的时刻;  a processor, configured to obtain second audio data according to the first synchronization identifier and the first audio data, where the first synchronization identifier is used to indicate a time when the receiving end starts testing the first audio data;
发射器, 用于向所述接收端发送所述第二音频数据。  And a transmitter, configured to send the second audio data to the receiving end.
在第三方面的第一种可能的实现方式中, 所述处理器, 具体用于:  In a first possible implementation manner of the third aspect, the processor is specifically configured to:
在所述第一音频数据前插入所述第 ―同步标识, 获得所述第二音频数据。 结合第三方面或第三方面的第一种可能的实现方式, 在第三方面的第二 种可能的实现方式中, 所述第一同步标识为第三音频数据。  Inserting the first "synchronization flag" before the first audio data to obtain the second audio data. In conjunction with the third aspect, or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the first synchronization identifier is a third audio data.
结合第三方面的第二种可能的实现方式, 在第三方面的第三种可能的实 现方式中, 所述第三音频数据包括至少一个 DTMF脉冲信号。 In combination with the second possible implementation of the third aspect, the third possible implementation in the third aspect In the current mode, the third audio data includes at least one DTMF pulse signal.
在第三方面的第四种可能的实现方式中, 所述处理器, 具体用于: 在所述第一音频数据前插入所述第一同步标识,在所述第一音频数据后插入 第二同步标识, 获得所述第二音频数据;  In a fourth possible implementation manner of the third aspect, the processor is specifically configured to: insert the first synchronization identifier before the first audio data, and insert a second after the first audio data Synchronizing the identifier to obtain the second audio data;
其中, 所述第二同步标识用于指示所述接收端停止测试所述第一音频数 据的时刻。  The second synchronization identifier is used to indicate a time when the receiving end stops testing the first audio data.
结合第三方面的第一种可能的实现方式或第三方面的第四种可能的实现 方式, 在第三方面的第五种可能的实现方式中, 所述第一同步标识与所述第 一音频数据之间包括第一时间间隔, 所述第一时间间隔大于或者等于 0ms。  With the first possible implementation of the third aspect or the fourth possible implementation of the third aspect, in a fifth possible implementation manner of the third aspect, the first synchronization identifier and the first The first time interval is included between the audio data, and the first time interval is greater than or equal to 0 ms.
结合第三方面的第五种可能的实现方式, 在第三方面的第六种可能的实 现方式中, 所述第二同步标识与所述第一音频数据之间包括第二时间间隔, 所述第二时间间隔大于或者等于 0ms。  With the fifth possible implementation of the third aspect, in a sixth possible implementation manner of the third aspect, the second synchronization identifier and the first audio data include a second time interval, The second time interval is greater than or equal to 0 ms.
结合第三方面的第四种可能的实现方式或第三方面的第六种可能的实现 方式, 在第三方面的第七种可能的实现方式中, 所述第二同步标识为第四音 频数据。  With the fourth possible implementation of the third aspect or the sixth possible implementation of the third aspect, in a seventh possible implementation manner of the third aspect, the second synchronization identifier is a fourth audio data. .
结合第三方面的第七种可能的实现方式, 在第三方面的第八种可能的实 现方式中, 所述第四音频数据包括至少一个 DTMF脉冲信号。  In conjunction with the seventh possible implementation of the third aspect, in an eighth possible implementation of the third aspect, the fourth audio data includes at least one DTMF pulse signal.
第四方面, 本发明实施例提供了一种音频数据的测试设备, 所述设备为接收 端, 所述设备包括:  In a fourth aspect, an embodiment of the present invention provides a test device for audio data, where the device is a receiving end, and the device includes:
接收器, 用于接收发送端发送的第二音频数据, 所述第二音频数据包括第一 同步标识和第一音频数据, 所述第一同步标识用于指示开始测试所述第一音频数 据的时刻;  a receiver, configured to receive second audio data that is sent by the sending end, where the second audio data includes a first synchronization identifier and first audio data, where the first synchronization identifier is used to indicate to start testing the first audio data. Moment
处理器, 用于在所述第一同步标识指示的开始测试的时刻, 开始对所述 第一音频数据进行测试。  And a processor, configured to start testing the first audio data at a time when the first synchronization indicator indicates a start test.
在第四方面的第一种可能的实现方式中, 所述第一同步标识与所述第一音频 数据之间包括第一时间间隔; 所述处理器, 具体用于: In a first possible implementation manner of the fourth aspect, the first synchronization identifier and the first audio The first time interval is included between the data; the processor is specifically configured to:
检测所述第一同步标识;  Detecting the first synchronization identifier;
若检测到所述第一同步标识, 开始计时;  If the first synchronization identifier is detected, timing is started;
若计时时长达到预设的第一时间间隔的时长, 开始测试所述第一音频数 据。  The first audio data is tested if the timing duration reaches the preset first time interval.
结合第四方面或第四方面的第一种可能的实现方式,在第四方面的第二种可 能的实现方式中,所述第二音频数据还包括第二同步标识;所述处理器,还用于: 检测所述第二同步标识;  With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the second audio data further includes a second synchronization identifier; For: detecting the second synchronization identifier;
若检测到所述第二同步标识, 停止测试所述第一音频数据。  If the second synchronization indicator is detected, the first audio data is stopped from being tested.
结合第四方面或第四方面的第一种可能的实现方式,在第四方面的第三种可 能的实现方式中, 所述处理器, 还用于:  With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, in a third possible implementation manner of the fourth aspect, the processor is further configured to:
若开始对所述第一音频数据进行测试, 开始计时;  If the first audio data is tested, start timing;
若计时时长达到预设的测试时长, 停止测试所述第一音频数据。  If the timing duration reaches a preset test duration, the test of the first audio data is stopped.
由以上技术方案可以看出, 本发明实施例具有以下有益效果:  It can be seen from the above technical solutions that the embodiments of the present invention have the following beneficial effects:
发送端在发送的待测试的音频数据中加入同步标识, 利用同步标识指示 接收端对音频数据开始进行测试的时刻, 这样, 发送端和接收端能够在相同 的起始点对音频数据进行测试, 以简单方便地实现音频数据的同步测试, 使 得发送端和接收端可以达到几十毫秒内的同步精度。  The transmitting end adds a synchronization identifier to the sent audio data to be tested, and uses the synchronization identifier to indicate the time at which the receiving end starts testing the audio data, so that the transmitting end and the receiving end can test the audio data at the same starting point, Synchronous testing of audio data is simple and convenient, so that the transmitting end and the receiving end can achieve synchronization accuracy within several tens of milliseconds.
【附图说明】 [Description of the Drawings]
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例中所需要 使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的 一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提 下, 还可以根据这些附图获得其它的附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. One of ordinary skill in the art can also obtain other drawings based on these drawings without paying for inventive labor.
图 1是现有技术中发送端和接收端的音频数据的示意图;  1 is a schematic diagram of audio data of a transmitting end and a receiving end in the prior art;
图 2是本发明实施例中 DTMF脉冲信号的示意图; 图 3是本发明实施例所提供的技术方案使用的系统的结构示意图; 图 4是本发明实施例所提供的音频数据的测试方法的实施例一的流程示 意图; 2 is a schematic diagram of a DTMF pulse signal in an embodiment of the present invention; 3 is a schematic structural diagram of a system used in the technical solution provided by the embodiment of the present invention; FIG. 4 is a schematic flowchart diagram of Embodiment 1 of a method for testing audio data according to an embodiment of the present invention;
图 5是本发明实施例中音频数据的第一示意图;  FIG. 5 is a first schematic diagram of audio data in an embodiment of the present invention; FIG.
图 6是本发明实施例中音频数据的第二示意图;  6 is a second schematic diagram of audio data in an embodiment of the present invention;
图 7是本发明实施例所提供的音频数据的测试方法的实施例二的流程示 意图;  7 is a schematic flow chart of Embodiment 2 of a method for testing audio data according to an embodiment of the present invention;
图 8是本发明实施例所提供的音频数据的测试设备的实施例一的功能方 块图;  FIG. 8 is a functional block diagram of Embodiment 1 of a test apparatus for audio data according to an embodiment of the present invention; FIG.
图 9是本发明实施例所提供的音频数据的测试设备的实施例一的结构示 意图;  FIG. 9 is a schematic structural diagram of Embodiment 1 of a test apparatus for audio data according to an embodiment of the present invention;
图 10 是本发明实施例所提供的音频数据的测试设备的实施例二的功能 方块图;  FIG. 10 is a functional block diagram of Embodiment 2 of a test apparatus for audio data according to an embodiment of the present invention; FIG.
图 1 1 是本发明实施例所提供的音频数据的测试设备的实施例二的结构 示意图。  FIG. 11 is a schematic structural diagram of Embodiment 2 of a test apparatus for audio data according to an embodiment of the present invention.
【具体实施方式】 【detailed description】
为了更好的理解本发明的技术方案, 下面结合附图对本发明实施例进行 详细描述。  For a better understanding of the technical solutions of the present invention, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
应当明确, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的 实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳 动前提下所获得的所有其它实施例, 都属于本发明保护的范围。  It should be understood that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
双音多频 ( Dual Tone Multi Frequency, DTMF )脉冲信号由高频信号群 和低频信号群组成, 高频信号群和低频信号群各有 4种频率的 DTMF脉冲信 号; 如表 1所示, 一个高频信号和一个低频信号可以叠加组成一个 DTMF脉 冲信号, 该脉冲信号可以用 1 ~9中的一个数字、 A~D中的一个字母、 #或者 * 表示, 例如 1209Hz的高频信号和 697Hz的低频信号叠加组成的 DTMF脉冲 信号可代表数字 1。 The Dual Tone Multi Frequency (DTMF) pulse signal is composed of a high frequency signal group and a low frequency signal group, and the high frequency signal group and the low frequency signal group each have four kinds of frequency DTMF pulse signals; as shown in Table 1, A high frequency signal and a low frequency signal can be superimposed to form a DTMF pulse signal, which can use a number from 1 to 9, a letter in A~D, # or * It is indicated that a DTMF pulse signal composed of, for example, a high frequency signal of 1209 Hz and a low frequency signal of 697 Hz may represent the number 1.
表 1  Table 1
Figure imgf000008_0001
Figure imgf000008_0001
请参考图 2 ,其为本发明实施例中 DTMF脉冲信号的示意图,如图所示, 每个 DTMF脉冲信号都对应一个音频持续时间, 该音频持续时间就是图 2中 所示的 DTMF脉冲宽度。  Please refer to FIG. 2, which is a schematic diagram of a DTMF pulse signal according to an embodiment of the present invention. As shown, each DTMF pulse signal corresponds to an audio duration, which is the DTMF pulse width shown in FIG.
本发明实施例所提供的技术方案使用的系统如图 3所示, 由发送端和接 收端组成, 发送端主要用于向接收端发送待测试的音频数据, 以便于接收端 对收到的音频数据进行测试, 获得测试结果。 本发明实施例对发送端和接收 端的功能都进行了变更, 即发送端在待测试的音频数据前, 或者, 音频数据 前和音频数据后, 插入同步标识, 然后将同步标识与音频数据一起发送给接 收端, 接收端依据同步标识开始或停止音频数据的测试。 其中, 所述音频数 据可以为基于脉冲编码调制 (Pulse Code Modulation , PCM ) 的音频数据; 所述发送端可以为客户端设备, 如个人计算机( Personal Computer, PC ) 、 笔记本电脑、 手机或平板电脑等, 所述接收端可以为服务器。 其中, 发送端 和接收端之间的通信方式可以是有线方式, 如互联网, 还可以是无线方式, 如 3G等无线网络。  As shown in FIG. 3, the system used in the technical solution provided by the embodiment of the present invention is composed of a transmitting end and a receiving end, and the transmitting end is mainly used for sending audio data to be tested to the receiving end, so that the receiving end can receive the received audio. The data is tested and the test results are obtained. In the embodiment of the present invention, the functions of the transmitting end and the receiving end are changed, that is, the transmitting end inserts the synchronization identifier before the audio data to be tested, or before the audio data and after the audio data, and then sends the synchronization identifier together with the audio data. To the receiving end, the receiving end starts or stops the test of the audio data according to the synchronization identifier. The audio data may be audio code based on Pulse Code Modulation (PCM); the sender may be a client device, such as a personal computer (PC), a laptop, a mobile phone or a tablet. Etc., the receiving end can be a server. The communication mode between the sender and the receiver may be a wired mode, such as the Internet, or a wireless mode, such as a wireless network such as 3G.
本发明实施例给出一种音频数据的测试方法,请参考图 4 ,其为本发明实 施例所提供的音频数据的 'J试方法的实施例一的流程示意图, 本实施例的方 法在音频数据的发送端一侧实现, 如图所示, 该方法包括以下步骤:  The embodiment of the present invention provides a method for testing audio data. Referring to FIG. 4, it is a schematic flowchart of Embodiment 1 of a method for testing audio data according to an embodiment of the present invention. The method of this embodiment is in audio. The sender side of the data is implemented. As shown in the figure, the method includes the following steps:
步骤 401 , 依据第一同步标识和第一音频数据, 获得第二音频数据。 具体的, 首先, 发送端中可以预先存储好第一同步标识; 或者, 发送端 也可以生成第一同步标识。 本发明实施例中, 所述第一同步标识可以为第三 音频数据; 请参考图 5, 其为本发明实施例中音频数据的第一示意图, 如图 5 所示, 所述第三音频数据可以包括至少一个 DTMF脉冲信号, 每个 DTMF脉 冲信号的脉冲宽度为 也就是说, 本发明实施例中, 可以利用一个或多个脉 冲宽度为 的 DTMF脉冲信号作为第一同步标识。 其中, 每个 DTMF脉冲信 号的脉冲宽度 需要等于或者大于 65ms, 且, 若包括至少两个 DTMF脉冲信 号, 则至少两个 DTMF脉冲信号中, 每两个 DTMF脉冲信号之间的间隔需要 等于或者大于 65ms。 Step 401: Obtain second audio data according to the first synchronization identifier and the first audio data. Specifically, first, the first synchronization identifier may be pre-stored in the sending end; or the sending end may also generate the first synchronization identifier. In the embodiment of the present invention, the first synchronization identifier may be the third audio data. Referring to FIG. 5, it is a first schematic diagram of audio data in the embodiment of the present invention. As shown in FIG. 5, the third audio data is used. At least one DTMF pulse signal may be included, and the pulse width of each DTMF pulse signal is that, in the embodiment of the present invention, one or more DTMF pulse signals having a pulse width of one may be utilized as the first synchronization indicator. Wherein, the pulse width of each DTMF pulse signal needs to be equal to or greater than 65 ms, and if at least two DTMF pulse signals are included, the interval between each two DTMF pulse signals needs to be equal to or greater than 65ms.
然后, 接收端依据第一同步标识和第一音频数据, 获得第二音频数据, 其方法可以包括以下两种:  Then, the receiving end obtains the second audio data according to the first synchronization identifier and the first audio data, and the method may include the following two types:
第一种: 接收端在所述第一音频数据前插入所述第一同步标识, 获得所 述第二音频数据, 这样第二音频数据中包括第一同步标识和第一音频数据, 第一音频数据就是接收端需要同步测试的音频数据。 例如, 所述第一同步标 识可以是第三音频数据,该第三音频数据可以包括至少一个 DTMF脉冲信号, 在第一音频数据前插入至少一个 DTMF脉冲信号, 相当于将 DTMF脉冲信号 作为测试数据的一部分进行传输。  The first type: the receiving end inserts the first synchronization identifier before the first audio data, and obtains the second audio data, so that the second audio data includes a first synchronization identifier and first audio data, the first audio The data is the audio data that the receiver needs to test synchronously. For example, the first synchronization identifier may be third audio data, and the third audio data may include at least one DTMF pulse signal, and inserting at least one DTMF pulse signal before the first audio data, which is equivalent to using the DTMF pulse signal as test data. Part of the transmission.
如图 5所示, 为了应用于多种测试场景, 可以在所述第一同步标识与所 述第一音频数据的起始点之间设置第一时间间隔^ , 所述第一时间间隔^大于 或者等于 0ms。 当第一时间间隔^等于 0ms时, 相当于第一同步标识与第一 音频数据之间没有时间间隔, 在第一同步标识后就是第一音频数据; 若所述 第一时间间隔 t2大于 0ms, 表示所述第一同步标识与第一音频数据之间有时 间间隔, 需要在第一同步标识之后, 且经过该第一时间间隔^后, 才是第一音 频数据。 这里, 可以设置合理的第一时间间隔 t2 , 以便于接收端有足够时间识 别出第一同步标识。 第二种: 在某些测试场景中, 可以在接收端预先设置好测试时长, 接收端在 开始对第一音频数据进行测试时就开始计时, 当计时时长到达测试时长时, 接收 端自动停止测试第一音频数据, 停止测试时, 第一音频数据可以没有测试完, 也 可以已经测试完毕。 这些测试场景下, 可以利用上述第一种方法, 仅在第一音频 数据的前面插入第一同步标识, 只需要利用该第一同步标识指示接收端在什么时 候开始进行测试即可, 不需要指示接收端在什么时候停止进行测试; 但是, 有些 测试场景中, 没有在接收端预先设置好测试时长, 这样, 就需要发送端在发送第 一音频数据时, 同时发送用于指示停止测试的同步标识, 方法如下: As shown in FIG. 5, in order to apply to multiple test scenarios, a first time interval ^ may be set between the first synchronization identifier and a starting point of the first audio data, where the first time interval ^ is greater than or Equal to 0ms. When the first time interval ^ is equal to 0 ms, there is no time interval between the first synchronization identifier and the first audio data, and the first audio data is the first audio data; if the first time interval t 2 is greater than 0 ms And indicating that there is a time interval between the first synchronization identifier and the first audio data, and is required to be after the first synchronization identifier, and after the first time interval ^, is the first audio data. Here, a reasonable first time interval t 2 can be set so that the receiving end has enough time to recognize the first synchronization indicator. The second type: In some test scenarios, the test duration can be preset in the receiving end, and the receiving end starts counting when the first audio data is started to be tested. When the timing reaches the test duration, the receiving end automatically stops testing. The first audio data, when the test is stopped, the first audio data may not be tested, or may have been tested. In the above test scenario, the first method may be used to insert the first synchronization identifier only in front of the first audio data, and only the first synchronization identifier needs to be used to indicate when the receiver starts to perform the test, and no indication is needed. When the receiving end stops testing; however, in some test scenarios, the test duration is not set in advance at the receiving end, so that the transmitting end needs to send the synchronization identifier for instructing to stop the test when transmitting the first audio data. , Methods as below:
首先, 发送端中可以预先存储好第二同步标识; 或者, 发送端也可以生成第 二同步标识; 本发明实施例中, 所述第二同步标识与第一同步标识相似, 可以为 第四音频数据; 请参考图 6, 其为本发明实施例中音频数据的第二示意图, 如图 6所示, 所述第四音频数据可以包括至少一个 DTMF脉冲信号, 每个 DTMF脉 冲信号的脉冲宽度为 ^ , 也就是说, 本发明实施例中, 可以利用一个或多个脉冲 宽度为 ^的 DTMF脉冲信号作为第二同步标识。  First, the second synchronization identifier may be pre-stored in the sending end; or the second synchronization identifier may be generated by the sending end. In the embodiment of the present invention, the second synchronization identifier is similar to the first synchronization identifier, and may be the fourth audio. Please refer to FIG. 6, which is a second schematic diagram of audio data in an embodiment of the present invention. As shown in FIG. 6, the fourth audio data may include at least one DTMF pulse signal, and the pulse width of each DTMF pulse signal is That is, in the embodiment of the present invention, one or more DTMF pulse signals having a pulse width of ^ may be utilized as the second synchronization indicator.
然后, 在所述第一音频数据前插入所述第一同步标识后, 在所述第一音频数 据后插入所述第二同步标识, 获得所述第二音频数据, 所述第二同步标识用于指 示所述接收端停止测试所述第一音频数据的时刻。 这样, 第二音频数据中包括第 一同步标识、 第一音频数据和第二同步标识, 相当于将第一同步标识包括的 DTMF脉冲信号和第二同步标识包括的 DTMF脉冲信号作为测试数据的一部分 进行传输。  Then, after inserting the first synchronization identifier before the first audio data, inserting the second synchronization identifier after the first audio data, obtaining the second audio data, where the second synchronization identifier is used At a timing indicating that the receiving end stops testing the first audio data. In this way, the second audio data includes a first synchronization identifier, a first audio data, and a second synchronization identifier, which is equivalent to using the DTMF pulse signal included in the first synchronization identifier and the DTMF pulse signal included in the second synchronization identifier as part of the test data. Transfer.
如图 6所示, 为了应用于多种测试场景, 可以在所述第一音频数据与所 述第二同步标识与之间设置第二时间间隔 , 所述第二时间间隔^大于或者等 于 0ms, 当第二时间间隔 等于 0ms时, 相当于第二同步标识与第一音频数 据之间没有时间间隔, 在第一音频数据后就是第二同步标识; 若所述第二时 间间隔 大于 0ms,表示所述第二同步标识与第一音频数据之间有时间间隔, 需要在第一音频数据之后, 且经过该第二时间间隔 后, 才是第二同步标识。 其中, 可以设置合理的第二时间间隔 t4 , 以便于接收端有足够时间识别出第二 同步标识。 As shown in FIG. 6 , a second time interval may be set between the first audio data and the second synchronization identifier, where the second time interval is greater than or equal to 0 ms. When the second time interval is equal to 0 ms, there is no time interval between the second synchronization identifier and the first audio data, and the second synchronization identifier is after the first audio data; if the second time interval is greater than 0 ms, the indication is There is a time interval between the second synchronization identifier and the first audio data. It is required to be after the first audio data, and after the second time interval, is the second synchronization identifier. Wherein, a reasonable second time interval t 4 can be set, so that the receiving end has enough time to recognize the second synchronization identifier.
步骤 402 , 向接收端发送所述第二音频数据。  Step 402: Send the second audio data to the receiving end.
具体的,发送端在获得第二音频数据后,向接收端发送该第二音频数据, 如图 5所示, 所述第二音频数据经过传输时间 t3后, 到达接收端。 Specifically, the transmitting end after obtaining a second audio data, the second audio data transmitted to the receiving end, as shown in Figure 5, the second audio data over the transport time t 3, arrive at the receiving end.
本发明实施例给出一种音频数据的测试方法,请参考图 7 ,其为本发明实 施例所提供的音频数据的 'J试方法的实施例二的流程示意图, 本实施例的方 法在音频数据的接收端一侧实现, 如图所示, 该方法包括以下步骤:  The embodiment of the present invention provides a method for testing audio data. Please refer to FIG. 7 , which is a schematic flowchart of Embodiment 2 of a method for testing audio data according to an embodiment of the present invention. The method in this embodiment is in audio. The receiving end side of the data is implemented. As shown in the figure, the method includes the following steps:
步骤 701 , 接收发送端发送的第二音频数据, 所述第二音频数据包括第 一同步标识和第一音频数据, 所述第一同步标识用于指示开始测试所述第一 音频数据的时刻。  Step 701: Receive second audio data that is sent by the sending end, where the second audio data includes a first synchronization identifier and first audio data, where the first synchronization identifier is used to indicate a time when the first audio data is started to be tested.
具体的, 接收端接收发送端发送的第二音频数据, 所述第二音频数据包 括第一同步标识和第一音频数据, 或者, 所述第二音频数据包括第一同步标 识、 第一音频数据和第二同步标识。 所述第一同步标识用于指示开始测试所 述第一音频数据的时刻, 所述第二同步标识用于指示停止测试所述第一音频 数据的时刻。  Specifically, the receiving end receives the second audio data that is sent by the sending end, where the second audio data includes the first synchronization identifier and the first audio data, or the second audio data includes the first synchronization identifier and the first audio data. And a second synchronization identifier. The first synchronization identifier is used to indicate a time when the first audio data is tested, and the second synchronization identifier is used to indicate a time when the first audio data is stopped.
步骤 702 , 在所述第一同步标识指示的开始测试的时刻, 开始对所述第 一音频数据进行测试。  Step 702: Start testing the first audio data at a time when the first synchronization indicator indicates a start test.
具体的, 在所述第一同步标识指示的开始测试的时刻, 开始对所述第一音频 数据进行测试可以包括以下两种方法:  Specifically, when the first synchronization indicator indicates the start of the test, starting to test the first audio data may include the following two methods:
第一种,所述第一同步标识与所述第一音频数据之间第一时间间隔^等于 0, 接收端检测第一同步标识, 当接收端检测到所述第一同步标识, 依据预设的第一 时间间隔 t2 , 就立刻进行第一音频数据的测试处理, 以获得测试结果; 例如, 第 一音频数据的测试处理可以是传输信道质量对音频的质量影响的比对测试。 第二种: 所述第一同步标识与所述第一音频数据之间第一时间间隔 t2不等于The first type, the first time interval between the first synchronization identifier and the first audio data is equal to 0, the receiving end detects the first synchronization identifier, and when the receiving end detects the first synchronization identifier, according to the preset The first time interval t 2 , the test processing of the first audio data is performed immediately to obtain the test result; for example, the test processing of the first audio data may be an alignment test of the quality influence of the transmission channel quality on the audio. Second: the first time interval t 2 between the first synchronization identifier and the first audio data is not equal to
0, 接收端检测所述第一同步标识; 当接收端检测到所述第一同步标识, 则利用 预设的计时器开始计时; 当所述计时器的计时时长达到预设的第一时间间隔^的 时长时, 开始测试所述第一音频数据, 以获得测试结果。 0, the receiving end detects the first synchronization identifier; when the receiving end detects the first synchronization identifier, starts timing with a preset timer; when the timer duration of the timer reaches a preset first time interval At the time of ^, the first audio data is tested to obtain a test result.
可选的, 若所述第二音频数据还包括第二同步标识, 上述方法中, 所述步骤 Optionally, if the second audio data further includes a second synchronization identifier, in the foregoing method, the step
702 之后, 还可以包括: 检测所述第二同步标识, 若检测到所述第二同步标识, 停止测试所述第一音频数据。 After the 702, the method further includes: detecting the second synchronization identifier, and stopping detecting the first audio data if the second synchronization identifier is detected.
可选的, 所述步骤 702之后, 还可以包括: 若接收端开始对所述第一音频数 据进行测试, 则接收端开始计时, 当计时时长到达预设的测试时长时, 接收端停 止测试所述第一音频数据。  Optionally, after the step 702, the method may further include: if the receiving end starts testing the first audio data, the receiving end starts timing, and when the timing duration reaches a preset testing duration, the receiving end stops testing. The first audio data is described.
本发明实施例中, 若所述第一同步标识或所述第二同步标识包括至少一个 DTMF脉冲信号,则接收端可以利用检测算法对 DTMF脉冲信号进行检测, 以实 现从音频数据中识别出 DTMF脉冲信号,从而获得第一同步标识或第二同步标识; 其中, 检测算法可以是戈策尔 (Goertzel )算法。  In the embodiment of the present invention, if the first synchronization identifier or the second synchronization identifier includes at least one DTMF pulse signal, the receiving end may detect the DTMF pulse signal by using a detection algorithm, so as to realize the DTMF from the audio data. Pulse signal, thereby obtaining a first synchronization identifier or a second synchronization identifier; wherein the detection algorithm may be a Goertzel algorithm.
本发明实施例进一步给出实现上述方法实施例中各步骤及方法的装置实 施例。  Embodiments of the present invention further provide an apparatus embodiment for implementing the steps and methods in the foregoing method embodiments.
请参考图 8 ,其为本发明实施例所提供的音频数据的测试设备的实施例一 的功能方块图。 如图所示, 该设备为上述发送端, 该设备包括:  Please refer to FIG. 8 , which is a functional block diagram of Embodiment 1 of a test apparatus for audio data according to an embodiment of the present invention. As shown in the figure, the device is the foregoing sending end, and the device includes:
处理器 80, 用于依据第一同步标识和第一音频数据, 获得第二音频数据; 其中, 所述第 ―同步标识用于指示接收端开始测试所述第一音频数据的时刻; 发射器 81 , 用于向所述接收端发送所述第二音频数据。  The processor 80 is configured to obtain second audio data according to the first synchronization identifier and the first audio data, where the first synchronization identifier is used to indicate a time when the receiving end starts testing the first audio data, and the transmitter 81 And sending the second audio data to the receiving end.
其中, 所述处理器 80, 具体用于: 在所述第一音频数据前插入所述第一同 步标识, 获得所述第二音频数据。  The processor 80 is specifically configured to: insert the first synchronization identifier before the first audio data, to obtain the second audio data.
其中, 所述第一同步标识为第三音频数据。 所述第三音频数据包括至少一个 双音多频 DTMF脉冲信号。 其中, 所述处理器 80, 具体用于: 在所述第一音频数据前插入所述第一同 步标识, 在所述第一音频数据后插入第二同步标识, 获得所述第二音频数据; 其 中, 所述第二同步标识用于指示所述接收端停止测试所述第一音频数据的时刻。 The first synchronization identifier is third audio data. The third audio data includes at least one dual tone multi-frequency DTMF pulse signal. The processor 80 is specifically configured to: insert the first synchronization identifier before the first audio data, insert a second synchronization identifier after the first audio data, to obtain the second audio data; The second synchronization identifier is used to indicate a moment when the receiving end stops testing the first audio data.
其中, 所述第一同步标识与所述第一音频数据之间包括第一时间间隔, 所述 第一时间间隔大于或者等于 0ms。  The first synchronization identifier and the first audio data include a first time interval, and the first time interval is greater than or equal to 0 ms.
其中, 所述第二同步标识与所述第一音频数据之间包括第二时间间隔, 所述 第二时间间隔大于或者等于 0ms。  The second synchronization identifier and the first audio data include a second time interval, where the second time interval is greater than or equal to 0 ms.
其中, 所述第二同步标识为第四音频数据。 所述第四音频数据包括至少 一个 DTMF脉冲信号。  The second synchronization identifier is fourth audio data. The fourth audio data includes at least one DTMF pulse signal.
请参考图 9 ,其为本发明实施例所提供的音频数据的测试设备的实施例一 的结构示意图。 如图所示, 该设备为上述发送端, 该设备包括:  Please refer to FIG. 9, which is a schematic structural diagram of Embodiment 1 of a test apparatus for audio data according to an embodiment of the present invention. As shown in the figure, the device is the foregoing sending end, and the device includes:
存储器 90 , 用于存储一组或多组程序代码;  a memory 90, configured to store one or more sets of program codes;
处理器 91 , 与存储器 90和发射器 92分别耦合, 用于调用存储器 90中 存储的程序代码, 以执行以下图 4 所示的方法, 具体包括: 依据第一同步标 识和第一音频数据, 获得第二音频数据; 其中, 所述第一同步标识用于指示 接收端开始测试所述第一音频数据的时刻;  The processor 91 is coupled to the memory 90 and the transmitter 92, respectively, for invoking the program code stored in the memory 90 to perform the method shown in FIG. 4, and specifically includes: obtaining, according to the first synchronization identifier and the first audio data, a second audio data, where the first synchronization identifier is used to indicate a time when the receiving end starts testing the first audio data;
发射器 92 , 用于向所述接收端发送所述第二音频数据。  The transmitter 92 is configured to send the second audio data to the receiving end.
由于本实施例中的处理器 91和发射器 92能够执行图 4所示的方法, 本 实施例未详细描述的部分, 可参考对图 4的相关说明。  Since the processor 91 and the transmitter 92 in this embodiment are capable of executing the method shown in FIG. 4, and the portions not described in detail in this embodiment, reference may be made to the related description of FIG.
请参考图 10, 其为本发明实施例所提供的音频数据的测试设备的实施例 二的功能方块图。 如图所示, 该设备为上述接收端, 该设备包括:  Please refer to FIG. 10, which is a functional block diagram of Embodiment 2 of a test apparatus for audio data according to an embodiment of the present invention. As shown in the figure, the device is the receiving end, and the device includes:
接收器 100, 用于接收发送端发送的第二音频数据, 所述第二音频数据包括 第一同步标识和第一音频数据, 所述第 ―同步标识用于指示开始测试所述第一音 频数据的时刻;  The receiver 100 is configured to receive second audio data that is sent by the sending end, where the second audio data includes a first synchronization identifier and first audio data, where the first synchronization identifier is used to indicate to start testing the first audio data. Moment
处理器 101 , 用于在所述第一同步标识指示的开始测试的时刻, 开始对所述 第一音频数据进行测试。 The processor 101 is configured to start at the time of starting the test indicated by the first synchronization identifier. The first audio data is tested.
其中, 所述第一同步标识与所述第一音频数据之间包括第一时间间隔; 所述 处理器 101 , 具体用于: 检测所述第一同步标识; 若检测到所述第一同步标识, 开始计时; 若计时时长达到预设的第一时间间隔的时长, 开始测试所述第一音频 数据。  The first synchronization identifier and the first audio data include a first time interval. The processor 101 is specifically configured to: detect the first synchronization identifier; and if the first synchronization identifier is detected , starting timing; if the timing duration reaches the preset first time interval, the first audio data is tested.
其中, 所述第二音频数据还包括第二同步标识; 所述处理器 101 , 还用于: 检测所述第二同步标识; 若检测到所述第二同步标识, 停止测试所述第一音频数 据。  The second audio data further includes a second synchronization identifier; the processor 101 is further configured to: detect the second synchronization identifier; if the second synchronization identifier is detected, stop testing the first audio data.
其中, 所述处理器 101 , 还用于: 若开始对所述第一音频数据进行测试, 开 始计时; 若计时时长达到预设的测试时长, 停止测试所述第一音频数据。  The processor 101 is further configured to: start timing when the first audio data is started to be tested; and stop testing the first audio data if the timing duration reaches a preset test duration.
其中, 所述第二同步标识之后包括第二时间间隔; 所述处理器 101 , 具体用 于: 若检测到所述第二同步标识, 开始计时; 若所述计时时长达到所述第二时间 间隔的时长, 停止测试所述第一音频数据。  The second synchronization identifier includes a second time interval, and the processor 101 is configured to: start time counting if the second synchronization identifier is detected; and if the timing duration reaches the second time interval The duration of time, stopping testing the first audio data.
请参考图 1 1 , 其为本发明实施例所提供的音频数据的测试设备的实施例 二的结构示意图。 如图所示, 该设备为上述接收端, 该设备包括:  FIG. 1 is a schematic structural diagram of Embodiment 2 of a test apparatus for audio data according to an embodiment of the present invention. As shown in the figure, the device is the receiving end, and the device includes:
接收器 1 10 , 用于接收发送端发送的第二音频数据, 所述第二音频数据 包括第一同步标识和第一音频数据, 所述第一同步标识用于指示开始测试所 述第一音频数据的时刻;  The receiver 1 10 is configured to receive second audio data that is sent by the sending end, where the second audio data includes a first synchronization identifier and first audio data, where the first synchronization identifier is used to indicate to start testing the first audio. The moment of the data;
存储器 1 1 1 , 用于存储一组或多组程序代码;  The memory 1 1 1 is configured to store one or more sets of program codes;
处理器 1 12, 与接收器 1 10和存储器 1 1 1分别耦合, 用于调用存储器中 存储的程序代码, 以执行以下图 7所示的方法, 具体包括: 在所述第一同步 标识指示的开始测试的时刻, 开始对所述第一音频数据进行测试。  The processor 1 12 is coupled to the receiver 1 10 and the memory 1 1 1 respectively, and is configured to call the program code stored in the memory to perform the method shown in FIG. 7 , and specifically includes: indicating, by the first synchronization identifier At the moment when the test is started, the first audio data is tested.
由于本实施例中的接收器 1 10和处理器 1 12能够执行图 7所示的方法, 本实施例未详细描述的部分, 可参考对图 7的相关说明。  Since the receiver 1 10 and the processor 1 12 in this embodiment can perform the method shown in FIG. 7, and the portions not described in detail in this embodiment, reference may be made to the related description of FIG.
例如,上述发送端和接收端可以都为平均意见值( Mean Opinion Score , M〇S )测试设备,其中,发送端中的处理器可以为音乐编辑应用程序 cool edit。 本发明实施例的技术方案具有以下有益效果: For example, both the sender and the receiver can be Mean Opinion Score (Mean Opinion Score, M〇S) test device, wherein the processor in the sender can be a cool edit for the music editing application. The technical solution of the embodiment of the invention has the following beneficial effects:
1、 发送端在待测试的音频数据中加入同步标识, 利用同步标识指示接收 端对音频数据开始进行测试的时刻, 这样, 发送端和接收端能够在相同的起 始点对音频数据进行测试, 以简单方便的实现音频数据的同步测试, 使得发 送端和接收端可以达到几十毫秒内的同步精度。  1. The transmitting end adds a synchronization identifier to the audio data to be tested, and uses the synchronization identifier to indicate the time at which the receiving end starts testing the audio data, so that the transmitting end and the receiving end can test the audio data at the same starting point, Simultaneously and conveniently realize the synchronous test of audio data, so that the transmitting end and the receiving end can achieve synchronization precision within several tens of milliseconds.
2、 现有技术中, 发送端利用与音频数据独立的控制消息来控制接收端开 始进行测试和停止进行测试, 接收端还需要确认是否收到控制消息, 本发明 实施例的技术方案与现有技术相比, 发送端只需要将同步标识作为音频数据 的一部分, 一并发送给接收端, 不需要单独发送控制指令, 因此, 实现方法 比较简单, 降低设备的实现复杂度, 提高音频数据的测试效率和可靠性。  2. In the prior art, the transmitting end uses the control message independent of the audio data to control the receiving end to start testing and stop the test, and the receiving end also needs to confirm whether the control message is received. The technical solution of the embodiment of the present invention is Compared with the technology, the transmitting end only needs to use the synchronization identifier as part of the audio data, and sends it to the receiving end, and does not need to separately send the control instruction. Therefore, the implementation method is relatively simple, the implementation complexity of the device is reduced, and the audio data is tested. Efficiency and reliability.
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡在本 发明的精神和原则之内, 所做的任何修改、 等同替换、 改进等, 均应包含在 本发明保护的范围之内。  The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are made within the spirit and principles of the present invention, should be included in the present invention. Within the scope of protection.

Claims

权利 要求 书 Claim
1、 一种音频数据的测试方法, 其特征在于, 所述方法包括:  A method for testing audio data, the method comprising:
依据第 ―同步标识和第一音频数据, 获得第二音频数据;  Obtaining second audio data according to the first synchronization identifier and the first audio data;
向接收端发送所述第二音频数据;  Transmitting the second audio data to the receiving end;
其中, 所述第一同步标识用于指示所述接收端开始测试所述第一音频数据 的时刻。  The first synchronization identifier is used to indicate a time when the receiving end starts testing the first audio data.
2、 根据权利要求 1所述的方法, 其特征在于, 所述依据第一同步标识和第 一音频数据, 获得第二音频数据, 包括:  The method according to claim 1, wherein the obtaining the second audio data according to the first synchronization identifier and the first audio data comprises:
在所述第一音频数据前插入所述第一同步标识, 获得所述第二音频数据。 Inserting the first synchronization identifier before the first audio data to obtain the second audio data.
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述第一同步标识为第 三音频数据。 The method according to claim 1 or 2, wherein the first synchronization identifier is third audio data.
4、 根据权利要求 3所述的方法, 所述第三音频数据包括至少一个双音多频 DTMF脉冲信号。  4. The method of claim 3, the third audio data comprising at least one dual tone multi-frequency DTMF pulse signal.
5、 根据权利要求 1所述的方法, 其特征在于, 所述依据第一同步标识和第 一音频数据, 获得第二音频数据, 包括:  The method according to claim 1, wherein the obtaining the second audio data according to the first synchronization identifier and the first audio data comprises:
在所述第一音频数据前插入所述第 ―同步标识, 在所述第一音频数据后插 入所述第二同步标识, 获得所述第二音频数据;  Inserting the first synchronization identifier before the first audio data, inserting the second synchronization identifier after the first audio data, to obtain the second audio data;
其中, 所述第二同步标识用于指示所述接收端停止测试所述第一音频数据 的时刻。  The second synchronization identifier is used to indicate a time when the receiving end stops testing the first audio data.
6、 根据权利要求 2或 5所述的方法, 其特征在于,  6. A method according to claim 2 or 5, characterized in that
所述第一同步标识与所述第一音频数据之间包括第一时间间隔, 所述第一 时间间隔大于或者等于 0ms。  A first time interval is included between the first synchronization identifier and the first audio data, and the first time interval is greater than or equal to 0 ms.
7、 根据权利要求 5所述的方法, 其特征在于,  7. The method of claim 5, wherein
所述第二同步标识与所述第一音频数据之间包括第二时间间隔, 所述第二 时间间隔大于或者等于 0ms。  A second time interval is included between the second synchronization identifier and the first audio data, and the second time interval is greater than or equal to 0 ms.
8、 根据权利要求 5或 7所述的方法, 其特征在于, 所述第二同步标识为第 四音频数据。 The method according to claim 5 or 7, wherein the second synchronization identifier is Four audio data.
9、 根据权利要求 8 所述的方法, 所述第四音频数据包括至少一个 DTMF 脉冲信号。  9. The method of claim 8, the fourth audio data comprising at least one DTMF pulse signal.
10、 一种音频数据的测试方法, 其特征在于, 所述方法包括:  10. A method of testing audio data, the method comprising:
接收发送端发送的第二音频数据, 所述第二音频数据包括第 ―同步标识和 第一音频数据, 所述第 ―同步标识用于指示开始测试所述第一音频数据的时刻; 在所述第一同步标识指示的开始测试的时刻, 开始对所述第一音频数据进 行测试。  Receiving second audio data sent by the sending end, where the second audio data includes a first synchronization identifier and first audio data, where the first synchronization identifier is used to indicate a time when the first audio data is started to be tested; The first audio data is tested at the moment when the first synchronization indicator indicates the start of the test.
11、 根据权利要求 10所述的方法, 其特征在于, 所述第一同步标识与所述 第一音频数据之间包括第一时间间隔; 所述在所述第一同步标识指示的开始测 试的时刻, 开始对所述第一音频数据进行测试, 包括:  The method according to claim 10, wherein the first synchronization identifier and the first audio data comprise a first time interval; the first synchronization indicator indicates a start test At the moment, the first audio data is tested, including:
检测所述第一同步标识;  Detecting the first synchronization identifier;
若检测到所述第一同步标识, 开始计时;  If the first synchronization identifier is detected, timing is started;
若计时时长达到预设的第一时间间隔的时长, 开始测试所述第一音频数据。 If the timing duration reaches the preset first time interval, the first audio data is tested.
12、 根据权利要求 10或 11所述的方法, 其特征在于, 所述第二音频数据 还包括第二同步标识; 所述方法还包括: The method according to claim 10 or 11, wherein the second audio data further includes a second synchronization identifier; the method further includes:
检测所述第二同步标识;  Detecting the second synchronization identifier;
若检测到所述第二同步标识, 停止测试所述第一音频数据。  If the second synchronization indicator is detected, the first audio data is stopped from being tested.
13、 根据权利要求 10或 11所述的方法, 其特征在于, 所述方法还包括: 若开始对所述第一音频数据进行测试, 开始计时;  The method according to claim 10 or 11, wherein the method further comprises: starting to test the first audio data, starting timing;
若计时时长达到预设的测试时长, 停止测试所述第一音频数据。  If the timing duration reaches a preset test duration, the test of the first audio data is stopped.
14、 一种音频数据的测试设备, 其特征在于, 所述设备为发送端, 所述设 备包括:  A device for testing audio data, wherein the device is a transmitting end, and the device includes:
处理器, 用于依据第一同步标识和第一音频数据, 获得第二音频数据; 其 中, 所述第一同步标识用于指示接收端开始测试所述第一音频数据的时刻; 发射器, 用于向所述接收端发送所述第二音频数据。  a processor, configured to obtain second audio data according to the first synchronization identifier and the first audio data, where the first synchronization identifier is used to indicate a time when the receiving end starts testing the first audio data; Transmitting the second audio data to the receiving end.
15、 根据权利要求 14所述的设备, 其特征在于, 所述处理器, 具体用于: 在所述第一音频数据前插入所述第一同步标识, 获得所述第二音频数据。The device according to claim 14, wherein the processor is specifically configured to: Inserting the first synchronization identifier before the first audio data to obtain the second audio data.
16、 根据权利要求 14或 15所述的设备, 其特征在于, 所述第一同步标识 为第三音频数据。 The device according to claim 14 or 15, wherein the first synchronization identifier is third audio data.
17、根据权利要求 16所述的设备, 所述第三音频数据包括至少一个 DTMF 脉冲信号。  17. Apparatus according to claim 16 wherein said third audio data comprises at least one DTMF pulse signal.
18、 根据权利要求 14所述的设备, 其特征在于, 所述处理器, 具体用于: 在所述第一音频数据前插入所述第 ―同步标识, 在所述第一音频数据后插 入第二同步标识, 获得所述第二音频数据;  The device according to claim 14, wherein the processor is configured to insert the first synchronization identifier before the first audio data, and insert the first audio data Two synchronization identifiers, obtaining the second audio data;
其中, 所述第二同步标识用于指示所述接收端停止测试所述第一音频数据 的时刻。  The second synchronization identifier is used to indicate a time when the receiving end stops testing the first audio data.
19、 根据权利要求 15或 18所述的设备, 其特征在于,  19. Apparatus according to claim 15 or claim 18 wherein:
所述第一同步标识与所述第一音频数据之间包括第一时间间隔, 所述第一 时间间隔大于或者等于 0ms。  A first time interval is included between the first synchronization identifier and the first audio data, and the first time interval is greater than or equal to 0 ms.
20、 根据权利要求 18所述的设备, 其特征在于,  20. Apparatus according to claim 18, wherein
所述第二同步标识与所述第一音频数据之间包括第二时间间隔, 所述第二 时间间隔大于或者等于 0ms。  A second time interval is included between the second synchronization identifier and the first audio data, and the second time interval is greater than or equal to 0 ms.
21、 根据权利要求 18或 20所述的设备, 其特征在于, 所述第二同步标识 为第四音频数据。  The device according to claim 18 or 20, wherein the second synchronization identifier is fourth audio data.
22、根据权利要求 21所述的设备, 所述第四音频数据包括至少一个 DTMF 脉冲信号。  22. Apparatus according to claim 21, said fourth audio data comprising at least one DTMF pulse signal.
23、 一种音频数据的测试设备, 其特征在于, 所述设备为接收端, 所述设 备包括:  A device for testing audio data, wherein the device is a receiving end, and the device includes:
接收器, 用于接收发送端发送的第二音频数据, 所述第二音频数据包括第 ―同步标识和第一音频数据, 所述第 ―同步标识用于指示开始测试所述第一音 频数据的时刻;  a receiver, configured to receive second audio data sent by the sending end, where the second audio data includes a first synchronization identifier and first audio data, where the first synchronization identifier is used to indicate to start testing the first audio data. Moment
处理器, 用于在所述第一同步标识指示的开始测试的时刻, 开始对所述第 一音频数据进行测试。 And a processor, configured to start testing the first audio data at a time of starting the test indicated by the first synchronization identifier.
24、 根据权利要求 23所述的设备, 其特征在于, 所述第一同步标识与所述 第一音频数据之间包括第一时间间隔; 所述处理器, 具体用于: The device according to claim 23, wherein the first synchronization identifier and the first audio data comprise a first time interval; the processor is specifically configured to:
检测所述第一同步标识;  Detecting the first synchronization identifier;
若检测到所述第一同步标识, 开始计时;  If the first synchronization identifier is detected, timing is started;
若计时时长达到预设的第一时间间隔的时长, 开始测试所述第一音频数据。 If the timing duration reaches the preset first time interval, the first audio data is tested.
25、 根据权利要求 23或 24所述的设备, 其特征在于, 所述第二音频数据 还包括第二同步标识; 所述处理器, 还用于: The device according to claim 23 or 24, wherein the second audio data further includes a second synchronization identifier; the processor is further configured to:
检测所述第二同步标识;  Detecting the second synchronization identifier;
若检测到所述第二同步标识, 停止测试所述第一音频数据。  If the second synchronization indicator is detected, the first audio data is stopped from being tested.
26、 根据权利要求 23或 24所述的设备, 其特征在于, 所述处理器, 还用 于:  The device according to claim 23 or 24, wherein the processor is further configured to:
若开始对所述第一音频数据进行测试, 开始计时;  If the first audio data is tested, start timing;
若计时时长达到预设的测试时长, 停止测试所述第一音频数据。  If the timing duration reaches a preset test duration, the test of the first audio data is stopped.
PCT/CN2014/077359 2014-05-13 2014-05-13 Audio data testing method and device WO2015172310A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201480005075.7A CN105517651B (en) 2014-05-13 2014-05-13 The test method and equipment of audio data
PCT/CN2014/077359 WO2015172310A1 (en) 2014-05-13 2014-05-13 Audio data testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/077359 WO2015172310A1 (en) 2014-05-13 2014-05-13 Audio data testing method and device

Publications (1)

Publication Number Publication Date
WO2015172310A1 true WO2015172310A1 (en) 2015-11-19

Family

ID=54479136

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/077359 WO2015172310A1 (en) 2014-05-13 2014-05-13 Audio data testing method and device

Country Status (2)

Country Link
CN (1) CN105517651B (en)
WO (1) WO2015172310A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111209718A (en) * 2018-11-05 2020-05-29 珠海格力电器股份有限公司 Verification environment platform, verification method, computer device and readable storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948904B (en) * 2017-12-26 2020-10-02 深圳Tcl新技术有限公司 Sound box aging test method and device and computer readable storage medium
TWI698650B (en) * 2019-05-22 2020-07-11 和碩聯合科技股份有限公司 Test audio generation method and analysis method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5493281A (en) * 1992-09-23 1996-02-20 The Walt Disney Company Method and apparatus for remote synchronization of audio, lighting, animation and special effects
US6442350B1 (en) * 2000-04-04 2002-08-27 Eastman Kodak Company Camera with sound recording capability
CN1489306A (en) * 2002-10-10 2004-04-14 华为技术有限公司 Measuring device
CN1859584A (en) * 2005-11-14 2006-11-08 华为技术有限公司 Video frequency broadcast quality detecting method for medium broadcast terminal device
US20070003037A1 (en) * 2005-06-29 2007-01-04 International Business Machines Corporation Method and system for automatic generation and testing of voice applications
CN101990040A (en) * 2010-11-10 2011-03-23 深圳市共进电子有限公司 System and method for testing voice over internet protocol (VOIP) device
CN101998426A (en) * 2009-08-13 2011-03-30 上海倍亚得信息技术有限公司 Handshaking signal processing method of voice assessment algorithm in voice test system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7231190B2 (en) * 2003-07-28 2007-06-12 Motorola, Inc. Method and apparatus for terminating reception in a wireless communication system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5493281A (en) * 1992-09-23 1996-02-20 The Walt Disney Company Method and apparatus for remote synchronization of audio, lighting, animation and special effects
US6442350B1 (en) * 2000-04-04 2002-08-27 Eastman Kodak Company Camera with sound recording capability
CN1489306A (en) * 2002-10-10 2004-04-14 华为技术有限公司 Measuring device
US20070003037A1 (en) * 2005-06-29 2007-01-04 International Business Machines Corporation Method and system for automatic generation and testing of voice applications
CN1859584A (en) * 2005-11-14 2006-11-08 华为技术有限公司 Video frequency broadcast quality detecting method for medium broadcast terminal device
CN101998426A (en) * 2009-08-13 2011-03-30 上海倍亚得信息技术有限公司 Handshaking signal processing method of voice assessment algorithm in voice test system
CN101990040A (en) * 2010-11-10 2011-03-23 深圳市共进电子有限公司 System and method for testing voice over internet protocol (VOIP) device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111209718A (en) * 2018-11-05 2020-05-29 珠海格力电器股份有限公司 Verification environment platform, verification method, computer device and readable storage medium

Also Published As

Publication number Publication date
CN105517651A (en) 2016-04-20
CN105517651B (en) 2019-03-26

Similar Documents

Publication Publication Date Title
US10680839B2 (en) Data transmission using multiple channels with distinct data transmission protocols
US9781702B2 (en) Data transmission method, user equipment, base station, and system to resolve a waste of resources during an M2M process
RU2008132875A (en) METHOD AND DEVICE FOR PERFORMING THE PROCEDURE OF TEMPORARY SYNCHRONIZATION OF THE RISING COMMUNICATION LINES WHEN TRANSFERRING SERVICE IN THE MOBILE COMMUNICATION SYSTEM
EP2528327A1 (en) System and method for re-access of wireless video conference terminal
DE602004014712D1 (en) Method for radio control
US20170208645A1 (en) Method for reconstructing and recovering cluster communication system based on lte and user terminal
EP2913954A2 (en) Method and device for synchronizing time in short distance
RU2010136939A (en) METHODS AND DEVICES FOR MOBILE COMMUNICATION NETWORK
TW201301931A (en) Method, user equipment and base station for initializing secondary cell in cellular communication system
EP4274184A3 (en) Method and apparatus for transmitting and receiving data in wireless communication system
CA2717675A1 (en) Systems and methods of synchronizing ring tone cycles and delivery of dtmf tones
WO2015172310A1 (en) Audio data testing method and device
EP4271115A3 (en) Bearer configuration methods for rrc connection reestablishment, terminal, network device, computer-readable storage mediums and computer program products
CN104660639B (en) Cloud terminal upgrade processing method and device
EP3163969A1 (en) Method for terminating call, application processor and modem
CN109246664B (en) Voice test method and device
CN108923995A (en) A kind of transmission time delay confirming method and device
WO2016161985A1 (en) Signal processing method, transmitter, receiver and signal processing system
CN112105005A (en) Method and device for controlling Bluetooth equipment to play
CN104053132B (en) A kind of method and device of information number identification
WO2012028062A1 (en) Method and system for transmitting instant information during call
WO2015109524A1 (en) Method and device for transmitting synchronisation signal
CN108833708B (en) Incoming call information acquisition method
WO2018049824A1 (en) Real-time state synchronization method and device for terminal, and terminal
CN110781034B (en) Distributed supervision method and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14891811

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14891811

Country of ref document: EP

Kind code of ref document: A1