Bluetooth audio output method, Bluetooth audio equipment, vehicle-mounted audio system and automobile

By automatically establishing audio stream connections and managing audio focus in the vehicle terminal, the problem of long operation links in traditional Bluetooth music playback is solved, achieving stable and efficient audio output and improving the user experience.

CN122054110APending Publication Date: 2026-05-15ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ZHEJIANG GEELY HLDG GRP CO LTD
Filing Date
2026-02-05
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

In traditional Bluetooth music playback technology, the operation chain is relatively long when users output audio using the in-vehicle Bluetooth service, resulting in cumbersome operation steps and unstable audio output.

Method used

After detecting the establishment of a basic Bluetooth connection with the user terminal, an audio stream connection is automatically established directly based on the audio distribution protocol, and the audio output is optimized through audio focus management and audio-visual control protocols, including dynamic switching between short and long focus audio, to ensure stable output of the audio stream.

Benefits of technology

It shortens the user operation steps, improves the stability and success rate of Bluetooth audio output, is compatible with various audio scenarios, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122054110A_ABST
    Figure CN122054110A_ABST
Patent Text Reader

Abstract

The invention relates to a Bluetooth audio output method, Bluetooth audio equipment, a vehicle-mounted audio system and an automobile. Comprising the following steps: executing an operation of establishing an audio stream connection with a user terminal based on an audio distribution protocol in response to a condition of judging to establish a basic Bluetooth connection with the user terminal; and receiving an audio stream of the user terminal based on the audio stream connection, analyzing the audio stream, and outputting an audio corresponding to the audio stream. By adopting the method, the problem that an operation link is relatively long when a user uses a vehicle-mounted Bluetooth service to output Bluetooth audio can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Bluetooth audio playback, and in particular to Bluetooth audio output methods, Bluetooth audio devices, in-vehicle audio systems, and automobiles. Background Technology

[0002] Current traditional Bluetooth music playback technology requires users to first establish a Bluetooth connection between the in-vehicle terminal and the user's terminal. Then, through interaction between the user and the Bluetooth music module in the in-vehicle terminal, the user is notified that the user's terminal requires audio output via Bluetooth. The Bluetooth music module, responding to the user's audio output request, determines the necessary Bluetooth protocol and initiates a Bluetooth protocol connection request. This allows the in-vehicle terminal to activate the Bluetooth protocol corresponding to the user's audio output request, thus enabling Bluetooth connectivity between the user's terminal and the in-vehicle terminal, and facilitating Bluetooth audio output.

[0003] In this type of traditional Bluetooth music playback technology, the user's Bluetooth service link operation is relatively long. That is, the user needs to connect to Bluetooth first, and then the user needs to turn on the Bluetooth music module of the vehicle terminal. Only through the interaction between the user and the vehicle terminal can the user's audio connection needs be determined, and then the corresponding Bluetooth protocol connection and Bluetooth audio output can be realized according to the audio connection needs.

[0004] There is currently no effective solution to the problem of long operation links when users output Bluetooth audio using in-vehicle Bluetooth services in related technologies. Summary of the Invention

[0005] Therefore, it is necessary to provide a Bluetooth audio output method, Bluetooth audio device, in-vehicle audio system, and automobile that can solve the problem of long operation links when users use in-vehicle Bluetooth services, in order to address the above-mentioned technical problems.

[0006] Firstly, this embodiment provides a Bluetooth audio output method, the method comprising:

[0007] In response to determining that a basic Bluetooth connection has been established with the user terminal, an operation is performed to establish an audio stream connection with the user terminal based on the audio distribution protocol;

[0008] Based on the audio stream connection, the system receives the audio stream from the user terminal, parses the audio stream, and outputs the audio corresponding to the audio stream.

[0009] In some embodiments, the audio stream is parsed and then the corresponding audio is output, including:

[0010] In response to the audio stream received from the user terminal via the audio stream connection, request audio focus;

[0011] The data frames in the audio stream are parsed, and the audio is output based on the parsing results and the audio focus.

[0012] In some embodiments, requesting audio focus in response to an audio stream received from the user terminal via the audio stream connection includes:

[0013] When the audio stream is detected to be in a starting state based on the frame header data in the audio stream, the audio focus is requested.

[0014] In some of these embodiments, the audio focus includes an audio short focus.

[0015] In some embodiments, the method further includes:

[0016] When the user terminal outputs the audio stream based on the first audio output request, the audio short focus is switched to the audio long focus; the first audio output request is used to output an audio stream with an expected playback duration greater than or equal to a preset threshold.

[0017] In some embodiments, after requesting audio focus in response to receiving an audio stream from the user terminal via the audio streaming connection, the method further includes:

[0018] Upon receiving a second audio output request in non-Bluetooth mode, an audio focus strategy corresponding to the second audio output request in non-Bluetooth mode is executed; the audio focus strategy is used to adjust the audio output state of the audio stream; the second audio output request is triggered by an in-vehicle terminal other than the user terminal.

[0019] In some embodiments, the audio focus strategy includes:

[0020] Release the audio focus of the user terminal; or,

[0021] Reduce the audio output volume of the audio stream.

[0022] In some embodiments, an audio focus strategy corresponding to the second audio output request in the non-Bluetooth mode is executed, including:

[0023] If the second audio output request requires exclusive access to the audio output channel, the audio output of the audio stream is interrupted by releasing the audio focus of the user terminal;

[0024] If the second audio output request does not require exclusive access to the audio output channel, reduce the audio output volume of the audio stream.

[0025] In some embodiments, after requesting audio focus in response to receiving an audio stream from the user terminal via the audio streaming connection, the method further includes:

[0026] When the audio stream is detected to be in an end state based on the frame end data in the audio stream, the audio focus is released.

[0027] In some embodiments, after requesting audio focus in response to receiving an audio stream from the user terminal via the audio streaming connection, the method further includes:

[0028] An audio control connection is established with the user terminal based on the audio and video control protocol to control audio playback.

