摘要 |
In an embodiment of the present invention, synchronous audio playback method, apparatus and system are disclosed. The method includes the steps of: calculating a first playback delay generated when an audio file is played; acquiring a second playback delay generated when a controlling device plays the audio file; calculating a delay offset; calculating a data adjustment amount corresponding to an absolute value of a delay offset when the delay offset is not 0; obtaining a replacement part corresponding to a current to-be-played part by adding to-be-adjusted data to or deleting the to-be-adjusted data from the current to-be-played part of the audio file according to a value of the delay offset, where a data amount of the to-be-adjusted data is the data adjustment amount; and playing the replacement part. With the technical solutions of the present invention, playback duration of the current to-be-played part can be adjusted in a manner of adding or deleting data, so the controlling device and a controlled device generate sounds simultaneously in a very simple implementation process when playing a to-be-played clip. |