CN112039612A - Time delay measuring method, device, equipment, system and storage medium - Google Patents

Time delay measuring method, device, equipment, system and storage medium Download PDF

Info

Publication number
CN112039612A
CN112039612A CN202010904194.3A CN202010904194A CN112039612A CN 112039612 A CN112039612 A CN 112039612A CN 202010904194 A CN202010904194 A CN 202010904194A CN 112039612 A CN112039612 A CN 112039612A
Authority
CN
China
Prior art keywords
audio
time
equipment
file
audio file
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.)
Granted
Application number
CN202010904194.3A
Other languages
Chinese (zh)
Other versions
CN112039612B (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.)
Guangzhou Baiguoyuan Information Technology Co Ltd
Original Assignee
Guangzhou Baiguoyuan Information 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 Guangzhou Baiguoyuan Information Technology Co Ltd filed Critical Guangzhou Baiguoyuan Information Technology Co Ltd
Priority to CN202010904194.3A priority Critical patent/CN112039612B/en
Publication of CN112039612A publication Critical patent/CN112039612A/en
Application granted granted Critical
Publication of CN112039612B publication Critical patent/CN112039612B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details

Abstract

The embodiment of the invention discloses a time delay measuring method, a time delay measuring device, time delay measuring equipment, a time delay measuring system and a storage medium. The system time of a first audio device and a second audio device in the audio input delay measuring system is synchronous, a sound source device plays sound signals corresponding to preset audio signals, the first audio device collects the sound signals to obtain a first audio file, the second audio device collects the sound signals to obtain a second audio file, a first computer device respectively calculates a first time stamp and a second time stamp according to the creation starting time of the first audio file and the second audio file and a first time point and a second time point of the preset audio signals appearing in the corresponding audio files, and determines the audio input delay corresponding to the second audio device according to the difference value of the second time stamp and the audio input delay corresponding to the first audio device. The technical scheme provided by the embodiment of the invention can quickly and accurately measure the input delay of the audio equipment.

Description

