CN118233810A - Delay adjusting method and device and electronic equipment - Google Patents

Delay adjusting method and device and electronic equipment Download PDF

Info

Publication number
CN118233810A
CN118233810A CN202211643851.9A CN202211643851A CN118233810A CN 118233810 A CN118233810 A CN 118233810A CN 202211643851 A CN202211643851 A CN 202211643851A CN 118233810 A CN118233810 A CN 118233810A
Authority
CN
China
Prior art keywords
audio output
output device
delay
recording
audio
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.)
Pending
Application number
CN202211643851.9A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202211643851.9A priority Critical patent/CN118233810A/en
Publication of CN118233810A publication Critical patent/CN118233810A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stereophonic System (AREA)

Abstract

The disclosure provides a delay adjustment method and device, and an electronic device, wherein the method is applied to a terminal device, and comprises the following steps: acquiring a target audio signal; outputting the target audio signal to play the target audio signal through a first audio output device of the terminal device and a second audio output device externally connected with the terminal device respectively; acquiring delay time length, wherein the delay time length is determined according to time difference between the target audio signals respectively played by the first audio output equipment and the second audio output equipment; and performing delay adjustment according to the delay time length. The method can automatically adjust the delay of the equipment according to the audio signal actually played by the equipment.

Description

Delay adjusting method and device and electronic equipment
Technical Field
The disclosure relates to the technical field of computer communication, and in particular relates to a delay adjustment method and device and electronic equipment.
Background
The audio output devices used in the terminal devices such as televisions, computers, mobile phones and projectors at present include external power amplifiers and sound boxes connected in a wired manner, sound boxes connected in a wireless manner and the like besides the speakers of the terminal. Compared with the loudspeaker of the terminal, the external device connected by the wired or wireless mode can introduce some delay due to the existence of communication transmission distance, data format conversion and other reasons. The existence of the delay can influence synchronous play between devices, so that the sound and the picture are not synchronous, or the sound and the sound are not synchronous, and further user experience is influenced.
Disclosure of Invention
In view of the above, the present disclosure provides a delay adjustment method and apparatus, and an electronic device, which can effectively and automatically adjust the delay of a device according to an audio signal actually played by the device.
According to a first aspect of an embodiment of the present disclosure, there is provided a delay adjustment method, which is applied to a terminal device, the method including:
Acquiring a target audio signal;
Outputting the target audio signal to play the target audio signal through a first audio output device of the terminal device and a second audio output device externally connected with the terminal device respectively;
Acquiring delay time length, wherein the delay time length is determined according to time difference between the target audio signals respectively played by the first audio output equipment and the second audio output equipment;
and performing delay adjustment according to the delay time length.
In combination with any one of the embodiments provided in the present disclosure, the obtaining a delay time length includes:
Acquiring a recording containing the target audio signals played by the first audio output device and the second audio output device at the same time;
uploading the recorded sound to a voice processing device, so that the voice processing device determines a time delay duration according to a time difference between the target audio signals respectively played by the first audio output device and the second audio output device;
And receiving the delay time issued by the voice processing device.
In combination with any one of the embodiments provided in the present disclosure, the obtaining a delay time length includes:
Acquiring a recording containing the target audio signals played by the first audio output device and the second audio output device at the same time;
And locally identifying the time difference between the target audio signals respectively played by the first audio output device and the second audio output device in the recording, and determining the time delay duration.
In combination with any one of the embodiments provided in the present disclosure, the obtaining a recording containing the target audio signal played by the first audio output device and the second audio output device simultaneously includes:
recording the target audio signal by the first audio output device and the second audio output device through a first recording device of the terminal device, and obtaining the recording;
Or receiving a sound recording sent by a second sound recording device outside the terminal equipment, wherein the sound recording is obtained by simultaneously playing the target audio signal by the first audio output equipment and the second audio output equipment recorded by the second sound recording device.
In combination with any one of the embodiments provided in the present disclosure, the number of second audio output devices externally connected to the terminal device is a plurality of second audio output devices;
the determining a delay time according to a time difference between the target audio signals respectively played by the first audio output device and the second audio output device includes:
Determining delay time lengths corresponding to a plurality of second audio output devices respectively according to a plurality of time differences between the target audio signals respectively played by the first audio output device and the plurality of second audio output devices;
the time delay adjustment according to the time delay time length comprises the following steps:
And according to the delay time lengths, carrying out delay adjustment on the terminal equipment and the second audio equipment.
According to a second aspect of embodiments of the present disclosure, there is provided a delay adjustment method, the method being applied to a speech processing device, the method comprising:
acquiring a recording of a target audio signal which is simultaneously played by a first audio output device and a second audio output device, wherein the first audio output device is positioned at a terminal device, and the second audio output device is externally connected with the terminal device;
Determining a time delay time length according to the time difference between the target audio signals respectively played by the first audio output device and the second audio output device contained in the recording;
And sending the delay time length to the terminal equipment so that the terminal equipment carries out delay adjustment according to the delay time length.
According to a third aspect of the embodiments of the present disclosure, there is provided a delay adjustment apparatus, the apparatus being applied to a terminal device, the apparatus including:
the signal acquisition module is used for: acquiring a target audio signal;
the signal output module is used for: outputting the target audio signal to play the target audio signal through a first audio output device of the terminal device and a second audio output device externally connected with the terminal device respectively;
A duration acquisition module, configured to: acquiring delay time length, wherein the delay time length is determined according to time difference between the target audio signals respectively played by the first audio output equipment and the second audio output equipment;
a duration adjusting module, configured to: and performing delay adjustment according to the delay time length.
According to a fourth aspect of embodiments of the present disclosure, there is provided a delay adjustment device, the device being applied to a speech processing device, the device comprising:
The recording acquisition module is used for: acquiring a recording of a target audio signal which is simultaneously played by a first audio output device and a second audio output device, wherein the first audio output device is positioned at a terminal device, and the second audio output device is externally connected with the terminal device;
The delay calculation module is used for: determining a time delay time length according to the time difference between the target audio signals respectively played by the first audio output device and the second audio output device contained in the recording;
a duration sending module, configured to: and sending the delay time length to the terminal equipment so that the terminal equipment carries out delay adjustment according to the delay time length.
According to a fifth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the delay adjustment method of any of the above first or second aspects.
According to a sixth aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
A processor;
a memory for storing processor-executable instructions;
Wherein the processor is configured to execute the executable instructions to implement the steps of the delay adjustment method of either the first or second aspects above.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
The target audio signal is played simultaneously through the audio output equipment of the terminal equipment and the external audio output equipment, so that the time delay duration between the equipment can be determined through the time difference between the target audio signals when the target audio signal is played, the audio output delay of the equipment is dynamically acquired, the delay setting is automatically completed, the actual delay of each equipment can be adjusted, the method is widely applicable to various different equipment, and the inconvenience caused by manual adjustment is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart of a delay adjustment method according to an exemplary embodiment of the present disclosure;
FIG. 2 is a flowchart of yet another delay adjustment method illustrated by the present disclosure according to an exemplary embodiment;
FIG. 3 is a schematic diagram of the interaction of a terminal device and a speech apparatus according to an exemplary embodiment of the present disclosure;
FIG. 4 is a flowchart of another delay adjustment method according to an exemplary embodiment of the present disclosure;
FIG. 5 is a block diagram of a delay adjustment device according to an exemplary embodiment of the present disclosure;
FIG. 6 is a block diagram of another delay adjustment device according to an exemplary embodiment of the present disclosure;
Fig. 7 is a schematic diagram of a structure of an electronic device according to an exemplary embodiment of the disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination" depending on the context.
The audio output devices currently used in terminal devices such as televisions, computers, mobile phones and projectors, besides their own speakers, also include external power amplifiers and speakers connected in a wired manner by ARC (Audio Return Channel, audio feedback channel) or SPDIF (Sony/PHILIPS DIGITAL INTERFACE, an audio digital interface), and audio output devices such as speakers connected in a wireless manner by BT (BlueTooth device) or Wi-Fi. Compared with the loudspeaker of the terminal equipment, the external audio output equipment can introduce some delay due to the existence of communication transmission distance, data format conversion and other reasons, so that the time difference exists between the sound played by the external audio output equipment and the sound or picture played by the terminal equipment. The existence of the delay can influence the audio/video synchronization or the synchronous playing of multiple devices, so that the user experience is influenced, and a method for adjusting the audio output delay is needed.
The current methods for adjusting audio output delay mainly include two methods:
One method is to add a fixed delay on the terminal device side, for example, for the case of externally connecting a bluetooth speaker to the terminal device, the delay of most bluetooth speakers can be counted, for example, 200ms, and the delay is used as the fixed delay to be set when the terminal device plays.
However, since the fixed delay is only a statistical probability result, the delay for many devices is not accurate. If the actual delay of a certain bluetooth speaker is only 150ms, an error of 50ms will occur with 200ms as the fixed delay. When the bluetooth speaker outputs audio simultaneously with the terminal device, 50ms may already cause a distinction in the sense of hearing by the human ear. The delay of the Bluetooth sound box is also changed and is not a fixed value under the influence of environmental factors such as distance, position and the like and the factors of the Bluetooth sound box, so that the audio output delay cannot be well regulated by adopting the method of adding the fixed delay.
Another method is to provide the user with an interface that can set the delay, and the user can manually set the delay.
However, the accuracy of manual setting is not high and, after setting, resetting is required if the device is replaced. In addition, even if the same audio output device is affected by a plurality of factors such as distance, position and the like, and device self factors, the delay of the device is a floating range and is not a fixed value every time, and the method cannot well adjust the audio output delay.
Based on the above, the present disclosure provides at least one delay adjustment method to effectively automatically adjust the delay of the device according to the audio signal actually played by the device.
As shown in fig. 1, fig. 1 is a flowchart of a delay adjustment method according to at least one embodiment of the present disclosure, where the method may be used in a terminal device, and includes the following steps:
In step 102, a target audio signal is acquired.
The target audio signal is a signal representing a mechanical wave, and may be a regular signal, i.e., a continuously varying analog signal such as music and voice, or an irregular signal such as noise. The target audio signal may be any type of signal, such as a speech segment containing fixed text, a sound with some fixed frequency, or a specified music segment. In some examples, signals other than periodically repeated audio signals may be selected to avoid the inability to determine the delay time in subsequent calculations due to just a few cycles between the target audio signals with time differences.
In this step, the target audio signal may be a target audio signal stored in advance in the reading terminal device, or may be a target audio signal sent by the receiving user or the server, which is not limited in the specific manner of obtaining the target audio signal in this embodiment.
In step 104, the target audio signal is output, so that the target audio signal is played through the first audio output device of the terminal device and the second audio output device externally connected with the terminal device.
The target audio signal needs to be output through the audio interface of the terminal equipment so as to be output to the first audio output equipment of the terminal equipment connected with the audio interface and the external second audio output equipment for playing. For example, the television outputs a target audio signal to play the target audio signal simultaneously through a speaker of the television and a bluetooth speaker connected with bluetooth, or outputs the target audio signal through a speaker of the television and an audio device externally connected through an HDMI (High Definition Multimedia Interface, high-definition multimedia interface) ARC interface.
The number of the second audio output devices externally connected with the terminal device can be one or a plurality of the second audio output devices.
In step 106, a delay time is obtained, where the delay time is determined according to a time difference between the target audio signals respectively played by the first audio output device and the second audio output device.
When the first audio output device and the second audio output device respectively play the target audio signals, the target audio signals played by the second audio output device are slower than the target audio signals played by the first audio output device, namely, a time difference exists between the first audio output device and the second audio output device, and the time difference is the time delay duration to be acquired in the step. The delay time can be used for adjusting the played audio and video of the terminal equipment and the audio output equipment so as to synchronize the played audio and video.
The method of obtaining the delay time is not limited in this embodiment, for example, the played target audio signal may be recorded by a recording device of the terminal device itself and the delay time may be obtained by calculating, or the delay time calculated by other devices may be received by the terminal device.
In step 108, delay adjustment is performed according to the delay time length.
For example, when the external second audio output device is one, the delay time is slower than that of the first audio output device, and when delay adjustment is performed, the playing time of the audio played by the terminal device side can be increased by the delay time, so that the playing time of the audio played by the first audio output device is later than the original playing time, and thus, the audio played by the second audio output device is kept synchronous, and if the terminal device also has the function of playing video, the time of the picture played by the terminal device side can be delayed by the delay time, so that the video playing and the audio playing of the second audio output device are kept synchronous.
For example, when the number of the external second audio output devices is greater than the first number, the previous step will obtain a plurality of delay time periods, that is, time differences between the plurality of second audio output devices and the first audio output device, and at this time, the playing time of the other second audio output devices and the first audio output device may be adjusted based on the second audio output device with the largest delay time period.
According to the delay adjusting method, the target audio signals are played simultaneously through the audio output equipment of the terminal equipment and the external audio output equipment, so that the delay time between the equipment can be determined through the time difference between the target audio signals during playing, the audio output delay of the equipment can be dynamically obtained, the delay setting can be automatically completed, the delay adjusting method can be applied to any equipment with an audio playing function, the actual delay of each equipment can be adjusted when the delay caused by the fact that the equipment is located at different positions or other reasons floats, and inconvenience brought by manual adjustment is avoided.
Fig. 2 is a flow chart of yet another delay adjustment method, shown in at least one embodiment of the present disclosure, that may be used with a terminal device, which more fully describes the acquisition process of a delay duration. As shown in fig. 2, the method may include a process, where the same steps as those in the embodiment of fig. 1 are not repeated.
In step 202, a target audio signal is acquired.
A signal that facilitates speech recognition may be preselected as the target audio signal, such as a signal that has fixed features that are easily recognizable. In one example, in order for the delay adjustment not to affect the user's normal use of the terminal device and audio output device, the frequency of the target audio signal may be outside the range of the human ear hearing frequency, so that the delay is automatically adjusted without being perceived by the user, resulting in a better user experience.
In step 204, the target audio signal is output, so that the target audio signal is played through the first audio output device of the terminal device and the second audio output device externally connected to the terminal device.
In step 206, a recording containing the target audio signal played by the first audio output device and the second audio output device simultaneously is obtained.
The present embodiment is not limited to a specific manner of acquiring a recording containing a target audio signal that is played by both the first audio output device and the second audio output device.
In one example, when the terminal device itself is provided with the first recording device, the first audio output device and the second audio output device may record the target audio signal by using the first recording device of the terminal device itself, so as to obtain the recording.
For example, when the terminal device is a television, the television is provided with a far-field voice recording device, and can record target audio signals played by surrounding first audio output devices and second audio output devices to obtain a record. For example, when the terminal device is a mobile phone, the mobile phone is provided with a microphone, and can record target audio signals played by the first audio output device and the second audio output device around the mobile phone, so as to obtain a record.
Or in another example, the recording sent by the second recording device outside the terminal device may be received, where the recording is obtained by the second recording device recording the target audio signal and playing the target audio signal by the first audio output device and the second audio output device at the same time.
The second recording device is located near the terminal device, for example, may be located at the second audio output device, or may be located at another device having a recording function. For example, in order to make the adjustment of the delay more suitable for the actual use of the user, the recording device nearest to the user may be used to record the sound, so as to obtain the recording, for example, the recording is performed through a mobile phone used by the user, so that, after the delay is adjusted, the sound played by the first audio output device and the second audio output device can be simultaneously transferred to the ears of the user.
In step 208, the recorded audio is uploaded to a speech processing device, so that the speech processing device determines a delay time according to a time difference between the target audio signals respectively played by the first audio output device and the second audio output device.
The voice processing device may be a device where the intelligent voice system is located, for example, may be located at a cloud end, a mobile phone end of a user, or may be located at a terminal device itself. The intelligent voice system in the voice processing device has voice recognition capability, and the delay time between the target audio signals can be determined according to the record.
For example, the intelligent speech system may identify a plurality of target audio signals played in a recording and may determine a time difference between the plurality of target audio signals. For example, as shown in fig. 3, the speaker and the bluetooth speaker of the television are simultaneously played, and the far-field voice recording device records the content of the speaker and the bluetooth speaker of the television, and the same target audio signals played by the speaker and the bluetooth speaker of the television have a certain time difference. The recorded sound is uploaded to the voice processing device, and the intelligent voice system can recognize two target audio signals and judge the time delay between the two target audio signals.
In step 210, the delay time duration issued by the speech processing device is received.
After determining the time delay time length between the audio devices playing the target audio signals, the intelligent voice system feeds the time delay time length back to the television terminal device, such as a television, and the television can complete corresponding time delay setting accordingly.
In step 212, delay adjustment is performed according to the delay time length.
In one embodiment, the number of the second audio output devices externally connected to the terminal device is a plurality of second audio output devices; the determining a delay time according to a time difference between the target audio signals respectively played by the first audio output device and the second audio output device includes: determining delay time lengths corresponding to a plurality of second audio output devices respectively according to a plurality of time differences between the target audio signals respectively played by the first audio output device and the plurality of second audio output devices;
The time delay adjustment according to the time delay time length comprises the following steps: and according to the delay time lengths, carrying out delay adjustment on the terminal equipment and the second audio equipment.
When the number of the second audio output devices externally connected with the terminal device is a plurality of, the playing time of other second audio output devices and the playing time of the first audio output device are adjusted by taking the second audio output device with the largest time delay time length as a reference. For example, if A, B, C are respectively three external second audio output devices, the corresponding delay time periods are a, b, and c, where a > b > c, when performing delay adjustment, the playing time of the first audio output device may be delayed by the maximum delay time period a, the playing time of the second audio output device b may be delayed by a-b, and the playing time of the second audio output device c may be delayed by a-c. If the terminal device also has the function of playing video, the time of playing the picture at the terminal device side can be delayed by the maximum delay time length a.
In one embodiment, the acquiring the delay time length includes: acquiring a recording containing the target audio signals played by the first audio output device and the second audio output device at the same time; and locally identifying the time difference between the target audio signals respectively played by the first audio output device and the second audio output device in the recording, and determining the time delay duration.
Besides the determination of the delay time length by the voice processing device, the determination of the delay time length can also be performed locally on the terminal equipment, for example, the acquired record is processed by a processor of the terminal equipment, and the delay time length is obtained according to the occurrence time sequence of the target audio signal in the record, so that the delay time length can also be obtained under the condition that the terminal equipment does not have remote communication capability.
It should be noted that, the delay adjustment method in the above embodiment may be applied to any stage when the user uses the terminal device, for example, before playing the audio and video by using the terminal device, or in the process of playing the audio and video by using the terminal device, and at this time, delay adjustment is performed by using the audio played by the terminal device as the target audio signal, so that dynamic detection and dynamic delay setting can be implemented, and multiple devices and multiple usage scenarios can be compatible, and the method is accurate and convenient.
Fig. 4 is a flow chart of another delay adjustment method, which may be used with a speech processing device, shown in at least one embodiment of the present disclosure, the method comprising:
In step 402, a recording containing a target audio signal played by a first audio output device and a second audio output device simultaneously is obtained, where the first audio output device is located in a terminal device, and the second audio output device is externally connected to the terminal device.
In this embodiment, the intelligent voice system is built in the voice processing device, and the position where the voice processing device is located is not limited in this embodiment, for example, the voice processing device may be located in the cloud, located at a mobile phone end of a user, or located in a terminal device itself. The intelligent voice system in the voice processing device has voice recognition capability, and the delay time between the target audio signals can be determined according to the record.
The step of receiving a sound recording sent by a terminal device, wherein the sound recording is obtained by recording the target audio signal simultaneously played by the first audio output device and the second audio output device through a first sound recording device of the terminal device; or receiving a recording sent by a second recording device outside the terminal equipment, wherein the recording is obtained by the second recording device recording the target audio signal by simultaneously playing the first audio output equipment and the second audio output equipment.
In step 404, a time delay is determined according to a time difference between the target audio signals respectively played by the first audio output device and the second audio output device included in the recording.
When the first audio output device and the second audio output device respectively play the target audio signals, the target audio signals played by the second audio output device are slower than the target audio signals played by the first audio output device, namely, a time difference exists between the first audio output device and the second audio output device, and the time difference is the time delay duration to be determined in the step. The delay time can be used for adjusting the played audio and video of the terminal equipment and the audio output equipment so as to synchronize the played audio and video.
And under the condition that the number of the second audio output devices externally connected with the terminal device is one, determining a delay time according to the time difference between the target audio signals respectively played by the first audio output device and the second audio output device.
And under the condition that the number of the second audio output devices externally connected with the terminal device is multiple, determining delay time lengths corresponding to the multiple second audio output devices respectively according to multiple time differences between the target audio signals respectively played by the first audio output device and the multiple second audio output devices.
In step 406, the delay time length is sent to the terminal device, so that the terminal device performs delay adjustment according to the delay time length.
And under the condition that the number of the second audio output devices externally connected with the terminal device is one, sending the delay time to the terminal device, so that the terminal device carries out delay adjustment on the terminal device according to the obtained delay time.
And under the condition that the number of the second audio output devices externally connected with the terminal device is multiple, sending the multiple delay time lengths to the terminal device, so that the terminal device can carry out delay adjustment on the terminal device and the multiple second audio devices according to the multiple delay time lengths.
For the foregoing method embodiments, for simplicity of explanation, the methodologies are shown as a series of acts, but one of ordinary skill in the art will appreciate that the present disclosure is not limited by the order of acts described, as some steps may occur in other orders or concurrently in accordance with the disclosure.
Further, those skilled in the art will also appreciate that the embodiments described in the specification are all alternative embodiments, and that the acts and modules referred to are not necessarily required by the present disclosure.
Corresponding to the embodiment of the application function implementation method, the disclosure also provides an embodiment of the application function implementation device and a corresponding terminal.
Referring to fig. 5, a block diagram of a delay adjustment device according to an exemplary embodiment is shown, where the device is applied to a terminal device, the device includes:
A signal acquisition module 51 for: acquiring a target audio signal;
A signal output module 52 for: outputting the target audio signal to play the target audio signal through a first audio output device of the terminal device and a second audio output device externally connected with the terminal device respectively;
A duration acquisition module 53, configured to: acquiring delay time length, wherein the delay time length is determined according to time difference between the target audio signals respectively played by the first audio output equipment and the second audio output equipment;
a duration adjustment module 54 for: and performing delay adjustment according to the delay time length.
In combination with any one of the embodiments provided in the present disclosure, the duration obtaining module 53 is specifically configured to:
Acquiring a recording containing the target audio signals played by the first audio output device and the second audio output device at the same time;
uploading the recorded sound to a voice processing device, so that the voice processing device determines a time delay duration according to a time difference between the target audio signals respectively played by the first audio output device and the second audio output device;
And receiving the delay time issued by the voice processing device.
In combination with any one of the embodiments provided in the present disclosure, the duration obtaining module 53 is specifically configured to:
Acquiring a recording containing the target audio signals played by the first audio output device and the second audio output device at the same time;
And locally identifying the time difference between the target audio signals respectively played by the first audio output device and the second audio output device in the recording, and determining the time delay duration.
In combination with any one of the embodiments provided in the present disclosure, the duration obtaining module 53, when configured to obtain a recording including the target audio signal that is played by the first audio output device and the second audio output device at the same time, is specifically configured to:
recording the target audio signal by the first audio output device and the second audio output device through a first recording device of the terminal device, and obtaining the recording;
Or receiving a sound recording sent by a second sound recording device outside the terminal equipment, wherein the sound recording is obtained by simultaneously playing the target audio signal by the first audio output equipment and the second audio output equipment recorded by the second sound recording device.
In combination with any one of the embodiments provided in the present disclosure, the number of second audio output devices externally connected to the terminal device is a plurality of second audio output devices; the duration obtaining module 53 is specifically configured to, when determining a delay duration according to a time difference between the target audio signals respectively played by the first audio output device and the second audio output device:
Determining delay time lengths corresponding to a plurality of second audio output devices respectively according to a plurality of time differences between the target audio signals respectively played by the first audio output device and the plurality of second audio output devices;
the duration adjustment module 54 is specifically configured to:
And according to the delay time lengths, carrying out delay adjustment on the terminal equipment and the second audio equipment.
Referring to fig. 6, a block diagram of a delay adjustment device according to an exemplary embodiment is shown, the device being applied to a speech processing device, the device comprising:
The recording acquisition module 61 is configured to: acquiring a recording of a target audio signal which is simultaneously played by a first audio output device and a second audio output device, wherein the first audio output device is positioned at a terminal device, and the second audio output device is externally connected with the terminal device;
A delay calculation module 62 for: determining a time delay time length according to the time difference between the target audio signals respectively played by the first audio output device and the second audio output device contained in the recording;
a duration sending module 63, configured to: and sending the delay time length to the terminal equipment so that the terminal equipment carries out delay adjustment according to the delay time length.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements described above as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the objectives of the disclosed solution. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
Accordingly, in one aspect, an embodiment of the present disclosure provides an electronic device, which may be the terminal device or the voice processing apparatus, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute executable instructions to implement the latency adjustment method of any of the embodiments described above.
Fig. 7 is a schematic diagram of an electronic device 700, according to an example embodiment. For example, electronic device 700 may be a user device, and may be embodied as a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, a wearable device such as a smart watch, smart glasses, smart bracelets, smart running shoes, and the like.
Referring to fig. 7, an electronic device 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the electronic device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 702 can include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
Memory 704 is configured to store various types of data to support operations at device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 706 provides power to the various components of the electronic device 700. Power supply components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 700.
The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only a boundary of a touch or a sliding action but also a duration and a pressure related to the touch or the sliding operation. In some embodiments, the multimedia component 708 includes a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 700 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 704 or transmitted via the communication component 716. In some embodiments, the audio component 710 further includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the electronic device 700. For example, the sensor assembly 714 may detect an on/off state of the device 700, a relative positioning of the components, such as a display and keypad of the electronic device 700, a change in position of the electronic device 700 or a component of the electronic device 700, the presence or absence of a user's contact with the electronic device 700, an orientation or acceleration/deceleration of the electronic device 700, and a change in temperature of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate communication between the electronic device 700 and other devices, either wired or wireless. The electronic device 700 may access a wireless network based on a communication standard, such as WiFi,2G or 3G,4G LTE, 5G NR, or a combination thereof. In one exemplary embodiment, the communication component 716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 716 described above further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as a memory 704 comprising instructions that, when executed by a processor 720 of the electronic device 700, enable the electronic device 700 to perform the latency adjustment method of any of the embodiments described above.
The non-transitory computer readable storage medium may be a ROM, random-access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A delay adjustment method, wherein the method is applied to a terminal device, the method comprising:
Acquiring a target audio signal;
Outputting the target audio signal to play the target audio signal through a first audio output device of the terminal device and a second audio output device externally connected with the terminal device respectively;
Acquiring delay time length, wherein the delay time length is determined according to time difference between the target audio signals respectively played by the first audio output equipment and the second audio output equipment;
and performing delay adjustment according to the delay time length.
2. The method of claim 1, wherein the acquiring the delay time length comprises:
Acquiring a recording containing the target audio signals played by the first audio output device and the second audio output device at the same time;
uploading the recorded sound to a voice processing device, so that the voice processing device determines a time delay duration according to a time difference between the target audio signals respectively played by the first audio output device and the second audio output device;
And receiving the delay time issued by the voice processing device.
3. The method of claim 1, wherein the acquiring the delay time length comprises:
Acquiring a recording containing the target audio signals played by the first audio output device and the second audio output device at the same time;
And locally identifying the time difference between the target audio signals respectively played by the first audio output device and the second audio output device in the recording, and determining the time delay duration.
4. A method according to claim 2 or 3, characterized in that,
The obtaining a recording containing the target audio signal played by the first audio output device and the second audio output device simultaneously comprises:
recording the target audio signal by the first audio output device and the second audio output device through a first recording device of the terminal device, and obtaining the recording;
Or receiving a sound recording sent by a second sound recording device outside the terminal equipment, wherein the sound recording is obtained by simultaneously playing the target audio signal by the first audio output equipment and the second audio output equipment recorded by the second sound recording device.
5. The method of claim 1, wherein the number of second audio output devices externally connected to the terminal device is a plurality of;
the determining a delay time according to a time difference between the target audio signals respectively played by the first audio output device and the second audio output device includes:
Determining delay time lengths corresponding to a plurality of second audio output devices respectively according to a plurality of time differences between the target audio signals respectively played by the first audio output device and the plurality of second audio output devices;
the time delay adjustment according to the time delay time length comprises the following steps:
And according to the delay time lengths, carrying out delay adjustment on the terminal equipment and the second audio equipment.
6. A method of delay adjustment, the method being applied to a speech processing device, the method comprising:
acquiring a recording of a target audio signal which is simultaneously played by a first audio output device and a second audio output device, wherein the first audio output device is positioned at a terminal device, and the second audio output device is externally connected with the terminal device;
Determining a time delay time length according to the time difference between the target audio signals respectively played by the first audio output device and the second audio output device contained in the recording;
And sending the delay time length to the terminal equipment so that the terminal equipment carries out delay adjustment according to the delay time length.
7. A delay adjustment device, wherein the device is applied to a terminal device, the device comprising:
the signal acquisition module is used for: acquiring a target audio signal;
the signal output module is used for: outputting the target audio signal to play the target audio signal through a first audio output device of the terminal device and a second audio output device externally connected with the terminal device respectively;
A duration acquisition module, configured to: acquiring delay time length, wherein the delay time length is determined according to time difference between the target audio signals respectively played by the first audio output equipment and the second audio output equipment;
a duration adjusting module, configured to: and performing delay adjustment according to the delay time length.
8. A delay adjustment device for use in a speech processing device, the device comprising:
The recording acquisition module is used for: acquiring a recording of a target audio signal which is simultaneously played by a first audio output device and a second audio output device, wherein the first audio output device is positioned at a terminal device, and the second audio output device is externally connected with the terminal device;
The delay calculation module is used for: determining a time delay time length according to the time difference between the target audio signals respectively played by the first audio output device and the second audio output device contained in the recording;
a duration sending module, configured to: and sending the delay time length to the terminal equipment so that the terminal equipment carries out delay adjustment according to the delay time length.
9. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that the program when executed by a processor implements the steps of the delay adjustment method of any one of claims 1 to 5 or the steps of the delay adjustment method of claim 6.
10. An electronic device, comprising:
A processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the executable instructions to implement the steps of the delay adjustment method of any one of claims 1 to 5 or to implement the steps of the delay adjustment method of claim 6.
CN202211643851.9A 2022-12-20 2022-12-20 Delay adjusting method and device and electronic equipment Pending CN118233810A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211643851.9A CN118233810A (en) 2022-12-20 2022-12-20 Delay adjusting method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211643851.9A CN118233810A (en) 2022-12-20 2022-12-20 Delay adjusting method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN118233810A true CN118233810A (en) 2024-06-21

