System and method for realizing dual-path Bluetooth audio output under dual windows in smart television

By constructing a directional association logic between a window, an application PID, and a Bluetooth device in a smart TV, the problem of synchronous output of mixed audio streams in dual-window mode is solved, achieving audio output effects that can be used independently by multiple users.

CN121397293APending Publication Date: 2026-01-23SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511532384.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-24
Publication Date
2026-01-23

AI Technical Summary

Technical Problem

Existing smart TVs cannot send audio streams from different windows to different Bluetooth audio devices in dual-window mode, resulting in audio signals overlapping and interfering with each other, which cannot meet the needs of multiple users using the TVs independently at the same time.

Method used

By constructing a window client management module, a dual-window Bluetooth output configuration management module, and a dual-window Bluetooth audio mixing processing module, a directional association logic between window-application PID-Bluetooth device is established, enabling the audio streams of different windows to be mixed and output to the corresponding channel Bluetooth devices.

Benefits of technology

It enables independent and clear audio output for each window in dual-window mode, meeting the needs of multiple users for independent use, and supports the Bluetooth speaker left and right swapping function to adapt to personalized configurations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121397293A_ABST
    Figure CN121397293A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of smart televisions, discloses a system and a method for realizing double-channel Bluetooth audio output under double windows in a smart television, and solves the problem that the use of a double-window mode is limited due to the fact that audio streams of different windows cannot be supported to be sent to different Bluetooth audio devices under the double-window mode of the smart television in the prior art. In the scheme of the invention, a window client management module extracts application PID in double windows and determines left and right flag bits LR of a Bluetooth loudspeaker corresponding to each window, and generates an instruction and transmits the instruction to a double-window Bluetooth output configuration management module to construct an application PID-LR mapping table; and after the dual-window Bluetooth audio mixing processing module mixes and shrinks each application audio track downwards into a single sound track according to the mapping table, directional sound mixing is carried out according to an LR value to a corresponding sound track of an output stereo sound track, and finally, audios of different sound tracks are sent to corresponding Bluetooth equipment through a Bluetooth protocol stack.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of smart TV technology, and specifically to a system and method for realizing dual-channel Bluetooth audio output in a smart TV with dual windows. Background Technology

[0002] With the continuous iteration of smart TV functions, dual-window mode has become an important feature for enhancing the user experience. Users can open two independent windows on the same screen simultaneously, running different applications (such as playing movies / TV shows in the left window and running games or video calls in the right window), achieving multitasking needs with one screen for two uses. Meanwhile, Bluetooth audio output devices (such as Bluetooth headsets and speakers) have become mainstream audio peripherals for smart TVs due to their advantages of being wire-free and flexible in use. Current technology generally supports connecting two Bluetooth audio devices and configuring them in stereo output mode, such as outputting the left channel audio through Bluetooth device A and the right channel audio through Bluetooth device B, meeting users' needs for immersive sound effects.

[0003] However, existing smart TVs have compatibility issues with dual-window mode, significantly limiting its practicality. Specifically, when a smart TV is in dual-window mode and two Bluetooth audio devices are connected simultaneously, the system mixes all audio streams from the applications in both windows into a single stereo audio track, then sends it synchronously to both Bluetooth devices via the Bluetooth protocol stack. This means that the movie audio from the left window and the game audio from the right window will be output simultaneously from both Bluetooth devices, causing the audio signals to overlap and interfere with each other, making it impossible for users to clearly distinguish the sound content of either window. For example, if user A wants to watch a movie in the left window via Bluetooth device A, and user B wants to play a game in the right window via Bluetooth device B, in reality, both users will hear the movie dialogue and the game sound effects simultaneously, making it impossible to use them in parallel without interference, thus negating the value of dual-window mode in multi-user scenarios.

[0004] The core issue with existing technology lies in the lack of a directional association mechanism between windows and audio devices: on the one hand, the system cannot identify the window affiliation of different audio streams, and cannot distinguish between audio generated by the application in the left window and audio generated by the application in the right window; on the other hand, the audio processing module only supports a single logic for synchronous output of all mixed audio, and does not provide the control capability to output to a designated Bluetooth device by window category. Although some smart TVs support muting a single window, this only turns off the audio of a specific window, rather than outputting it to a designated device, and still cannot meet the needs of multiple users simultaneously using different windows and listening to audio independently. Summary of the Invention

