Audio focus management method and system during vehicle-mounted Bluetooth audio playing

By introducing a resident focus mechanism and stack management, the audio focus management problem when Bluetooth audio is played in on-board devices is solved, improving the user experience, ensuring that Bluetooth audio does not interrupt other audio and does not mix with it.

CN118984446APending Publication Date: 2024-11-19DONGFENG MOTOR GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411051080.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-11-19

AI Technical Summary

Technical Problem

When Bluetooth audio is played in on-board devices, the Bluetooth protocol cannot distinguish audio types, resulting in improper audio focus management, resulting in poor audio interruption, mixing and user experience.

Method used

Introduce a resident focus mechanism to give Bluetooth applications a resident focus and manage it between the audio focus stack and the focus waiting stack to ensure that Bluetooth audio does not interrupt other audio and does not mix with it, and notify the application of appropriate operations through callbacks.

Benefits of technology

It improves the human-computer interactive experience, solves the problem of the cumbersome Bluetooth audio playback process and does not conform to user habits, ensures that Bluetooth audio plays smoothly without interrupting other audios, and avoids mixing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118984446A_ABST
    Figure CN118984446A_ABST
Patent Text Reader

Abstract

The invention discloses an audio focus management method and system during vehicle-mounted Bluetooth audio playing, and the method comprises the steps: constructing a resident focus which is located in an audio focus stack for a long time when the audio focus stack is empty, and is mutually exclusive from any other focus; endowing the resident focus to the Bluetooth application; when other focuses appear in the audio focus stack, the resident focus enters the focus waiting stack, the Bluetooth application loses the focus, at the moment, the audio stream of the Bluetooth application is muted, and the Bluetooth application is informed of losing the focus; and when the audio focus stack is empty and only the resident focus exists in the focus waiting stack, the Bluetooth application obtains the focus again, cancels the mute of the audio stream of the Bluetooth application and notifies the Bluetooth application to obtain the focus, and the audio playing of the Bluetooth application is not limited. According to the invention, on the premise of ensuring that the Bluetooth audio does not interrupt other audio playing and does not mix with other audios, the man-machine interaction experience is improved, and the problem that the Bluetooth audio playing process is tedious in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of vehicle-mounted device control, and in particular relates to an audio focus management method and system during vehicle-mounted Bluetooth audio playback. Background Art

[0002] With the development of car audio and video entertainment functions, Bluetooth music function has become a standard feature of smart cockpit systems. However, while providing users with more music choices, Bluetooth music has become a problem in audio management strategies due to defects in the Bluetooth protocol. Note: The Bluetooth protocol cannot distinguish whether the audio type transmitted from the mobile phone is a song type or a prompt tone type, so it is not possible to apply for the appropriate audio focus according to the audio type: The audio management of car computers currently developed based on the Android system depends on audio focus. All applications must apply for focus before playing audio. If they rely solely on focus management, the following problems will exist: If Bluetooth audio uniformly applies for long focus: Then the Bluetooth module will also apply for focus when the mobile phone plays the prompt tone, resulting in the prompt tone played on the mobile phone after the mobile phone is connected to the car computer Bluetooth, including SMS prompt tone, WeChat and various mobile phone application prompt tone, system prompt tone and key tone, etc., which will interrupt the normal operation of the car computer. When playing other audio such as USB music, because a long focus is applied for, the one that loses focus will stop playing and permanently lose focus. It will not resume playing after the Bluetooth audio gives up focus. The user needs to manually click the play button and re-apply for focus to continue playing; if Bluetooth audio uniformly applies for short focus: the phone playing a prompt tone will not cause other audio to stop playing permanently. After the phone plays the prompt tone, it will give up focus. The original focus holder will regain focus and can automatically continue playing. However, if the phone is playing Bluetooth music, the user ends playback after listening to Bluetooth music for a long time, and the focus will return to the previous application. The user may forget that other audio was playing before, causing unexpected playback of other audio types; if the Bluetooth audio does not apply for focus: the Bluetooth audio is not controlled by the audio strategy, and any sound transmitted from the mobile phone will be emitted uncontrollably from the car computer, causing mixing. Summary of the invention

