CN114286272B - Time delay test system, method and related device of true wireless earphone - Google Patents

Time delay test system, method and related device of true wireless earphone Download PDF

Info

Publication number
CN114286272B
CN114286272B CN202111553307.0A CN202111553307A CN114286272B CN 114286272 B CN114286272 B CN 114286272B CN 202111553307 A CN202111553307 A CN 202111553307A CN 114286272 B CN114286272 B CN 114286272B
Authority
CN
China
Prior art keywords
audio
audio signal
signal
block
wireless earphone
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
CN202111553307.0A
Other languages
Chinese (zh)
Other versions
CN114286272A (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.)
Huaqin Technology Co Ltd
Original Assignee
Huaqin Technology 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 Huaqin Technology Co Ltd filed Critical Huaqin Technology Co Ltd
Priority to CN202111553307.0A priority Critical patent/CN114286272B/en
Publication of CN114286272A publication Critical patent/CN114286272A/en
Application granted granted Critical
Publication of CN114286272B publication Critical patent/CN114286272B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application relates to the technical field of true wireless earphones, and discloses a time delay testing system, a time delay testing method and a time delay testing device of a true wireless earphone, which are used for solving the problems that an objective testing method for wireless sound transmission/real-time listening time delay of a TWS earphone is not available in the related technology, and development, testing and acceptance of an auxiliary function are inconvenient. In this application first audio acquisition device and terminal equipment are equidistant from sound source emitter, guarantee that the signal of sound source emitter transmission can arrive terminal equipment and first audio acquisition device simultaneously, so this can record first audio acquisition device and obtain the time of signal as terminal equipment to obtain the signal, then broadcast first audio signal and gather by second audio acquisition device based on real wireless earphone, can record real wireless earphone broadcast signal's time. Therefore, the time delay determining device can determine the time delay of the true wireless earphone based on the signal transmitted by the first audio acquisition device and the signal transmitted by the second audio acquisition device.

Description

