US 12,462,830 B2
Audio playback method, electronic device, and computer-readable storage medium
Yuyun Liu, Shenzhen (CN)
Assigned to MEDIATEK SINGAPORE PTE. LTD., Singapore (SG)
Filed by MediaTek Singapore Pte. Ltd., Singapore (SG)
Filed on Jul. 28, 2023, as Appl. No. 18/361,136.
Claims priority of application No. 202211394447.2 (CN), filed on Nov. 8, 2022.
Prior Publication US 2024/0153522 A1, May 9, 2024
Int. Cl. G06F 1/12 (2006.01); G10L 21/043 (2013.01)
CPC G10L 21/043 (2013.01) 16 Claims
OG exemplary drawing
 
1. An audio playback method comprising:
calculating an estimated playback delay difference of a current audio data, wherein the estimated playback delay difference is a difference value between a set playback delay of the current audio data and an estimated playback delay of the current audio data on a playback device or an opposite number of the difference value;
in response to the estimated playback delay difference being between a first lower limit value and a first upper limit value, adjusting a playback rate of audio on the playback device based on the estimated playback delay difference;
in response to the estimated playback delay difference being greater than the first upper limit value or less than the first lower limit value, deleting audio data from or adding audio data to an audio buffer of the playback device based on the estimated playback delay difference; and
adding the current audio data to the audio buffer to play audio data that is in the audio buffer,
wherein before the estimated playback delay difference of the current audio data is calculated, the audio playback method further comprises:
transmitting preset audio data to the audio buffer to activate playback components in the playback device in advance; and
in response to acquiring audio data to be played, stopping the transmission of the preset audio data to the audio buffer and taking the audio data to be played as the current audio data.