Search

CN-122002178-A - Audio playing time adjusting method and electronic equipment

CN122002178ACN 122002178 ACN122002178 ACN 122002178ACN-122002178-A

Abstract

An audio playing time adjusting method and electronic equipment relate to the technical field of electronics. The method comprises the steps of respectively sending first signals corresponding to the audio playing devices to the plurality of audio playing devices, wherein the first signals comprise audio data to be played corresponding to the audio playing devices and synchronous signals corresponding to the audio playing devices, collecting the first signals played by the audio playing devices through microphones, determining playing time delay corresponding to the audio playing devices based on arrival time of the synchronous signals corresponding to the audio playing devices collected by the microphones, and adjusting time for sending the audio data to be played to the audio playing devices based on the playing time delay corresponding to the audio playing devices. Based on the method, the corresponding playing time delay of the audio playing device can be determined, and the time of playing the audio data by the audio playing device is adjusted, so that the actual playing time difference among a plurality of audio playing devices is reduced, and the playing effect is improved.

Inventors

  • WANG QI
  • LIU RUIGANG
  • WANG YANG
  • TAO HAIBAO
  • DU ZHENGUO
  • ZHOU YONGXING

Assignees

  • 华为技术有限公司

Dates

Publication Date
20260508
Application Date
20241101

Claims (14)

  1. 1. An audio play time adjustment method, the method comprising: Respectively sending first signals corresponding to the audio playing devices to a plurality of audio playing devices, wherein the first signals comprise audio data to be played corresponding to the audio playing devices and synchronous signals corresponding to the audio playing devices; Collecting a first signal played by the audio playing device through a microphone; Determining a playing time delay corresponding to the audio playing device based on the arrival time of the synchronous signal corresponding to the audio playing device acquired by the microphone; And adjusting the time for sending the audio data to be played to the audio playing equipment based on the playing time delay corresponding to the audio playing equipment.
  2. 2. The method of claim 1, wherein the determining the playback delay corresponding to the audio playback device based on the arrival time of the synchronization signal corresponding to the audio playback device collected by the microphone comprises: And determining the playing time delay corresponding to the audio playing equipment based on the sending time of the synchronous signal corresponding to the audio playing equipment and the arrival time of the synchronous signal corresponding to the audio playing equipment, which is acquired by the microphone.
  3. 3. The method of claim 2, wherein the playback delay associated with the audio playback device is a time interval between an arrival time of the synchronization signal associated with the audio playback device and a transmission time of the synchronization signal associated with the audio playback device, as captured by the microphone.
  4. 4. The method of claim 1, applied to an electronic device, the method further comprising: playing a synchronous signal corresponding to the electronic equipment through a loudspeaker of the electronic equipment; collecting synchronous signals played by the electronic equipment through the microphone; The determining the playing time delay corresponding to the audio playing device based on the arrival time of the synchronous signal corresponding to the audio playing device collected by the microphone includes: And determining the playing time delay corresponding to the audio playing equipment based on the arrival time of the synchronous signal corresponding to the electronic equipment collected by the microphone and the arrival time of the synchronous signal corresponding to the audio playing equipment collected by the microphone.
  5. 5. The method of claim 4, wherein the determining the play delay corresponding to the audio play device based on the arrival time of the synchronization signal corresponding to the electronic device collected by the microphone and the arrival time of the synchronization signal corresponding to the audio play device collected by the microphone comprises: determining an acoustic wave transmission delay from a speaker to a microphone of the electronic device based on a distance from the speaker to the microphone of the electronic device; and determining the playing time delay corresponding to the audio playing equipment based on the arrival time of the synchronous signal corresponding to the electronic equipment, the arrival time of the synchronous signal corresponding to the audio playing equipment and the sound wave transmission time delay.
  6. 6. The method of claim 5, wherein the playback delay corresponding to the audio playback device is a sum of a first time interval and the acoustic wave transmission delay, and the first time interval is a time interval between an arrival time of a synchronization signal corresponding to the audio playback device collected by the microphone and an arrival time of a synchronization signal corresponding to the electronic device collected by the microphone.
  7. 7. The method according to any one of claims 1 to 6, wherein the adjusting the time for sending the audio data to be played to the audio playing device based on the playing time delay corresponding to the audio playing device includes: And adjusting the time for sending the audio data to be played to the audio playing device based on the playing time delay corresponding to the audio playing device and one or more of the position of the audio playing device or the position of the user.
  8. 8. The method according to any one of claim 1 to 7, wherein, The frequency bands of the synchronous signals corresponding to different audio playing devices in the plurality of audio playing devices are different, or The transmission time of the synchronous signals corresponding to different audio playing devices in the plurality of audio playing devices is different, or The synchronous signals corresponding to different audio playing devices in the plurality of audio playing devices adopt different sequences, or The synchronous signal corresponding to the audio playing device comprises the identification of the audio playing device.
  9. 9. The method according to any one of claims 1 to 8, wherein the plurality of audio playing devices includes a first audio playing device, the first audio playing device corresponds to a plurality of channels, the plurality of channels includes a first channel, and the first channel is associated with a synchronization signal corresponding to the first audio playing device.
  10. 10. The method according to any one of claims 1 to 9, wherein the synchronization signal is an ultrasonic signal, or a frequency band where the synchronization signal is located is not overlapped with a frequency band where the audio data to be played is located.
  11. 11. An audio play time adjustment device comprising means for performing the method of any one of claims 1 to 10.
  12. 12. An electronic device comprising a memory coupled to one or more processors, the memory for storing computer program code comprising computer instructions that the one or more processors invoke to cause the electronic device to perform the method of any of claims 1-10.
  13. 13. A computer readable storage medium, characterized in that the storage medium has stored therein a computer program or instructions which, when executed by a device positioning apparatus, implement the method of any of claims 1 to 10.
  14. 14. A computer program product comprising a computer program or instructions which, when executed by a device positioning apparatus, implements the method of any of claims 1 to 10.