Time delay test system, method and related device of true wireless earphone
Technical Field
The application relates to the technical field of true wireless headphones, in particular to a time delay test system, a time delay test method and a time delay test related device of a true wireless headphone.
Background
With the advent of TWS (True Wireless Stereo), true wireless headphones, TWS headphones have been provided with very rich functionality. The real-time listening function and the wireless sound transmission function of some real-wireless headphones are good auxiliary hearing functions. Each manufacturer also realizes the auxiliary function in follow-up, and the auxiliary function can help the user to talk easily in a noisy place. However, excessive delay may have a talk impairment, so the auxiliary function is more time-critical.
At present, a subjective judgment mode is mainly adopted to detect the time delay of the TWS earphone, and an objective test method for wireless sound transmission/real-time listening time delay of the TWS earphone does not exist, so that the development, test and acceptance of the auxiliary function are inconvenient.
Disclosure of Invention
The embodiment of the application provides a delay test system, a delay test method and a delay test related device for a true wireless earphone, which are used for solving the problems that an objective test method for wireless sound transmission/real-time listening delay of a TWS earphone is not yet generated in the related technology, and the development, test and acceptance of an auxiliary function are inconvenient.
In a first aspect, the present application provides a real wireless earphone's time delay test system, including sound source emission device and real wireless earphone, still include time delay determining means, first audio acquisition device, second audio acquisition device and terminal equipment, first audio acquisition device with sound source emission device's distance is the same with the distance of sound source emission device, wherein:
the sound source transmitting device is used for transmitting a first audio signal;
the first audio acquisition device is used for acquiring the first audio signal to obtain a second audio signal and transmitting the second audio signal to the time delay determination device;
the terminal equipment is used for receiving the first audio signal and transmitting the first audio signal to the true wireless earphone for playing;
the second audio acquisition device is used for acquiring a third audio signal which is played by the true wireless earphone based on the first audio signal and transmitting the third audio signal to the time delay determination device;
the delay determining device is configured to determine a delay between the second audio signal and the third audio signal as a delay of the real wireless earphone.
Optionally, the sound source transmitting device is specifically configured to generate the first audio signal carrying the specified audio block, and transmit the first audio signal;
The delay determining device is specifically configured to detect the second audio signal for the specified audio block to obtain a first audio block, and detect the third audio signal for the specified audio block to obtain a second audio block;
and obtaining the time delay of the true wireless earphone based on the transmission time difference of the first audio block and the second audio block.
Optionally, the first audio signal includes a plurality of specified audio blocks, and each of the specified audio blocks corresponds to one of the transmission time differences;
the delay determining device is specifically configured to determine an average value of the transmission time differences corresponding to the specified audio blocks, as a delay of the real wireless earphone.
Optionally, the delay determining device is specifically configured to sequentially mark the first audio block detected from the second audio signal, and sequentially mark the second audio block detected from the third audio signal;
the transmission time difference is determined for the first audio block and the second audio block having the same label.
Optionally, the specified audio block includes a specified frequency signal, and the signal amplitude of the specified audio block has a hopping feature, where the hopping feature includes: the signal amplitude jumps from a first amplitude to a second amplitude, and the difference between the first amplitude and the second amplitude is larger than a preset difference.
Optionally, the first audio acquisition device is a first simulated human ear, and the second audio acquisition device is a second simulated human ear.
Optionally, if a wifi signal exists in the system, the strength of the wifi signal is smaller than a preset strength.
In a second aspect, the present application provides a delay testing method of a true wireless earphone, which is applied to a delay determining device, and the method includes:
acquiring a second audio signal and a third audio signal, wherein the second audio signal is a first audio signal acquired by a first signal acquisition device, the third audio signal is a first audio signal acquired by a second audio acquisition device and played by the true wireless earphone, the first audio signal played by the true wireless earphone is transmitted to the true wireless earphone by a terminal device, the first audio signal is transmitted by a sound source transmitting device, and the distances between the terminal device and the first signal acquisition device and the sound source transmitting device are the same;
a time delay between the second audio signal and the third audio signal is determined as a time delay of the real wireless headset.
Optionally, the first audio signal carries an appointed audio block, and the determining the time delay between the second audio signal and the third audio signal as the time delay of the real wireless earphone specifically includes:
Detecting the second audio signal aiming at the appointed audio block to obtain a first audio block, and detecting the third audio signal aiming at the appointed audio block to obtain a second audio block;
and obtaining the time delay of the true wireless earphone based on the transmission time difference of the first audio block and the second audio block.
Optionally, if the first audio signal carries a plurality of specified audio blocks, each of the specified audio blocks corresponds to one of the transmission time differences;
the obtaining the time delay of the real wireless earphone based on the transmission time difference between the first audio block and the second audio block specifically includes:
and determining the average value of the transmission time differences corresponding to the designated audio blocks respectively, and taking the average value as the time delay of the real wireless earphone.
Optionally, the determining the transmission time difference corresponding to each of the specified audio blocks specifically includes:
sequentially marking the first audio blocks detected from the second audio signal and sequentially marking the second audio blocks detected from the third audio signal;
the transmission time difference is determined for the first audio block and the second audio block having the same label.
Optionally, the specified audio block includes a specified frequency signal, and the signal amplitude of the specified audio block has a hopping feature, where the hopping feature includes: the signal amplitude jumps from a first amplitude to a second amplitude, and the difference between the first amplitude and the second amplitude is larger than a preset difference.
In a third aspect, the present application provides a delay determining apparatus, the apparatus comprising:
the signal acquisition module is used for acquiring a second audio signal and a third audio signal, wherein the second audio signal is a first audio signal acquired by the first signal acquisition device, the third audio signal is a first audio signal acquired by the second audio acquisition device and played by a real wireless earphone, the first audio signal played by the real wireless earphone is transmitted to the real wireless earphone by a terminal device, the first audio signal is transmitted by a sound source transmitting device, and the distances between the terminal device and the first signal acquisition device and the sound source transmitting device are the same;
and the time delay determining module is used for determining the time delay between the second audio signal and the third audio signal as the time delay of the true wireless earphone.
Optionally, the first audio signal carries an appointed audio block, and the delay determining module is specifically configured to:
Detecting the second audio signal aiming at the appointed audio block to obtain a first audio block, and detecting the third audio signal aiming at the appointed audio block to obtain a second audio block;
and obtaining the time delay of the true wireless earphone based on the transmission time difference of the first audio block and the second audio block.
Optionally, if the first audio signal carries a plurality of specified audio blocks, each of the specified audio blocks corresponds to one of the transmission time differences;
the time delay determining module is specifically configured to:
and determining the average value of the transmission time differences corresponding to the designated audio blocks respectively, and taking the average value as the time delay of the real wireless earphone.
Optionally, the determining the transmission time difference corresponding to each of the specified audio blocks is performed, and the delay determining module is specifically configured to:
sequentially marking the first audio blocks detected from the second audio signal and sequentially marking the second audio blocks detected from the third audio signal;
the transmission time difference is determined for the first audio block and the second audio block having the same label.
Optionally, the specified audio block includes a specified frequency signal, and the signal amplitude of the specified audio block has a hopping feature, where the hopping feature includes: the signal amplitude jumps from a first amplitude to a second amplitude, and the difference between the first amplitude and the second amplitude is larger than a preset difference.
In a fourth aspect, the present application further provides an electronic device, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement any of the methods as provided in the second aspect of the present application.
In a fifth aspect, an embodiment of the present application also provides a computer-readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform any of the methods as provided in the second aspect of the present application.
In a sixth aspect, an embodiment of the present application provides a computer program product comprising a computer program which, when executed by a processor, implements any of the methods as provided in the second aspect of the present application.
The technical scheme provided by the embodiment of the application at least brings the following beneficial effects: in the embodiment of the application, the first audio acquisition device and the terminal equipment are equidistant from the sound source emission device, so that the signal emitted by the sound source emission device can reach the terminal equipment and the first audio acquisition device at the same time, the time that the signal is obtained by the first audio acquisition device can be recorded as the time that the signal is obtained by the terminal equipment, then the first audio signal is played based on the real wireless earphone and is acquired by the second audio acquisition device, and the time that the signal is played by the real wireless earphone can be recorded. Therefore, the time delay determining device can determine the time delay of the true wireless earphone based on the signal transmitted by the first audio acquisition device and the signal transmitted by the second audio acquisition device.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, and it is obvious that the drawings that are described below are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a delay test system of a real wireless earphone according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a specific audio block according to one embodiment of the present application;
FIG. 3 is a second schematic diagram of a designated audio block according to one embodiment of the present application;
FIG. 4 is a third diagram of a designated audio block according to one embodiment of the present application;
fig. 5 is a flowchart of a delay test method of a true wireless earphone according to an embodiment of the present application;
fig. 6 is another flow chart of a delay test method of a true wireless earphone according to an embodiment of the present application;
fig. 7 is a block diagram of a delay test apparatus of a true wireless headset according to an exemplary embodiment;
Fig. 8 is a schematic structural diagram of an electronic device illustrating a delay test method of a real wireless headset according to an exemplary embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in other sequences than those illustrated or otherwise described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
In the following, some terms in the embodiments of the present application are explained for easy understanding by those skilled in the art.
(1) The term "plurality" in the embodiments of the present application means two or more, and other adjectives are similar thereto.
(2) "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
(3) The terminal device may refer to APP (Application) of a software class or a client. The system has a visual display interface, and can interact with a user; corresponding to the server, providing local service for clients. Applications for software classes, except some applications that only run locally, are typically installed on a common client terminal, and need to run in conjunction with a server. After the development of the internet, more commonly used application programs include, for example, short video applications, email clients when receiving email, and clients for instant messaging. For this type of application program, there is a need to have a corresponding server and service program in the network to provide a corresponding service, such as a database service, a configuration parameter service, etc., so that a specific communication connection needs to be established between the client terminal and the server terminal to ensure the normal operation of the application program.
In the related art, the subjective judgment mode is mainly adopted to detect the time delay of the TWS earphone, and no objective test method for wireless sound transmission/real-time listening time delay of the TWS earphone is available, so that the development, test and acceptance of the auxiliary function are inconvenient.
In view of this, in order to objectively detect the delay of the real wireless earphone, the embodiments of the present application provide a delay test system, a method and a related device for the real wireless earphone.
Referring to fig. 1, a schematic structural diagram of a delay test system of a real wireless earphone according to an embodiment of the present application is shown. The test system comprises a time delay determining device 101, a sound source emitting device 102, a first audio collecting device 103, a second audio collecting device 104, a terminal device 105 and a true wireless earphone 106, wherein the distance between the first audio collecting device 103 and the sound source emitting device 102 is the same as the distance between the terminal device 105 and the sound source emitting device 102, and the test system comprises the following components:
the sound source transmitting device 102 is configured to transmit a first audio signal;
the first audio acquisition device 103 is configured to acquire the first audio signal to obtain a second audio signal and transmit the second audio signal to the delay determining device 101;
the terminal device 105 is configured to receive the first audio signal and transmit the first audio signal to the real wireless earphone 106 for playing;
The second audio acquisition device 104 is configured to acquire a third audio signal that is played by the real wireless earphone 106 based on the first audio signal and transmit the third audio signal to the delay determining device 101;
the delay determining means 101 is configured to determine a delay between the second audio signal and the third audio signal as a delay of the real wireless earphone 106.
As shown in fig. 1, the first audio signal transmitted by the sound source transmitting means 102 reaches the first audio collecting means 103 through the propagation path S1, and the first audio signal reaches the terminal device 105 through the propagation path S2. Since the propagation path S1 and the propagation path S2 are the same distance, the first audio signal transmitted by the sound source transmitting means 102 reaches the first audio collecting means 103 and the terminal device 105 at the same time.
After the first audio signal is collected by the first audio collection means 103, it is transmitted to the delay determination means 101. In the other path, the first audio signal is sent to the real wireless earphone 106 through bluetooth after being processed by the terminal device 105, and the first audio signal is played by the real wireless earphone 106. The first audio signal played by the real wireless earphone 106 is collected by the second audio collection device 104 and transmitted to the delay determination device 101 for delay analysis. The delay determining device 101 performs delay analysis on two paths of audio signals transmitted by the first audio collecting device 103 and the second audio collecting device 104 to obtain a transmission time difference of the two paths of audio signals, thereby obtaining a transmission delay of the real wireless earphone 106.
It should be noted that, the time delay determining device 101, the first audio capturing device 103, and the second audio capturing device 104 may be independent devices, or may be integrated on the same electronic device. The delay determining device 101 may be an electronic device, such as a computer, a server, or other devices with similar processor functions, which are suitable for the embodiments of the present application.
Therefore, in the embodiment of the application, the first audio acquisition device 103 and the terminal device 105 are equidistant from the sound source emission device 102, so that the signal emitted by the sound source emission device can reach the terminal device 105 and the first audio acquisition device 103 at the same time, so that the time when the signal is obtained by the first audio acquisition device 103 as the time when the signal is obtained by the terminal device 105 can be recorded, then the first audio signal is played based on the real wireless earphone 106 and is acquired by the second audio acquisition device 104, and the time when the signal is played by the real wireless earphone can be recorded. As such, the delay determining device 101 may determine the delay of the real wireless earphone based on the signal transmitted by the first audio acquisition device 103 and the signal transmitted by the second audio acquisition device 104.
As further shown in fig. 5, the first audio acquisition device 103 receives the first audio signal through the propagation path S1, and records the time T1 at which the first audio signal is received. Similarly, the terminal device 105 receives the first audio signal transmitted by the sound source transmitting apparatus 102 through the propagation path S2, which is received at the time T2. Since it is difficult to record the time when the terminal device 105 receives the first audio signal, the first audio acquisition device is employed to acquire and record the reception time. T1=t2 since the propagation path S1 is equal to the propagation path S2. Therefore, when the second audio capturing device 104 is used to record the time T3 when the real wireless earphone 106 plays the first audio signal, the time delay of the real wireless earphone is calculated as T3-t1=t.
In some embodiments, the first audio acquisition device 103 and the second audio acquisition device 104 are configured to record respective received audio signals. Therefore, the first audio capturing device 103 and the second audio capturing device 104 have the audio recording function, so that the transmission time of the first audio signal at the first audio capturing device 103 and the transmission time of the first audio signal at the second audio capturing device 104 can be obtained.
In some possible embodiments, the first audio capturing device 103 is a first analog human ear, and the second audio capturing device 104 is a second analog human ear, so that the hearing of the human ear can be better simulated, and the time delay of the real wireless earphone can be accurately tested.
In some possible implementations, the signal is transmitted by bluetooth between the terminal device 105 and the real wireless headset 106. Other signals may interfere with the transmission of bluetooth signals. For example, when the wifi signal is strong, the bluetooth transmission may be lost, and in the case of packet loss, the real wireless earphone may perform the packet padding operation, so that the delay of the test may slightly fluctuate. Therefore, in order to improve accuracy of the time delay test in the embodiment of the application, wifi signal strength in the test environment may be required to be smaller than preset strength.
In some possible embodiments, the time delay of the real wireless earphone can be obtained by recording the time T1 when the first audio acquisition device 103 acquires the first audio signal and recording the time T3 when the second audio acquisition device 104 acquires the first audio signal. In order to improve the accuracy of the time delay in the embodiment of the present application, a specified audio block that is convenient for detecting a time point is added to the first audio signal transmitted by the sound source transmitting apparatus 102. The delay determining means 101 may detect the specified audio block from the received two audio signals in order to accurately determine the delay of the real wireless headset.
To facilitate detection of a specified audio block, embodiments of the present application require that the specified audio block have some prominent features. For example, the designated audio block includes a designated frequency signal therein, and the signal amplitude of the designated audio block has a hopping characteristic, the hopping characteristic including: the signal amplitude jumps from a first amplitude to a second amplitude, and the difference between the first amplitude and the second amplitude is larger than a preset difference. According to the embodiment of the application, the appointed audio block can be well detected by taking amplitude jump and frequency difference as characteristic information, and the accuracy of detecting the appointed audio block is improved.
As shown in fig. 2, a schematic diagram of a designated audio block is provided. The amplitude of the designated audio block is initially small and then suddenly jumps to a larger amplitude, so that the delay determining device 101 can conveniently and accurately detect the designated audio block from the signals acquired by the first audio acquiring device 103 and the second audio acquiring device 104.
The sound source transmitting means 102 generates said first audio signal carrying the specified audio block and transmits it out. In determining the time delay, the time delay determination means 101 may be implemented as:
detecting the second audio signal acquired by the first audio acquisition device 103 aiming at the appointed audio block to obtain a first audio block, and detecting the third audio signal acquired by the second audio acquisition device 104 aiming at the appointed audio block to obtain a second audio block;
then, based on the transmission time difference between the first audio block and the second audio block, a time delay of the real wireless earphone 106 is obtained.
As shown in fig. 2, the transmission time difference between the first audio block and the second audio block may be the time point of the amplitude jump position (i.e. the position indicated by the arrow in fig. 2) in fig. 2, the time point of the jump position of the first audio block is t1, and the time point of the amplitude jump position of the second audio is t2, so that the difference between t1 and t2 is calculated to obtain the propagation time difference.
A propagation time difference calculated for a given audio block is taken as a delay for a real wireless headset, possibly producing occasional errors. Accordingly, in the embodiment of the present application, a plurality of specified audio blocks may be added to the first audio signal transmitted by the sound source transmitting apparatus 101. Any number of specified audio blocks may be added. The time differences between two adjacent designated audio blocks may be the same or different and are suitable for the embodiments of the present application.
As shown in fig. 3, a schematic diagram of a first audio signal when transmitting a plurality of designated audio blocks is shown. The rectangular area in fig. 3 identifies one of the designated audio blocks, and each designated audio block transmitted thereafter is identical. When transmitting a plurality of specified audio blocks, assuming that the delay determining means 101 receives the audio signal transmitted by the first audio acquisition means 103 through the channel 1 and the audio signal acquired by the second audio acquisition means 104 through the channel 2, the audio signals of the two channels have characteristics in time as shown in fig. 4. In fig. 4, the designated audio blocks sequentially detected by channel 1 are T11, T12, T13 … T1N; similarly, the designated audio blocks sequentially detected by channel 2 are T31, T32, T33 … T3N. The average of the transmission time differences for the same specified audio block is calculated as the delay of the real wireless headset 106. Specifically, the time difference of the amplitude jump positions of T11 and T31 is calculated, the time difference of the amplitude jump positions of T12 and T32 is calculated, the time difference of the amplitude condition positions of T1N and T3N is calculated by such a push, N transmission time differences are obtained, and then the average value of the N transmission time differences is calculated as the time delay of the real wireless earphone. Thus, the influence of accidental errors can be avoided by detecting a plurality of designated audio blocks and averaging the transmission time differences.
Of course, in some embodiments, the transmission time difference may be averaged after removing its maximum, e.g., maximum, and minimum. The median of the plurality of transmission time differences can be obtained as the time delay of the real wireless earphone, and the transmission time difference corresponding to the mode of the plurality of transmission time differences can be determined as the time delay of the real wireless earphone.
As shown in fig. 4, when there are a plurality of specified audio blocks, it is necessary to accurately determine the same specified audio block in order to calculate the transmission time difference of the same specified audio block of two channels. In the embodiment of the application, the method can be implemented as follows:
sequentially marking the first audio blocks detected from the second audio signal and sequentially marking the second audio blocks detected from the third audio signal; the transmission time difference is then determined for the first audio block and the second audio block having the same label.
The manner of marking can be marked as 1, 2, 3, and so on, and then the same specified audio block is marked in the two channels.
In order to obtain the transmission time of the designated audio block (i.e., the amplitude jump time point of the designated audio block in fig. 4), in this embodiment of the present application, the following processing may be performed on the audio signals collected by each of the first audio collection device 103 and the second audio collection device 104: firstly, carrying out Fourier transform processing on an audio signal, converting a time domain into a frequency domain into a series of arrays, judging whether amplitude jump and a designated frequency position of a designated audio block exist for all data, if so, marking the amplitude jump and the designated frequency position in the array, obtaining the corresponding time of a marking point, namely the amplitude jump time, and taking the difference of the amplitude jump time points of the same designated audio block obtained by two channels, namely a transmission time difference, and averaging all the transmission time differences to obtain a final required accurate time delay result.
For easy understanding, a flow of time delay measurement of the present test system is described, and the flow is shown in fig. 6, and includes the following steps:
in step 501, a sound source transmitting device transmits a first audio signal carrying a first audio signal.
In step 502, the first audio acquisition device acquires the first audio signal, then obtains a second audio signal, sends the second audio signal to the time delay determination device, and the terminal device receives the first audio signal and sends the first audio signal to the real wireless earphone for playing through bluetooth.
In step 503, the second audio collecting device collects the audio signal played by the real wireless earphone to obtain a third audio signal, and transmits the third audio signal to the delay determining device.
In step 504, the delay determination device receives the second audio signal collected by the first audio collection device and the third audio signal collected by the second audio collection device.
In step 505, the delay determining apparatus detects the specified audio block in the second audio signal, marks the amplitude jump position of the specified audio block as the first position, detects the amplitude jump position of the specified audio block in the third audio signal as the second position, and obtains the transmission time difference of the same specified audio block based on the time point corresponding to the first position and the time point corresponding to the second position.
In step 506, the delay determining device calculates the average value of the transmission time differences of each designated audio block to obtain the transmission delay of the real wireless earphone.
Based on the same inventive concept, the embodiment of the application also provides a delay test method of the true wireless earphone. In order to further explain the technical solutions provided in the embodiments of the present application, the following details are described with reference to the accompanying drawings and the detailed description. Although the embodiments of the present application provide the method operational steps as shown in the following embodiments or figures, more or fewer operational steps may be included in the method, either on a routine or non-inventive basis. In steps where there is logically no necessary causal relationship, the execution order of the steps is not limited to the execution order provided by the embodiments of the present application.
Referring to fig. 5, a flow chart of a delay testing method of a true wireless earphone according to an embodiment of the present application is provided, including the following steps:
in step 601, a second audio signal and a third audio signal are obtained, the second audio signal is a first audio signal collected by a first signal collecting device, the third audio signal is a first audio signal collected by a second audio collecting device and played by the true wireless earphone, the first audio signal played by the true wireless earphone is transmitted to the true wireless earphone by a terminal device, the first audio signal is transmitted by a sound source transmitting device, and the distances between the terminal device and the first signal collecting device are the same;
In step 602, a time delay between the second audio signal and the third audio signal is determined as a time delay of the real wireless headset.
In some embodiments, the first audio signal carries a specified audio block, and the determining the time delay between the second audio signal and the third audio signal as the time delay of the real wireless earphone specifically includes:
detecting the second audio signal aiming at the appointed audio block to obtain a first audio block, and detecting the third audio signal aiming at the appointed audio block to obtain a second audio block;
and obtaining the time delay of the true wireless earphone based on the transmission time difference of the first audio block and the second audio block.
In some embodiments, if the first audio signal carries a plurality of the specified audio blocks, each of the specified audio blocks corresponds to one of the transmission time differences;
the obtaining the time delay of the real wireless earphone based on the transmission time difference between the first audio block and the second audio block specifically includes:
and determining the average value of the transmission time differences corresponding to the designated audio blocks respectively, and taking the average value as the time delay of the real wireless earphone.
In some embodiments, the determining the transmission time difference corresponding to each of the specified audio blocks specifically includes:
sequentially marking the first audio blocks detected from the second audio signal and sequentially marking the second audio blocks detected from the third audio signal;
the transmission time difference is determined for the first audio block and the second audio block having the same label.
In some embodiments, the signal amplitude of the designated audio block has a hopping characteristic comprising: the signal amplitude jumps from a first amplitude to a second amplitude, and the difference between the first amplitude and the second amplitude is larger than a preset difference.
The embodiment of the application also provides a delay testing device of the true wireless earphone based on the same inventive concept. Fig. 7 is a block diagram illustrating a delay test apparatus of a true wireless earphone according to an exemplary embodiment, and referring to fig. 7, the apparatus 700 includes:
the signal acquisition module 701 is configured to acquire a second audio signal and a third audio signal, where the second audio signal is a first audio signal acquired by a first signal acquisition device, the third audio signal is a first audio signal acquired by a second audio acquisition device and played by a real wireless earphone, the first audio signal played by the real wireless earphone is transmitted to the real wireless earphone by a terminal device, the first audio signal is transmitted by a sound source transmitting device, and distances between the terminal device and the first signal acquisition device and the sound source transmitting device are the same;
A delay determining module 702, configured to determine a delay between the second audio signal and the third audio signal as a delay of the real wireless earphone.
Optionally, the first audio signal carries an appointed audio block, and the delay determining module is specifically configured to:
detecting the second audio signal aiming at the appointed audio block to obtain a first audio block, and detecting the third audio signal aiming at the appointed audio block to obtain a second audio block;
and obtaining the time delay of the true wireless earphone based on the transmission time difference of the first audio block and the second audio block.
Optionally, if the first audio signal carries a plurality of specified audio blocks, each of the specified audio blocks corresponds to one of the transmission time differences;
the time delay determining module is specifically configured to:
and determining the average value of the transmission time differences corresponding to the designated audio blocks respectively, and taking the average value as the time delay of the real wireless earphone.
Optionally, the determining the transmission time difference corresponding to each of the specified audio blocks is performed, and the delay determining module is specifically configured to:
sequentially marking the first audio blocks detected from the second audio signal and sequentially marking the second audio blocks detected from the third audio signal;
The transmission time difference is determined for the first audio block and the second audio block having the same label.
Optionally, the specified audio block includes a specified frequency signal, and the signal amplitude of the specified audio block has a hopping feature, where the hopping feature includes: the signal amplitude jumps from a first amplitude to a second amplitude, and the difference between the first amplitude and the second amplitude is larger than a preset difference.
Having described the method and apparatus for latency testing of a wireless earphone in accordance with an exemplary embodiment of the present application, an electronic device in accordance with another exemplary embodiment of the present application is next described.
Those skilled in the art will appreciate that the various aspects of the present application may be implemented as a system, method, or program product. Accordingly, aspects of the present application may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
In some possible implementations, an electronic device according to the present application may include at least one processor, and at least one memory. The memory stores program code that, when executed by the processor, causes the processor to perform the latency testing method of the real wireless headset according to various exemplary embodiments of the present application described above in this specification. For example, the processor may perform steps in a latency testing method such as a true wireless headset.
An electronic device 130 according to this embodiment of the present application is described below with reference to fig. 8. The electronic device 130 shown in fig. 8 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present application in any way.
As shown in fig. 8, the electronic device 130 is in the form of a general-purpose electronic device. Components of electronic device 130 may include, but are not limited to: the at least one processor 131, the at least one memory 132, and a bus 133 connecting the various system components, including the memory 132 and the processor 131.
Bus 133 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, and a local bus using any of a variety of bus architectures.
Memory 132 may include readable media in the form of volatile memory such as Random Access Memory (RAM) 1321 and/or cache memory 1322, and may further include Read Only Memory (ROM) 1323.
Memory 132 may also include a program/utility 1325 having a set (at least one) of program modules 1324, such program modules 1324 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The electronic device 130 may also communicate with one or more external devices 134 (e.g., keyboard, pointing device, etc.), one or more devices that enable a user to interact with the electronic device 130, and/or any device (e.g., router, modem, etc.) that enables the electronic device 130 to communicate with one or more other electronic devices. Such communication may occur through an input/output (I/O) interface 135. Also, electronic device 130 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 136. As shown, network adapter 136 communicates with other modules for electronic device 130 over bus 133. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 130, including, but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
In an exemplary embodiment, a computer readable storage medium is also provided, such as memory 132, comprising instructions executable by processor 131 to perform the method of latency testing of a real wireless headset described above. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, comprising a computer program which, when executed by the processor 131, implements any of the methods of latency testing of a real wireless headset as provided herein.
In an exemplary embodiment, aspects of a method for latency testing a real wireless headset provided herein may also be implemented in the form of a program product comprising program code for causing a computer device to perform the steps of the method for latency testing a real wireless headset according to various exemplary embodiments of the present application as described herein above, when the program product is run on a computer device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The program product of the latency testing method for a truly wireless headset of embodiments of the present application may employ a portable compact disc read-only memory (CD-ROM) and include program code and may be run on an electronic device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the consumer electronic device, partly on the consumer electronic device, as a stand-alone software package, partly on the consumer electronic device, partly on the remote electronic device, or entirely on the remote electronic device or server. In the case of remote electronic devices, the remote electronic device may be connected to the consumer electronic device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external electronic device (e.g., connected through the internet using an internet service provider).
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such a division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the elements described above may be embodied in one element in accordance with embodiments of the present application. Conversely, the features and functions of one unit described above may be further divided into a plurality of units to be embodied.
Furthermore, although the operations of the methods of the present application are depicted in the drawings in a particular order, this is not required to or suggested that these operations must be performed in this particular order or that all of the illustrated operations must be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application 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, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 image scaling device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable image scaling device, 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 image scaling device 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 image scaling 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.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (19)