[0029] In some embodiments, after establishing an audio control connection with the user terminal based on an audio / video control protocol, the method further includes:

[0030] In response to receiving a second audio output request in non-Bluetooth mode, and releasing the current audio focus, a callback message is generated.

[0031] In response to the callback information indicating that audio focus has been lost, the audio output state of the user terminal is changed according to the audio and video control protocol.

[0032] In some embodiments, the method further includes:

[0033] Monitor whether the audio stream output by the user terminal has audio focus;

[0034] When the audio stream output by the user terminal has the audio focus, audio control information obtained based on the audio and video control protocol is displayed.

[0035] Secondly, this embodiment provides a Bluetooth audio output method, including:

[0036] When an audio stream connection is established with a user terminal, an audio short focus is requested in response to the received audio stream from the user terminal;

[0037] The data frames in the audio stream are parsed, and the audio corresponding to the audio stream is output based on the parsing results and the audio short focus.

[0038] Thirdly, this embodiment provides a Bluetooth audio output device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the Bluetooth audio output method described in the first aspect, or the Bluetooth audio output method described in the second aspect.

[0039] Fourthly, this embodiment provides an in-vehicle audio system, the system comprising:

[0040] The control module is used to automatically execute the operation of establishing an audio stream connection with the user terminal based on the audio distribution protocol in response to the detection result when a basic Bluetooth connection with the user terminal is detected.

[0041] An audio output module is used to receive the audio stream from the user terminal based on the audio stream connection, parse the audio stream, and output the audio corresponding to the audio stream.

[0042] Fifthly, this embodiment provides a vehicle that includes the Bluetooth audio output device described in the third aspect.

[0043] In a sixth aspect, this embodiment provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the Bluetooth audio output method described in the first aspect or the Bluetooth audio output method described in the second aspect.

[0044] In a seventh aspect, this embodiment provides a computer program product, including a computer program that, when executed by a processor, implements the Bluetooth audio output method described in the first aspect, or the Bluetooth audio output method described in the second aspect.

[0045] The aforementioned Bluetooth audio output method, Bluetooth audio device, in-vehicle audio system, and automobile, once the basic Bluetooth connection with the user terminal is established, directly implement the audio stream connection based on the audio distribution protocol and achieve audio stream output. In this way, after the basic Bluetooth connection is established, there is no need to determine the current Bluetooth audio output requirements through user interaction, and the Bluetooth protocol required to achieve Bluetooth output is obtained based on the current Bluetooth audio output requirements. This shortens the operation steps required for users to use Bluetooth services and solves the problem of long operation links when users use in-vehicle Bluetooth services to output Bluetooth audio. Attached Figure Description

[0046] Figure 1 This is a hardware structure block diagram of a terminal for a Bluetooth audio output method in one embodiment;

[0047] Figure 2 This is a flowchart illustrating a Bluetooth audio output method in one embodiment;

[0048] Figure 3 This is a schematic diagram of a traditional in-vehicle Bluetooth music playback process in one embodiment;

[0049] Figure 4 This is a flowchart illustrating a Bluetooth audio output method applied to an in-vehicle terminal in one embodiment.

[0050] Figure 5 This is a schematic diagram of the structure of the vehicle-mounted terminal in one embodiment;

[0051] Figure 6 This is a flowchart illustrating the Bluetooth audio output method in another embodiment;

[0052] Figure 7 This is a structural block diagram of an in-vehicle audio system in one embodiment;

[0053] Figure 8 This is a structural block diagram of an in-vehicle audio system in another embodiment;

[0054] Figure 9 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0055] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0056] The method embodiments provided in this example can be executed in the computing device of an in-vehicle system. For example, they can run on an in-vehicle terminal. Figure 1 This is a hardware structure block diagram of an application terminal for a Bluetooth audio output method according to an embodiment of this application. For example... Figure 1 As shown, a terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 and a memory 104 for storing data are also included. The processor 102 may be, but is not limited to, a microprocessor (MCU) or a programmable logic device (FPGA). The terminal may also include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that… Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the terminal described above. For example, the terminal may also include components that are larger than... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown are illustrated.

[0057] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the Bluetooth audio output method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0058] The transmission device 106 is used to receive or send data via a network. This network includes a wireless network provided by the terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 can be a Radio Frequency (RF) module used for wireless communication with the Internet.

[0059] In one embodiment, such as Figure 2 As shown, a Bluetooth audio output method is provided, including the following steps:

[0060] Step S202: In response to determining that a basic Bluetooth connection has been established with the user terminal, an operation is performed to establish an audio stream connection with the user terminal based on the audio distribution protocol.

[0061] The user terminal has Bluetooth connectivity for outputting audio information; the user terminal can be a mobile phone, tablet, computer, or other similar device. Establishing a basic Bluetooth connection with the user terminal means pairing with the user terminal's Bluetooth and successfully establishing a connection; based on this, data communication with the user terminal can be achieved via Bluetooth.

[0062] Audio distribution protocols are used to output audio information that a user terminal expects to output in the form of an audio stream. An audio stream is compressed and encoded audio information output by the user terminal through an audio distribution protocol. Optionally, the audio distribution protocol can be A2DP (Advanced Audio Distribution Profile), HFP (Hands-Free Profile), etc.

[0063] Optionally, the Bluetooth audio output method is applied to an in-vehicle terminal, which receives and plays the audio information output by the user terminal. Specifically, the in-vehicle terminal determines whether a basic Bluetooth connection has been established with the user terminal. If so, in response to this determination, it automatically performs the operation of establishing an audio stream connection with the user terminal based on a pre-configured audio distribution protocol. It is understood that if it is determined that no basic Bluetooth connection has been established with the user terminal, the step of establishing an audio stream connection with the user terminal based on the audio distribution protocol will not be automatically executed.