[0005] The technical problem to be solved by the present invention is to provide a system and method for realizing dual-channel Bluetooth audio output in a dual-window mode in a smart TV, thereby solving the problem that the existing technology cannot support sending audio streams from different windows to different Bluetooth audio devices in the dual-window mode of a smart TV, which limits the use of the dual-window mode.

[0006] The technical solution adopted by the present invention to solve the above-mentioned technical problems is as follows: On one hand, the present invention provides a system for realizing dual-channel Bluetooth audio output in a smart TV with dual windows, comprising: The window client management module is used to extract the PID of each application process and subprocess in the dual windows when the smart TV is connected to two Bluetooth audio output devices and the dual window mode is enabled, determine the left and right flag bits LR of the Bluetooth speaker corresponding to each window, and generate application-speaker setting instructions based on PID and LR, and send them to the dual window Bluetooth output configuration management module. The dual-window Bluetooth output configuration management module is integrated into the AudioMixer of the smart TV. It is used to accept and parse application-speaker setting instructions and build a mapping table between the application PID and the left and right flag bits LR of the Bluetooth speaker. The dual-window Bluetooth audio mixing module, integrated into the AudioMixer of the smart TV, is used to obtain the application PID corresponding to the track when the application plays audio and generates an audio track. It then queries the mapping table between the application PID and the left and right flag bits (LR) of the Bluetooth speaker to obtain the LR value, downmixes the track to a mono track, and mixes the mono track to the corresponding channel of the output stereo track according to the LR value. This allows the smart TV to send the mixed stereo track to the Bluetooth audio output device of the corresponding channel.

[0007] On the other hand, based on the above system, the present invention also provides a method for realizing dual-channel Bluetooth audio output in a smart TV with dual windows, comprising the following steps: S1. When the smart TV connects to two Bluetooth audio output devices and enables dual-window mode, the window client management module extracts the PID of each application process and subprocess in the dual windows, determines the LR corresponding to each window, generates application-speaker setting instructions, and sends them to the dual-window Bluetooth output configuration management module. S2. The dual-window Bluetooth output configuration management module parses the application-speaker setting instructions and constructs a mapping table between the application PID and the left and right flag bits LR of the Bluetooth speaker; S3. When an application in the smart TV window plays audio and generates an audio track, the dual-window Bluetooth audio mixing processing module obtains the application PID corresponding to the track and queries the mapping table between the application PID and the left and right flag bits LR of the Bluetooth speaker to obtain the LR value. S4. The dual-window Bluetooth audio mixing module downmixes the Track to a mono track and mixes the mono track to the corresponding channel of the output stereo track according to the LR value. S5. The smart TV uses the Bluetooth protocol stack to send the mixed stereo audio track to the corresponding Bluetooth audio output device for audio output.

[0008] Furthermore, the two Bluetooth audio output devices include Bluetooth headphones or Bluetooth speakers. After the smart TV pairs and connects to the two devices via Bluetooth, it automatically identifies them as the left and right channel Bluetooth speakers.

[0009] Furthermore, in step S1, the application-speaker setting command generated by the window client management module is first sent to AudioFlinger (audio manager) through the system standard interface of the smart TV, and then transmitted by AudioFlinger to the dual-window Bluetooth output configuration management module.

[0010] Furthermore, in step S1, determining the LR corresponding to each window includes: by default, the LR of the left window is 0 and the LR of the right window is 1; when the user triggers the Bluetooth speaker left and right switch operation, the LR of the left window is updated to 1 and the LR of the right window is updated to 0, and the window client management module regenerates the application-speaker setting instruction.

[0011] Furthermore, in step S1, the format of the application-speaker setting instruction generated by the window client management module is: multiwindow_2waybtlr=PID1:LR1,PID2:LR2,...,PIDn:LRn; Wherein, PID1 to PIDn are the PIDs of each application process and its subprocess in the dual windows, and LR1 to LRn are the LR values ​​of the windows corresponding to each PID.

