US 12,219,332 B1
Audio synchronization playback method, system and storage medium
Huaijing Wang, Newark, CA (US); and Lifeng Zhao, Newark, CA (US)
Assigned to Linkplay Technology Inc., Newark, CA (US)
Filed by Linkplay Technology Inc., Newark, CA (US)
Filed on Oct. 22, 2024, as Appl. No. 18/922,808.
Claims priority of application No. 202410468081.1 (CN), filed on Apr. 18, 2024.
Int. Cl. H04R 3/12 (2006.01); G11B 27/34 (2006.01); H04R 29/00 (2006.01)
CPC H04R 3/12 (2013.01) [G11B 27/34 (2013.01); H04R 29/002 (2013.01)] 12 Claims
OG exemplary drawing
 
1. An audio synchronization playback method, applied to an audio synchronization playback system comprising a primary playback device and a preset quantity of secondary playback devices, the method comprising:
obtaining, by the primary playback device, target audio data in response to receiving a synchronization playback command;
sending, by the primary playback device, the target audio data to at least one secondary playback device for playback;
determining, by the primary playback device, a reference clock device;
in response to receiving a target audio synchronization signal, synchronizing, by the primary playback device, local time of the primary playback device with local time of the reference clock device based on the target audio synchronization signal and a delay calibration value of the primary playback device, and obtaining, by the primary playback device, a reference playback timestamp of the target audio synchronization signal; wherein the target audio synchronization signal is a periodic signal sent by the reference clock device; the reference clock device is a playback device with a smallest clock error calibration value among the primary playback device and at least one secondary playback device; and the delay calibration value is a transmission time value of a signal between a sound card and a speaker; and
starting, by the primary playback device, playback from a target audio data frame corresponding to the reference playback timestamp;
wherein starting by the primary playback device playback from the target audio data frame corresponding to the reference playback timestamp comprises:
calculating, by the primary playback device, a time difference between the primary playback device and the reference clock device in each period at a first preset period to obtain a system time difference of the primary playback device;
determining, by the primary playback device, an output sampling rate of the primary playback device according to the system time difference of the primary playback device;
moving, by the primary playback device, to the target audio data frame corresponding to the reference playback timestamp for decoding; and
starting, by the primary playback device, sampling and playback from the decoded target audio data frame based on the output sampling rate of the primary playback device.