Audio management method and system, vehicle terminal and storage medium
By differentiating the audio focus of the vehicle terminal through HFP and A2DP channel management, the problem of audio output interference after Bluetooth connection is solved, improving the user experience and ensuring the continuity of FM radio and the switching of music playback.
Patent Information
- Application Number
- CN202111673153.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2041-12-31
AI Technical Summary
Existing in-vehicle terminals, after Bluetooth connection, cannot effectively manage different audio channels, resulting in unexpected audio output that interferes with the user experience, especially when interrupted by mobile phone message notifications during FM radio broadcasts.
By distinguishing audio data types through HFP and A2DP channels, managing Bluetooth phone audio focus and music focus, and managing audio streams based on call status and playback attributes, precise control over different audio types can be achieved.
It improves the user experience, avoids unexpected audio output interference, ensures that FM radio is not interrupted by mobile phone messages, and can switch to music playback when needed.
Smart Images

Figure CN116419192B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of audio technology, and in particular to an audio management method and system, an in-vehicle terminal, and a storage medium. Background Technology
[0002] Currently, the vast majority of in-vehicle terminals support Bluetooth functionality. Once the in-vehicle terminal and a mobile phone are successfully connected via Bluetooth, the in-vehicle terminal acts as a Bluetooth headset for the phone, allowing you to play audio from the phone. If the phone is playing music, you can also control playback, pause, skip tracks, and other functions through the in-vehicle terminal.
[0003] After the in-vehicle terminal and the mobile phone are connected via Bluetooth, all audio sent by the mobile phone via Bluetooth will be output to the in-vehicle terminal, regardless of what audio is being played on the in-vehicle terminal. If the in-vehicle terminal is playing FM radio, it may be interrupted by a message notification tone from the mobile phone requesting focus, which will bring a bad experience to users listening to FM radio. Summary of the Invention
[0004] One objective of this application is to provide an audio management method and system, an in-vehicle terminal, and a storage medium. Its advantage lies in providing different audio management for audio data transmitted via Bluetooth through different transmission channels, thereby enhancing the user experience. Specifically, for audio data transmitted via the HFP (Hands-free Profile, a protocol for Bluetooth devices to control telephones) channel, the Bluetooth telephone audio focus is managed according to the call status, thus achieving call audio stream management; for audio data transmitted via the A2DP (Advanced Audio Distribution Profile, a Bluetooth audio transmission model protocol), the Bluetooth music focus is managed according to playback attributes, thereby achieving management of different multimedia audio streams.
[0005] Another objective of this application is to provide an audio management method and system, an in-vehicle terminal, and a storage medium. Its advantage lies in determining whether the multimedia audio stream received through the A2DP channel is music based on the playback status and playback progress obtained twice consecutively, thereby performing different audio management for music and non-music. Specifically, if it is music, Bluetooth music focus is requested, and music can be played after obtaining Bluetooth music focus; if it is not music, Bluetooth music focus is not requested.
[0006] Another objective of this application is to provide an audio management method and system, an in-vehicle terminal, and a storage medium. Its advantage is that, in response to a request for Bluetooth music focus while non-Bluetooth multimedia audio data is being played, the request for Bluetooth music focus is obtained, and the non-Bluetooth multimedia audio focus is released, thereby stopping the playback of non-Bluetooth multimedia audio data and switching to playing the received music.
[0007] Another objective of this application is to provide an audio management method and system, an in-vehicle terminal, and a storage medium, the advantage of which is that, in response to a request for Bluetooth music focus while non-multimedia audio data is being played, the request for Bluetooth music focus can be performed according to different preset strategies, thereby enabling different management of the non-multimedia audio data being played and the music received via Bluetooth.
[0008] Another objective of this application is to provide an audio management method and system, an in-vehicle terminal and a storage medium, the advantage of which is that, in response to a request for Bluetooth music focus without playing any audio data, a request for Bluetooth music focus is made to enable the playback of received music.
[0009] Another objective of this application is to provide an audio management method and system, an in-vehicle terminal, and a storage medium. Its advantage lies in that it manages the audio data transmitted via the HFP channel differently according to different call states. Specifically, in response to an incoming call, it requests the ringtone focus to play the incoming call ringtone; in response to an answered call, it requests the Bluetooth call focus to play the call audio stream; and in response to a hung-up call, it releases the Bluetooth call focus after requesting it.
[0010] The first aspect of this application provides an audio management method, comprising the following steps:
[0011] In response to establishing a Bluetooth connection, a channel command transmitted via the Bluetooth protocol is received; the channel command represents the transmission channel for audio data.
[0012] If the transmission channel is an HFP channel, then audio data is received, including the call audio stream and call status; based on the call status, Bluetooth phone audio focus is requested;
[0013] If the transmission channel is an A2DP channel, then audio data is received, which includes a multimedia audio stream and playback attributes; based on the playback attributes, it is determined whether to request Bluetooth music focus.
[0014] A second aspect of this application provides an audio management system, including an in-vehicle terminal and a mobile terminal, wherein the in-vehicle terminal includes a speaker, and the mobile terminal establishes a Bluetooth connection with the in-vehicle terminal.
[0015] The mobile terminal transmits channel instructions to the vehicle terminal via Bluetooth protocol; wherein, the channel instructions represent the transmission channel of audio data.
[0016] The vehicle terminal receives the channel instruction. If the transmission channel is an HFP channel, it receives audio data, which includes a call audio stream and a call status. Based on the call status, it requests Bluetooth phone audio focus. If the transmission channel is an A2DP channel, it receives audio data, which includes a multimedia audio stream and playback attributes. Based on the playback attributes, it determines whether to request Bluetooth music focus.
[0017] A third aspect of this application provides an in-vehicle terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the audio management method described in the first aspect.
[0018] A fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the audio management method described in the first aspect. Attached Figure Description
[0019] Figure 1 This is a flowchart of an audio management method provided in Embodiment 1 of the present invention.
[0020] Figure 2 This is an application scenario diagram of an audio management method provided in Embodiment 1 of the present invention.
[0021] Figure 3 A detailed flowchart of step S2 provided in Embodiment 1 of the present invention.
[0022] Figure 4 This is a partial flowchart of an audio management method provided in Embodiment 1 of the present invention.
[0023] Figure 5 A detailed flowchart of step S3 provided in Embodiment 1 of the present invention.
[0024] Figure 6 This is a structural block diagram of an audio management system provided in Embodiment 2 of the present invention.
[0025] Figure 7 This is a schematic diagram of the structure of a vehicle-mounted terminal provided in Embodiment 3 of the present invention. Detailed Implementation
[0026] The present invention will be further illustrated by way of embodiments below, but the present invention is not limited to the scope of the embodiments described herein.
[0027] Example 1
[0028] Figure 1This is a schematic flowchart of an audio management method provided in this embodiment. The audio management method can be executed by an audio management device, which can be implemented through software and / or hardware. The audio management device can be part or all of a vehicle-mounted terminal. The vehicle-mounted terminal in this embodiment can also be called a vehicle infotainment system, which is an in-vehicle infotainment product installed in a vehicle, enabling information communication between people and the vehicle, and between the vehicle and the outside world.
[0029] The following describes the audio management method provided in this embodiment, using an in-vehicle terminal as the execution subject. For example... Figure 1 As shown, the audio management method provided in this embodiment may include the following steps S1 to S3:
[0030] Step S1: In response to establishing a Bluetooth connection, receive a channel command transmitted via the Bluetooth protocol; the channel command represents the transmission channel of audio data.
[0031] Figure 2 This diagram illustrates an application scenario of an audio management method. For example... Figure 2 As shown, a Bluetooth connection is established between the vehicle terminal and the mobile terminal, and the vehicle terminal receives the channel command transmitted by the mobile terminal through the Bluetooth protocol.
[0032] Step S2: If the transmission channel is an HFP channel, then receive audio data, which includes the call audio stream and call status; based on the call status, request Bluetooth phone audio focus. For the audio data transmitted via the HFP channel, manage the Bluetooth phone audio focus according to the call status, thereby achieving call audio stream management.
[0033] In one alternative implementation, such as Figure 3 As shown, step S2 specifically includes the following steps S21 to S22:
[0034] Step S21: In response to an incoming call, request the ringtone focus. In specific implementation, if the call status is an incoming call status, the ringtone focus can be directly obtained after requesting it, and the ringtone can then be played.
[0035] Step S22: In response to the connected state, request Bluetooth call focus. In specific implementations, if the call state is connected, the Bluetooth call focus can be obtained directly after requesting it, thereby allowing the call audio stream to be played.
[0036] In one alternative implementation, such as Figure 4 As shown, following step S22, the following step S23 is also included:
[0037] Step S23: In response to the hang-up state, release the Bluetooth call focus after requesting it. In specific implementation, if the call state switches from the connected state to the hung-up state, the requested Bluetooth call focus is released.
[0038] Step S3: Receive audio data, which includes a multimedia audio stream and playback attributes; based on the playback attributes, determine whether to request Bluetooth music focus. For audio data transmitted via the A2DP channel, Bluetooth music focus is managed according to the playback attributes, thereby enabling the management of different multimedia audio streams.
[0039] The multimedia audio stream may include music, recordings, voice messages, and notification sounds. The playback attributes may include playback status and playback progress. Specifically, the playback status includes playing, paused, and stopped.
[0040] In one alternative implementation, such as Figure 5 As shown, step S3 specifically includes the following steps S31 to S33:
[0041] Step S31: Determine whether the playback status is "playing" in two consecutive acquisitions and whether the playback progress changes in two consecutive acquisitions; if yes, proceed to step S32; otherwise, proceed to step S33.
[0042] Step S32: Request Bluetooth music focus. If the playback status is "playing" in two consecutive acquisitions and the playback progress changes in the two consecutive acquisitions, it can be determined that the type of the received multimedia audio stream is music. At this time, request Bluetooth music focus, and then play the received multimedia audio stream after obtaining Bluetooth music focus.
[0043] Step S33: Do not request Bluetooth music focus. If the playback status is not both "playing" in two consecutive acquisitions or the playback progress does not change in two consecutive acquisitions, it can be determined that the type of the received multimedia audio stream is not music. In this case, do not request Bluetooth music focus, and the received multimedia audio stream cannot be played. In this solution, the multimedia audio stream received through the A2DP channel is not music, and may specifically include recordings, voice messages, prompts, etc.
[0044] In one embodiment of step S32, in response to a request for Bluetooth music focus while non-Bluetooth multimedia audio data is playing, the Bluetooth music focus is requested and the non-Bluetooth multimedia audio focus is released. Here, non-Bluetooth multimedia audio data refers to multimedia audio data not received via Bluetooth, and may specifically include multimedia audio data from the vehicle terminal itself, such as FM radio or local music.
[0045] In this embodiment, if the vehicle terminal is playing non-Bluetooth multimedia audio data, by requesting Bluetooth music focus and releasing non-Bluetooth multimedia audio focus, the playback of non-Bluetooth multimedia audio data can be stopped and the received music can be switched to play.
[0046] In another embodiment of step S32, in response to a request for Bluetooth music focus while non-multimedia audio data is playing, a Bluetooth music focus is requested according to a preset strategy. The non-multimedia audio data may include horn sounds, alarm sounds, turn signal sounds, etc. Alarm sounds may include seatbelt alarm sounds, fuel level alarm sounds, tire pressure alarm sounds, etc.
[0047] In this embodiment, the multimedia audio stream received via Bluetooth is music. In specific implementations, the aforementioned preset strategy can be to directly request Bluetooth music focus, thereby simultaneously playing non-multimedia audio data and music received via Bluetooth. Alternatively, the preset strategy can be to request Bluetooth music focus and release non-multimedia audio focus, thereby stopping the playback of non-multimedia audio data and switching to playing the received music. Another preset strategy can be to not request Bluetooth music focus, thereby continuing to play non-multimedia audio data without playing the music received via Bluetooth.
[0048] In this embodiment, if the vehicle terminal is playing non-multimedia audio data, it requests Bluetooth music focus according to different preset strategies, which can realize different management of the non-multimedia audio data being played and the music received via Bluetooth.
[0049] In another embodiment of step S32, in response to requesting Bluetooth music focus but not playing any audio data, Bluetooth music focus is requested. In this embodiment, if the vehicle terminal is not playing any audio data, it can directly request Bluetooth music focus to play the received music.
[0050] Example 2
[0051] like Figure 6 As shown, this embodiment provides an audio management system 400, including an in-vehicle terminal 401 and a mobile terminal 402. The in-vehicle terminal includes a speaker, and the mobile terminal establishes a Bluetooth connection with the in-vehicle terminal.
[0052] The mobile terminal 402 transmits a channel command to the vehicle terminal via Bluetooth protocol; wherein the channel command represents the transmission channel of audio data.
[0053] The vehicle terminal 401 receives the channel instruction; if the transmission channel is an HFP channel, it receives audio data, which includes a call audio stream and a call status; based on the call status, it requests Bluetooth phone audio focus; if the transmission channel is an A2DP channel, it receives audio data, which includes a multimedia audio stream and playback attributes; based on the playback attributes, it determines whether to request Bluetooth music focus.
[0054] In the audio management system provided in this embodiment, the mobile terminal sends audio data to the vehicle terminal via Bluetooth. The vehicle terminal can perform different management based on the audio data received from different transmission channels to improve the user experience. Specifically, for audio data transmitted via the HFP channel, the Bluetooth phone audio focus is managed according to the call status, thereby managing the call audio stream; for audio data transmitted via the A2DP channel, the Bluetooth music focus is managed according to the playback attributes, thereby managing different multimedia audio streams.
[0055] In one optional implementation, the vehicle terminal determines whether the playback status obtained twice consecutively is both in play and whether the playback progress changes twice consecutively; if so, it requests Bluetooth music focus; if not, it does not request Bluetooth music focus.
[0056] In this embodiment, the vehicle terminal determines whether the multimedia audio stream received through the A2DP channel is music based on the playback status and playback progress obtained twice consecutively, thereby performing different audio management for music and non-music. Specifically, if it is music, it requests Bluetooth music focus and can play music after obtaining Bluetooth music focus; if it is not music, it does not request Bluetooth music focus.
[0057] In one optional implementation, the vehicle terminal, in response to requesting Bluetooth music focus while playing non-Bluetooth multimedia audio data, requests Bluetooth music focus, releases non-Bluetooth multimedia audio focus, thereby stopping the playback of non-Bluetooth multimedia audio data and switching to playing the received music.
[0058] In one optional implementation, the vehicle terminal responds to a request for Bluetooth music focus while non-multimedia audio data is being played, and requests Bluetooth music focus according to a preset strategy, thereby enabling different management of the non-multimedia audio data being played and the music received via Bluetooth.
[0059] In one alternative implementation, the vehicle terminal requests Bluetooth music focus in response to a request for Bluetooth music focus without playing any audio data, so as to play the received music.
[0060] In one optional implementation, the vehicle terminal requests the ringtone focus in response to an incoming call to play the ringtone; and requests the Bluetooth call focus in response to a connected call to play the call audio stream.
[0061] In one optional implementation, the vehicle terminal, in response to the hang-up state, releases the Bluetooth call focus after requesting it, so as to facilitate re-requesting the Bluetooth call focus based on the subsequent connection state.
[0062] Example 3
[0063] Figure 7 This is a schematic diagram of the structure of a vehicle-mounted terminal provided in this embodiment. The vehicle-mounted terminal includes a communication module for communicating with other devices, at least one processor, and a memory communicatively connected to the at least one processor. The memory stores instructions executable by the at least one processor, which, when executed, enables the at least one processor to perform the audio management method of Embodiment 1. The vehicle-mounted terminal provided in this embodiment can also be called a vehicle infotainment system, which is an in-vehicle infotainment product installed in a vehicle, enabling information communication between people and the vehicle, and between the vehicle and the outside world. Figure 7 The vehicle terminal 3 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0064] The components of the vehicle terminal 3 may include, but are not limited to: at least one processor 4, at least one memory 5, a bus 6 connecting different system components (including memory 5 and processor 4), and a communication module 7.
[0065] Bus 6 includes a data bus, an address bus, and a control bus.
[0066] The memory 5 may include volatile memory, such as random access memory (RAM) 51 and / or cache memory 52, and may further include read-only memory (ROM) 53.
[0067] The memory 5 may also include a program / utility 55 having a set (at least one) of program modules 54, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0068] The communication module 7 may include an antenna, a mobile communication unit, a wireless communication unit, a modem processor, and a baseband processor. The antenna is used to transmit and receive electromagnetic wave signals. The mobile communication unit can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for use in vehicle-mounted terminals. In some embodiments, at least some functional modules of the mobile communication unit may be housed in the processor 4. In some embodiments, at least some functional modules of the mobile communication unit and at least some modules of the processor 4 may be housed in the same device. The wireless communication unit can provide wireless communication solutions, including wireless local area networks (WLANs), such as Wi-Fi networks, Bluetooth, global navigation satellite systems (GNSS), FM, near-field communication (NFC), and infrared technology, for use in vehicle-mounted terminals. Figure 7 As shown, the communication module 7 communicates with other modules of the vehicle terminal 3 via a bus.
[0069] Processor 4 executes various functional applications and data processing, such as the audio management method described above, by running computer programs stored in memory 5.
[0070] The vehicle-mounted terminal 3 can also communicate with one or more external devices 8 (e.g., keyboard, pointing device, display, etc.). This communication can be performed via the input / output (I / O) interface 9. It should be understood that, although... Figure 5 Not shown in the diagram, it can also be combined with other hardware and / or software modules, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
[0071] It should be noted that although several units / modules or sub-units / modules of the vehicle terminal have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided and embodied by multiple units / modules.
[0072] Example 4
[0073] This embodiment provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the audio management method in Embodiment 1.
[0074] The readable storage medium may be more specifically adopted, including but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device, or any suitable combination thereof.
[0075] In a possible implementation, the present invention can also be implemented as a program product comprising program code, which, when the program product is run on an in-vehicle terminal, causes the in-vehicle terminal to execute the audio management method of embodiment 1.
[0076] The program code for executing the present invention can be written in any combination of one or more programming languages. The program code can be executed entirely on the vehicle terminal, partially on the vehicle terminal, as a standalone software package, partially on the vehicle terminal and partially on a remote device, or entirely on a remote device.
[0077] While specific embodiments of the present invention have been described above, those skilled in the art should understand that these are merely illustrative examples, and the scope of protection of the present invention is defined by the appended claims. Those skilled in the art can make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but all such changes and modifications fall within the scope of protection of the present invention.
Claims
1. An audio management method, Its features are, Includes the following steps: In response to establishing a Bluetooth connection, a channel command transmitted via the Bluetooth protocol is received; the channel command represents the transmission channel for audio data. If the transmission channel is an HFP channel, then audio data is received, including the call audio stream and call status; based on the call status, Bluetooth phone audio focus is requested; If the transmission channel is an A2DP channel, then audio data is received, the audio data including multimedia audio stream and playback attributes; based on the playback attributes, it is determined whether to request Bluetooth music focus; The playback attributes include playback status and playback progress; the step of determining whether to request Bluetooth music focus based on the playback attributes specifically includes: Determine whether the playback status is "playing" in two consecutive acquisitions and whether the playback progress changes in two consecutive acquisitions; If so, request Bluetooth music focus; If not, Bluetooth music focus will not be requested.
2. The audio management method as described in claim 1, wherein the step of requesting Bluetooth music focus specifically includes: In response to a request for Bluetooth music focus while non-Bluetooth multimedia audio data is being played, the Bluetooth music focus is requested, and the non-Bluetooth multimedia audio focus is released.
3. The audio management method as described in claim 1, wherein the step of requesting Bluetooth music focus specifically includes: In response to a request for Bluetooth music focus while non-multimedia audio data is being played, request Bluetooth music focus according to a preset policy.
4. The audio management method as described in claim 1, wherein the step of requesting Bluetooth music focus specifically includes: In response to a request for Bluetooth music focus without playing any audio data, a request for Bluetooth music focus was made.
5. The audio management method as described in claim 1, wherein the step of requesting Bluetooth phone audio focus based on the call status specifically includes: In response to an incoming call, request the ringtone focus; In response to the connected state, request Bluetooth call focus.
6. The audio management method as described in claim 5, further comprising: In response to the hang-up state, the Bluetooth call focus is released after the Bluetooth call focus is requested.
7. An audio management system, characterized in that, It includes an in-vehicle terminal and a mobile terminal, wherein the in-vehicle terminal includes a speaker, and the mobile terminal establishes a Bluetooth connection with the in-vehicle terminal; The mobile terminal transmits channel instructions to the vehicle terminal via Bluetooth protocol; wherein, the channel instructions represent the transmission channel of audio data. The vehicle terminal receives the channel instruction. If the transmission channel is an HFP channel, it receives audio data, which includes a call audio stream and a call status. Based on the call status, it requests Bluetooth phone audio focus. If the transmission channel is an A2DP channel, it receives audio data, which includes a multimedia audio stream and playback attributes. Based on the playback attributes, it determines whether to request Bluetooth music focus. The playback attributes include playback status and playback progress; the step of determining whether to request Bluetooth music focus based on the playback attributes specifically includes: Determine whether the playback status is "playing" in two consecutive acquisitions and whether the playback progress changes in two consecutive acquisitions; If so, request Bluetooth music focus; If not, Bluetooth music focus will not be requested.
8. A vehicle-mounted terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the audio management method according to any one of claims 1-6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the audio management method as described in any one of claims 1-6.
Citation Information
Patent Citations
Bluetooth music playing control method and device, terminal equipment and storage medium
CN108024128A
Audio management method, device and system and computer storage medium
CN112153600A