Synchronous Audio Playback Delay Offset Adjustment
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Synchronous audio playback across multiple devices is challenging due to varying playback delays caused by differences in hardware and software configurations, leading to time inconsistencies in sound generation.
Innovation Solution
A method and system that calculate and adjust playback delays by determining a delay offset between devices, allowing for data adjustments to synchronize audio playback, ensuring simultaneous sound generation across devices.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Loss of time
If audio files are played simultaneously on multiple devices without adjustment, then playback starts at the same time, but sound generation occurs at different times due to varying playback delays
Solution Approach 1:
The patent calculates playback delays in advance for each device and determines the delay offset before actual audio playback. By pre-calculating the data adjustment amount based on the delay offset, the system prepares the necessary compensation data ahead of time, eliminating time deviation in sound generation without adding complexity during the playback process itself
2Manufacturing precision
If data is added or deleted to adjust playback delay, then sound generation time is synchronized, but audio file data is modified
Solution Approach 1:
The patent applies data adjustment only to the specific portion of the audio file that requires synchronization compensation. Instead of modifying the entire audio file, the system calculates the delay offset and adjusts only the necessary data amount (adding or deleting data) in the relevant section, thereby achieving synchronization precision while minimizing changes to the overall audio data
Data Source
AI summary
A synchronous audio playback method, apparatus and system are provided. The method includes calculating a first playback delay generated when an audio file is played; acquiring a second playback delay; calculating a delay offset; calculating a data adjustment amount; adding to-be-adjusted data to or deleting to-be-adjusted data from a current to-be-played part of the audio file according to a value of the delay offset, to obtain a replacement part corresponding to the current to-be-played part, 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 a current to-be-played part can be adjusted in a manner of adding or deleting data, so that a controlling device and a controlled device generate sounds simultaneously when playing a to-be-played clip in a very simple implementation process.

