Audio Playback Delay Reduction via Network Time Synchronization
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The issue of network delay in audio data transmission between smart TVs and control apparatuses, such as mobile devices, leads to playback delays and desynchronization of audio data, affecting the real-time audio playback experience.
Innovation Solution
The method involves calculating network delays by comparing system time differences between the smart TV and the control apparatus, and abandoning audio data if the delay exceeds a preset threshold, allowing only timely audio data to be transmitted and played, while also compressing invalid audio data packets to reduce network burden and cache playback delays.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If audio data is transmitted from smart TV to control apparatus over network, then remote audio playback is enabled, but network delay causes playback desynchronization
Solution Approach 1:
The system performs preliminary actions by calculating network delay using system time differences before audio data transmission. The control apparatus obtains system time from the smart TV, calculates the time difference, and uses this to predict and compensate for network delay, ensuring synchronized playback without waiting for actual delay manifestation
Solution Approach 2:
The system implements feedback by continuously monitoring system time differences between smart TV and control apparatus. The control apparatus receives system time packets, calculates delay based on time differences, and adjusts playback timing accordingly, creating a closed-loop control system that maintains synchronization
2Productivity
If audio data transmission is performed without delay filtering, then all audio data is transmitted, but playback cache delay increases
Solution Approach 1:
The system applies local quality by implementing delay threshold filtering at the control apparatus level. Audio data packets are evaluated individually against a preset delay threshold, and only those meeting the timing criterion are transmitted to the playback buffer, ensuring high-quality timely audio data while filtering out delayed packets
Solution Approach 2:
The system discards audio data packets that exceed the delay threshold to prevent cache pollution. By selectively abandoning delayed packets and retaining only timely ones, the system maintains optimal cache performance and playback synchronization
Data Source
AI summary
The present disclosure provides audio playing and transmitting methods and apparatuses, so as to reduce a playback delay of a control apparatus. An audio playing method provided the embodiment of the present disclosure includes: receiving a first system time data packet transmitted from a smart television, wherein the first system time data packet includes a first system time of the smart television at a sound transmission start time; calculating a difference serving as a first difference between a current second system time of a control apparatus and the first system time; receiving audio data transmitted from the smart television; calculating, according to the first difference, a network delay of transmission of the audio data between the smart television and the control apparatus; and abandoning the audio data when the network delay is greater than a preset threshold.