[0064] Furthermore, a basic Bluetooth connection can be established between the vehicle terminal and the user terminal via the Bluetooth protocol stack in the operating system of the vehicle terminal. After determining that the basic Bluetooth connection between the vehicle terminal and the user terminal has been established, the vehicle terminal's Bluetooth protocol stack actively establishes an audio distribution protocol connection with the user terminal, enabling the user terminal to transmit audio streams to the vehicle terminal based on the audio distribution protocol.

[0065] Step S204: Receive the audio stream from the user terminal based on the audio stream connection, parse the audio stream, and output the audio corresponding to the audio stream.

[0066] Optionally, the audio stream is parsed based on an audio distribution protocol, and the parsed audio stream is output based on a pre-configured audio driver. For example, the in-vehicle system in the vehicle terminal configures an audio path and driver for the audio stream; the Bluetooth protocol stack in the vehicle terminal parses the audio stream based on the audio distribution protocol, writes the parsing result to the corresponding audio path, and outputs the parsing result based on the pre-configured driver, thus outputting the audio.

[0067] In the above Bluetooth audio output method, after the user terminal establishes a basic Bluetooth connection, it is not necessary to determine the Bluetooth protocol required for the audio stream connection through user interaction. The audio stream connection can be automatically realized based on the audio distribution protocol, thereby receiving the audio stream and realizing the corresponding audio output. This shortens the operation steps required for users to use Bluetooth services and solves the problem of long operation links when users use vehicle Bluetooth services to output Bluetooth audio in the prior art.

[0068] Furthermore, in response to determining that a basic Bluetooth connection has been established with the user terminal, the operation of establishing an audio streaming connection with the user terminal based on the A2DP protocol (Advanced Audio Distribution Profile) is performed. Since the A2DP protocol can cover various audio scenarios, selecting the A2DP protocol as the basic protocol for automatic connection ensures that Bluetooth audio output is effectively compatible with all audio scenarios and adapts to the increasingly diverse audio output needs of emerging audiovisual content providers.

[0069] Since audio system adaptation is required during the connection with the user terminal, Bluetooth audio output needs to acquire audio focus. After acquiring audio focus, subsequent audio parsing can proceed. In one embodiment, parsing the audio stream and outputting the audio corresponding to the audio stream includes: requesting audio focus in response to the audio stream received from the user terminal via the audio stream connection; parsing the data frames in the audio stream; and outputting audio based on the parsing result and the audio focus.

[0070] Audio focus refers to the access rights for audio output. Requesting audio focus grants access to the audio output channel, enabling the current audio stream to output. Audio focus requests include short focus, long focus, and temporary focus. Specifically, short focus is a temporary exclusive audio focus: by requesting short focus, the current audio stream temporarily gains audio playback rights, while other audio streams pause playback. The duration of this access can be configured as needed. Long focus is a long-term exclusive audio focus: by requesting long focus, the audio stream continuously gains audio playback rights, allowing the current audio stream to occupy the audio output channel indefinitely. The duration of this access can also be configured as needed. Temporary focus has a short holding period; after acquiring temporary focus, while the current audio stream is outputting, other audio streams can continue playing but at lower volumes; after the current audio stream finishes playing, the temporary focus is usually automatically released, allowing other audio streams to resume their normal volume.

[0071] Optionally, if an audio output requirement is determined based on the audio stream information, an audio focus request is constructed. The Bluetooth protocol stack of the vehicle terminal responds to the audio focus request, requests audio focus, and enables the parsed audio stream to have audio output permission, thereby being able to output the corresponding audio.

[0072] In this embodiment, the audio stream is ensured to have the permission to output audio by applying for audio focus, thereby improving the stability of the Bluetooth audio output method.

[0073] Furthermore, in one embodiment, requesting audio focus in response to an audio stream received from a user terminal via an audio stream connection includes: requesting audio focus when the audio stream is detected to be in a starting state based on frame header data in the audio stream.

[0074] The frame header data is the audio frame located at the beginning of the audio stream information. Optionally, after receiving the audio stream, if the format of the audio frame matches the audio format of the starting frame specified by the audio distribution protocol, it is determined that the audio stream has entered the Start state, and an active audio focus request is made.

[0075] In this embodiment, requesting audio focus after confirming that the audio stream is in the initial state can improve the immediacy of audio output response and user experience.

[0076] In one embodiment, after requesting audio focus in response to receiving an audio stream from a user terminal via an audio stream connection, the method further includes: releasing audio focus when the audio stream is detected to be in an end state based on frame tail data in the audio stream.

[0077] The frame tail data refers to the audio frame located at the end of the audio stream information. After releasing the audio focus, the audio stream no longer has access to the audio output channel, and at this time, access to the audio output channel can be transferred to other audio sources.

[0078] Optionally, after receiving the audio stream, if the format of the audio frame matches the audio format of the end frame specified by the audio distribution protocol, it is determined that the audio stream has entered the Suspend state, and active audio focus release is performed.

[0079] In this embodiment, releasing the audio focus based on the frame tail data in the audio stream ensures that after Bluetooth audio output, the audio output permission is promptly transferred to other audio sources, allowing other audio sources to output audio and thus reducing the risk of multi-channel audio conflicts.

[0080] For user terminals, once audio information is fed into the audio distribution protocol via an audio stream, the user terminal's audio system will not parse the audio information into its own amplifier system, thus ensuring consistent audio output. However, if the Bluetooth music module of the in-vehicle terminal fails to successfully acquire audio focus, music playback may be silent. That is, although the audio is parsed into the audio distribution protocol channel, because the audio stream has not acquired audio focus, there is no device outputting audio, resulting in a silent device and unstable playback.

[0081] Based on this, this application proposes a Bluetooth audio output method. Building upon the above embodiments, it improves the success rate of Bluetooth audio output by applying for an audio short focus. In one embodiment, the audio focus includes an audio short focus. Specifically, an audio short focus is applied for in response to an audio stream received from the user terminal via an audio stream connection.