Time delay measuring method, device, equipment, system and storage medium
Technical Field
The embodiment of the invention relates to the technical field of audio equipment, in particular to an audio input and output delay measuring method, device, equipment, system and storage medium.
Background
At present, with the rapid development of internet technology and terminal technology, terminals such as mobile phones and tablet computers have audio playing and collecting functions, and have become one of the necessary network communication tools for people. Voice over Internet Protocol (VoIP) Voice call technology based on IP realizes functions of Voice call, live audio and video broadcast, multimedia conference and the like through IP, and brings great convenience to communication of terminal users.
End-to-end delay is an important performance indicator in VoIP functionality. The end-to-end delay mainly includes input/output delay, network transmission delay, anti-jitter delay and the like of a terminal serving as audio equipment, wherein the network transmission delay and the anti-jitter delay are generally determined by self-developed programs and are generally measurable and controllable, and the input/output delay of the audio equipment is generally related to hardware configuration of the audio equipment and specific strategies developed and realized by equipment manufacturers based on an operating system, and related information is not provided by corresponding system interfaces.
At present, for an audio device, a sound loop delay test scheme in the prior art can obtain the sum of input delay and output delay of the audio device, but cannot obtain the input delay and the output delay respectively, if the input delay and the output delay of the audio device need to be obtained respectively, measurement needs to be performed on a main board of the terminal device by means of professional measurement equipment such as an oscilloscope, and auxiliary hardware equipment such as an acoustic-optical sensor and the like needs to be introduced in the measurement process, so that the test cost is high, and the test method is complex.
Disclosure of Invention
The embodiment of the invention provides a delay measurement method, a delay measurement device, delay measurement equipment, a delay measurement system and a storage medium, which can realize the purpose of quickly and accurately measuring the input delay or the output delay of audio equipment.
In a first aspect, an embodiment of the present invention provides an audio input delay measurement system, including a first audio device, a second audio device, a sound source device, and a first computer device, where a system time in the first audio device and a system time in the second audio device are in a synchronous state;
the sound source equipment is used for playing a sound signal corresponding to a preset audio signal;
the first audio equipment is used for collecting the sound signals to obtain a first audio file;
the second audio equipment is used for collecting the sound signals to obtain a second audio file;
the first computer device is configured to obtain the first audio file and the second audio file, calculate a sum of a creation start time of the first audio file and a first time point of a preset audio signal appearing in the first audio file to obtain a first time stamp, calculate a sum of a creation start time of the second audio file and a second time point of the preset audio signal appearing in the second audio file to obtain a second time stamp, calculate a difference between the second time stamp and the first time stamp, and determine an audio input delay corresponding to the second audio device according to the difference and a sum of audio input delays corresponding to the first audio device.
In a second aspect, an embodiment of the present invention provides an audio input delay measurement method, which is applied to a first computer device in an audio input delay measurement system; the audio input delay measurement system also comprises a first audio device, a second audio device and a sound source device; the system time in the first audio device and the system time in the second audio device are in a synchronous state; the sound source equipment is used for playing a sound signal corresponding to a preset audio signal; the first audio equipment is used for collecting the sound signals to obtain a first audio file; the second audio equipment is used for collecting the sound signals to obtain a second audio file;
the method comprises the following steps:
acquiring the first audio file and the second audio file;
calculating the sum of the creation starting time of the first audio file and a first time point of the preset audio signal appearing in the first audio file to obtain a first time stamp;
calculating the sum of the creation starting time of the second audio file and a second time point of the preset audio signal appearing in the second audio file to obtain a second time stamp;
and calculating a difference value between the second time stamp and the first time stamp, and determining the audio input delay corresponding to the second audio equipment according to the sum of the difference value and the audio input delay corresponding to the first audio equipment.
In a third aspect, an embodiment of the present invention provides an audio output delay measurement system, including a first audio device, a second audio device, and a first computer device, where a system time in the first audio device and a system time in the second audio device are in a synchronous state;
the second audio equipment is used for playing a sound signal corresponding to a preset audio signal and recording a third timestamp when the preset audio signal is output;
the first audio equipment is used for collecting the sound signals to obtain a third audio file;
the first computer device is configured to obtain the third audio file and the third timestamp, calculate a sum of a creation start time of the third audio file and a third time point of the preset audio signal appearing in the third audio file to obtain a fourth timestamp, calculate a difference between the fourth timestamp and the third timestamp, and determine an audio output delay corresponding to the second audio device according to the difference and an audio input delay corresponding to the first audio device.
In a fourth aspect, an embodiment of the present invention provides an audio output delay measurement method, which is applied to a first computer device in an audio output delay measurement system; the audio input delay measurement system also comprises a first audio device and a second audio device; the system time in the first audio device and the system time in the second audio device are in a synchronous state; the second audio equipment is used for playing a sound signal corresponding to a preset audio signal and recording a third timestamp when the preset audio signal is output; the first audio equipment is used for collecting the sound signals to obtain a third audio file;
the method comprises the following steps:
acquiring the third audio file and the third timestamp;
calculating the sum of the creation starting time of the third audio file and a third time point of the preset audio signal appearing in the third audio file to obtain a fourth time stamp;
and calculating a difference value between the fourth timestamp and the third timestamp, and determining the audio output delay corresponding to the second audio equipment according to the difference value and the audio input delay corresponding to the first audio equipment.
In a fifth aspect, an embodiment of the present invention provides an audio input delay measurement apparatus, configured in a first computer device of an audio input delay measurement system; the audio input delay measurement system also comprises a first audio device, a second audio device and a sound source device; the system time in the first audio device and the system time in the second audio device are in a synchronous state; the sound source equipment is used for playing a sound signal corresponding to a preset audio signal; the first audio equipment is used for collecting the sound signals to obtain a first audio file; the second audio equipment is used for collecting the sound signals to obtain a second audio file;
the device comprises:
the audio file acquisition module is used for acquiring the first audio file and the second audio file;
the first time stamp calculating module is used for calculating the sum of the creation starting time of the first audio file and a first time point of the preset audio signal appearing in the first audio file to obtain a first time stamp;
the second time stamp calculating module is used for calculating the sum of the creation starting time of the second audio file and a second time point of the preset audio signal appearing in the second audio file to obtain a second time stamp;
and the input delay calculating module is used for calculating the difference value between the second time stamp and the first time stamp and determining the audio input delay corresponding to the second audio equipment according to the sum of the difference value and the audio input delay corresponding to the first audio equipment.
In a sixth aspect, an embodiment of the present invention provides an audio output delay measurement apparatus, configured in a first computer device in an audio output delay measurement system; the audio input delay measurement system also comprises a first audio device and a second audio device; the system time in the first audio device and the system time in the second audio device are in a synchronous state; the second audio equipment is used for playing a sound signal corresponding to a preset audio signal and recording a third timestamp when the preset audio signal is output; the first audio equipment is used for collecting the sound signals to obtain a third audio file;
the device comprises:
an obtaining module, configured to obtain the third audio file and the third timestamp;
the time stamp calculating module is used for calculating the sum of the creation starting time of the third audio file and a third time point of the preset audio signal appearing in the third audio file to obtain a fourth time stamp;
and the output delay calculating module is used for calculating a difference value between the fourth timestamp and the third timestamp, and determining the audio output delay corresponding to the second audio equipment according to the difference value and the audio input delay corresponding to the first audio equipment.
In a seventh aspect, an embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the audio input delay measurement method and/or the audio output delay measurement method according to the embodiment of the present invention.
In an eighth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the audio input delay measurement method and/or the audio output delay measurement method provided by the present invention.
The audio input delay measurement scheme provided in the embodiment of the present invention includes that a measurement system includes a first audio device, a second audio device, a sound source device, and a first computer device, a system time in the first audio device and a system time in the second audio device are in a synchronous state, the sound source device plays a sound signal corresponding to a preset audio signal, the first audio device and the second audio device respectively collect the sound signal played by the sound source device and respectively obtain a first audio file and a second audio file, the first computer device determines a first time stamp according to a sum of a creation start time of the first audio file and a first time point of the preset audio signal appearing in the first audio file, determines a second time stamp according to a sum of a creation start time of the second audio file and a second time point of the preset audio signal appearing in the second audio file, the difference value between the second time stamp and the first time stamp is equivalent to the time difference that the second audio device and the first audio device application layer can obtain the audio data corresponding to the preset audio signal, and the sum of the time difference and the audio input delay corresponding to the first audio device is the audio input delay corresponding to the second audio device. By adopting the technical scheme, professional measuring equipment such as an oscilloscope and the like are not needed, measurement on a mainboard of the audio equipment is also not needed, the input delay of the audio equipment can be measured quickly and accurately, the measurement cost is saved, and the measurement efficiency is improved.
The audio output delay measurement scheme provided in the embodiment of the present invention includes that a measurement system includes a first audio device, a second audio device, and a first computer device, a system time in the first audio device and a system time in the second audio device are in a synchronous state, the second audio device plays a sound signal corresponding to a preset audio signal, and records a third time stamp when the preset audio signal is output, the first audio device collects the sound signal to obtain a third audio file, the first computer device determines a fourth time stamp according to a sum of a creation start time of the third audio file and a third time point of the preset audio signal appearing in the third audio file, a difference between the fourth time stamp and the third time stamp is equivalent to a time difference between an application layer in the second audio device and an application layer of the first audio device calling an audio output interface to output the preset audio signal and an application layer of the first audio device to obtain audio data corresponding to the preset audio signal, and subtracting the audio input delay corresponding to the first audio equipment from the time difference to obtain the audio output delay corresponding to the second audio equipment. By adopting the technical scheme, professional measuring equipment such as an oscilloscope and the like are not needed, measurement is not needed on a mainboard of the audio equipment, the output delay of the audio equipment can be measured quickly and accurately, the measurement cost is saved, and the measurement efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of a prior art scheme for measuring audio output delay using an oscilloscope;
FIG. 2 is a schematic diagram of a prior art scheme for measuring audio input delay using an oscilloscope;
fig. 3 is a schematic structural diagram of an audio input delay measurement system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a time-axis comparison according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of an audio input delay measurement method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an audio output delay measurement system according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a time-axis comparison according to an embodiment of the present invention;
fig. 8 is a schematic flowchart of an audio output delay measuring method according to an embodiment of the present invention;
fig. 9 is a block diagram of an audio input delay measuring apparatus according to an embodiment of the present invention;
fig. 10 is a block diagram of an audio output delay measuring apparatus according to an embodiment of the present invention;
fig. 11 is a block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures. In addition, the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
To facilitate an understanding of embodiments of the present invention, related concepts and related technologies are described below. The input delay of the audio device (referred to as audio input delay for short) may be understood as a delay that occurs when the audio device starts a sound collection function and audio data (equivalent to digitized sound data) of the sound is acquired from outside of the audio device to an application layer of a system. Specifically, externally generated sound passes through a sound collection component (such as a microphone) of the audio device, an analog signal corresponding to the sound is converted into a digital signal, the audio device system further needs to perform related processing on the digital signal, and finally audio data capable of being acquired by the application layer is generated. The output delay of the audio device (referred to as audio output delay) can be understood as the delay from the input of the audio data to the system interface (for example, the application layer outputs the audio data by calling the system audio output interface) to the time when the human ear can hear the sound corresponding to the audio data. Specifically, after generating audio data (for example, a waveform file in wave format, etc.), the application layer sends the audio data to a system interface, which needs to perform corresponding processing on the audio data, then converts the digital signal into an analog signal, the sound is played through a sound playing part (such as a loudspeaker, etc.), the corresponding sound can be heard or collected by the outside after the sound is played, the duration of the process is the audio output delay, which is simply the time required for the system of the audio device to acquire the audio data from the application layer and convert the audio data into a sound signal and play the sound signal, and similarly, because hardware configurations, operating systems, and the like of different audio devices may differ, audio output delays of different audio devices are different, and for some low-end configured terminals, the audio output delay is usually longer.
Fig. 1 is a schematic diagram of a prior art scheme for measuring audio output delay using an oscilloscope, as shown in fig. 1, an Input Output (IO) interface (a specific form may be a solder joint or a chip pin, etc.) on the main board of the audio device may be connected to the oscilloscope, while the program writes the audio signal to the system buffer, while sending a signal to the IO, the oscilloscope records a time stamp T0 of the occurrence of this signal, which is then output to an audio output device (such as a speaker), when the corresponding sound signal is output from the audio device through the audio output device, the sound signal is monitored through the acoustoelectric sensor, and converting the sound signal into an electric signal and transmitting the electric signal to an oscilloscope, recording a time stamp T1 of the received electric signal by the oscilloscope, and subtracting the two time stamps T1 and T0 to obtain the value of the output delay of the audio equipment.
Fig. 2 is a schematic diagram of a scheme for measuring audio input delay by using an oscilloscope in the prior art, as shown in fig. 2, an IO interface on a main board of an audio device may be connected to the oscilloscope, after an audio output device in a sound source device plays a sound signal, the sound signal is monitored by an acoustoelectric sensor, and the sound signal is converted into an electrical signal and transmitted to the oscilloscope, the oscilloscope records a timestamp T0 of receiving the electrical signal, and after the audio device collects the sound signal played by the sound source device, a program simultaneously sends a signal to the main board IO when acquiring corresponding audio data, the oscilloscope records a timestamp T1 of the signal, and the two timestamps T1 and T0 are subtracted from each other, so as to obtain an input delay value of the audio device.
According to the scheme for respectively measuring the audio output delay and the audio input delay by using the oscilloscope, the mainboard of the audio equipment to be measured needs to be powered on, and hardware equipment such as the professional oscilloscope and the acousto-optic sensor needs to be used, so that the realization cost is high, any audio equipment is not convenient to measure, the operation process is complex, and the measurement efficiency is low.
The scheme provided by the embodiment of the invention can quickly and simply solve the problem of how to measure the input delay and the output delay of the audio equipment respectively, and the measuring scheme is convenient, fast and accurate and can ensure certain measuring precision. The following is a detailed description of specific embodiments.
Fig. 3 is a schematic structural diagram of an audio input delay measurement system according to an embodiment of the present invention, and as shown in fig. 3, an audio input delay measurement system 300 includes a first audio device 310, a second audio device 320, a sound source device 330, and a first computer device 340. Wherein the system time in the first audio device 310 and the system time in the second audio device 320 are in a synchronized state; the sound source device 330 is configured to play a sound signal corresponding to a preset audio signal; the first audio device 310 is configured to collect the sound signal to obtain a first audio file; the second audio device 320 is configured to collect the sound signal to obtain a second audio file; the first computer device 340 is configured to obtain the first audio file and the second audio file, calculate a sum of a creation start time of the first audio file and a first time point of the preset audio signal appearing in the first audio file to obtain a first time stamp, calculate a sum of a creation start time of the second audio file and a second time point of the preset audio signal appearing in the second audio file to obtain a second time stamp, calculate a difference between the second time stamp and the first time stamp, and determine an audio input delay corresponding to the second audio device according to the difference and a sum of audio input delays corresponding to the first audio device.
The audio device in the embodiment of the present invention may be any device having a sound collection function, and may be internally or externally provided with a sound collection component such as a microphone, and the audio device may be, for example, a mobile device such as a mobile phone, a smart watch, a tablet computer, and a personal digital assistant, and may also be other devices such as a desktop computer. The sound source device may be any device having a sound playing function, and may be internally or externally provided with a sound playing component such as a speaker or a sound box, and may be, for example, a mobile device such as a mobile phone, a smart watch, a tablet computer, and a personal digital assistant, or may be another device such as a desktop computer or a sound box. The first computer device may be any computing-capable device, may be a stand-alone device other than the first audio device, the second audio device, and the sound source device, or may multiplex any of the first audio device, the second audio device, and the sound source device into the first computer device.
In the embodiment of the invention, the system time in the first audio equipment and the system time in the second audio equipment are in a synchronous state, the specific synchronous implementation mode is not limited, the time synchronization of the first audio equipment and the second audio equipment can ensure the accuracy of the measurement result, and the synchronization accuracy can influence the accuracy of the measurement result, so that the synchronization mode with higher accuracy can be selected to ensure the accuracy of the measurement result.
Optionally, the audio input delay measurement system may further include a second computer device; the second computer device comprises a network time synchronization service, and the first audio device and the second audio device access the network time synchronization service according to the device address of the second computer device and realize the synchronization of system time. The second computer device may be a separate device other than the first audio device, the second audio device, the sound source device, and the first computer device, or any one of the sound source device or the first computer device (in this case, the first computer device is not the first audio device, nor the second audio device) may be multiplexed as the second computer device. The second computer device may be, for example, a Linux host. The device address may be, for example, an Internet Protocol (IP) address. The first audio device and the second audio device may obtain a consistent reference time based on local area network time synchronization. Illustratively, a Network Time synchronization service may be established in the second computer device, and a specific Protocol based on the Network Time synchronization service is not limited, for example, the Network Time synchronization service may be a Network Time Protocol (NTP), and the Protocol may effectively ensure synchronization accuracy, thereby ensuring accuracy of the measurement result.
In the embodiment of the invention, the sound source equipment is used for playing the sound signal corresponding to the preset audio signal, and the preset audio signal can be set according to actual requirements, and is generally an audio signal which is easy to identify, such as 'do'. The playing action of the sound source device may be controlled by a measuring person or may be automatically controlled by a program built in the sound source device, for example, the program may trigger the playing action when receiving a playing instruction sent by another device (e.g., the first computer device).
In the embodiment of the invention, the first audio device is used for collecting the sound signal to obtain the first audio file. The first audio equipment can start a sound collection function, when sound source equipment plays a sound signal corresponding to a preset audio signal, the sound signal is collected, the collected sound signal is correspondingly converted and processed to obtain corresponding audio data, and the audio data is stored in a first audio file, wherein the time consumption of the conversion, the processing, the storage and other operations is generally determined by the system performance of the first audio equipment. The action of the first audio device for starting the sound collection function may be controlled by a measurement person, or may be automatically controlled by a program built in the first audio device, for example, the program may trigger the starting action when receiving a starting instruction sent by another device (e.g., the first computer device). After obtaining the first audio file, the first audio device may store the first audio file locally, export it by a measurement person, or automatically send it to another device, such as the first computer device. The first audio device may be regarded as a reference device in the measurement system, the audio input delay corresponding to the first audio device may be regarded as a known quantity, and the manner of acquiring the specific numerical value is not limited. For example, the first audio device may be a higher-configured device, whose corresponding audio input delay may be approximately estimated; for another example, the audio input delay corresponding to the first audio device may be measured by using the scheme of measuring the audio input delay by using an oscilloscope as described above.
In the embodiment of the present invention, the second audio device is configured to collect the sound signal to obtain a second audio file. The second audio device may start a sound collection function, when the sound source device plays a sound signal corresponding to a preset audio signal, collect the sound signal, perform corresponding conversion and processing on the collected sound signal to obtain corresponding audio data, and store the audio data in a second audio file, where the time consumption of the operations such as the conversion, the processing, and the storage is generally determined by the system performance of the second audio device itself. The action of the second audio device for starting the sound collection function may be controlled by a measurement person, or may be automatically controlled by a program built in the second audio device, for example, the program may trigger the starting action when receiving a starting instruction sent by another device (e.g., the first computer device). After obtaining the second audio file, the second audio device may store the second audio file locally, export it by a measurement person, or automatically send it to another device, such as the first computer device. The second audio device may be considered a device under test in the measurement system.
It should be noted that the sound collection functions of the first audio device and the second audio device may be simultaneously turned on, and because the system times of the first audio device and the second audio device are synchronous, the first audio device and the second audio device may not be strictly turned on simultaneously, and the sound signal corresponding to the preset audio signal played by the sound source device may be successfully collected. In addition, the closing time of the sound collection function of the two can be set according to actual requirements.
In the embodiment of the present invention, a specific manner for the first computer device to obtain the first audio file and the second audio file is not limited, and for example, the first audio file and the second audio file may be imported by a measurement person or sent by a corresponding audio device. When an audio device creates an audio file, attribute information corresponding to the audio file may include a creation start time of the file, where the creation start time may be considered as a time when an application layer can acquire audio data included in the audio file. The time point of the preset audio signal appearing in the audio file may be a time period from the time point of the start of creation of the audio file to the time point of the preset audio signal appearing, which is regarded as 0 point. Adding the time point to the creation starting time of the audio file can obtain the time stamp of the sound corresponding to the preset audio signal converted into the audio data in the audio device. For example, the first computer device may obtain corresponding creation start times from the attribute information of the first audio file and the second audio file, respectively, and identify the first time point and the second time point by performing operations such as spectral analysis on the first audio file and the second audio file, respectively. Fig. 4 is a schematic diagram comparing time axes provided by an embodiment of the present invention, and it is assumed that the time for a sound source device to broadcast a sound signal is 9 points, 0 minutes and 2 seconds, the creation start time of a first audio file is 9 points, 0 minutes and 5 seconds, the first time point is 5 seconds, the first time stamp is 9 points, 0 minutes and 5 seconds, the creation start time of a second audio file is 9 points, 0 minutes and 1 second, and the second time point is 6 seconds, and the second time stamp is 9 points, 0 minutes and 7 seconds.
For example, the difference between the second time stamp and the first time stamp is equivalent to a time difference that the second audio device and the first audio device system application layer can obtain audio data corresponding to a preset audio signal, the sum of the time difference and the audio input delay corresponding to the first audio device is the audio input delay corresponding to the second audio device, and the audio input delay corresponding to the first audio device is a known amount, so that the audio input delay corresponding to the second audio device can be calculated. As shown in fig. 4, the difference between the second time stamp and the first time stamp is 2 seconds, the audio input delay time corresponding to the first audio device is 3 seconds, and the audio input delay time corresponding to the second audio device is 2+ 3-5 seconds. It should be noted that, for the convenience of understanding, the above example is explained in units of seconds, and in practical applications, higher precision is generally required, such as in units of milliseconds.
By adopting the technical scheme, the audio input delay measuring system provided by the embodiment of the invention does not need to use professional measuring equipment such as an oscilloscope and the like, does not need to measure on a main board of the audio equipment, can quickly and accurately measure the input delay of the audio equipment, saves the measuring cost and improves the measuring efficiency. After the audio input delay is measured successfully, the method can be beneficial to testing and optimizing the competitive products with end-to-end delay and making strong support for items needing to obtain specific audio input delay, such as audio and video synchronization optimization, and the like, and can also send the audio input delay to opposite-end equipment in a VoIP function application scene so as to carry out targeted optimization on the opposite-end equipment.
In some embodiments, to improve the measurement accuracy, multiple measurements may be taken and averaged as the final measurement; or the sound source device may periodically play the sound signal corresponding to the preset audio signal, calculate the corresponding measurement result for each playing period, and calculate the average value as the final measurement result.
Fig. 5 is a flowchart of an audio input delay measurement method according to an embodiment of the present invention, which may be implemented by an audio input delay measurement apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a first computer device, and the first computer device may be included in an audio input delay measurement system according to an embodiment of the present invention. The audio input delay measurement system also comprises a first audio device, a second audio device and a sound source device; the system time in the first audio device and the system time in the second audio device are in a synchronous state; the sound source equipment is used for playing a sound signal corresponding to a preset audio signal; the first audio equipment is used for collecting the sound signals to obtain a first audio file; the second audio equipment is used for collecting the sound signals to obtain a second audio file.
As shown in fig. 5, the method includes:
step 501, a first audio file and a second audio file are obtained.
Step 502, calculating the sum of the creation starting time of the first audio file and a first time point of a preset audio signal appearing in the first audio file to obtain a first time stamp.
Step 503, calculating the sum of the creation starting time of the second audio file and a second time point of the preset audio signal appearing in the second audio file, and obtaining a second time stamp.
Step 504, calculating a difference between the second time stamp and the first time stamp, and determining an audio input delay corresponding to the second audio device according to a sum of the difference and an audio input delay corresponding to the first audio device.
The relevant details of the above steps can refer to the relevant contents in the audio input delay measurement system, and are not described herein again.
By adopting the technical scheme, the audio input delay measuring method provided by the embodiment of the invention does not need to use professional measuring equipment such as an oscilloscope and the like, does not need to measure on a main board of the audio equipment, can quickly and accurately measure the input delay of the audio equipment, saves the measuring cost and improves the measuring efficiency.
In some embodiments, the first computer device is communicatively connected to the sound source device, the first audio device, and the second audio device, respectively; before the obtaining of the first audio file and the second audio file, the method further includes: the method comprises the steps of controlling the first audio equipment and the second audio equipment to start a sound collection function and controlling the sound source equipment to play sound signals corresponding to preset audio signals, enabling the first audio equipment to collect the sound signals to obtain a first audio file, and enabling the second audio equipment to be used for collecting the sound signals to obtain a second audio file. The advantage that sets up like this lies in, can be by unified broadcast to sound source equipment of first computer equipment, the sound collection function of first audio equipment is opened and the sound collection function of second audio equipment is opened and is controlled, promotes test process's degree of automation, improves efficiency of software testing. The communication connection may be a communication connection based on technologies such as bluetooth or Wireless Fidelity (WiFi), and is not limited specifically.
In some embodiments, the obtaining the first audio file and the second audio file comprises: and acquiring a first audio file sent by the first audio equipment and acquiring a second audio file sent by the second audio equipment. The advantage of setting up like this is that first audio equipment and second audio equipment can send first computer equipment after the audio file that generates the correspondence automatically, further improves test efficiency.
In some embodiments, the system further comprises a second computer device comprising a network time synchronization service; before the controlling the first audio device and the second audio device to start a sound collection function, the method further includes: and sending the device address of the second computer device to the first audio device and the second audio device, wherein the device address is used for instructing the first audio device and the second audio device to access the network time synchronization service according to the device address of the second computer device and realize the synchronization of the system time. The advantage of setting up like this is that can utilize first computer equipment to send the equipment address of second computer equipment to first audio equipment and second audio equipment automatically, reduces the operation of artifical manual input equipment address, further improves test efficiency.
In some embodiments, one of the first audio device, the second audio device and the sound source device is multiplexed as the first computer device. The advantage of this arrangement is that the number of devices included in the system can be reduced by multiplexing between the devices, further saving test cost. It should be noted that, after a certain device is multiplexed as a first computer device, the data interaction process based on the communication connection between the device and the first computer device is changed into the data interaction process inside the device.
Fig. 6 is a schematic structural diagram of an audio output delay measurement system according to an embodiment of the present invention, and as shown in fig. 6, the audio output delay measurement system 600 includes a first audio device 610, a second audio device 620, and a first computer device 630. Wherein the system time in the first audio device 610 and the system time in the second audio device 620 are in a synchronized state; the second audio device 620 is configured to play a sound signal corresponding to a preset audio signal, and record a third timestamp when the preset audio signal is output; the first audio device 610 is configured to collect the sound signal to obtain a third audio file; the first computer device 630 is configured to obtain the third audio file and the third timestamp, calculate a sum of a creation start time of the third audio file and a third time point of the preset audio signal appearing in the third audio file to obtain a fourth timestamp, calculate a difference between the fourth timestamp and the third timestamp, and determine an audio output delay corresponding to the second audio device according to the difference and a difference of an audio input delay corresponding to the first audio device.
The first computer device in the embodiment of the present invention may be an independent device other than the first audio device and the second audio device, or may multiplex any one of the first audio device and the second audio device into the first computer device.
In the embodiment of the invention, the system time in the first audio equipment and the system time in the second audio equipment are in a synchronous state, the specific synchronous implementation mode is not limited, the time synchronization of the first audio equipment and the second audio equipment can ensure the accuracy of the measurement result, and the synchronization accuracy can influence the accuracy of the measurement result, so that the synchronization mode with higher accuracy can be selected to ensure the accuracy of the measurement result.
Optionally, the audio input delay measurement system may further include a second computer device; the second computer device comprises a network time synchronization service, and the first audio device and the second audio device access the network time synchronization service according to the device address of the second computer device and realize the synchronization of system time. The second computer device may be a stand-alone device other than the first audio device, the second audio device, and the first computer device, or the first computer device (in which case the first computer device is not the first audio device nor the second audio device) may be multiplexed into the second computer device. The second computer device may be, for example, a Linux host. The device address may be, for example, an internet protocol, IP, address. The first audio device and the second audio device may obtain a consistent reference time based on local area network time synchronization. Illustratively, a network time synchronization service may be built in the second computer device, and a specific protocol based on which the network time synchronization service is based is not limited, for example, the network time synchronization service may be an NTP, and the protocol may effectively ensure synchronization accuracy, thereby ensuring accuracy of the measurement result.
In the embodiment of the present invention, the second audio device is configured to play a sound signal corresponding to the preset audio signal, and record a third timestamp when the preset audio signal is output. Wherein, outputting the preset audio signal may be understood as the application layer outputting the preset audio signal to the system interface. The preset audio signal can be set according to actual requirements, and is generally an audio signal which is relatively easy to identify, such as "do". The playing action of the second audio device may be controlled by a measuring person, or may be automatically controlled by a program built in the second audio device, for example, the program may trigger the playing action when receiving a playing instruction sent by another device (e.g., the first computer device), and record a third timestamp when outputting the preset audio signal.
In the embodiment of the invention, the first audio equipment is used for collecting the sound signals to obtain the third audio file. The first audio device may start a sound collection function, when the second audio device plays a sound signal corresponding to a preset audio signal, collect the sound signal, perform corresponding conversion and processing on the collected sound signal to obtain corresponding audio data, and store the audio data in a third audio file, where time consumption of the conversion, processing, and storage operations is generally determined by system performance of the first audio device itself. The action of the first audio device for starting the sound collection function may be controlled by a measurement person, or may be automatically controlled by a program built in the first audio device, for example, the program may trigger the starting action when receiving a starting instruction sent by another device (e.g., the first computer device). After obtaining the third audio file, the first audio device may store the third audio file locally, export it by a measurement person, or automatically send it to another device, such as the first computer device. The first audio device may be regarded as a reference device in the measurement system, the audio input delay corresponding to the first audio device may be regarded as a known quantity, and the manner of acquiring the specific numerical value is not limited. For example, the first audio device may be a higher-configured device, whose corresponding audio input delay may be approximately estimated; for another example, the audio input delay corresponding to the first audio device may be measured by using the scheme of measuring the audio input delay by using an oscilloscope as described above.
In the embodiment of the present invention, a specific manner of acquiring the third audio file and the third timestamp by the first computer device is not limited, and for example, the third audio file and the third timestamp may be imported by a measurement person or sent by a corresponding audio device. For example, the first computer device may obtain a corresponding creation start time from the attribute information of the third audio file, and identify the third time point by performing operations such as spectrum analysis on the third audio file. Fig. 7 is a schematic diagram comparing time axes provided by an embodiment of the present invention, and it is assumed that the time when the second audio device outputs the preset audio signal is 9 points, 0 minutes and 1 second (third time stamp), the time when the sound signal is played is 9 points, 0 minutes and 3 seconds (which may be denoted as a fifth time stamp, and a difference between the fifth time stamp and the third time stamp is an audio output delay time that needs to be calculated), the time when the third audio file is created is 9 point whole, and the third time point is 6 seconds, and then the fourth time stamp is 9 points, 0 minutes and 6 seconds.
For example, a difference between the fourth time stamp and the third time stamp is equivalent to a time difference that an application layer in the second audio device calls an audio output interface to output a preset audio signal to an application layer of the first audio device, so as to obtain audio data corresponding to the preset audio signal, where a difference obtained by subtracting an audio input delay corresponding to the first audio device from the time difference is an audio output delay corresponding to the second audio device, and the audio input delay corresponding to the first audio device is a known quantity, so that the audio output delay corresponding to the second audio device can be calculated. As shown in fig. 7, the difference between the fourth time stamp and the third time stamp is 5 seconds, and assuming that the audio input delay time corresponding to the first audio device is 3 seconds, the audio output delay time corresponding to the second audio device is 2 seconds, which is equal to the difference between the fifth time stamp and the third time stamp, and is 5-3 seconds. It should be noted that, for the convenience of understanding, the above example is explained in units of seconds, and in practical applications, higher precision is generally required, such as in units of milliseconds.
By adopting the technical scheme, the audio output delay measuring system provided by the embodiment of the invention does not need to use professional measuring equipment such as an oscilloscope and the like, does not need to measure on a main board of the audio equipment, can quickly and accurately measure the output delay of the audio equipment, saves the measuring cost and improves the measuring efficiency. After the audio output delay is measured successfully, the method can be beneficial to testing and optimizing the competitive products with end-to-end delay and making powerful support for items needing to obtain specific audio output delay, such as audio and video synchronization optimization, and the like, and also fills the blank that the output delay value of the audio equipment cannot be accurately tested all the time without software and hardware systems such as an oscilloscope and the like.
In some embodiments, in order to improve the measurement accuracy, multiple measurements may be performed and an average value may be obtained as a final measurement result, or a sound signal corresponding to a preset audio signal may be periodically played through the second audio device, and a corresponding measurement result is calculated for each playing period, and an average value is obtained as a final measurement result.
Fig. 8 is a flowchart of an audio output delay measurement method according to an embodiment of the present invention, which may be implemented by an audio output delay measurement apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a first computer device, and the first computer device may be included in an audio output delay measurement system according to an embodiment of the present invention. The audio output delay measurement system also comprises a first audio device and a second audio device; the system time in the first audio device and the system time in the second audio device are in a synchronous state; the second audio equipment is used for playing a sound signal corresponding to a preset audio signal and recording a third timestamp when the preset audio signal is output; the first audio equipment is used for collecting the sound signals to obtain a third audio file.
As shown in fig. 8, the method includes:
step 801, obtain a third audio file and a third timestamp.
Step 802, calculating the sum of the creation start time of the third audio file and a third time point of the preset audio signal appearing in the third audio file to obtain a fourth time stamp.
Step 803, calculating a difference between a fourth time stamp and the third time stamp, and determining an audio output delay corresponding to the second audio device according to the difference and the audio input delay corresponding to the first audio device.
The relevant details of the above steps can refer to the relevant contents in the audio output delay measurement system, and are not described herein again.
By adopting the technical scheme, the audio output delay measuring method provided by the embodiment of the invention does not need to use professional measuring equipment such as an oscilloscope and the like, does not need to measure on a main board of the audio equipment, can quickly and accurately measure the output delay of the audio equipment, saves the measuring cost and improves the measuring efficiency.
In some embodiments, the first computer device is communicatively coupled to the first audio device and the second audio device, respectively; before the obtaining of the third audio file and the third timestamp, further comprising: and controlling the first audio equipment to start a sound collection function, controlling the second audio equipment to play a sound signal corresponding to the preset audio signal, and recording and outputting a third timestamp when the audio signal is preset, so that the first audio equipment collects the sound signal to obtain a third audio file. The advantage that sets up like this lies in, can be by the unified broadcast of first audio equipment of first computer equipment and the sound collection function of second audio equipment open and control, promotes test process's degree of automation, improves efficiency of software testing.
In some embodiments, said obtaining said third audio file and said third timestamp comprises: and acquiring a third audio file sent by the first audio equipment and acquiring a third timestamp sent by the second audio equipment. The advantage of this arrangement is that the first audio device can automatically send the third audio file to the first computer device, and the second audio device can automatically send the third timestamp to the first computer device, further improving the testing efficiency.
In some embodiments, the system further comprises a second computer device comprising a network time synchronization service; before the controlling the first audio device to start the sound collection function, the method further includes: and sending the device address of the second computer device to the first audio device and the second audio device, wherein the device address is used for instructing the first audio device and the second audio device to access the network time synchronization service according to the device address of the second computer device and realize the synchronization of the system time. The advantage of setting up like this is that can utilize first computer equipment to send the equipment address of second computer equipment to first audio equipment and second audio equipment automatically, reduces the operation of artifical manual input equipment address, further improves test efficiency.
In some embodiments, the first audio device or the second audio device is multiplexed into the first computer device. The advantage of this arrangement is that the number of devices included in the system can be reduced by multiplexing between the devices, further saving test cost. It should be noted that, after a certain device is multiplexed as a first computer device, the data interaction process based on the communication connection between the device and the first computer device is changed into the data interaction process inside the device.
Fig. 9 is a block diagram of an audio input delay measuring apparatus according to an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a computer device, and may perform the audio input delay measurement by executing an audio input delay measuring method. Specifically, the device is configured on a first computer device in the audio input delay measurement system; the audio input delay measurement system also comprises a first audio device, a second audio device and a sound source device; the system time in the first audio device and the system time in the second audio device are in a synchronous state; the sound source equipment is used for playing a sound signal corresponding to a preset audio signal; the first audio equipment is used for collecting the sound signals to obtain a first audio file; the second audio equipment is used for collecting the sound signals to obtain a second audio file.
As shown in fig. 9, the apparatus includes:
an audio file obtaining module 901, configured to obtain the first audio file and the second audio file;
a first timestamp calculation module 902, configured to calculate a sum of a creation start time of the first audio file and a first time point of the preset audio signal appearing in the first audio file, so as to obtain a first timestamp;
a second timestamp calculation module 903, configured to calculate a sum of a creation start time of the second audio file and a second time point of the preset audio signal appearing in the second audio file, to obtain a second timestamp;
an input delay calculating module 904, configured to calculate a difference between the second timestamp and the first timestamp, and determine an audio input delay corresponding to the second audio device according to a sum of the difference and an audio input delay corresponding to the first audio device.
By adopting the technical scheme, the audio input delay measuring device provided by the embodiment of the invention does not need professional measuring equipment such as an oscilloscope and the like, does not need to measure on a main board of the audio equipment, can quickly and accurately measure the input delay of the audio equipment, saves the measuring cost and improves the measuring efficiency.
Fig. 10 is a block diagram of an audio output delay measuring apparatus according to an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a computer device, and may perform the audio output delay measurement by executing an audio output delay measuring method. Specifically, a first computer device configured in the audio output delay measurement system; the audio input delay measurement system also comprises a first audio device and a second audio device; the system time in the first audio device and the system time in the second audio device are in a synchronous state; the second audio equipment is used for playing a sound signal corresponding to a preset audio signal and recording a third timestamp when the preset audio signal is output; the first audio equipment is used for collecting the sound signals to obtain a third audio file.
As shown in fig. 10, the apparatus includes:
an obtaining module 1001, configured to obtain the third audio file and the third timestamp;
a timestamp calculation module 1002, configured to calculate a sum of a creation start time of the third audio file and a third time point of the preset audio signal appearing in the third audio file, so as to obtain a fourth timestamp;
an output delay calculation module 1003, configured to calculate a difference between the fourth timestamp and the third timestamp, and determine an audio output delay corresponding to the second audio device according to the difference between the difference and an audio input delay corresponding to the first audio device.
By adopting the technical scheme, the audio output delay measuring device provided by the embodiment of the invention does not need to use professional measuring equipment such as an oscilloscope and the like, does not need to measure on a main board of the audio equipment, can quickly and accurately measure the output delay of the audio equipment, saves the measuring cost and improves the measuring efficiency.
The embodiment of the invention provides computer equipment, wherein the audio input delay measuring device and/or the audio output delay measuring device provided by the embodiment of the invention can be integrated in the computer equipment. Fig. 11 is a block diagram of a computer device according to an embodiment of the present invention. The computer device 1100 comprises a memory 1101, a processor 1102 and a computer program stored on the memory 1101 and executable on the processor 1102, the processor 1102 implementing the audio input delay measurement method and/or the audio output delay measurement method provided by the embodiments of the present invention when executing the computer program.
Embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform the audio input delay measurement method and/or the audio output delay measurement method provided by embodiments of the present invention.
The delay measuring device, the apparatus and the storage medium provided in the above embodiments may execute the delay measuring method provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to the delay measurement method provided in any embodiment of the present invention.
Note that the above is only a preferred embodiment of the present invention. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in more detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the claims.

