US 12,284,503 B2
Audio latency calibration method, electronic device and computer-readable storage medium
Po-Chang Lin, New Taipei (TW)
Assigned to AMBIT MICROSYSTEMS (SHANGHAI) LTD., Shanghai (CN)
Filed by AMBIT MICROSYSTEMS (SHANGHAI) LTD., Shanghai (CN)
Filed on Jan. 5, 2023, as Appl. No. 18/093,792.
Prior Publication US 2024/0236572 A1, Jul. 11, 2024
Int. Cl. H04R 5/04 (2006.01); H04W 76/10 (2018.01)
CPC H04R 5/04 (2013.01) [H04W 76/10 (2018.02); H04R 2400/01 (2013.01); H04R 2420/07 (2013.01)] 3 Claims
OG exemplary drawing
 
1. An audio latency calibration method executable by a first electronic device, the audio latency calibration method comprising:
performing a pairing process when the first electronic device and a second electronic device are positioned at a separation distance from each other;
when the pairing process is complete, transmitting an audio signal to the second electronic device via a Wi-Fi router, thereby obtaining a latency time period T1, wherein the second electronic device transmits the audio signal to a second trumpet of the second electronic device, thereby obtaining a latency time period T2;
a first microphone of the first electronic device receiving the audio signal transmitted by the second trumpet of the second electronic device, thereby obtaining a latency time period T3;
transmitting the audio signal received by the first microphone of the first electronic device to a first micro control unit (MCU) of the first electronic device, thereby obtaining a latency time period T4;
transmitting the audio signal to a first trumpet of the first electronic device using the MCU of the first electronic device via a codec of the first electronic device, thereby obtaining a latency time period T5;
transmitting the audio signal to the first microphone through a first speaker of the first electronic device via the first trumpet, thereby obtaining a latency time period T3′, wherein because the first electronic device and the second electronic device are positioned at the separation distance from each other, T3≃T3′;
calculating a latency time period TL=T1+T2+T3+T4 of the audio signal passing through the second trumpet and received by the codec of the first electronic device, a latency time period TLint=T3′+T4+T5 of the first electronic device, and TL−TLint=(T1+T2+T3+T4)−(T3′+T4+T5)−T1+T2+T5 according to the obtained latency time periods T1, T2, T3, T4, T5 and T3′, thereby obtaining the latency time period T1+T2=TL−TLint−T5; and
implementing audio signal synchronization between the first electronic device and the second electronic device according to the latency time period T1+T2.