[0012] Furthermore, in step S1, the triggering conditions for the window client management module to generate the application-speaker setting instruction include: application startup, application exit, or user triggering of Bluetooth speaker left and right swapping operation in the dual windows.

[0013] Furthermore, in step S2, the mapping table between the application PID and the left and right flag bits LR of the Bluetooth speaker contains the PIDs of all application processes and their child processes in all windows, as well as the configuration of the corresponding PIDs being assigned to the left or right channel Bluetooth speaker.

[0014] Furthermore, in step S4, the method by which the dual-window Bluetooth audio mixing processing module downmixes the Track to a mono track includes: performing channel synthesis processing on the stereo audio signal of the Track to eliminate the difference between the left and right channels and obtain a mono audio signal.

[0015] Furthermore, in step S4, the mixing of the mono track to the corresponding channel of the output stereo track according to the LR value includes: mixing the mono track to the left channel of the output stereo track when LR=0, and mixing the mono track to the right channel of the output stereo track when LR=1.

[0016] The beneficial effects of this invention are: (1) By working together with the window client management module, the dual-window Bluetooth output configuration management module and the dual-window Bluetooth audio mixing processing module, a directional association logic between window-application PID-Bluetooth device is established. The audio streams generated by different applications in the dual windows are mixed to the corresponding channels of the output stereo audio track, and finally played by the Bluetooth audio device of the corresponding channel. This completely solves the sound interference problem caused by the synchronous output of dual-window audio mixing in the existing technology, and ensures that the audio of each window is independent and clear.

[0017] (2) In scenarios such as home entertainment and multi-user sharing, different users can watch different content in the dual windows through dedicated Bluetooth audio devices and obtain the audio of the corresponding window without interference, breaking through the limitations of existing technology on dual-window multi-user scenarios.

[0018] (3) This invention provides a Bluetooth speaker left and right switching function. When the user triggers this operation, the window client management module can update the LR value corresponding to each window in real time, and synchronously update the application-speaker setting instructions and mapping table, thereby adjusting the audio output direction. The audio output correspondence can be flexibly adjusted without reconnecting the Bluetooth device or restarting the window, adapting to the user's personalized needs for using the Bluetooth device.

[0019] (4) All three core modules of the present invention are based on the existing system architecture of smart TVs. No additional hardware devices or Bluetooth protocol stacks need to be added. The dual-window dual-channel Bluetooth audio output function can be realized simply by optimizing the software logic. Attached Figure Description

[0020] Figure 1 This is a system structure block diagram for implementing dual-window dual-channel Bluetooth audio output in a smart TV according to the present invention.

[0021] Figure 2 This is a schematic diagram of the window client management module structure in this invention.

[0022] Figure 3 This is a flowchart illustrating the method for implementing dual-channel Bluetooth audio output in a smart TV with dual windows in this invention.

[0023] Figure 4 This is a schematic diagram of the dual-window dual-channel Bluetooth audio output processing results in this invention. Detailed Implementation

[0024] This invention aims to provide a system and method for implementing dual-channel Bluetooth audio output in a dual-window mode on a smart TV, solving the problem that existing technologies in smart TV dual-window mode cannot support sending audio streams from different windows to different Bluetooth audio devices, thus limiting the use of dual-window mode. Its core idea is to establish a collaborative system of a window client management module, a dual-window Bluetooth output configuration management module, and a dual-window Bluetooth audio mixing processing module, thereby establishing a directional association logic between window-application PID-Bluetooth device and enabling independent audio output from both windows to their respective Bluetooth devices. Specifically, the window client management module first extracts the application PID within the dual windows and determines the left and right Bluetooth speaker flags (LR) for each window. It then generates instructions and passes them to the dual-window Bluetooth output configuration management module to construct an application PID-LR mapping table. Next, the dual-window Bluetooth audio mixing processing module uses this mapping table to downmix each application's audio track to mono and then mixes it directionally to the corresponding channel of the output stereo track according to the LR value (LR=0 corresponds to the left channel, LR=1 corresponds to the right channel). Finally, the audio from different channels is sent to the corresponding Bluetooth devices through the Bluetooth protocol stack, thus solving the problem of synchronous audio mixing and output in the dual windows. This meets the needs of multiple users to use the dual windows independently without interference, while also supporting dynamic adjustment of the LR value to adapt to personalized configurations.