[0003] The purpose of the present invention is to provide an audio focus management method and system for in-vehicle Bluetooth audio playback, which improves the human-computer interaction experience while ensuring that the Bluetooth audio does not interrupt other audio playback and is not mixed with other audio, and solves the problem that the Bluetooth audio playback process in the prior art is cumbersome and does not conform to user habits.

[0004] In order to solve the above technical problems, the technical solution of the present invention is: an audio focus management method during in-vehicle Bluetooth audio playback, comprising:

[0005] Build a permanent focus. When the audio focus stack is empty, the permanent focus stays in the audio focus stack for a long time and is mutually exclusive with any other focus.

[0006] Give permanent focus to the Bluetooth application;

[0007] When other focuses appear in the audio focus stack, the resident focus enters the focus waiting stack and the Bluetooth application loses focus. At this time, the audio stream of the Bluetooth application is muted and the Bluetooth application is notified of the loss of focus.

[0008] When the audio focus stack is empty and only the resident focus exists in the focus wait stack, the Bluetooth application regains focus, unmutes the audio stream of the Bluetooth application, and notifies the Bluetooth application to gain focus, and the audio playback of the Bluetooth application is not restricted.

[0009] It also includes: when the Bluetooth application loses focus, if a Bluetooth audio playback request is received, refusing to play the audio corresponding to the Bluetooth application.

[0010] The specific working method of resident focus is as follows: when the resident focus is popped from or pushed into the audio focus stack, the assigned application will be notified in a callback manner; when the focus of the audio focus stack changes, the audio focus stack and the focus waiting stack are traversed: when the focus enters the audio focus stack, the audio focus stack is traversed, and if the resident focus is in the audio focus stack, the resident focus is popped from the stack and placed at the bottom of the focus waiting stack; when the focus is popped from the audio focus stack, that is, the focus is lost or abandoned, the focus waiting stack is traversed, and the focus at the top of the stack is placed in the audio focus stack. Because the resident focus is at the bottom of the stack, when the audio focus stack is empty and the focus waiting stack only has the resident focus, the resident focus is placed in the audio focus stack.

[0011] The working method of the audio focus stack is as follows: when the application's focus application is successful, the focus is pushed into the stack, and the focus application information of all current successful applications is recorded. When the application loses or abandons the focus, the focus is popped out of the stack.

[0012] The focus waiting stack works specifically as follows: focus application information of applications that temporarily lose focus is recorded. Temporary loss of focus means that the focus is temporarily preempted. After the preemptor loses or gives up the focus, the focus that temporarily loses focus has the opportunity to re-enter the audio focus stack and regain focus.

[0013] Also provided is an audio focus management system for in-vehicle Bluetooth audio playback, on which the above-mentioned audio focus management method for in-vehicle Bluetooth audio playback is applied, and audio focus management is performed by the method.

[0014] It also includes: when the Bluetooth application loses focus, if a Bluetooth audio playback request is received, refusing to play the audio corresponding to the Bluetooth application.

[0015] The specific working method of resident focus is as follows: when the resident focus is popped from or pushed into the audio focus stack, the assigned application will be notified in a callback manner; when the focus of the audio focus stack changes, the audio focus stack and the focus waiting stack are traversed: when the focus enters the audio focus stack, the audio focus stack is traversed, and if the resident focus is in the audio focus stack, the resident focus is popped from the stack and placed at the bottom of the focus waiting stack; when the focus is popped from the audio focus stack, that is, the focus is lost or abandoned, the focus waiting stack is traversed, and the focus at the top of the stack is placed in the audio focus stack. Because the resident focus is at the bottom of the stack, when the audio focus stack is empty and the focus waiting stack only has the resident focus, the resident focus is placed in the audio focus stack.

[0016] A computer device is also provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above methods when executing the computer program.

[0017] A computer-readable storage medium is also provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0018] Compared with the prior art, the present invention has the following beneficial effects:

[0019] The present invention introduces a permanent focus and assigns it to a Bluetooth application, thereby improving the human-computer interaction experience while ensuring that the Bluetooth audio does not interrupt other audio playback and is not mixed with other audio. This solves the problem that the Bluetooth audio playback process in the prior art is cumbersome and does not conform to user usage habits. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a schematic diagram of the process of the present invention;