1. The utility model provides a real wireless earphone's time delay test system, includes sound source emission device and real wireless earphone, its characterized in that still includes time delay determining means, first audio acquisition device, second audio acquisition device and terminal equipment, first audio acquisition device with sound source emission device's distance with terminal equipment with sound source emission device's distance is the same, wherein:
the sound source transmitting device is used for transmitting a first audio signal;
the first audio acquisition device is used for acquiring the first audio signal to obtain a second audio signal and transmitting the second audio signal to the time delay determination device;
the terminal equipment is used for receiving the first audio signal and transmitting the first audio signal to the true wireless earphone for playing;
the second audio acquisition device is used for acquiring a third audio signal which is played by the true wireless earphone based on the first audio signal and transmitting the third audio signal to the time delay determination device;
The delay determining device is configured to determine a delay between the second audio signal and the third audio signal as a delay of the real wireless earphone.
2. The system according to claim 1, wherein said sound source transmitting means is specifically adapted to generate and transmit out said first audio signal carrying a designated audio block;
the delay determining device is specifically configured to detect the second audio signal for the specified audio block to obtain a first audio block, and detect the third audio signal for the specified audio block to obtain a second audio block;
and obtaining the time delay of the true wireless earphone based on the transmission time difference of the first audio block and the second audio block.
3. The system of claim 2, wherein said first audio signal includes a plurality of said designated audio blocks, each of said designated audio blocks corresponding to a respective one of said transmission time differences;
the delay determining device is specifically configured to determine an average value of the transmission time differences corresponding to the specified audio blocks, as a delay of the real wireless earphone.
4. A system according to claim 3, characterized in that the delay determining means are in particular arranged for sequentially marking the first audio blocks detected from the second audio signal and for sequentially marking the second audio blocks detected from the third audio signal;
The transmission time difference is determined for the first audio block and the second audio block having the same label.
5. The system of any of claims 2-4, wherein the designated audio block includes a designated frequency signal therein, and wherein the signal amplitude of the designated audio block has a hopping characteristic, the hopping characteristic comprising: the signal amplitude jumps from a first amplitude to a second amplitude, and the difference between the first amplitude and the second amplitude is larger than a preset difference.
6. The system of claim 1, wherein the first audio acquisition device is a first simulated human ear and the second audio acquisition device is a second simulated human ear.
7. The system of claim 1, wherein if a wifi signal is present in the system, the strength of the wifi signal is less than a preset strength.
8. A method for testing the delay of a real wireless earphone, which is applied to a delay determining device, the method comprising:
acquiring a second audio signal and a third audio signal, wherein the second audio signal is a first audio signal acquired by a first signal acquisition device, the third audio signal is a first audio signal acquired by a second audio acquisition device and played by the true wireless earphone, the first audio signal played by the true wireless earphone is transmitted to the true wireless earphone by a terminal device, the first audio signal is transmitted by a sound source transmitting device, and the distances between the terminal device and the first signal acquisition device and the sound source transmitting device are the same;
A time delay between the second audio signal and the third audio signal is determined as a time delay of the real wireless headset.
9. The method according to claim 8, wherein the first audio signal carries a specified audio block, and wherein the determining the time delay between the second audio signal and the third audio signal as the time delay of the real wireless earphone specifically comprises:
detecting the second audio signal aiming at the appointed audio block to obtain a first audio block, and detecting the third audio signal aiming at the appointed audio block to obtain a second audio block;
and obtaining the time delay of the true wireless earphone based on the transmission time difference of the first audio block and the second audio block.
10. The method of claim 9, wherein if the first audio signal carries a plurality of the specified audio blocks, each of the specified audio blocks corresponds to one of the transmission time differences;
the obtaining the time delay of the real wireless earphone based on the transmission time difference between the first audio block and the second audio block specifically includes:
and determining the average value of the transmission time differences corresponding to the designated audio blocks respectively, and taking the average value as the time delay of the real wireless earphone.
11. The method according to claim 10, wherein said determining the transmission time difference corresponding to each of the specified audio blocks, in particular, comprises:
sequentially marking the first audio blocks detected from the second audio signal and sequentially marking the second audio blocks detected from the third audio signal;
the transmission time difference is determined for the first audio block and the second audio block having the same label.
12. The method of claim 9, wherein the designated audio block includes a designated frequency signal therein, and wherein the signal amplitude of the designated audio block has a hopping characteristic comprising: the signal amplitude jumps from a first amplitude to a second amplitude, and the difference between the first amplitude and the second amplitude is larger than a preset difference.
13. A time delay determination apparatus, the apparatus comprising:
the signal acquisition module is used for acquiring a second audio signal and a third audio signal, wherein the second audio signal is a first audio signal acquired by the first signal acquisition device, the third audio signal is a first audio signal acquired by the second audio acquisition device and played by a real wireless earphone, the first audio signal played by the real wireless earphone is transmitted to the real wireless earphone by a terminal device, the first audio signal is transmitted by a sound source transmitting device, and the distances between the terminal device and the first signal acquisition device and the sound source transmitting device are the same;
And the time delay determining module is used for determining the time delay between the second audio signal and the third audio signal as the time delay of the true wireless earphone.
14. The apparatus of claim 13, wherein the first audio signal carries a specified audio block, and wherein the delay determining module is specifically configured to:
detecting the second audio signal aiming at the appointed audio block to obtain a first audio block, and detecting the third audio signal aiming at the appointed audio block to obtain a second audio block;
and obtaining the time delay of the true wireless earphone based on the transmission time difference of the first audio block and the second audio block.
15. The apparatus of claim 14, wherein if the first audio signal carries a plurality of the specified audio blocks, each of the specified audio blocks corresponds to one of the transmission time differences;
the time delay determining module is specifically configured to:
and determining the average value of the transmission time differences corresponding to the designated audio blocks respectively, and taking the average value as the time delay of the real wireless earphone.
16. The apparatus of claim 15, wherein the determining the transmission time difference for each of the specified audio blocks is performed, and wherein the delay determining module is specifically configured to:
Sequentially marking the first audio blocks detected from the second audio signal and sequentially marking the second audio blocks detected from the third audio signal;
the transmission time difference is determined for the first audio block and the second audio block having the same label.
17. The apparatus of claim 14, wherein the designated audio block includes a designated frequency signal therein, and wherein a signal amplitude of the designated audio block has a hopping characteristic, the hopping characteristic comprising: the signal amplitude jumps from a first amplitude to a second amplitude, and the difference between the first amplitude and the second amplitude is larger than a preset difference.
18. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of any of claims 8-12.
19. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any one of claims 8-12.
CN202111553307.0A 2021-12-17 2021-12-17 Time delay test system, method and related device of true wireless earphone Active CN114286272B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111553307.0A CN114286272B (en) 2021-12-17 2021-12-17 Time delay test system, method and related device of true wireless earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111553307.0A CN114286272B (en) 2021-12-17 2021-12-17 Time delay test system, method and related device of true wireless earphone

