CN111510754A - Method for reducing sound delay of external Bluetooth sound box of smart television - Google Patents
Method for reducing sound delay of external Bluetooth sound box of smart television Download PDFInfo
- Publication number
- CN111510754A CN111510754A CN202010344098.8A CN202010344098A CN111510754A CN 111510754 A CN111510754 A CN 111510754A CN 202010344098 A CN202010344098 A CN 202010344098A CN 111510754 A CN111510754 A CN 111510754A
- Authority
- CN
- China
- Prior art keywords
- audio
- sound
- data
- bluetooth
- smart television
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 17
- 230000005540 biological transmission Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/4302—Content synchronisation processes, e.g. decoder synchronisation
- H04N21/4307—Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/436—Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
- H04N21/4363—Adapting the video stream to a specific local network, e.g. a Bluetooth® network
- H04N21/43637—Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/439—Processing of audio elementary streams
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
The invention relates to the technical field of Bluetooth Audio software of intelligent electronic products, and discloses a method for reducing sound delay of an external Bluetooth sound box of an intelligent television, which solves the problems that in the prior art, the processing time of an Audio data stream in an Android system is long, the sound delay is large, and the user experience is reduced.
Description
Technical Field
The invention relates to the technical field of intelligent electronic product Bluetooth audio software, in particular to a method for reducing sound delay of an external Bluetooth sound box of an intelligent television.
Background
In the prior art, Audio data transmission of a smart television when a bluetooth sound box is connected is performed according to an Audio standard framework of an Android system, and a flow of the Audio data transmission is as shown in fig. 1, an Audio stream is input through an Audio Decoder (Audio Decoder) and a terminal (HDMI/AV and the like), mixed through an Audio Mixer (Mixer), and output through a cast channel (external output channel projected to an external power amplifier, an external speaker and the like).
According to the process, the audio data stream is written in the shared memory for four times in the Android system of the smart television, and the time is spent on the data writing in the shared memory every time, so that the audio data processing time is long, the sound heard by the user is delayed greatly, and particularly when the user watches videos, the sound and the picture are asynchronous, and poor watching experience is brought to the user.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the method for reducing sound delay of the external Bluetooth sound box of the smart television is provided, and the problems that in the prior art, the processing time of an audio data stream in an Android system is long, the sound delay is large, and the user experience is reduced are solved.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a method for reducing sound delay of an external Bluetooth sound box of a smart television comprises the following steps:
establish quick audio channel, through quick audio channel transmits audio data for bluetooth speaker:
in the Audio track created by Audio Service, transmitting mute data by default, wherein the mute data and software sound from an application or key sound of a system are input to an Audio Flinger for sound mixing;
the audioFlinger sends the mixed sound data to a TinyA L SA (lightweight advanced linux sound architecture);
TinyA L SA will mix audio data transfer to the audio frequency of bottom Mixer Mixer and audio decoder output and come from the audio frequency of terminal input and carry out the audio mixing and obtain the audio stream, after the audio stream writes into shared memory, directly transmit to the bluetooth module through the cast passageway.
As a further optimization, the method further comprises:
and setting a low delay mode, wherein when the low delay mode is opened and the smart television is connected with the Bluetooth loudspeaker box, the fast audio channel is established, and audio data are transmitted to the Bluetooth loudspeaker box through the fast audio channel.
The invention has the beneficial effects that:
when the smart television is connected with the Bluetooth sound box, a new audio fast channel is established, the transfer times of audio data in a memory are reduced, the mixed sound data of the bottom-layer sound mixer is directly sent to the A2dp Bluetooth sound box device through a cast channel, the delay is reduced, and the sound picture is synchronous. Therefore, compared with the native audio output flow, the processing time is greatly shortened, the user basically cannot feel delay, and the watching experience of the user is improved.
Drawings
FIG. 1 is a flow chart of an Audio process of an Android system in the prior art;
fig. 2 is a flow chart of audio data processing in the present invention.
Detailed Description
The invention aims to provide a method for reducing sound delay of an external Bluetooth sound box of a smart television, and solves the problems that in the prior art, the sound delay is large and the user experience is reduced due to the fact that the processing time of an audio data stream in an Android system is long. The core idea is as follows: the audio data which go through the cast channel after being mixed is written into the shared memory and then directly sent to the A2dp Bluetooth module without passing through the Audio track and the Audio Flinger, so that a quick audio channel is established, the writing times of the shared content of the audio data in the Android system are reduced, the processing time of the audio data is shortened, and the sound delay is further reduced.
In particular, the method for reducing the sound delay of the external Bluetooth sound box of the smart television adopts the following means:
and cutting off an audio data channel sent to the AudioService by the prior cast, and removing the shared memory ①. the AudioService does not receive audio data, and the AudioService defaults to send mute data to the AudioTrack through the shared memory ②, and the mute data and the audio data of the AudioTrack of the App/Sysem are mixed, and the audio data of the AudioTrack of the App/System is still obtained after the audio mixing.
The Audio Flinger transmits the mixed data to TinyA L SA, the bottom layer Mixer mixes the data of the terminal, the media and the TinyA L SA, and directly transmits the data to the cast, and due to the change of the data flow direction of the cast, the audio data mixed by the bottom layer Mixer is written into the shared memory ⑤ and directly transmitted to the A2dp Bluetooth module, so that a rapid audio channel is established.
The audio data processing flow adopting the method of the invention is shown in fig. 2, which not only solves the problem of multiple transmission of audio data in a shared memory, but also solves the problem of audio mixing with applied software sound or key sound. Compared with the prior art, the method reduces the number of the audio data written into the shared memory for four times to one. The time of one memory sharing write is about 240ms, the delay of the audio channel is reduced from original 960ms to 240ms, and the delay is reduced by 75%. Therefore, the watching experience of the user is greatly improved.
In a preferred embodiment, a low latency mode may be added. When the low time delay mode is on, the smart television is connected with the Bluetooth sound box, and the audio can be used for walking the fast channel. When creating AudioService, the low-delay mode is set, and when creating a cast channel, the data flow direction of the cast is directly changed, the previous flow is replaced, and the data flow is directly sent to the bluetooth module. In the audio _ a2dp _ hw in the bluetooth protocol stack, the audio data is directly sent to the bluetooth bottom layer from the audio driver bottom layer and sent to the externally connected bluetooth speaker equipment.
Claims (2)
1. A method for reducing sound delay of an external Bluetooth sound box of a smart television is characterized by comprising the following steps:
establish quick audio channel, through quick audio channel transmits audio data for bluetooth speaker:
in the Audio track created by Audio Service, transmitting mute data by default, wherein the mute data and software sound from an application or key sound of a system are input to an Audio Flinger for sound mixing;
the AudioFlinger sends the mixed sound data to TinyA L SA;
TinyA L SA will mix audio data transfer to the audio frequency of bottom Mixer Mixer and audio decoder output and come from the audio frequency of terminal input and carry out the audio mixing and obtain the audio stream, after the audio stream writes into shared memory, directly transmit to the bluetooth module through the cast passageway.
2. The method of claim 1, wherein the method for reducing the sound delay of the external Bluetooth speaker of the smart television,
the method further comprises the following steps: and setting a low delay mode, wherein when the low delay mode is opened and the smart television is connected with the Bluetooth loudspeaker box, the fast audio channel is established, and audio data are transmitted to the Bluetooth loudspeaker box through the fast audio channel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010344098.8A CN111510754A (en) | 2020-04-27 | 2020-04-27 | Method for reducing sound delay of external Bluetooth sound box of smart television |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010344098.8A CN111510754A (en) | 2020-04-27 | 2020-04-27 | Method for reducing sound delay of external Bluetooth sound box of smart television |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111510754A true CN111510754A (en) | 2020-08-07 |
Family
ID=71876483
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010344098.8A Pending CN111510754A (en) | 2020-04-27 | 2020-04-27 | Method for reducing sound delay of external Bluetooth sound box of smart television |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111510754A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2892241A1 (en) * | 2014-01-07 | 2015-07-08 | Samsung Electronics Co., Ltd | Audio/visual device and control method thereof |
CN107329726A (en) * | 2017-06-09 | 2017-11-07 | 青岛海信电器股份有限公司 | To the treating method and apparatus of the voice data of input in android system |
JP6287315B2 (en) * | 2014-02-20 | 2018-03-07 | 富士通株式会社 | Video / audio synchronization apparatus, video / audio synchronization method, and computer program for video / audio synchronization |
CN108124172A (en) * | 2017-12-08 | 2018-06-05 | 北京奇艺世纪科技有限公司 | The method, apparatus and system of cloud projection |
CN108184164A (en) * | 2017-12-28 | 2018-06-19 | 深圳Tcl新技术有限公司 | Audio frequency playing method, smart television and computer readable storage medium |
CN110175081A (en) * | 2019-05-30 | 2019-08-27 | 睿云联(厦门)网络通讯技术有限公司 | A kind of optimization system and its method played for Android audio |
-
2020
- 2020-04-27 CN CN202010344098.8A patent/CN111510754A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2892241A1 (en) * | 2014-01-07 | 2015-07-08 | Samsung Electronics Co., Ltd | Audio/visual device and control method thereof |
JP6287315B2 (en) * | 2014-02-20 | 2018-03-07 | 富士通株式会社 | Video / audio synchronization apparatus, video / audio synchronization method, and computer program for video / audio synchronization |
CN107329726A (en) * | 2017-06-09 | 2017-11-07 | 青岛海信电器股份有限公司 | To the treating method and apparatus of the voice data of input in android system |
CN108124172A (en) * | 2017-12-08 | 2018-06-05 | 北京奇艺世纪科技有限公司 | The method, apparatus and system of cloud projection |
CN108184164A (en) * | 2017-12-28 | 2018-06-19 | 深圳Tcl新技术有限公司 | Audio frequency playing method, smart television and computer readable storage medium |
CN110175081A (en) * | 2019-05-30 | 2019-08-27 | 睿云联(厦门)网络通讯技术有限公司 | A kind of optimization system and its method played for Android audio |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10834515B2 (en) | Home cinema system devices | |
CA2446513A1 (en) | Communication protocol for controlling transfer of temporal data over a bus between devices in synchronization with a periodic reference signal | |
WO2017143663A1 (en) | Electronic exchange system and configuration method therefor | |
WO2021168649A1 (en) | Multifunctional receiving device and conference system | |
CN104363509A (en) | Terminal, video conversion method and device and video playing system | |
CN112799631A (en) | Optimization system and optimization method for controlling DSP (digital signal processor) on android system | |
JP5661803B2 (en) | System and method for interfacing a white space device with a host device | |
US8411132B2 (en) | System and method for real-time media data review | |
CN1898957B (en) | Using multiple communication links in conjunction with a media adapter | |
WO2017101327A1 (en) | Method and device for collective playback of high-fidelity sound by several players | |
CN111741343B (en) | Video processing method and device and electronic equipment | |
US11514921B2 (en) | Audio return channel data loopback | |
CN111510754A (en) | Method for reducing sound delay of external Bluetooth sound box of smart television | |
DE112010005204T5 (en) | Portable computer with multiple embedded audio controls | |
CN103327364A (en) | Wireless transmission method and device for audio and video playing | |
CN105898455A (en) | Audio and video playback device | |
CN209330214U (en) | The presentation-guiding device of multichannel live streaming | |
CN103686045A (en) | Audio/video information transmission method and equipment | |
CN105847908A (en) | Split display system based on power line system and split display method | |
CN202309943U (en) | Projector system with network function | |
CN100592765C (en) | Extension device with television video input and output function | |
CN106791547B (en) | Portable HDMI video acquisition device and method based on FPGA | |
KR20210068953A (en) | Electronic apparatus and method for controlling thereof | |
CN204334848U (en) | A kind of audio frequency and video output processing apparatus and head-mounted display apparatus | |
CN205378047U (en) | Can realize full passageway editor's of EDID video matrix switch |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200807 |
|
RJ01 | Rejection of invention patent application after publication |