[0021] Figure 2 Schematic diagram of the focus management method during Bluetooth audio playback in an embodiment of the present invention. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0023] Currently, the audio management of car computers developed based on the Android system depends on the audio focus. All applications must apply for focus before playing audio. There are two types of focus that can be applied for, as shown in Table 1.

[0024] Table 1

[0025]

[0026] There are three application results as shown in Table 2. If you rely solely on focus management, the following problems will occur: If Bluetooth audio uniformly applies for long focus: the Bluetooth module will also apply for focus when the mobile phone plays the prompt tone, causing the prompt tone played on the mobile phone (including SMS prompt tone, WeChat and various mobile phone application prompt tone, system prompt tone and key tone, etc.) to interrupt other audio being played on the car after the mobile phone is connected to the car Bluetooth. And because the application is for long focus, the one that loses focus will stop playing and permanently lose focus. It will not restart playing after the Bluetooth audio gives up the focus, and the user needs to manually click the play button to reapply for focus. Click to continue playing; if Bluetooth audio uniformly applies for short focus: the phone playing the prompt tone will not cause other audio to stop playing permanently. After the phone finishes playing the prompt tone, it gives up the focus. The original focus holder will regain the focus and can automatically continue playing. However, if the phone is playing Bluetooth music, the user ends the playback after listening to Bluetooth music for a long time, the focus will return to the previous application, and the user may forget that other audio was playing before, causing unexpected playback of other audio types; if Bluetooth audio does not apply for focus: the Bluetooth audio is not controlled by the audio strategy, and any sound transmitted from the mobile phone will be emitted uncontrollably from the car computer, causing mixing.

[0027] Table 2

[0028]

[0029] To solve the above technical problems, refer to Figure 1 and Figure 2 , the present invention proposes the following technical solutions:

[0030] First, let's introduce some concepts in audio focus management:

[0031] Audio focus stack: When the application's audio focus application is successful, it is pushed into the stack, and the focus application information of all current successful applications (i.e., currently holding the focus) is recorded. It is popped out of the stack after the application loses or abandons the focus.

[0032] Focus waiting stack: records the focus application information of applications that temporarily lose focus. Temporary loss of focus means that the focus is temporarily preempted, but after the preemptor gives up the focus, it may re-enter the audio focus stack and regain the focus;

[0033] Introducing the concept of resident focus: a new focus type, different from the native focus type of Android, resident focus is in the audio focus stack for a long time, but it is mutually exclusive with any other focus, that is, when there is any other audio focus in the audio focus stack, the resident focus will be popped out of the stack and enter the bottom of the focus waiting stack. When the audio focus stack is empty, the focus requests in the focus waiting stack will retry to get the focus in turn. According to the first-in-last-out nature of the stack (the element at the top of the stack is popped out first), and the mutually exclusive nature of the resident focus and other focuses, when the resident focus returns to the audio focus stack, the focus waiting stack is empty at this time, and the audio focus stack only has the resident focus.

[0034] Implementation method of resident focus: When the vehicle system starts, the audio focus stack is empty. With the initialization of the audio focus stack, a resident focus is constructed and pushed into the stack. This resident focus will be assigned to the Bluetooth application, and the behavior of the focus: such as popping out of the audio focus stack (i.e. losing focus) or pushing into the stack (i.e. gaining focus) will notify the Bluetooth application in a callback manner, so that the Bluetooth application can make appropriate operations at the appropriate time. The system will traverse the audio focus stack or the focus waiting stack when the audio focus stack changes: when the focus enters the audio focus stack, traverse the audio focus stack. If the resident focus is in the audio focus stack, it will be popped out and placed at the bottom of the focus waiting stack; when the focus is popped out of the audio focus stack, i.e. giving up the focus, traverse the focus waiting stack and place the focus at the top of the stack into the audio focus stack. Because the resident focus is at the bottom of the stack, it will be placed in the audio focus stack only when the audio focus stack is empty and the focus waiting stack only has the audio focus.

[0035] Embodiment 1:

[0036] An audio focus management method for in-vehicle Bluetooth audio playback, comprising:

[0037] S1. Build a permanent focus. When the audio focus stack is empty, the permanent focus stays in the audio focus stack for a long time and is mutually exclusive with any other focus.