Claims (13)

1. An audio input delay measurement system, comprising a first audio device, a second audio device, a sound source device and a first computer device, wherein a system time in the first audio device and a system time in the second audio device are in a synchronous state;
the sound source equipment is used for playing a sound signal corresponding to a preset audio signal;
the first audio equipment is used for collecting the sound signals to obtain a first audio file;
the second audio equipment is used for collecting the sound signals to obtain a second audio file;
the first computer device is configured to obtain the first audio file and the second audio file, calculate a sum of a creation start time of the first audio file and a first time point of a preset audio signal appearing in the first audio file to obtain a first time stamp, calculate a sum of a creation start time of the second audio file and a second time point of the preset audio signal appearing in the second audio file to obtain a second time stamp, calculate a difference between the second time stamp and the first time stamp, and determine an audio input delay corresponding to the second audio device according to the difference and a sum of audio input delays corresponding to the first audio device.
2. The system of claim 1, further comprising a second computer device;
the second computer device comprises a network time synchronization service, and the first audio device and the second audio device access the network time synchronization service according to the device address of the second computer device and realize the synchronization of system time.
3. The audio input delay measuring method is characterized by being applied to first computer equipment in an audio input delay measuring system; the audio input delay measurement system also comprises a first audio device, a second audio device and a sound source device; the system time in the first audio device and the system time in the second audio device are in a synchronous state; the sound source equipment is used for playing a sound signal corresponding to a preset audio signal; the first audio equipment is used for collecting the sound signals to obtain a first audio file; the second audio equipment is used for collecting the sound signals to obtain a second audio file;
the method comprises the following steps:
acquiring the first audio file and the second audio file;
calculating the sum of the creation starting time of the first audio file and a first time point of the preset audio signal appearing in the first audio file to obtain a first time stamp;
calculating the sum of the creation starting time of the second audio file and a second time point of the preset audio signal appearing in the second audio file to obtain a second time stamp;
and calculating a difference value between the second time stamp and the first time stamp, and determining the audio input delay corresponding to the second audio equipment according to the sum of the difference value and the audio input delay corresponding to the first audio equipment.
4. The method of claim 3, wherein the first computer device is communicatively coupled to the sound source device, the first audio device, and the second audio device, respectively;
before the obtaining of the first audio file and the second audio file, the method further includes:
the method comprises the steps of controlling the first audio equipment and the second audio equipment to start a sound collection function and controlling the sound source equipment to play sound signals corresponding to preset audio signals, enabling the first audio equipment to collect the sound signals to obtain a first audio file, and enabling the second audio equipment to be used for collecting the sound signals to obtain a second audio file.
5. The method of claim 4, further comprising a second computer device, wherein the second computer device comprises a network time synchronization service;
before the controlling the first audio device and the second audio device to start a sound collection function, the method further includes:
and sending the device address of the second computer device to the first audio device and the second audio device, wherein the device address is used for instructing the first audio device and the second audio device to access the network time synchronization service according to the device address of the second computer device and realize the synchronization of the system time.
6. An audio output delay measurement system, comprising a first audio device, a second audio device and a first computer device, wherein a system time in the first audio device and a system time in the second audio device are in a synchronous state;
the second audio equipment is used for playing a sound signal corresponding to a preset audio signal and recording a third timestamp when the preset audio signal is output;
the first audio equipment is used for collecting the sound signals to obtain a third audio file;
the first computer device is configured to obtain the third audio file and the third timestamp, calculate a sum of a creation start time of the third audio file and a third time point of the preset audio signal appearing in the third audio file to obtain a fourth timestamp, calculate a difference between the fourth timestamp and the third timestamp, and determine an audio output delay corresponding to the second audio device according to the difference and an audio input delay corresponding to the first audio device.
7. The audio output delay measuring method is characterized by being applied to first computer equipment in an audio output delay measuring system; the audio input delay measurement system also comprises a first audio device and a second audio device; the system time in the first audio device and the system time in the second audio device are in a synchronous state; the second audio equipment is used for playing a sound signal corresponding to a preset audio signal and recording a third timestamp when the preset audio signal is output; the first audio equipment is used for collecting the sound signals to obtain a third audio file;
the method comprises the following steps:
acquiring the third audio file and the third timestamp;
calculating the sum of the creation starting time of the third audio file and a third time point of the preset audio signal appearing in the third audio file to obtain a fourth time stamp;
and calculating a difference value between the fourth timestamp and the third timestamp, and determining the audio output delay corresponding to the second audio equipment according to the difference value and the audio input delay corresponding to the first audio equipment.
8. The method of claim 7, wherein the first computer device is communicatively coupled to the first audio device and the second audio device, respectively;
before the obtaining of the third audio file and the third timestamp, further comprising:
and controlling the first audio equipment to start a sound collection function, controlling the second audio equipment to play a sound signal corresponding to the preset audio signal, and recording and outputting a third timestamp when the audio signal is preset, so that the first audio equipment collects the sound signal to obtain a third audio file.
9. The method of claim 8, further comprising a second computer device, wherein the second computer device comprises a network time synchronization service;
before the controlling the first audio device to start the sound collection function, the method further includes:
and sending the device address of the second computer device to the first audio device and the second audio device, wherein the device address is used for instructing the first audio device and the second audio device to access the network time synchronization service according to the device address of the second computer device and realize the synchronization of the system time.
10. An audio input delay measuring apparatus, characterized by a first computer device disposed in an audio input delay measuring system; the audio input delay measurement system also comprises a first audio device, a second audio device and a sound source device; the system time in the first audio device and the system time in the second audio device are in a synchronous state; the sound source equipment is used for playing a sound signal corresponding to a preset audio signal; the first audio equipment is used for collecting the sound signals to obtain a first audio file; the second audio equipment is used for collecting the sound signals to obtain a second audio file;
the device comprises:
the audio file acquisition module is used for acquiring the first audio file and the second audio file;
the first time stamp calculating module is used for calculating the sum of the creation starting time of the first audio file and a first time point of the preset audio signal appearing in the first audio file to obtain a first time stamp;
the second time stamp calculating module is used for calculating the sum of the creation starting time of the second audio file and a second time point of the preset audio signal appearing in the second audio file to obtain a second time stamp;
and the input delay calculating module is used for calculating the difference value between the second time stamp and the first time stamp and determining the audio input delay corresponding to the second audio equipment according to the sum of the difference value and the audio input delay corresponding to the first audio equipment.
11. An audio output delay measuring apparatus, characterized by a first computer device disposed in an audio output delay measuring system; the audio input delay measurement system also comprises a first audio device and a second audio device; the system time in the first audio device and the system time in the second audio device are in a synchronous state; the second audio equipment is used for playing a sound signal corresponding to a preset audio signal and recording a third timestamp when the preset audio signal is output; the first audio equipment is used for collecting the sound signals to obtain a third audio file;
the device comprises:
an obtaining module, configured to obtain the third audio file and the third timestamp;
the time stamp calculating module is used for calculating the sum of the creation starting time of the third audio file and a third time point of the preset audio signal appearing in the third audio file to obtain a fourth time stamp;
and the output delay calculating module is used for calculating a difference value between the fourth timestamp and the third timestamp, and determining the audio output delay corresponding to the second audio equipment according to the difference value and the audio input delay corresponding to the first audio equipment.
12. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 3-5 and 7-9 when executing the computer program.
13. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 3-5 and 7-9.
CN202010904194.3A 2020-09-01 2020-09-01 Time delay measuring method, device, equipment, system and storage medium Active CN112039612B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010904194.3A CN112039612B (en) 2020-09-01 2020-09-01 Time delay measuring method, device, equipment, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010904194.3A CN112039612B (en) 2020-09-01 2020-09-01 Time delay measuring method, device, equipment, system and storage medium

