CN110609769B - Method and related device for measuring signal acquisition delay - Google Patents
Method and related device for measuring signal acquisition delay Download PDFInfo
- Publication number
- CN110609769B CN110609769B CN201910892851.4A CN201910892851A CN110609769B CN 110609769 B CN110609769 B CN 110609769B CN 201910892851 A CN201910892851 A CN 201910892851A CN 110609769 B CN110609769 B CN 110609769B
- Authority
- CN
- China
- Prior art keywords
- time
- sound source
- equipment
- measured
- audio frame
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000012360 testing method Methods 0.000 claims abstract description 86
- 238000004364 calculation method Methods 0.000 claims description 6
- 238000012935 Averaging Methods 0.000 claims description 5
- 238000005259 measurement Methods 0.000 abstract description 11
- 230000008569 process Effects 0.000 description 15
- 230000033764 rhythmic process Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000001020 rhythmical effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/162—Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Electrophonic Musical Instruments (AREA)
- Reverberation, Karaoke And Other Acoustics (AREA)
Abstract
The application provides a method for measuring signal acquisition delay, which comprises the following steps: playing and simultaneously collecting a test sound source at least once through equipment to be measured; when the device to be measured plays and simultaneously collects the test sound source each time, acquiring the playing time and the collected time of the same audio frame of the sound source to be measured; respectively calculating the time difference value between the playing time and the acquired time of the same audio frame acquired each time; and determining the acquisition delay time corresponding to the equipment type of the equipment to be measured according to the time difference value. Therefore, the number acquisition delay time of the equipment is automatically measured, manual testing is not needed, the measurement efficiency is improved, and the accuracy of the measurement result can be effectively ensured. The application also provides a related device corresponding to the method.
Description
Technical Field
The present invention relates to the field of signal acquisition technologies, and in particular, to a measurement of signal acquisition delay and a related device.
Background
With the popularization of various music applications, more and more people begin to sing songs through electronic devices such as mobile phones. When singing, a user usually plays the accompanying or original singing of a song through a client on an electronic device such as a mobile phone, and then sings the song according to the lyrics and rhythm of the song. The electronic equipment collects singing voice of a user through the microphone, and transmits the singing voice to the loudspeaker for playing after the singing voice is processed by hardware.
However, since the electronic device takes time to process and transmit the voice, a delay occurs in the playback of the user's singing voice. In the prior art, a professional performs listening detection to obtain a delay time of an electronic device, and configures the delay time into a server, so that a client on the electronic device eliminates the delay according to the delay time.
However, since hardware configurations of electronic devices of different kinds or different models are different, delay times generated are also different. Therefore, different types and models of electronic devices need to be detected separately, which requires a large amount of labor cost, and the accuracy of the delay time obtained by manual detection cannot be effectively ensured.
Disclosure of Invention
Based on the above-mentioned deficiencies of the prior art, the present invention provides a measurement of signal acquisition delay and a related device, so as to solve the problems of low efficiency and inaccurate result in the manner of measuring the acquisition delay time of the electronic device in the prior art.
In order to achieve the purpose, the invention provides the following technical scheme:
the first aspect of the present invention provides a method for measuring signal acquisition delay, including:
playing and simultaneously collecting a test sound source at least once through equipment to be measured;
when the device to be measured plays and simultaneously collects the test sound source each time, acquiring the playing time and the collected time of the same audio frame of the sound source to be measured;
respectively calculating the time difference value between the playing time and the acquired time of the same audio frame acquired each time;
and determining the acquisition delay time corresponding to the equipment type of the equipment to be measured according to the time difference value.
Optionally, in the above method, the acquiring a playing time and an acquired time of a same audio frame of the sound source to be tested when the device to be tested plays and simultaneously acquires the test sound source each time includes:
when the device to be measured plays each time and simultaneously collects the test sound source, acquiring the playing time point of each first pulse signal in the played test sound source and the collection time point of each second pulse signal in the collected test sound source;
and the signal values of the first pulse signal and the second pulse signal corresponding to the same audio frame of the test sound source are the same.
Optionally, in the foregoing method, the separately calculating a time difference between a playing time and a captured time of a same audio frame acquired each time includes:
and respectively calculating the difference value between the playing time point of the first pulse signal and the acquisition time point of the second pulse signal corresponding to each acquired audio frame to obtain the time difference value between the playing time point and the acquired time point of each audio frame.
Optionally, in the foregoing method, the determining, according to the time difference, an acquisition delay time corresponding to a device type to which the device to be measured belongs includes:
averaging the time difference value of the playing time point and the acquired time point of each audio frame obtained by calculation to obtain average delay time;
and taking the average delay time as the acquisition delay time corresponding to the equipment type of the equipment to be measured.
Optionally, in the above method, after determining, according to the time difference, an acquisition delay time corresponding to a device type to which the device to be measured belongs, the method further includes:
uploading the acquisition delay time corresponding to the equipment type to a server; and the acquisition delay time corresponding to the equipment type is used for acquiring the acquisition delay time from the server when the client on the equipment corresponding to the equipment type acquires the singing voice of the user, and adjusting the progress of the played song according to the delay time.
A second aspect of the present invention provides a signal acquisition delay measuring apparatus, including:
the playing unit is used for at least playing and simultaneously collecting the primary test sound source through the equipment to be measured;
the acquisition unit is used for acquiring the playing time and the acquired time of the same audio frame of the sound source to be tested when the device to be tested plays and simultaneously acquires the test sound source each time;
the calculating unit is used for respectively calculating the time difference value between the playing time and the acquired time of the same audio frame acquired each time;
and the determining unit is used for determining the acquisition delay time corresponding to the equipment type of the equipment to be measured according to the time difference value.
Optionally, in the above apparatus, the obtaining unit includes:
the acquisition subunit is configured to acquire, when the device to be measured plays and simultaneously acquires the test sound source each time, a playing time point of each first pulse signal in the played test sound source and an acquisition time point of each second pulse signal in the acquired test sound source;
and the signal values of the first pulse signal and the second pulse signal corresponding to the same audio frame of the test sound source are the same.
Optionally, in the above apparatus, the calculating unit includes:
and the calculating subunit is configured to calculate a difference between the playing time point of the first pulse signal and the acquiring time point of the second pulse signal corresponding to each acquired audio frame, respectively, to obtain a time difference between the playing time point and the acquired time point of each audio frame.
Optionally, in the above apparatus, the determining unit includes:
and the determining subunit is used for averaging the time difference values of the playing time point and the acquired time point of each audio frame obtained by calculation to obtain an average delay time, and taking the average delay time as the acquisition delay time corresponding to the equipment type to which the equipment to be measured belongs.
Optionally, in the above apparatus, further comprising:
the uploading unit is used for uploading the acquisition delay time corresponding to the equipment type to a server; and the acquisition delay time corresponding to the equipment type is used for acquiring the acquisition delay time from the server when the client on the equipment corresponding to the equipment type acquires the singing voice of the user, and adjusting the progress of the played song according to the delay time.
A third aspect of the invention provides an electronic device comprising a processor and a memory; wherein:
the memory is used for storing computer instructions;
the processor is configured to execute the computer instructions stored in the memory, and in particular, to perform the method for measuring signal acquisition delay according to any one of the above methods.
A fourth aspect of the present invention provides an electronic device for storing a program for implementing the method of measuring a signal acquisition delay as defined in any one of the above.
The invention provides a method and a related device for measuring signal acquisition delay, which play a test sound source at least once through equipment to be measured, and acquire the test sound source played by the equipment to be measured while playing the test sound source. When the device to be measured plays and simultaneously collects the test sound source each time, the playing time and the collected time of the same audio frame of the sound source to be measured by the device to be measured are obtained, and then the collecting delay time corresponding to the device type to which the device to be measured belongs is determined based on the time difference value of the playing time and the collected time of the same audio frame. Therefore, the number acquisition delay time of the equipment is automatically measured, manual testing is not needed, the measurement efficiency is improved, and the accuracy of the measurement result can be effectively ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for measuring signal acquisition delay according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a manner of obtaining the playing time and the captured time of the same audio frame according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a signal acquisition delay measuring apparatus according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Since many electronic devices usually play the processed sound source after a series of processing is performed after the sound source is collected, there is a certain collection delay time for the electronic devices to collect the sound source. Although the acquisition delay time is not long, the user experience is still affected to some extent. Particularly, when a user sings a song through an electronic device, the influence of the acquisition delay time is more obvious.
Specifically, when a user sings by using a client on an electronic device, the user usually plays a music short piece MV of a song through the electronic device, and then the user sings the lyrics and the rhythm of the song played in the MV by using a microphone of the electronic device. At this time, the electronic device will collect the singing voice of the user, and during the collection process, the singing voice of the user needs to be transmitted and processed by hardware, such as noise reduction, tone change, etc., and then the processed singing voice of the user is played. Due to the existence of the acquisition delay time, the MV played by the electronic device is not synchronized with the singing voice of the user. Since the rhythm of the song is strong, the user may perceive the delay of his own singing voice, thereby affecting the user's experience. Therefore, it is important to obtain the acquisition delay time of the electronic device so as to calibrate the electronic device by using the acquisition delay time.
Therefore, an embodiment of the present invention provides a method for measuring a signal acquisition delay, as shown in fig. 1, including:
s101, playing and simultaneously collecting the test sound source at least once through the equipment to be measured.
Alternatively, the test sound source may be a relatively simple sound source made by itself, or a relatively simple sound source selected from existing sound sources. For example, a tone-only sound source with a very short rhythm is made as the test sound source. The simple sound source is used as a test sound source, so that the playing time and the collected time of the same audio frame can be acquired accurately from the later stage, and the measurement efficiency is improved.
Specifically, the test sound source can be played once through the equipment to be measured at certain intervals, and the equipment to be measured acquires the test sound source played by the equipment to be measured while playing. Of course, the test sound source can be played and simultaneously collected once only through the device to be collected, and the multiple playing is performed to avoid the contingency, so that the obtained structure is more accurate.
S102, when the device to be measured plays and simultaneously collects the test sound source, the playing time and the collected time of the same audio frame of the sound source to be measured are obtained.
It should be noted that the playing time of the audio frame is the time point when the device to be acquired plays the audio frame; the time for acquiring the audio frame is the time point at which the audio frame is received and processed by the device to be acquired after being played by the device to be acquired, that is, the time point at which the audio frame is acquired by the device to be measured. The delay time of the device to be measured for acquiring the audio can be reflected by the playing time and the acquired time of the same audio frame.
Optionally, when the device to be measured plays each time and simultaneously acquires the test sound source, the playing time of each audio frame of the sound source to be measured during the playing process and the acquired time of each audio frame of the sound source to be measured may be acquired. Or only the playing time and the collecting time of a specific audio frame or audio frames in the test sound source can be obtained when the device to be measured plays and collects the test sound source at the same time.
It should be noted that, since the device to be acquired plays and acquires the same test sound source, the pulse signal of the test sound source played by the device to be acquired and the pulse signal of the acquired test sound source are completely identical, that is, the signal values of the pulse signals of the same audio frame in the played test sound source and the acquired test sound source are equal. And because the test sound source is relatively simple, optionally, the playing time and the collected time of the same audio frame can be obtained by obtaining the playing time point and the collecting time point of the pulse signal with the same signal value of the pulse signal. Of course, the playing time and the captured time of the same audio frame may be obtained in other manners.
Optionally, in another embodiment of the present invention, another specific implementation manner of step S102 includes:
when the equipment to be measured plays and collects the test sound source at the same time, the playing time point of each first pulse signal in the played test sound source and the collecting time point of each second pulse signal in the collected test sound source are obtained.
And the signal values of the first pulse signal and the second pulse signal corresponding to the same audio frame of the test sound source are the same.
It should be noted that, in the embodiment of the present invention, the first pulse signal refers to a pulse signal of a test tone source played by the device to be measured. The second pulse signal refers to the pulse signal of the test tone source collected by the device to be measured. Because the same test sound source is played and collected, each first pulse signal corresponds to one second pulse signal correspondingly, and the first pulse signal and the second pulse signal which have corresponding relations are pulse signals of the same audio frame.
It should be noted that only one first pulse signal may be present in the pulse signal of the played test sound source, or a plurality of first pulse signals may be present, that is, only one peak or one valley may be present in the pulse signal of the test sound source, or a plurality of signal peaks and signal valleys may be present therein. Accordingly, only one second pulse signal or a plurality of second pulse signals can be collected from the pulse signals of the test sound source.
Optionally, in order to quickly acquire the playing time and the captured time of the same audio frame, the first pulse signal and the second pulse signal may be pulse signals whose signal values are corresponding to signal peak values or signal valley values. That is, the playing time point of the pulse signal corresponding to the signal peak value and/or the signal valley value in the played pulse signal of the test sound source is obtained, and the acquisition time point of the pulse signal corresponding to the signal peak value and/or the signal estimated value in the acquired pulse signal of the test sound source is obtained. Because the signal value is the pulse signal corresponding to the signal peak value and/or the signal valley value, the determination is easier, and therefore the efficiency of obtaining the playing time and the collected time of the same audio frame can be accelerated.
Specifically, when the equipment to be measured plays and simultaneously collects the test sound source each time, the pulse signal and the corresponding playing time of the whole test sound source played by the equipment to be measured can be recorded in real time through the pulse signal collecting equipment, so that the pulse signal and the corresponding complete playing time of the whole test sound source played by the equipment to be measured are obtained. Meanwhile, the pulse signal recording equipment acquires the pulse signal of the whole test sound source acquired by the equipment to be measured and the corresponding acquisition time in real time, so that the whole pulse signal of the test sound source acquired by the equipment to be measured at this time and the corresponding complete acquisition time are obtained.
Then, as shown in fig. 2, the whole pulse signal and the corresponding whole playing time of the played test sound source, and the whole pulse signal and the corresponding whole collecting time of the collected test sound source are displayed in the same two-dimensional coordinate system. Wherein, the abscissa is time, and the ordinate is the signal value of the pulse signal. And finally, determining a time point corresponding to the signal peak value from two pulse signal images in the two-dimensional coordinate to obtain a playing time point of the first pulse signal and a collecting time point of the second pulse signal, thereby ensuring that the playing time and the collected time of the same audio frame are obtained.
And S103, respectively calculating the time difference between the playing time and the acquired time of the same audio frame acquired each time.
Specifically, the playing time is subtracted from the captured time of each audio frame to obtain a time difference between the playing time and the captured time of each audio frame. And the time difference value corresponding to one audio frame is the acquisition delay time for acquiring the audio frame by the equipment to be measured in the acquisition process.
Optionally, when the playing time of the same audio frame of the sound source to be tested, the time point of the first pulse signal and the time point of the second pulse signal, which are acquired at the same time and correspond to the same audio frame, are obtained in step S102, in another embodiment of the present invention, a specific implementation manner of step S103 includes:
and respectively calculating the difference value between the playing time point of the first pulse signal and the acquisition time point of the second pulse signal corresponding to each acquired audio frame to obtain the time difference value between the playing time point and the acquired time point of each audio frame.
Specifically, the time point of the first pulse signal is subtracted from the time point of the second pulse signal corresponding to each acquired audio frame, so as to obtain a time difference between the playing time point and the acquired time point of each audio frame.
And S104, determining the acquisition delay time corresponding to the equipment type of the equipment to be measured according to the time difference value.
Optionally, according to the plurality of calculated time difference values, an average of the plurality of time difference values is used as the acquisition delay time of the device to be measured. Of course, the mode of the plurality of time difference values may be used as the acquisition delay time of the device to be measured, or the acquisition delay time of the device to be measured may be determined based on the obtained plurality of time difference values in another manner.
Since the same hardware and other components of the same equipment type are the same, the acquisition delay time of the equipment to be measured can be determined as the acquisition delay time corresponding to the equipment type to which the equipment to be measured belongs. Wherein, the same device type can be specific to the model of the device type.
Optionally, in another embodiment of the present invention, an implementation manner of step S104 includes:
and averaging the time difference value of the playing time point and the acquired time point of each audio frame to obtain average delay time, and taking the average delay time as the acquisition delay time corresponding to the equipment type to which the equipment to be measured belongs.
That is to say, in the embodiment of the present invention, when the device to be measured plays each time and simultaneously acquires the test sound source, the time difference between the playing time point and the acquired time point of all the same audio frame, which is obtained by calculation, is used as the data set, the average value of the data set is obtained, and the obtained average delay time is used as the acquisition delay time corresponding to the device type to which the device to be measured belongs.
Optionally, in another embodiment of the present invention, after the step S104 is executed, the method further includes:
and uploading the acquisition delay time corresponding to the equipment type to a server.
The acquisition delay time corresponding to the equipment type is used for acquiring the acquisition delay time from the server when the client on the equipment corresponding to the equipment type acquires the singing voice of the user, and the progress of the played song is adjusted according to the acquisition delay time.
That is to say, the method provided by the embodiment of the present invention may determine the acquisition delay times corresponding to multiple device types, and upload the acquisition delay time corresponding to each device type to the server, so as to provide the corresponding client to perform delay calibration based on the acquisition delay times of the device types when the user sings a song.
Specifically, when the user installs the client, the client obtains the acquisition delay time corresponding to the device type of the device where the client is located from the server, and performs caching. Or, when the user starts the client or uses the singing function of the client each time, the client obtains the acquisition delay time corresponding to the device type of the device where the client is located from the server, so that when the acquisition delay time in the service is updated, the client can obtain the new acquisition delay time in time. Of course, the timing of acquiring the delay time may be acquired when the user performs other operations.
Optionally, the client performs delay calibration by acquiring the delay time, which may specifically be: the client side obtains the equipment type of the equipment, and initiates an obtaining request to the server based on the equipment type. And after the server receives the acquisition request sent by the client, the acquisition delay time of the type of the equipment where the client is located is returned to the client based on the acquisition request. When the client starts to collect singing voice of the user, the client adjusts the progress of the currently played MV according to the received collection delay time, namely, the playing progress of the MV is delayed for playing, wherein the delay time is the collection delay time for obtaining all the delay time. Thereby synchronizing the tempo of the song in the played MV of the equipment shelter with the singing voice of the playing user. It should be noted that, since the acquisition delay time is usually very short and the video is not as rhythmic as the audio, the user does not feel the change of the progress of the lyrics and the animation in the MV after adjusting the progress of the MV.
In the method and the device for measuring signal acquisition delay provided by the embodiment of the invention, the test sound source is played at least once through the equipment to be measured, and the test sound source played by the equipment to be measured is acquired through the equipment to be measured while the test sound source is played. When the device to be measured plays and simultaneously collects the test sound source each time, the playing time and the collected time of the same audio frame of the sound source to be measured by the device to be measured are obtained, and then the collecting delay time corresponding to the device type to which the device to be measured belongs is determined based on the time difference value of the playing time and the collected time of the same audio frame. Therefore, the number acquisition delay time of the equipment is automatically measured, manual testing is not needed, the measurement efficiency is improved, and the accuracy of the measurement result can be effectively ensured. And finally, uploading the acquisition delay time to a server for the client to perform delay calibration on the equipment at the time of acquisition.
Another embodiment of the present invention provides a signal acquisition delay measuring apparatus, as shown in fig. 3, including:
the playing unit 301 is configured to play and simultaneously acquire the test sound source at least once through the device to be measured.
It should be noted that the specific working process of the playing unit 301 may correspondingly participate in step S101 in the foregoing method embodiment, and details are not described here.
An obtaining unit 302, configured to obtain the playing time and the collected time of the same audio frame of the sound source to be tested when the device to be tested plays and collects the test sound source at the same time each time.
It should be noted that the specific working process of the obtaining unit 302 may correspondingly participate in step S102 in the foregoing method embodiment, and is not described herein again.
The calculating unit 303 is configured to calculate a time difference between the playing time and the captured time of the same audio frame obtained each time.
It should be noted that the specific working process of the calculating unit 303 may correspondingly participate in step S103 in the above method embodiment, which is not described herein again.
A determining unit 304, configured to determine, according to the time difference, an acquisition delay time corresponding to a device type to which the device to be measured belongs.
It should be noted that the specific working process of the determining unit 304 may correspondingly participate in step S104 in the above method embodiment, and is not described herein again.
Optionally, in another embodiment of the present invention, the obtaining unit includes:
and the acquisition subunit is used for acquiring the playing time point of each first pulse signal in the played test sound source and the acquisition time point of each second pulse signal in the acquired test sound source when the equipment to be measured plays and simultaneously acquires the test sound source.
And the signal values of the first pulse signal and the second pulse signal corresponding to the same audio frame of the test sound source are the same.
Alternatively, the signal values of the first pulse signal and the second pulse signal may be signal peak values or signal valley values.
It should be noted that the specific working process of the acquiring sub-unit may correspondingly participate in a specific implementation of step S102 in the foregoing method embodiment, and details are not described here.
Optionally, in another embodiment of the present invention, the computing unit includes:
and the calculating subunit is configured to calculate a difference between the playing time point of the first pulse signal and the acquiring time point of the second pulse signal corresponding to each acquired audio frame, respectively, to obtain a time difference between the playing time point and the acquired time point of each audio frame.
It should be noted that the specific working process of the calculating subunit may correspondingly participate in a specific implementation of step S103 in the foregoing method embodiment, and details are not described here again.
Optionally, in another embodiment of the present invention, the determining unit includes:
and the determining subunit is used for averaging the time difference values of the playing time point and the acquired time point of each audio frame obtained by calculation to obtain an average delay time, and taking the average delay time as the acquisition delay time corresponding to the equipment type to which the equipment to be measured belongs.
It should be noted that the specific working process of the determining subunit may accordingly participate in a specific implementation of step S104 in the foregoing method embodiment, and details are not described here again.
Optionally, in another embodiment of the present invention, the signal acquisition delay measuring apparatus further includes;
and the uploading unit is used for uploading the acquisition delay time corresponding to the equipment type to a server.
And the acquisition delay time corresponding to the equipment type is used for acquiring the acquisition delay time from the server when the client on the equipment corresponding to the equipment type acquires the singing voice of the user, and adjusting the progress of the played song according to the delay time.
It should be noted that the specific working process of the playing unit 301 may correspondingly participate in the further steps included after the step S104 is executed in the above method embodiment, and details are not described here.
According to the signal acquisition delay measuring device provided by the invention, the playing unit plays the test sound source at least once through the equipment to be measured, and the played test sound source is acquired through the equipment to be measured while the test sound source is played. When the equipment to be measured plays and simultaneously collects the test sound source, the acquisition unit acquires the playing time and the collected time of the equipment to be measured for the same audio frame of the sound source to be measured, and then the determination unit determines the collection delay time corresponding to the equipment type to which the equipment to be measured belongs based on the time difference value of the playing time and the collected time of the same audio frame calculated by the calculation unit. Therefore, the number acquisition delay time of the equipment is automatically measured, manual testing is not needed, the measurement efficiency is improved, and the accuracy of the measurement result can be effectively ensured.
Another embodiment of the present invention provides an electronic device, as shown in fig. 4, including a processor 401 and a memory 402.
Wherein: the memory 402 is used to store computer instructions.
The processor is configured to execute the computer instructions stored in the memory, and in particular, to perform the method for measuring signal acquisition delay in any one of the above method embodiments.
Another embodiment of the present invention provides a storage medium for storing a program, which when executed, is used to implement the method for measuring signal acquisition delay of any one of the above method embodiments.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (8)
1. A method for measuring signal acquisition delay, comprising:
playing and simultaneously collecting a test sound source at least once through equipment to be measured;
when the equipment to be measured plays and simultaneously collects a test sound source each time, acquiring the playing time and the collected time of the same audio frame of the sound source to be measured; the acquisition time of the audio frame is a time point when the audio frame is received and processed by the equipment to be measured;
respectively calculating the time difference value between the playing time and the acquired time of the same audio frame acquired each time;
according to the time difference value, determining acquisition delay time corresponding to the equipment type of the equipment to be measured;
uploading the acquisition delay time corresponding to the equipment type to a server; and the acquisition delay time corresponding to the equipment type is used for acquiring the acquisition delay time from the server when the client on the equipment corresponding to the equipment type acquires the singing voice of the user, and adjusting the progress of the played song according to the delay time.
2. The method of claim 1, wherein the obtaining the playing time and the captured time of the same audio frame of the sound source to be tested each time the device to be tested plays and simultaneously captures the test sound source comprises:
when the device to be measured plays each time and simultaneously collects the test sound source, acquiring the playing time point of each first pulse signal in the played test sound source and the collection time point of each second pulse signal in the collected test sound source;
and the signal values of the first pulse signal and the second pulse signal corresponding to the same audio frame of the test sound source are the same.
3. The method according to claim 2, wherein the separately calculating the time difference between the playing time and the captured time of the same audio frame acquired each time comprises:
and respectively calculating the difference value between the playing time point of the first pulse signal and the acquisition time point of the second pulse signal corresponding to each acquired audio frame to obtain the time difference value between the playing time point and the acquired time point of each audio frame.
4. The method according to claim 1, wherein the determining, according to the time difference value, an acquisition delay time corresponding to a device type to which the device to be measured belongs includes:
averaging the time difference value of the playing time point and the acquired time point of each audio frame obtained by calculation to obtain average delay time;
and taking the average delay time as the acquisition delay time corresponding to the equipment type of the equipment to be measured.
5. A signal acquisition delay measuring device, comprising:
the playing unit is used for at least playing and simultaneously collecting the primary test sound source through the equipment to be measured;
the acquisition unit is used for acquiring the playing time and the acquired time of the same audio frame of the sound source to be tested when the device to be tested plays and simultaneously acquires the sound source to be tested each time; the acquisition time of the audio frame is a time point when the audio frame is received and processed by the equipment to be measured;
the calculating unit is used for respectively calculating the time difference value between the playing time and the acquired time of the same audio frame acquired each time;
the determining unit is used for determining acquisition delay time corresponding to the equipment type of the equipment to be measured according to the time difference value;
the uploading unit is used for uploading the acquisition delay time corresponding to the equipment type to a server; and the acquisition delay time corresponding to the equipment type is used for acquiring the acquisition delay time from the server when the client on the equipment corresponding to the equipment type acquires the singing voice of the user, and adjusting the progress of the played song according to the delay time.
6. The apparatus of claim 5, wherein the obtaining unit comprises:
the acquisition subunit is configured to acquire, when the device to be measured plays and simultaneously acquires the test sound source each time, a playing time point of each first pulse signal in the played test sound source and an acquisition time point of each second pulse signal in the acquired test sound source;
and the signal values of the first pulse signal and the second pulse signal corresponding to the same audio frame of the test sound source are the same.
7. An electronic device comprising a processor and a memory; wherein:
the memory is used for storing computer instructions;
the processor is configured to execute the computer instructions stored in the memory, and in particular, to perform the method of measuring signal acquisition delay according to any one of claims 1 to 4.
8. A storage medium storing a program which, when executed, implements the method of measuring signal acquisition delay of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910892851.4A CN110609769B (en) | 2019-09-20 | 2019-09-20 | Method and related device for measuring signal acquisition delay |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910892851.4A CN110609769B (en) | 2019-09-20 | 2019-09-20 | Method and related device for measuring signal acquisition delay |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110609769A CN110609769A (en) | 2019-12-24 |
CN110609769B true CN110609769B (en) | 2021-06-11 |
Family
ID=68891662
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910892851.4A Active CN110609769B (en) | 2019-09-20 | 2019-09-20 | Method and related device for measuring signal acquisition delay |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110609769B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114390587A (en) * | 2021-12-21 | 2022-04-22 | Oppo广东移动通信有限公司 | Time delay setting method and device, storage medium and wireless equipment |
CN115942066B (en) * | 2022-12-06 | 2024-09-03 | 腾讯音乐娱乐科技(深圳)有限公司 | Audio live broadcast method, electronic equipment and computer readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104125022A (en) * | 2013-11-27 | 2014-10-29 | 腾讯科技(成都)有限公司 | Audio transmission delay measuring method and system |
CN109493883A (en) * | 2018-11-23 | 2019-03-19 | 小捷科技(深圳)有限公司 | A kind of audio time-delay calculation method and apparatus of smart machine and its smart machine |
CN109688528A (en) * | 2018-12-27 | 2019-04-26 | 安克创新科技股份有限公司 | The test method of audio frequency apparatus and signal delay, system and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5790771A (en) * | 1996-05-01 | 1998-08-04 | Hewlett-Packard Company | Apparatus and method for configuring a reconfigurable electronic system having defective resources |
CN106251890B (en) * | 2016-08-31 | 2019-01-22 | 广州酷狗计算机科技有限公司 | A kind of methods, devices and systems of recording song audio |
CN108989884A (en) * | 2018-08-01 | 2018-12-11 | 浙江齐聚科技有限公司 | Live video delay performance test method, device, equipment and storage medium |
-
2019
- 2019-09-20 CN CN201910892851.4A patent/CN110609769B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104125022A (en) * | 2013-11-27 | 2014-10-29 | 腾讯科技(成都)有限公司 | Audio transmission delay measuring method and system |
CN109493883A (en) * | 2018-11-23 | 2019-03-19 | 小捷科技(深圳)有限公司 | A kind of audio time-delay calculation method and apparatus of smart machine and its smart machine |
CN109688528A (en) * | 2018-12-27 | 2019-04-26 | 安克创新科技股份有限公司 | The test method of audio frequency apparatus and signal delay, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110609769A (en) | 2019-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109275084B (en) | Method, device, system, equipment and storage medium for testing microphone array | |
CN113259832B (en) | Microphone array detection method and device, electronic equipment and storage medium | |
CN111182435B (en) | Testing method and device of voice equipment | |
CN110265064A (en) | Audio sonic boom detection method, device and storage medium | |
CN109658935B (en) | Method and system for generating multi-channel noisy speech | |
CN113470685B (en) | Training method and device for voice enhancement model and voice enhancement method and device | |
CN112017693B (en) | Audio quality assessment method and device | |
CN110609769B (en) | Method and related device for measuring signal acquisition delay | |
CN102740216A (en) | Mixing apparatus | |
CN109040911B (en) | Intelligent sound box and determination method for target placement position thereof | |
CN113157246A (en) | Volume adjusting method and device, electronic equipment and storage medium | |
WO2004084176A1 (en) | Sound evaluating method and its system | |
CN110503982B (en) | Voice quality detection method and related device | |
CN110858950A (en) | Sound equipment testing method, sound equipment testing equipment and sound equipment | |
CN113257247B (en) | Test method and system | |
KR20140041266A (en) | System and method for providing dance and song studying service using mobile content | |
JP2017181783A (en) | Sound field control system, analysis device, acoustic device, method for controlling sound field control system, method for controlling analysis device, method for controlling acoustic device, program and recording medium | |
CN109121068A (en) | Sound effect control method and device and electronic equipment | |
JP2016119635A (en) | Time difference calculator and terminal device | |
CN115512718A (en) | Voice quality evaluation method, device and system for stock voice file | |
CN108235426B (en) | Method, device and system for detecting time delay and local time difference between terminals | |
CN1988567A (en) | System, device and method for detecting terminal audio signal strength | |
JP2015043014A (en) | Fundamental tone visualization device, fundamental tone visualization method, and program | |
CN112449278B (en) | Method, device and equipment for automatically calibrating delay output sound and storage medium | |
CN117198320A (en) | Method for measuring amplitude of sound signal, related device and readable storage medium |
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 | ||
EE01 | Entry into force of recordation of patent licensing contract | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20191224 Assignee: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd. Assignor: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd. Contract record no.: X2021440000031 Denomination of invention: Measurement method and related device of signal acquisition delay License type: Common License Record date: 20210125 |
|
GR01 | Patent grant | ||
GR01 | Patent grant |