Family

ID=91507997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211643851.9A Pending CN118233810A (en) 2022-12-20 2022-12-20 Delay adjusting method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN118233810A (en)

Similar Documents

Publication Publication Date Title
CN107105314B (en) Video playing method and device
CN107493500B (en) Multimedia resource playing method and device
JP6314286B2 (en) Audio signal optimization method and apparatus, program, and recording medium
EP3107086A1 (en) Method and device for playing a multimedia file
US20170126801A1 (en) Method, apparatus, and storage medium for performing media synchronization
EP3024211B1 (en) Method and device for announcing voice call
CN112969096A (en) Media playing method and device and electronic equipment
CN107635074B (en) Method, apparatus and computer-readable storage medium for controlling alarm
CN107135452B (en) Hearing aid fitting method and device
US11388459B2 (en) Method and apparatus for determining bandwidth, and electronic device and storage medium
CN112910592B (en) Clock synchronization method and device, terminal and storage medium
CN108600503B (en) Voice call control method and device
CN114513571A (en) Device connection method and device, electronic device and readable storage medium
CN108629814B (en) Camera adjusting method and device
CN111510846B (en) Sound field adjusting method and device and storage medium
US11388281B2 (en) Adaptive method and apparatus for intelligent terminal, and terminal
CN118233810A (en) Delay adjusting method and device and electronic equipment
CN111694539B (en) Method, device and medium for switching between earphone and loudspeaker
CN112925466B (en) Touch control method and device
CN109712629B (en) Audio file synthesis method and device
CN107870758B (en) Audio playing method and device and electronic equipment
CN111225318A (en) Audio adjusting method and device and electronic equipment
CN113362841B (en) Audio signal processing method, device and storage medium
US11689690B2 (en) Method and device for audio and video synchronization
CN113138036B (en) Temperature detection method and device and electronic equipment

Legal Events

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