[0038] S2. Give the Bluetooth application the permanent focus;

[0039] S3. When other focuses appear in the audio focus stack, the resident focus enters the focus waiting stack, and the Bluetooth application loses focus. At this time, the audio stream of the Bluetooth application is muted, and the Bluetooth application is notified that the focus has been lost.

[0040] S4. When the audio focus stack is empty and only the resident focus exists in the focus waiting stack, the Bluetooth application regains the focus, unmutes the audio stream of the Bluetooth application, and notifies the Bluetooth application to obtain the focus, and the audio playback of the Bluetooth application is not restricted.

[0041] The management method further includes: when the Bluetooth application loses focus, if a Bluetooth audio playback request is received, refusing to play the audio corresponding to the Bluetooth application.

[0042] The specific working method of resident focus is as follows: when the resident focus is popped from or pushed into the audio focus stack, the assigned application will be notified in a callback manner; when the focus of the audio focus stack changes, the audio focus stack and the focus waiting stack are traversed: when the focus enters the audio focus stack, the audio focus stack is traversed, and if the resident focus is in the audio focus stack, the resident focus is popped from the stack and placed at the bottom of the focus waiting stack; when the focus is popped from the audio focus stack, that is, the focus is lost or abandoned, the focus waiting stack is traversed, and the focus at the top of the stack is placed in the audio focus stack. Because the resident focus is at the bottom of the stack, when the audio focus stack is empty and the focus waiting stack only has the resident focus, the resident focus is placed in the audio focus stack.

[0043] The working method of the audio focus stack is as follows: when the application's focus application is successful, the focus is pushed into the stack, and the focus application information of all current successful applications is recorded. When the application loses or abandons the focus, the focus is popped out of the stack.

[0044] The focus waiting stack works specifically as follows: focus application information of applications that temporarily lose focus is recorded. Temporary loss of focus means that the focus is temporarily preempted. After the preemptor loses or gives up the focus, the focus that temporarily loses focus has the opportunity to re-enter the audio focus stack and regain focus.

[0045] Embodiment 2:

[0046] Also provided is an audio focus management system for in-vehicle Bluetooth audio playback, on which the above-mentioned audio focus management method for in-vehicle Bluetooth audio playback is applied, and audio focus management is performed by the method.

[0047] It also includes: when the Bluetooth application loses focus, if a Bluetooth audio playback request is received, refusing to play the audio corresponding to the Bluetooth application.

[0048] The specific working method of resident focus is as follows: when the resident focus is popped from or pushed into the audio focus stack, the assigned application will be notified in a callback manner; when the focus of the audio focus stack changes, the audio focus stack and the focus waiting stack are traversed: when the focus enters the audio focus stack, the audio focus stack is traversed, and if the resident focus is in the audio focus stack, the resident focus is popped from the stack and placed at the bottom of the focus waiting stack; when the focus is popped from the audio focus stack, that is, the focus is lost or abandoned, the focus waiting stack is traversed, and the focus at the top of the stack is placed in the audio focus stack. Because the resident focus is at the bottom of the stack, when the audio focus stack is empty and the focus waiting stack only has the resident focus, the resident focus is placed in the audio focus stack.

[0049] In actual applications, when the user gets in the car, the car computer does not play any audio. At this time, the Bluetooth application holds the resident focus, and the mobile phone can play the Bluetooth audio by clicking; at this time, if there is a voice broadcast, the voice focus enters the audio focus stack, and the resident focus enters the focus waiting stack. The system mutes the Bluetooth audio stream and notifies the Bluetooth application that it has lost focus, and the Bluetooth application pauses audio playback; at this time, if there is a navigation broadcast, the navigation focus enters the audio focus stack, and the voice focus enters the focus waiting stack. As the navigation broadcast ends, the focus is abandoned. The voice focus first returns to the audio focus stack to complete the voice broadcast, then abandons the focus and pops out of the stack, and then the resident focus returns to the audio focus stack, the system unmutes the Bluetooth audio stream, and notifies the Bluetooth application to obtain focus, and the Bluetooth application decides whether to continue playing audio.

[0050] Embodiment 3:

[0051] A computer device is also provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above methods when executing the computer program.

[0052] Embodiment 4:

[0053] A computer-readable storage medium is also provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0054] Embodiment 5:

[0055] The present invention also provides an electronic device, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus, and the processor implements the steps of any of the above methods when executing the computer program.

[0056] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0057] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0058] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0059] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0060] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for managing audio focus during in-vehicle Bluetooth audio playback, characterized in that: include: Build a permanent focus. When the audio focus stack is empty, the permanent focus stays in the audio focus stack for a long time and is mutually exclusive with any other focus. Give permanent focus to the Bluetooth application; When other focuses appear in the audio focus stack, the resident focus enters the focus waiting stack and the Bluetooth application loses focus. At this time, the audio stream of the Bluetooth application is muted and the Bluetooth application is notified of the loss of focus. When the audio focus stack is empty and only the resident focus exists in the focus wait stack, the Bluetooth application regains the focus, unmutes the audio stream of the Bluetooth application, and notifies the Bluetooth application to obtain the focus, and the audio playback of the Bluetooth application is not restricted.

2. The method for managing audio focus during in-vehicle Bluetooth audio playback according to claim 1, characterized in that: Also includes: When a Bluetooth application loses focus, if a Bluetooth audio playback request is received, the audio corresponding to the Bluetooth application is refused to be played.

3. The method for managing audio focus during in-vehicle Bluetooth audio playback according to claim 1, characterized in that: The working method of permanent focus is as follows: When the resident focus is popped from or pushed into the audio focus stack, the assigned application will be notified via a callback; when the focus of the audio focus stack changes, the audio focus stack and the focus wait stack are traversed: When the focus enters the audio focus stack, the audio focus stack is traversed. If the resident focus is in the audio focus stack, the resident focus is popped out of the stack and placed at the bottom of the focus waiting stack. When the focus is popped from the audio focus stack, that is, the focus is lost or abandoned, the focus waiting stack is traversed and the focus at the top of the stack is placed in the audio focus stack. Because the resident focus is at the bottom of the stack, when the audio focus stack is empty and the focus waiting stack only has the resident focus, the resident focus is placed in the audio focus stack.

4. The method for managing audio focus during in-vehicle Bluetooth audio playback according to claim 1, characterized in that: The working method of the audio focus stack is as follows: when the application's focus application is successful, the focus is pushed into the stack, and the focus application information of all current successful applications is recorded. When the application loses or abandons the focus, the focus is popped out of the stack.

5. The method for managing audio focus during in-vehicle Bluetooth audio playback according to claim 4, characterized in that: The focus waiting stack works specifically as follows: focus application information of applications that temporarily lose focus is recorded. Temporary loss of focus means that the focus is temporarily preempted. After the preemptor loses or gives up the focus, the focus that temporarily loses focus has the opportunity to re-enter the audio focus stack and regain focus.

6. An audio focus management system for in-vehicle Bluetooth audio playback, characterized in that: The method for managing audio focus during in-vehicle Bluetooth audio playback as claimed in claim 1 is applied thereto, and audio focus management is performed through the method.

7. The audio focus management system for in-vehicle Bluetooth audio playback according to claim 6, characterized in that: Also includes: When a Bluetooth application loses focus, if a Bluetooth audio playback request is received, the audio corresponding to the Bluetooth application is refused to be played.

8. The audio focus management system for in-vehicle Bluetooth audio playback according to claim 6, characterized in that: The specific working mode of resident focus is as follows: when the resident focus is popped from or entered into the audio focus stack, the assigned application will be notified in a callback manner; when the focus of the audio focus stack changes, the audio focus stack and the focus waiting stack are traversed: when the focus enters the audio focus stack, the audio focus stack is traversed, and if the resident focus is in the audio focus stack, the resident focus is popped from the stack and placed at the bottom of the focus waiting stack; When the focus is popped from the audio focus stack, that is, the focus is lost or abandoned, the focus waiting stack is traversed and the focus at the top of the stack is placed in the audio focus stack. Because the resident focus is at the bottom of the stack, when the audio focus stack is empty and the focus waiting stack only has the resident focus, the resident focus is placed in the audio focus stack.

9. A computer device 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, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.