[0025] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0026] The system architecture for implementing dual-window dual-channel Bluetooth audio output in a smart TV provided by this invention is described in [reference needed]. Figure 1 It includes: a window client management module, a dual-window Bluetooth output configuration management module, and a dual-window Bluetooth output configuration management module. The functions of each module are implemented as follows: (1) Window Client Management Module: To identify the correspondence between audio tracks generated by each application and their respective windows, this invention constructs a window client management module. Its function is to extract application information from each window, assign corresponding Bluetooth speakers, and notify the dual-window Bluetooth output configuration management module to synchronize information changes.

[0027] See Figure 2 The following information exists in the window client management module: In a dual-window system, the windows have the following WINIDs: the left window is denoted as WIN0, and the right window as WIN1.

[0028] The PIDs of all application processes and their child processes under each window are denoted as PID0, PID1, PID2, etc.

[0029] The left and right Bluetooth speaker flags (LR) for each window are set as follows: 0 indicates the speaker is assigned to the left Bluetooth speaker, and 1 indicates it is assigned to the right Bluetooth speaker. Normally, the left window has an LR of 0 and is assigned to the left Bluetooth speaker; the right window has an LR of 1 and is assigned to the right Bluetooth speaker. When the Bluetooth speaker positions are swapped, the left window has an LR of 1 and is assigned to the right Bluetooth speaker; the right window has an LR of 0 and is assigned to the left Bluetooth speaker.

[0030] When the TV system is in dual-window mode and two Bluetooth speakers are connected, if there are state changes such as application startup, exit, or Bluetooth speaker swapping in the dual windows, the window client management module will query the PIDs of the application processes and child processes existing in each window, and generate application-speaker setting instructions. The instruction format is: Application-Speaker Setting Instruction Header = PID:LR; PID:LR... The instruction generation method is as follows: extract all application PIDs in the left window in sequence, and form key-value pairs with the left and right Bluetooth speaker flag bits LR in the left window. Then extract all application PIDs in the right window in sequence, and form key-value pairs with the right Bluetooth speaker flag bits LR in the right window. Then form the application-speaker setting instruction as shown below: multiwindow_2waybtlr=0000:0,1111:0,2222:1,3333:1.

[0031] After generating the application-speaker settings command, the dual-window client management module transmits the command to AudioFlinger (audio manager) through the system standard interface void setParameters(String keyValuePairs), and further transmits it to the dual-window Bluetooth output configuration management module in AudioMixer (mixer).

[0032] (2) Dual-window Bluetooth output configuration management module: Integrated into the AudioMixer of smart TVs, when the dual-window output device processing module receives an application-speaker setting command, it parses it and constructs an application PID-Bluetooth speaker left / right flag LR mapping table. This mapping table contains the PIDs of all application processes and their child processes in all windows, along with the configuration of assigning each PID to either the left or right Bluetooth speaker.

[0033] (3) Dual-window Bluetooth audio mixing processing module: Integrated into the AudioMixer of smart TVs, AudioFlinger generates an audio track when an application plays audio. During operation, AudioFlinger sequentially mixes all tracks using AudioMixer, ultimately combining them into a single stereo track. When two Bluetooth speakers are connected, operating in stereo mode, AudioFlinger sends the mixed stereo track to the Bluetooth protocol stack, which then distributes the left and right channels to different Bluetooth speakers, resulting in stereo playback through dual Bluetooth speakers. If the system has multi-window functionality enabled, the audio from each window will be simultaneously output through both Bluetooth speakers.