Publications (2)

Publication Number Publication Date
CN112039612A true CN112039612A (en) 2020-12-04
CN112039612B CN112039612B (en) 2023-02-17

Family

ID=73590860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010904194.3A Active CN112039612B (en) 2020-09-01 2020-09-01 Time delay measuring method, device, equipment, system and storage medium

Country Status (1)

Country Link
CN (1) CN112039612B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114630256A (en) * 2020-12-14 2022-06-14 深圳市万普拉斯科技有限公司 Ear return delay test method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080240370A1 (en) * 2007-04-02 2008-10-02 Microsoft Corporation Testing acoustic echo cancellation and interference in VoIP telephones
WO2010012186A1 (en) * 2008-07-28 2010-02-04 深圳华为通信技术有限公司 A speaker array device and a drive method thereof
CN102056026A (en) * 2009-11-06 2011-05-11 中国移动通信集团设计院有限公司 Audio/video synchronization detection method and system, and voice detection method and system
CN104657106A (en) * 2015-03-23 2015-05-27 联想(北京)有限公司 Information processing method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080240370A1 (en) * 2007-04-02 2008-10-02 Microsoft Corporation Testing acoustic echo cancellation and interference in VoIP telephones
WO2010012186A1 (en) * 2008-07-28 2010-02-04 深圳华为通信技术有限公司 A speaker array device and a drive method thereof
CN102056026A (en) * 2009-11-06 2011-05-11 中国移动通信集团设计院有限公司 Audio/video synchronization detection method and system, and voice detection method and system
CN104657106A (en) * 2015-03-23 2015-05-27 联想(北京)有限公司 Information processing method and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114630256A (en) * 2020-12-14 2022-06-14 深圳市万普拉斯科技有限公司 Ear return delay test method and system