[0082] Since the risk of audio short focus requests being rejected is lower than that of other audio focus requests, requesting an audio short focus in response to the received audio stream from the user terminal can improve the success rate of Bluetooth audio output. Furthermore, audio short focus has a lower priority than other audio focuses, and requesting an audio short focus does not affect the original audio-visual capabilities of the in-vehicle terminal. Therefore, in this embodiment, by employing a connection audio distribution protocol and receiving the audio stream before requesting an audio short focus, the risk of focus request rejection can be reduced, while also ensuring compatibility with other non-Bluetooth audio software in the in-vehicle terminal's system.

[0083] Furthermore, after applying for a short focus point for audio, in order to ensure the user's audiovisual enjoyment, it can respond to the user's command to determine whether it is necessary to switch the short focus point to a long focus point.

[0084] Specifically, in one embodiment, when the user terminal outputs an audio stream based on a first audio output request, the audio short focus is switched to the audio long focus; the first audio output request is used to output an audio stream with an expected playback duration greater than or equal to a preset threshold.

[0085] Specifically, it can determine whether the current audio output request is the first audio output request based on the application type of the user terminal's audio stream output. For example, when a music app on the user terminal outputs an audio stream, it can determine whether the audio stream is being output based on the first audio output request and switch the current short focus to a long focus. When a navigation app on the user terminal outputs an audio stream, it can determine whether the audio stream is being output based on the first audio output request and not switch the short focus.

[0086] The preset threshold is used to indicate whether the first audio output request needs to output audio for a long time. Since the first audio output request is used to output audio with an expected playback duration greater than or equal to the preset threshold, timely switching from short audio focus to long audio focus ensures that audio streams with longer expected playback durations can be continuously output. The expected playback duration can be obtained based on the application type that generates the audio output request; the preset threshold can be set according to actual application needs and is not limited here.

[0087] In one embodiment, after requesting audio focus in response to receiving an audio stream from a user terminal via an audio stream connection, the method further includes: upon receiving a second audio output request in non-Bluetooth mode, executing an audio focus policy corresponding to the second audio output request in non-Bluetooth mode; the audio focus policy is used to adjust the audio output state of the audio stream; the second audio output request is triggered by an in-vehicle terminal other than the user terminal.

[0088] The audio output status includes whether the audio is in active playback mode and the output volume. Optionally, the second audio output request in non-Bluetooth mode is generated by the in-vehicle terminal based on the media application installed in the in-vehicle system. The audio output scenarios of the media application include, but are not limited to, video playback and navigation voice.

[0089] Optionally, the in-vehicle terminal pre-configures different priority levels for different audio types and different audio focus strategies for different priorities. When a second audio output request in non-Bluetooth mode is received, the audio type of the second audio output request is obtained, the corresponding priority level is determined based on the audio type, and the audio focus strategy corresponding to the current priority is matched.

[0090] The audio focus strategies include: releasing the audio focus of the user terminal; or reducing the audio output volume of the audio stream.

[0091] By releasing the audio focus of the user terminal, the audio stream output by the user terminal loses its audio output permission, thus pausing playback of the audio stream. Furthermore, simultaneously releasing the audio focus of the user terminal and responding to a second audio output request to request audio focus, the Bluetooth audio output of the user terminal is paused, and the audio corresponding to the second audio output request is output.

[0092] By reducing the audio output volume of the audio stream and maintaining the audio focus of the audio stream, the corresponding audio can be output in response to a second audio output request while retaining the audio corresponding to the audio stream output by the user terminal. Furthermore, by reducing the audio output volume of the audio stream while responding to a second audio output request to request audio focus, the audio volume of the audio stream output by the user terminal is reduced while the audio corresponding to the second audio output request is output.

[0093] In one embodiment, executing an audio focus strategy corresponding to a second audio output request in non-Bluetooth mode includes: interrupting the audio output of the audio stream by releasing the audio focus of the user terminal when the second audio output request requires exclusive use of the audio output channel; and reducing the audio output volume of the audio stream when the second audio output request does not require exclusive use of the audio output channel.

[0094] Optionally, a corresponding tag can be pre-configured for the second audio output request. This tag indicates whether the second audio output request needs to exclusively occupy the audio output channel. For example, a tag for exclusively occupying the audio output channel can be configured for a second audio output request that requires continuous playback for a long time. A tag for not exclusively occupying the audio output channel can be configured for a second audio output request with high real-time requirements. Whether the second audio output request needs to exclusively occupy the audio output channel can be configured according to actual needs and is not limited here.

[0095] Optionally, before executing the audio focus policy corresponding to the second audio output request in non-Bluetooth mode, it can be determined whether the priority of the second audio output request is higher than the priority of the audio stream from the user terminal. If so, the audio focus policy is executed; otherwise, the audio focus policy is not executed.

[0096] Furthermore, after releasing the audio focus of the user terminal and outputting the corresponding audio in response to the second audio output request, the user terminal can re-request the audio focus in response to the audio stream output by the user terminal. This allows the user terminal to automatically resume Bluetooth audio playback after the non-Bluetooth audio output request completes the corresponding audio output.

[0097] In this embodiment, the corresponding audio focus strategy is executed according to the second audio output request in non-Bluetooth mode. While realizing Bluetooth audio output, it can also be compatible with the audio output of non-Bluetooth audio output software in the vehicle terminal, without affecting the original audio and video usage capabilities of the vehicle terminal.

[0098] In one embodiment, after requesting audio focus in response to receiving an audio stream from a user terminal via an audio streaming connection, the method further includes: establishing an audio control connection with the user terminal based on an audio / video control protocol to control audio playback.

[0099] The audio / video control protocol is used to control the audio playback status of the user terminal. Optionally, the audio / video control protocol can be a Bluetooth control protocol such as AVRCP (Audio / Video Remote Control Profile) or HFP.

[0100] For example, the audio and video control protocol can be the AVRCP protocol. When the Bluetooth protocol stack of the vehicle terminal determines that an audio stream connection has been established with the user terminal based on the audio distribution protocol and a short focus has been obtained, the Bluetooth protocol stack of the vehicle terminal automatically connects to the AVRCP protocol, thereby realizing the control of the audio and video output of the user terminal.