[0034] To achieve the goal of sending audio streams from different windows to different Bluetooth speakers when both windows are open, a dual-window Bluetooth audio mixing module needs to be added to AudioMixer. This module downmixes the stereo audio tracks input from each application in each window to mono and mixes them to the left (or right) channel of the output stereo audio track, thus outputting it through the left (or right) Bluetooth speaker. It's important to note that downmixing the stereo audio track to mono is necessary because the original application audio may have built-in stereo effects (such as left-channel vocals and right-channel background noise in movie audio). Directly outputting stereo would cause the single-window audio to occupy two channels, making "dual-window splitting" impossible. Downmixing to mono allows for precise directionality of the window audio to a single channel, ensuring output independence.

[0035] The dual-window Bluetooth audio mixing processing module will start when both Bluetooth speakers are connected and both windows are open. Its processing flow is as follows: Get the PID of the currently processed Track; Query the application PID-Bluetooth speaker left and right flag bits LR mapping table to obtain the Bluetooth speaker left and right flag bits LR corresponding to the Track; Downmix the currently processed Track to obtain a mono track, Trackmono. Based on the left and right LR flags of the Bluetooth speaker corresponding to the current Track, and following the principle that LR is 0, the audio is mixed to the left channel and LR is 1, the audio is mixed to the right channel. The Trackmono is then mixed to the left (or right) channel of the output stereo audio track.

[0036] Based on the above system, this invention also provides a method for implementing dual-channel Bluetooth audio output in a smart TV with dual windows, the process of which is described below. Figure 3 This includes the following steps: S1. When the smart TV connects to two Bluetooth audio output devices and enables dual-window mode, the window client management module extracts the PID of each application process and subprocess in the dual windows, determines the LR corresponding to each window, generates application-speaker setting instructions, and sends them to the dual-window Bluetooth output configuration management module. S2. The dual-window Bluetooth output configuration management module parses the application-speaker setting instructions and constructs a mapping table between the application PID and the left and right flag bits LR of the Bluetooth speaker; S3. When an application in the smart TV window plays audio and generates an audio track, the dual-window Bluetooth audio mixing processing module obtains the application PID corresponding to the track and queries the mapping table between the application PID and the left and right flag bits LR of the Bluetooth speaker to obtain the LR value. S4. The dual-window Bluetooth audio mixing module downmixes the Track to a mono track and mixes the mono track to the corresponding channel of the output stereo track according to the LR value. S5. The smart TV uses the Bluetooth protocol stack to send the mixed stereo audio track to the corresponding Bluetooth audio output device for audio output.

[0037] It should be noted that, since each step corresponds to the function of its respective module, and based on the detailed description of each module described above, the specific implementation methods of each step will not be repeated here. The final audio directional output effect of the dual-window dual-Bluetooth device achieved by this invention is as follows: Figure 4 As shown, in a scenario where there are two windows (Window A and Window B) on a TV and two Bluetooth audio output devices (Bluetooth headset A and Bluetooth headset B) are connected simultaneously, user A can normally obtain the audio data of application a in window A through Bluetooth headset A, and user B can normally obtain the audio data of application b in window B through Bluetooth headset B, without mutual interference, thus improving the experience.

[0038] Example 1: This embodiment demonstrates directional audio output from two Bluetooth devices in a dual-window configuration under default settings. It is designed for scenarios where the user has not triggered Bluetooth device switching and directional audio output is achieved using the system's default LR configuration. The specific process is as follows: 1. The user connects Bluetooth headset A and Bluetooth headset B to the TV and enables dual-window mode. Window A is the left window, and window B is the right window. Application A runs in window A (assuming PID 1234); application B runs in window B (assuming PID 5678). By default, the left and right Bluetooth speaker flags LR in window A are 0; and the left and right Bluetooth speaker flags LR in window B are 1.

[0039] 2. The window client management module parses the PID of the audio tracks generated by applications A and B and the correspondence between them and the left and right LR flags of the window Bluetooth speaker. It generates the application-speaker setting command "multiwindow_2waybtlr=1234:0,5678:1" and sends the command to AudioFlinger through the system standard interface setParameters. The command is then further transmitted to the dual-window Bluetooth output configuration management module in AudioMixer. 3. The dual-window Bluetooth output configuration management module receives the application-speaker setting command, parses it, and constructs a mapping table of "application PID-Bluetooth speaker left and right flag bits LR".