Also Published As

Publication number Publication date
CN112039612B (en) 2023-02-17

Similar Documents

Publication Publication Date Title
CN112040225B (en) Playing delay difference measuring method, device, equipment, system and storage medium
CN110430104B (en) Audio transmission delay testing method and device, storage medium and electronic equipment
KR20080077085A (en) Determination of audio device quality
CN110390925B (en) Method for synchronizing voice and accompaniment, terminal, Bluetooth device and storage medium
CN112017687B (en) Voice processing method, device and medium of bone conduction equipment
CN106504770A (en) The test system and method for testing of speech quality, test device
CN108702568B (en) Method and equipment for testing time delay of audio loop
CN112039612B (en) Time delay measuring method, device, equipment, system and storage medium
CN112116919A (en) Echo cancellation method and device and electronic equipment
CN113409808B (en) Echo cancellation time delay estimation method and echo cancellation method
US11102596B2 (en) In-sync digital waveform comparison to determine pass/fail results of a device under test (DUT)
CN109246664A (en) A kind of tone testing method and device
CN111933168A (en) Soft loop dynamic echo cancellation method based on binder and mobile terminal
CN112188259A (en) Method and device for audio and video synchronization test and correction and electronic equipment
CN110660376A (en) Audio processing method, device and storage medium
US20230370788A1 (en) Method, apparatus and system for testing a bone conduction communication device
CN112995882B (en) Intelligent equipment audio open loop test method
CN205812273U (en) The machine shake test fixture of a kind of audio output apparatus and system
US20230101944A1 (en) Multi-channel audio system, multi-channel audio device, program, and multi-channel audio playback method
CN110753261B (en) Audio and video time delay testing method and device, computer equipment and storage medium
CN115022442B (en) Audio fault time positioning method, electronic equipment and storage medium
CN103780612A (en) Method for processing data and electronic devices
WO2024083192A1 (en) Audio processing method and apparatus, device, storage medium, and program product
CN113220517B (en) Operation time-consuming test system, signal processing equipment and signal processing method
EP4203470A1 (en) System and method for evaluation of audio-video desynchronization

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