[0101] Furthermore, after establishing an audio control connection with the user terminal based on the audio and video control protocol, the method further includes: generating callback information in response to receiving a second audio output request in non-Bluetooth mode and releasing the current audio focus; and changing the audio output state of the user terminal in response to the callback information indicating that the audio focus is lost, according to the audio and video control protocol.

[0102] The callback information is used to indicate to the user terminal that the audio stream transmitted based on the audio distribution protocol has lost audio focus, meaning the audio stream does not have audio output permissions. Audio output status includes whether the audio is in a valid playback state, the output volume, and the currently output audio channel.

[0103] Optionally, the vehicle terminal generates a callback message indicating that the audio focus has been lost to the audio stream currently in focus. The callback is then synchronized to the Bluetooth protocol stack. Based on the callback, the Bluetooth protocol stack actively calls the audio and video control protocol to change the audio output state of the user terminal, so that the audio output states of the vehicle terminal and the user terminal are consistent.

[0104] In this embodiment, after connecting the audio and video control protocol, the audio output of the user terminal is synchronously adjusted according to the second audio output request received by the vehicle terminal in non-Bluetooth mode, thereby improving the interaction consistency between the vehicle terminal and the user terminal.

[0105] In one embodiment, the method further includes: displaying audio control information obtained based on an audio / video control protocol. The audio control information includes the current audio playback status and audio information being played, such as audio name, length, and volume.

[0106] Optionally, audio control information can be displayed on the vehicle terminal's screen or projection device. Optionally, since the audio control connection is established with the user terminal based on the audio-video control protocol after requesting audio focus, it is possible to monitor whether the control module has audio focus, and if the control module has audio focus, obtain and display audio control information through the audio-video control protocol.

[0107] In this embodiment, by displaying audio control information, users can obtain the audio output status in real time, thereby improving the user experience.

[0108] In one embodiment, Figure 3 A schematic diagram of a traditional in-car Bluetooth music playback process is provided, such as... Figure 3 As shown, the user terminal includes an operating system, media applications, and a Bluetooth chip. The operating system can be one or more of Android, iOS, and HarmonyOS. The in-vehicle system includes a Bluetooth chip, an Android system, media applications, and speakers.

[0109] Specifically, during Bluetooth audio transmission, the media application on the user terminal generates audio data and hands it over to its operating system for processing. The operating system then decides whether to send the audio data to the local speaker or the Bluetooth chip based on the audio output path selected by the user.

[0110] When the audio output path is the terminal itself, the user terminal will write the audio data to its own speaker system.

[0111] After the user terminal and the vehicle terminal successfully establish a basic Bluetooth connection, the user manually clicks the Bluetooth music module on the vehicle system. This allows the vehicle system to recognize the audio information from the user terminal. The vehicle system's Bluetooth music module then activates the Bluetooth protocol corresponding to the user terminal based on the established Bluetooth connection. With the Bluetooth protocol activated, the user terminal adjusts its audio output path to Bluetooth. At this time, the user terminal writes audio data to the Bluetooth chip. After writing the audio information provided by the media application to the Bluetooth chip, the user terminal transmits the audio data to the receiving Bluetooth device (i.e., the vehicle terminal) via shortwave transmission, based on the established Bluetooth protocol connection channel. In the vehicle terminal, after receiving the audio data, the vehicle system's Bluetooth chip, according to the Bluetooth protocol, uploads data such as the Bluetooth protocol connection status and audio stream to the vehicle terminal's operating system (e.g., ...). Figure 3 The Android system shown here drives the in-vehicle media application to display the currently playing Bluetooth audio information and performs synchronization processing on the received audio data according to the type of peripheral in the in-vehicle system. This synchronization processing includes clock synchronization and audio data synchronization. The connected speaker then plays sound based on the synchronized audio data. This traditional in-vehicle Bluetooth music playback method suffers from the problem of a long Bluetooth service link operation, requiring the user to connect via Bluetooth before turning on the in-vehicle Bluetooth music player. Furthermore, if the audio focus request fails during the user's audio output process, the in-vehicle terminal may not output any sound via Bluetooth, resulting in unstable Bluetooth music playback.

[0112] Due to the issues of unstable Bluetooth music playback and long Bluetooth service link operations in in-vehicle systems, in one embodiment... Figure 4 A flowchart illustrating a Bluetooth audio output method for an in-vehicle terminal is provided. Unlike... Figure 3 The flowchart of the in-vehicle Bluetooth audio output in this embodiment not only has the capabilities of a traditional Bluetooth speaker, but also respects the system rules and audio logic of the in-vehicle system itself. Figure 5 A schematic diagram of an in-vehicle terminal is provided, and the in-vehicle Bluetooth audio output method can be applied to... Figure 5 In the vehicle-mounted terminal shown. Specifically, as... Figure 4 As shown, the in-vehicle Bluetooth audio output method includes the following steps:

[0113] Step S401: The user terminal establishes a basic Bluetooth connection with the vehicle terminal.

[0114] Among them, the Bluetooth protocol stack built into the user terminal and the vehicle terminal can transmit protocol connections, instructions for controlling the behavior of the vehicle terminal, and audio data.

[0115] Optionally, the Bluetooth protocol stack utilizes the mature SDP (Session Description Protocol) to establish a basic Bluetooth connection between the user terminal and the vehicle terminal. Furthermore, based on the transparent information transmitted between the user terminal and the Bluetooth protocol stack, the vehicle system can store the device characteristics of the connected user terminal, as well as the connection status between the user terminal and the vehicle terminal.

[0116] Step S402: Based on the Bluetooth protocol stack in the vehicle terminal, the basic Bluetooth connection status and commands between the user terminal and the vehicle terminal are transparently transmitted to the Android system, i.e. Figure 5 The FWK framework in the system, based on the Android system, transmits the current Bluetooth connection status and Bluetooth connection commands to the vehicle's Bluetooth module.