Description

Audio playing time adjusting method and electronic equipment Technical Field The present application relates to the field of electronic technologies, and in particular, to an audio playing time adjustment method and an electronic device. Background With the development of wireless short-range technology, in order to improve the playing effect of audio data, a plurality of audio playing devices (such as sound boxes) can be connected to an electronic device (such as a large-screen device) through bluetooth or WIFI protocol, and the electronic device sends the audio data to the plurality of audio playing devices to play the audio simultaneously. However, transmission delay of audio playing data occurs in various short-distance protocols at present, so that actual playing time difference among a plurality of audio playing devices connected with the electronic device is large, and playing effect is affected. Disclosure of Invention The application provides an audio playing time adjusting method and electronic equipment, which are beneficial to reducing the actual playing time difference among a plurality of audio playing equipment connected by the electronic equipment and improving the playing effect. In a first aspect, the present application provides a method for adjusting audio playback time. For example, the method may be applied to an electronic device. For example, it may be implemented by an electronic device or a communication module/processing module in an electronic device, or a circuit or chip in an electronic device responsible for communication/processing functions. The method comprises the following steps: The method comprises the steps of respectively sending first signals corresponding to audio playing equipment to the plurality of audio playing equipment, wherein the first signals comprise audio data to be played corresponding to the audio playing equipment and synchronous signals corresponding to the audio playing equipment, collecting the first signals played by the audio playing equipment through a microphone, determining playing time delay corresponding to the audio playing equipment based on arrival time of the synchronous signals corresponding to the audio playing equipment collected by the microphone, and adjusting time for sending the audio data to be played to the audio playing equipment based on the playing time delay corresponding to the audio playing equipment. That is, the electronic device may superimpose and transmit audio data to be played and a synchronization signal corresponding to the audio playback device. Thus, the audio playing device can play the synchronous signal corresponding to the audio playing device when playing the audio data to be played. Therefore, the microphone of the electronic device can acquire the synchronous signals played by the audio playing device, and the playing time delay corresponding to the audio playing device is determined based on the arrival time of the synchronous signals acquired by the microphone, so that the time of playing the audio data by the audio playing device is adjusted based on the playing time delay corresponding to the audio playing device, the actual playing time difference among a plurality of audio playing devices is reduced, and the playing effect is improved. In one possible embodiment, based on the arrival time of the synchronization signal corresponding to the audio playing device collected by the microphone, the following two possible implementations are used for determining the playing delay corresponding to the audio playing device: (1) And determining the playing time delay corresponding to the audio playing equipment based on the sending time of the synchronous signal corresponding to the audio playing equipment and the arrival time of the synchronous signal corresponding to the audio playing equipment collected by the microphone. Based on the mode, the playing time delay corresponding to the audio playing equipment is determined, the playing time delay corresponding to the audio playing equipment can be accurately determined, and the complexity is low. Optionally, the playing time delay corresponding to the audio playing device is a time interval between the arrival time of the synchronous signal corresponding to the audio playing device collected by the microphone and the sending time of the synchronous signal corresponding to the audio playing device. Based on the alternative mode, the playing time delay corresponding to the audio playing device can be accurately determined, and the complexity is low. (2) The method comprises the steps of receiving a synchronous signal corresponding to the electronic equipment, acquiring the synchronous signal corresponding to the electronic equipment through a loudspeaker of the electronic equipment, and acquiring the synchronous signal played by the electronic equipment through a microphone, wherein the step of determining the playing time delay corresponding to the audio playin