[0040] 4. The dual-window Bluetooth audio mixing module queries the “Application PID - Bluetooth Speaker Left and Right Flags LR” mapping table to find the window to which the Track belongs, mixes the application’s Track down to mono, mixes the mono track of application A to the left channel of the output track, and mixes the mono track of application B to the right channel of the output track.

[0041] At this moment, the audio played by application A in window A is emitted from Bluetooth headset A, and the audio played by application B in window B is emitted from Bluetooth headset B. Each user can watch different online media audio and video programs through Bluetooth headset A and Bluetooth headset B respectively.

[0042] Example 2: This embodiment corresponds to a scenario where the user triggers a Bluetooth speaker left / right switch operation, requiring dynamic adjustment of the audio output correspondence. The specific process is as follows: 1. The user connects Bluetooth headset A and Bluetooth headset B to the TV and starts a dual-window mode. Application A runs in window A (assuming PID is 1234), and application B runs in window B (assuming PID is 5678). As in Example 1, the audio played by application A in the left window A is emitted from Bluetooth headset A, and the audio played by application B in the right window B is emitted from Bluetooth headset B.

[0043] 2. User settings: Swap the left and right Bluetooth speaker settings. In window A, the left and right Bluetooth speaker flags LR are set to 1; in window B, the left and right Bluetooth speaker flags LR are set to 0.

[0044] 3. The window client management module re-parses the PID of the audio tracks generated by applications A and B and the correspondence between them and the left and right LR flags of the window Bluetooth speaker, generates the application-speaker setting command "multiwindow_2waybtlr=1234:1,5678:0", and sends the command to AudioFlinger through the system standard interface setParameters, and further transmits it to the dual-window Bluetooth output configuration management module in AudioMixer.

[0045] 4. The dual-window Bluetooth output configuration management module receives the application-speaker setting command, parses it, and constructs a mapping table of "application PID-Bluetooth speaker left and right flag bits LR".

[0046] 5. The dual-window Bluetooth audio mixing module queries the “Application PID - Bluetooth Speaker Left / Right Flags LR” mapping table to find the window to which the Track belongs, mixes the application’s Track down to mono, mixes the mono track of application A to the right channel of the output track, and mixes the mono track of application B to the left channel of the output track.

[0047] Finally, the audio played by application A in the left window A is emitted from Bluetooth headset B, while the audio played by application B in the right window B is emitted from Bluetooth headset A, allowing the Bluetooth headsets corresponding to the two windows to exchange audio outputs.

[0048] Although embodiments of the present invention have been described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the present invention, and all such changes and alterations shall not depart from the protection scope of the present invention.

Claims

1. A system for implementing dual-channel Bluetooth audio output in a smart TV with dual windows, characterized in that, include: The window client management module is used to extract the PID of each application process and subprocess in the dual windows when the smart TV is connected to two Bluetooth audio output devices and the dual window mode is enabled, determine the left and right flag bits LR of the Bluetooth speaker corresponding to each window, and generate application-speaker setting instructions based on PID and LR, and send them to the dual window Bluetooth output configuration management module. The dual-window Bluetooth output configuration management module is integrated into the AudioMixer of the smart TV. It is used to accept and parse application-speaker setting instructions and build a mapping table between the application PID and the left and right flag bits LR of the Bluetooth speaker. The dual-window Bluetooth audio mixing module, integrated into the AudioMixer of the smart TV, is used to obtain the application PID corresponding to the track when the application plays audio and generates an audio track. It then queries the mapping table between the application PID and the left and right flag bits (LR) of the Bluetooth speaker to obtain the LR value, downmixes the track to a mono track, and mixes the mono track to the corresponding channel of the output stereo track according to the LR value. This allows the smart TV to send the mixed stereo track to the Bluetooth audio output device of the corresponding channel.