[0117] Due to its architectural characteristics, after the in-vehicle system and the user terminal establish a basic Bluetooth connection, the Bluetooth protocol stack of the in-vehicle system can obtain the device characteristics and connection status of the paired user terminal and pass this information up to the operating system of the in-vehicle terminal, namely the FWK framework of the Android system. After receiving the paired device characteristics and connection status, the Bluetooth service in the Android system distributes the above information to the vehicle-side Bluetooth modules that have registered with the Bluetooth service to listen.

[0118] In step S403, the vehicle-side Bluetooth module transmits the basic Bluetooth connection status and the pre-configured Bluetooth Direct connection status to the Bluetooth protocol stack through the Bluetooth service. The Bluetooth protocol stack then actively establishes an audio distribution protocol connection with the user terminal. In response to the audio distribution protocol, the module receives the audio stream from the user terminal and requests audio focus. Subsequently, the Bluetooth protocol stack automatically requests an audio / video control protocol connection.

[0119] The vehicle-mounted Bluetooth module and the FWK framework can achieve Bluetooth connection switching, connection status, and command pass-through. The connection switch is the pre-configured Bluetooth direct connection state, which can be set based on user preferences: when the user prefers to establish a Bluetooth protocol connection directly without interacting with the media module, the Bluetooth direct connection state is configured to be on; otherwise, it is configured to be off. Connection status includes the basic Bluetooth connection state. In the case of a basic Bluetooth connection, the Bluetooth protocol stack can directly determine the audio distribution protocol to be connected, such as A2DP or HFP. Commands can include protocol connection commands and Bluetooth status reading commands.

[0120] Optionally, via Bluetooth service, the vehicle's Bluetooth module transparently transmits the Bluetooth Direct status (connection status) based on the owner's preferences to the Bluetooth protocol stack. When the pre-configured Bluetooth Direct status is enabled, the Bluetooth protocol stack automatically connects to the A2DP protocol and synchronizes the connection result to the Bluetooth service. With the A2DP protocol connected, a short audio focus is requested. Furthermore, the AVRCP protocol can also be automatically connected. It is understood that when the pre-configured Bluetooth Direct status is disabled, the Bluetooth protocol stack will not automatically connect to the Bluetooth protocol.

[0121] In step S404, the media module obtains the connection status of the audio and video control protocol through the Bluetooth service, and performs cross-process control through the Bluetooth service based on the connection result.

[0122] The media module is used for processing and controlling audio and video data. The FWK framework and the media module can communicate and transmit audio and video control protocol information.

[0123] Optionally, after confirming that the audio and video control protocol has been connected via Bluetooth service, the media module transmits the received audio output status control information to Bluetooth service.

[0124] In step S405, the media module monitors the audio focus.

[0125] Optionally, upon receiving an audio stream, the Bluetooth protocol stack will actively request audio focus based on the frame header and frame trailer data of the audio stream transmitted via the A2DP protocol. If the Bluetooth protocol stack already has audio focus, it can directly read the media information in the AVRCP protocol and pass it to the media module via Bluetooth service. The media module then reads and displays the media information in the AVRCP protocol.

[0126] In step S406, the Bluetooth protocol stack performs focus allocation.

[0127] The audio source management module is used to adjust the audio path and driver configuration based on audio information. Optionally, the Bluetooth protocol stack transmits focus allocation information to the audio source management module based on the active audio focus request and release based on the audio stream, so that the audio source management module can configure the audio path and driver according to the allocated focus.

[0128] Optionally, to ensure the user's audio-visual enjoyment, when the user opens the Bluetooth music software, the Bluetooth protocol stack can switch the short focus to a long focus through logic processing.

[0129] Optionally, when the audio source management module receives a Bluetooth connection request from another in-vehicle audio source, it generates a callback to indicate that the audio focus has been lost and synchronizes the callback information to the Bluetooth protocol stack. After receiving the callback, the Bluetooth protocol stack actively calls the AVRCP protocol to stop the audio playback on the user terminal.

[0130] In step S407, the audio source management module performs path control.

[0131] Optionally, the audio source management module can adjust the configuration of the audio path and audio driver according to its own audio definition.

[0132] Step S408, audio stream transmission.

[0133] Based on the pre-tuned audio configuration, the Bluetooth protocol stack directly parses and transmits the audio stream. Optionally, the audio stream information transmitted via the A2DP protocol is parsed and driven by the corresponding audio path and speaker in the vehicle system.

[0134] In step S409, the vehicle speaker emits sound synchronously according to the received audio stream.

[0135] In this embodiment, the in-vehicle Bluetooth audio output process is based on the characteristics of mature protocol solutions on the market, and the data flow and data processing are adjusted. In particular, this embodiment simplifies the Bluetooth operation link: the Bluetooth protocol module directly connects to the audio distribution protocol based on the connection status, without requiring the user to perform a basic Bluetooth connection and then re-establish the connection through the Bluetooth music software.

[0136] For example, step S403 can request a short focus audio stream in response to the audio stream transmitted via the audio distribution protocol. Using Bluetooth short focus for connection can reduce the risk of focus request rejection, solve the problem of no sound from the device after long focus request rejection or interruption, and at the same time ensure compatibility with the audio output capabilities of the original vehicle system.

[0137] For example, in steps S401 to S409, the audio distribution protocol is A2DP, and the audio / video control protocol is AVRCP. When A2DP is selected as the audio distribution protocol, since A2DP is the foundation of audio protocols and can cover all audio information, once the vehicle terminal and the user terminal are connected based on the A2DP protocol, it can effectively be compatible with all audio scenarios.