Publications (2)

Publication Number Publication Date
CN114286272A CN114286272A (en) 2022-04-05
CN114286272B true CN114286272B (en) 2023-05-16

Family

ID=80872887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111553307.0A Active CN114286272B (en) 2021-12-17 2021-12-17 Time delay test system, method and related device of true wireless earphone

Country Status (1)

Country Link
CN (1) CN114286272B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753261A (en) * 2018-07-24 2020-02-04 腾讯科技(深圳)有限公司 Audio and video time delay testing method and device, computer equipment and storage medium
CN110931053A (en) * 2019-12-09 2020-03-27 广州酷狗计算机科技有限公司 Method, device, terminal and storage medium for detecting recording time delay and recording audio

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101365261B (en) * 2008-09-26 2013-02-06 嘉兴中科声学科技有限公司 Method for speaker parameter fast detection by analog synchronization signal and detection system
GB201604554D0 (en) * 2016-03-17 2016-05-04 Soundchip Sa Earphone test system
CN109660913B (en) * 2017-10-12 2021-01-26 中兴通讯股份有限公司 Terminal, terminal peripheral, signal transmission system and signal sending and receiving method
CN112866894B (en) * 2019-11-27 2022-08-05 北京小米移动软件有限公司 Sound field control method and device, mobile terminal and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753261A (en) * 2018-07-24 2020-02-04 腾讯科技(深圳)有限公司 Audio and video time delay testing method and device, computer equipment and storage medium
CN110931053A (en) * 2019-12-09 2020-03-27 广州酷狗计算机科技有限公司 Method, device, terminal and storage medium for detecting recording time delay and recording audio