2. A method for implementing dual-channel Bluetooth audio output under dual-window conditions in a smart TV, applied to the system for implementing dual-channel Bluetooth audio output under dual-window conditions in a smart TV as described in claim 1, characterized in that, The method includes the following steps: S1. When the smart TV connects to two Bluetooth audio output devices and enables dual-window mode, the window client management module extracts the PID of each application process and subprocess in the dual windows, determines the LR corresponding to each window, generates application-speaker setting instructions, and sends them to the dual-window Bluetooth output configuration management module. S2. The dual-window Bluetooth output configuration management module parses the application-speaker setting instructions and constructs a mapping table between the application PID and the left and right flag bits LR of the Bluetooth speaker; S3. When an application in the smart TV window plays audio and generates an audio track, the dual-window Bluetooth audio mixing processing module obtains the application PID corresponding to the track and queries the mapping table between the application PID and the left and right flag bits LR of the Bluetooth speaker to obtain the LR value. S4. The dual-window Bluetooth audio mixing module downmixes the Track to a mono track and mixes the mono track to the corresponding channel of the output stereo track according to the LR value. S5. The smart TV uses the Bluetooth protocol stack to send the mixed stereo audio track to the corresponding Bluetooth audio output device for audio output.

3. The method for implementing dual-channel Bluetooth audio output in a smart TV under dual-window conditions as described in claim 2, characterized in that, The two Bluetooth audio output devices include Bluetooth headphones or Bluetooth speakers. After the smart TV pairs and connects to the two devices via Bluetooth, it automatically marks them as the left and right channel Bluetooth speakers.

4. The method for implementing dual-channel Bluetooth audio output in a smart TV with dual windows as described in claim 2, characterized in that, In step S1, the application-speaker setting command generated by the window client management module is first sent to AudioFlinger through the system standard interface of the smart TV, and then AudioFlinger transmits it to the dual-window Bluetooth output configuration management module.

5. The method for implementing dual-channel Bluetooth audio output in a smart TV under dual-window conditions as described in claim 2, characterized in that, In step S1, determining the LR corresponding to each window includes: by default, the LR of the left window is 0 and the LR of the right window is 1; when the user triggers the Bluetooth speaker left and right switch operation, the LR of the left window is updated to 1 and the LR of the right window is updated to 0, and the window client management module regenerates the application-speaker setting instruction.

6. The method for implementing dual-channel Bluetooth audio output in a smart TV under dual-window conditions as described in claim 2, characterized in that, In step S1, the format of the application-speaker setting instruction generated by the window client management module is: multiwindow_2waybtlr=PID1:LR1,PID2:LR2,...,PIDn:LRn; Wherein, PID1 to PIDn are the PIDs of each application process and its subprocess in the dual windows, and LR1 to LRn are the LR values ​​of the windows corresponding to each PID.

7. The method for implementing dual-channel Bluetooth audio output in a smart TV with dual windows as described in claim 5, characterized in that, In step S1, the triggering conditions for the window client management module to generate the application-speaker setting instruction include: application startup, application exit, or user triggering of Bluetooth speaker left and right swapping operation in the dual windows.

8. The method for implementing dual-channel Bluetooth audio output in a smart TV under dual-window conditions as described in claim 2, characterized in that, In step S2, the mapping table between the application PID and the left and right flag bits LR of the Bluetooth speaker contains the PIDs of all application processes and their child processes in all windows, as well as the configuration of the corresponding PIDs being assigned to the left or right channel Bluetooth speaker.

9. The method for implementing dual-channel Bluetooth audio output in a smart TV under dual-window conditions as described in claim 2, characterized in that, In step S4, the method by which the dual-window Bluetooth audio mixing processing module downmixes the Track to a mono track includes: performing channel synthesis processing on the stereo audio signal of the Track to eliminate the difference between the left and right channels and obtain a mono audio signal.

10. The method for implementing dual-channel Bluetooth audio output in a smart TV under dual-window conditions as described in claim 9, characterized in that, In step S4, mixing the mono track to the corresponding channel of the output stereo track according to the LR value includes: mixing the mono track to the left channel of the output stereo track when LR=0, and mixing the mono track to the right channel of the output stereo track when LR=1.