[0138] In contrast, if the in-vehicle system adopts the AVRCP protocol as its foundation, prioritizing AVRCP connection and then automatically requesting audio focus and connecting to A2DP based on AVRCP status callbacks, this technical solution can allow the in-vehicle terminal to automatically switch audio output via the already connected Bluetooth protocol data when the user terminal is playing music, thus shortening the Bluetooth service link operation. Furthermore, if the audio focus request fails, the in-vehicle terminal does not establish an A2DP protocol connection with the user terminal, ensuring that the user terminal always produces sound when audio focus cannot be obtained. However, this solution still suffers from unstable Bluetooth music playback. Because various audio and video applications (including non-standard music software) on current user terminals guarantee audio output quality, and some audio and video applications do not follow the AVRCP definition, this leads to inconsistent sound output devices when users play mobile audio and video applications through the in-vehicle terminal. For example, some applications play audio through the in-vehicle system's playback control device, while others play audio through the user terminal.

[0139] Therefore, in response to the determination of establishing a basic Bluetooth connection with the user terminal, the operation of performing the A2DP protocol connection can solve the problem of inconsistencies in the compatibility of different audio and video software with the AVRCP protocol, which leads to inconsistent audio output effects when different audio and video software plays Bluetooth audio, and greatly improves the stability of Bluetooth playback in the vehicle system.

[0140] In one embodiment, Figure 6 It also provides another Bluetooth audio output method, such as Figure 5 As shown, it includes:

[0141] Step S602: In the case of establishing an audio stream connection with the user terminal, in response to the received audio stream from the user terminal, request an audio short focus.

[0142] Step S604: Parse the data frames in the audio stream, and output the audio corresponding to the audio stream based on the parsing result and the audio short focus.

[0143] In one embodiment, establishing an audio streaming connection with a user terminal includes: in response to determining that a basic Bluetooth connection has been established with the user terminal, performing an operation to establish an audio streaming connection with the user terminal based on an audio distribution protocol.

[0144] In one embodiment, when the user terminal outputs an audio stream based on a first audio output request, the audio short focus is switched to the audio long focus; the first audio output request is used to output an audio stream with an expected playback duration greater than or equal to a preset threshold.

[0145] In one embodiment, requesting an audio short focus in response to an audio stream received from a user terminal via an audio stream connection includes: requesting an audio short focus when the audio stream is detected to be in a starting state based on frame header data in the audio stream.

[0146] Furthermore, after applying for audio short focus, the method also includes: releasing audio short focus when the audio stream is detected to be in an ending state based on the frame end data in the audio stream.

[0147] In one embodiment, after requesting audio short focus, the method further includes: upon receiving a second audio output request in non-Bluetooth mode, executing an audio focus policy corresponding to the second audio output request in non-Bluetooth mode; the audio focus policy is used to adjust the audio output state of the audio stream; the second audio output request is triggered by an in-vehicle terminal other than the user terminal.

[0148] Optionally, the audio focus strategy includes: releasing the short focus of the user terminal's audio; or, reducing the audio output volume of the audio stream.

[0149] Optionally, an audio focus strategy corresponding to the second audio output request in non-Bluetooth mode is executed, including: interrupting the audio output of the audio stream by releasing the audio short focus of the user terminal when the second audio output request requires exclusive use of the audio output channel; and reducing the audio output volume of the audio stream when the second audio output request does not require exclusive use of the audio output channel.

[0150] In one embodiment, after applying for audio short focus, the method further includes: establishing an audio control connection with the user terminal based on an audio / video control protocol to control audio playback.

[0151] Furthermore, in one embodiment, after establishing an audio control connection with the user terminal based on the audio and video control protocol, the method further includes: in response to receiving a second audio output request in non-Bluetooth mode, releasing the current audio short focus, generating callback information; in response to the callback information indicating that the audio short focus is lost, changing the audio output state of the user terminal according to the audio and video control protocol.

[0152] In one embodiment, the method further includes: monitoring whether the audio stream output by the user terminal has an audio short focus; and if the audio stream output by the user terminal has an audio short focus, displaying audio control information obtained based on the audio / video control protocol.

[0153] Based on the same inventive concept, this application also provides an in-vehicle audio system for implementing the Bluetooth audio output method described above. The solution provided by this system is similar to the implementation described in the above method; therefore, the specific limitations of the one or more in-vehicle audio system embodiments provided below can be found in the limitations of the Bluetooth audio output method described above, and will not be repeated here.

[0154] In one embodiment, such as Figure 7 As shown, an in-vehicle audio system 700 is provided, the system including:

[0155] Control module 701 is used to perform an operation to establish an audio stream connection with the user terminal based on the audio distribution protocol in response to determining that a basic Bluetooth connection has been established with the user terminal;

[0156] And an audio output module 702, which is used to receive the audio stream of the user terminal based on the audio stream connection, parse the audio stream and output the audio corresponding to the audio stream. The audio output module 702 can be a speaker of the vehicle terminal, a vehicle speaker box or other device with audio output function.

[0157] In one embodiment, a structural block diagram of another in-vehicle audio system is provided, such as... Figure 8 As shown, the in-vehicle audio system 700 also includes a display module 703. Specifically, the control module 701 is further configured to establish an audio control connection with the user terminal based on an audio-video control protocol after requesting audio focus in response to a received audio stream from the user terminal; the system also includes a display module 703, configured to display audio control information obtained based on the audio-video control protocol. Optionally, the display module 703 monitors whether the control module has audio focus, and displays the audio control information obtained based on the audio-video control protocol when the control module has audio focus.

[0158] The control information includes the current audio playback status and the audio information being played, such as the audio name, length, and volume. The display module 703 is used to form a visually visible image on the display unit of the vehicle terminal; it can be a display screen or a projection device. The display screen can be an LCD screen or an e-ink screen.

[0159] In one embodiment, the control module 701 requests audio focus in response to a received audio stream from a user terminal, including: requesting a short audio focus in response to a received audio stream from a user terminal.

[0160] In one embodiment, after requesting audio focus in response to an audio stream received from a user terminal, the control module 701 parses the audio stream and outputs the audio corresponding to the audio stream, including: requesting audio focus in response to an audio stream received from a user terminal via an audio stream connection; parsing data frames in the audio stream; and outputting audio based on the parsing result and the audio focus.

[0161] Optionally, requesting audio focus in response to an audio stream received from a user terminal via an audio stream connection includes: requesting audio focus when the audio stream is detected to be in a starting state based on frame header data in the audio stream.