Also Published As

Publication number Publication date
CN114286272A (en) 2022-04-05

Similar Documents

Publication Publication Date Title
US20180063656A1 (en) Devices and methods for collecting acoustic data
US20180376273A1 (en) System and method for determining audio context in augmented-reality applications
US9641405B2 (en) System and method for sequencing per-hop data in performance-monitored network environments
CN112017693B (en) Audio quality assessment method and device
JP2013148576A (en) Portable device performing position specification using modulated background sound, computer program, and method
CN113259832B (en) Microphone array detection method and device, electronic equipment and storage medium
CN115604621A (en) Earphone testing method, device, equipment and computer readable storage medium
US10565995B1 (en) Voice-based interactive network monitor
CN107077531B (en) Stethoscope data processing method and device, electronic equipment and cloud server
CN114286272B (en) Time delay test system, method and related device of true wireless earphone
US11711638B2 (en) Audience monitoring systems and related methods
US7769182B2 (en) Method and system for comparing audio signals and identifying an audio source
Curtis et al. Android acoustic ranging
CN109979487B (en) Voice signal detection method and device
CN108784733B (en) Auscultation system and method
JP2014220741A (en) Communication system, demodulation device, and modulation signal generating device
US10186279B2 (en) Device for detecting, monitoring, and cancelling ghost echoes in an audio signal
CN112741622B (en) Audiometric system, audiometric method, audiometric device, earphone and terminal equipment
CN114302278A (en) Headset wearing calibration method, electronic device and computer-readable storage medium
US11558704B2 (en) Management server, audio testing method, audio client system, and audio testing system
US20220390580A1 (en) Audio-based method for determining device distance
JP4760524B2 (en) Control device, routing verification method, and routing verification program
CN107342917B (en) Method and apparatus for detecting network device performance
CN112995882A (en) Intelligent equipment audio open loop test method
CN104468999A (en) Voice frequency matching method, device and 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