[0162] In one embodiment, the audio focus includes the audio short focus.

[0163] Furthermore, the control module 701 is also used to switch the audio short focus to the audio long focus when the user terminal outputs an audio stream based on the first audio output request; the first audio output request is used to output an audio stream with an expected playback duration greater than or equal to a preset threshold.

[0164] In one embodiment, after requesting audio focus in response to receiving an audio stream from a user terminal via an audio stream connection, the control module 701 is further configured to execute an audio focus policy corresponding to the second audio output request in a non-Bluetooth mode when a second audio output request in a non-Bluetooth mode is received; the audio focus policy is used to adjust the audio output state of the audio stream; the second audio output request is triggered by an in-vehicle terminal other than the user terminal.

[0165] Optionally, the audio focus strategy includes: releasing the audio focus of the user terminal; or reducing the audio output volume of the audio stream.

[0166] Optionally, an audio focus strategy corresponding to the second audio output request in non-Bluetooth mode is executed, including: interrupting the audio output of the audio stream by releasing the audio focus of the user terminal when the second audio output request requires exclusive use of the audio output channel; and reducing the audio output volume of the audio stream when the second audio output request does not require exclusive use of the audio output channel.

[0167] In one embodiment, after requesting audio focus in response to receiving an audio stream from a user terminal via an audio stream connection, the control module 701 is further configured to release audio focus when it detects that the audio stream is in an end state based on the frame tail data in the audio stream.

[0168] Furthermore, after receiving an audio stream from the user terminal via the audio stream connection and requesting audio focus, the control module 701 is also used to establish an audio control connection with the user terminal based on the audio-video control protocol to control audio playback. Optionally, after establishing an audio control connection with the user terminal based on the audio-video control protocol, the method further includes: generating callback information in response to receiving a second audio output request in non-Bluetooth mode and releasing the current audio focus; and changing the audio output state of the user terminal according to the audio-video control protocol in response to the callback information indicating that the audio focus has been lost.

[0169] The modules in the aforementioned in-vehicle audio system can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.

[0170] In one embodiment, a Bluetooth audio device is also provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments. Specific limitations of the Bluetooth audio device in this embodiment can be found in the limitations of the Bluetooth audio output method described above, and will not be repeated here.

[0171] In one embodiment, based on the same inventive concept, this application also provides a car that includes the Bluetooth audio device mentioned above.

[0172] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 9 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores audio stream data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When executed by the processor, the computer program implements a Bluetooth audio output method.

[0173] Those skilled in the art will understand that Figure 9The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0174] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

[0175] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0176] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0177] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0178] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A Bluetooth audio output method, characterized in that, The method includes: In response to determining that a basic Bluetooth connection has been established with the user terminal, an operation is performed to establish an audio stream connection with the user terminal based on the audio distribution protocol; Based on the audio stream connection, the system receives the audio stream from the user terminal, parses the audio stream, and outputs the audio corresponding to the audio stream.

2. The method according to claim 1, characterized in that, After parsing the audio stream, the corresponding audio is output, including: In response to the audio stream received from the user terminal via the audio stream connection, request audio focus; The data frames in the audio stream are parsed, and the audio is output based on the parsing results and the audio focus.

3. The method according to claim 2, characterized in that, In response to an audio stream received from the user terminal via the audio stream connection, requesting audio focus includes: When the audio stream is detected to be in a starting state based on the frame header data in the audio stream, the audio focus is requested.

4. The method according to claim 2 or 3, characterized in that, The audio focus includes the audio short focus.

5. The method according to claim 4, characterized in that, The method further includes: When the user terminal outputs the audio stream based on the first audio output request, the audio short focus is switched to the audio long focus; the first audio output request is used to output an audio stream with an expected playback duration greater than or equal to a preset threshold.

6. The method according to claim 2 or 3, characterized in that, After requesting audio focus in response to receiving an audio stream from the user terminal via the audio stream connection, the method further includes: Upon receiving a second audio output request in non-Bluetooth mode, an audio focus strategy corresponding to the second audio output request in non-Bluetooth mode is executed; the audio focus strategy is used to adjust the audio output state of the audio stream; the second audio output request is triggered by an in-vehicle terminal other than the user terminal.

7. The method according to claim 6, characterized in that, The audio focus strategy includes: releasing the audio focus of the user terminal; or, reducing the audio output volume of the audio stream; And / or, Executing an audio focus strategy corresponding to the second audio output request in the non-Bluetooth mode includes: interrupting the audio output of the audio stream by releasing the audio focus of the user terminal when the second audio output request requires exclusive use of the audio output channel; and reducing the audio output volume of the audio stream when the second audio output request does not require exclusive use of the audio output channel.

8. The method according to claim 2, characterized in that, After requesting audio focus in response to receiving an audio stream from the user terminal via the audio stream connection, the method further includes: When the audio stream is detected to be in an end state based on the frame end data in the audio stream, the audio focus is released; And / or, An audio control connection is established with the user terminal based on the audio and video control protocol to control audio playback.

9. The method according to claim 8, characterized in that, After establishing an audio control connection with the user terminal based on the audio / video control protocol, the method further includes: In response to receiving a second audio output request in non-Bluetooth mode, and releasing the current audio focus, a callback message is generated. In response to the callback information indicating that audio focus has been lost, the audio output state of the user terminal is changed according to the audio and video control protocol.

10. A Bluetooth audio output method, characterized in that, The method includes: When an audio stream connection is established with a user terminal, an audio short focus is requested in response to the received audio stream from the user terminal; The data frames in the audio stream are parsed, and the audio corresponding to the audio stream is output based on the parsing results and the audio short focus.

11. A Bluetooth audio output device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the Bluetooth audio output method according to any one of claims 1 to 9, or the Bluetooth audio output method according to claim 10.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the Bluetooth audio output method according to any one of claims 1 to 9, or the Bluetooth audio output method according to claim 10.