CN-121979473-A - Audio focus application method, device and equipment for vehicle and storage medium
Abstract
The application discloses a method, a device, equipment and a storage medium for applying an audio focus of a vehicle, which relate to the technical field of vehicle multimedia management and comprise the steps of receiving a target screen state broadcast sent by a power management module when the power on/off of the vehicle is detected; setting a target zone bit according to the target screen state broadcast, wherein the target zone bit is a zone bit for indicating the power-on and power-off state of a vehicle, determining whether the current application needs to apply for an audio focus according to the target zone bit when an audio focus application instruction is received, and applying for focus when the current application needs to apply for the audio focus. The target screen state broadcast of the power management module is received and the corresponding up-down power state flag bit is set when the vehicle is powered up and powered down, and whether the application is applied is judged according to the flag bit when the audio focus is applied, so that the technical effect of reasonably controlling the audio focus application is realized.
Inventors
- Wei Dongjue
- LIU WEI
- LIAO HUAJIAN
- YU MIAOBIN
- WEN LIYUAN
Assignees
- 上汽通用五菱汽车股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260112
Claims (10)
- 1. A method of applying for audio focus of a vehicle, the method comprising: when detecting that the vehicle is powered on or powered off, receiving a target screen state broadcast sent by a power management module; Setting a target zone bit according to the target screen state broadcast, wherein the target zone bit is a zone bit for indicating the power-on and power-off state of the vehicle; When an audio focus application instruction is received, determining whether the current application needs to apply for an audio focus or not according to the target zone bit; And when the current application needs to apply for the audio focus, performing focus application.
- 2. The method of claim 1, wherein the step of determining whether the current application requires application of audio focus according to the target flag bit when receiving the audio focus application command comprises: when an audio focus application instruction is received, determining the current state of the vehicle according to the target zone bit; When the current state of the vehicle is a power-on state, determining that the current application needs to apply for an audio focus; and when the current state of the vehicle is a power-down state, determining that the current application does not need to apply for an audio focus.
- 3. The method of claim 2, wherein the step of determining the current state of the vehicle according to the target flag bit upon receiving the audio focus application command comprises: When an audio focus application instruction is received and the target zone bit is a first logic value, determining that the current state of the vehicle is a power-on state; and when an audio focus application instruction is received and the target zone bit is a second logic value, determining that the current state of the vehicle is a power-down state.
- 4. The method of claim 1, wherein the step of setting a target flag bit according to the target screen status broadcast comprises: Determining event type information according to the target screen state broadcast; when the event type information is a bright screen event, setting a target zone bit to a first logic value; and when the event type information is a screen-off event, setting a target zone bit to a second logic value.
- 5. The method of claim 1, wherein the step of applying for focus when it is determined that the current application needs to apply for the audio focus comprises: when the current application needs to apply for the audio focus, determining whether the current application has the audio focus; and when the current application does not have the audio focus, performing focus application.
- 6. The method of claim 5, wherein the step of applying for focus when the current application does not have audio focus comprises: When the current application does not have an audio focus, an audio focus application instruction is sent to an audio focus management module, so that the audio focus management module performs application determination based on the audio focus application instruction and feeds back an application success instruction; and binding the current application to an audio focus when the application success instruction fed back by the audio focus management module is received, and executing audio playing operation corresponding to the audio focus application instruction to finish focus application.
- 7. The method of claim 1, wherein the step of receiving a target screen status broadcast transmitted by the power management module upon detecting a power up and down of the vehicle comprises: When the power on and power off of the vehicle are detected, a controller local area network signal is obtained; the controller area network signal is sent to a power management module, so that the power management module determines a target screen state according to the controller area network signal; And receiving target screen state broadcasting generated and transmitted by the power management module based on the target screen state.
- 8. An audio focus application device for a vehicle, the device comprising: The broadcast receiving module is used for receiving the target screen state broadcast sent by the power management module when the power-on and power-off of the vehicle are detected; the mark determining module is used for broadcasting and setting a target mark bit according to the target screen state, wherein the target mark bit is a mark bit for indicating the power-on and power-off state of the vehicle; The demand determining module is used for determining whether the current application needs to apply for the audio focus or not according to the target zone bit when receiving the audio focus application instruction; And the focus application module is used for applying for the focus when the current application needs to apply for the audio focus.
- 9. An audio focus application device of a vehicle, characterized in that the device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the audio focus application method of a vehicle according to any one of claims 1 to 7.
- 10. A storage medium, characterized in that the storage medium is a computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the audio focus application method of a vehicle according to any one of claims 1 to 7.
Description
Audio focus application method, device and equipment for vehicle and storage medium Technical Field The present application relates to the field of vehicle multimedia management technologies, and in particular, to a method, an apparatus, a device, and a storage medium for applying for an audio focus of a vehicle. Background Along with the rapid development of intelligent network-connected automobiles, the vehicle-mounted information entertainment functions are continuously enriched, the number of applications such as multimedia, voice, navigation and the like integrated in the automobile and the machine is continuously increased, and the competition between the applications for audio resources is more frequent. Under the existing car frame structure, all applications usually share the same audio output channel, and a unified audio focus management mechanism is needed to coordinate playing behaviors of different applications so as to ensure the order of audio output and the consistency of user experience. Based on the technical background, the traditional technical scheme is generally unified by an audio focus management module to be responsible for focus allocation and recovery, an application actively applies for focus when sound needs to be played, and when the focus is lost, the application perceives and adjusts the playing state of the application by a callback mechanism so as to realize audio cooperative control among multiple applications. However, in the process of powering down and powering up the vehicle, an inconsistent situation may occur between the focus allocation state and the application's own cognition, so that a part of applications continuously output sound under the condition that the focus change is not correctly informed, thereby generating the problem of mixing of multi-channel audio playing simultaneously. The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present application and is not intended to represent an admission that the foregoing is prior art. Disclosure of Invention The application mainly aims to provide a method, a device, equipment and a storage medium for applying audio focus of a vehicle, which aim to solve the technical problem of audio mixing and playing of a multimedia application caused by inconsistent audio focus state and application state in the process of powering on and powering off the vehicle. In order to achieve the above object, the present application provides a method for applying for audio focus of a vehicle, the method comprising: when detecting that the vehicle is powered on or powered off, receiving a target screen state broadcast sent by a power management module; Setting a target zone bit according to the target screen state broadcast, wherein the target zone bit is a zone bit for indicating the power-on and power-off state of the vehicle; When an audio focus application instruction is received, determining whether the current application needs to apply for an audio focus or not according to the target zone bit; And when the current application needs to apply for the audio focus, performing focus application. In an embodiment, when receiving the audio focus application instruction, the step of determining whether the current application needs to apply for audio focus according to the target flag bit includes: when an audio focus application instruction is received, determining the current state of the vehicle according to the target zone bit; When the current state of the vehicle is a power-on state, determining that the current application needs to apply for an audio focus; and when the current state of the vehicle is a power-down state, determining that the current application does not need to apply for an audio focus. In an embodiment, the step of determining the current state of the vehicle according to the target flag bit when the audio focus application command is received includes: When an audio focus application instruction is received and the target zone bit is a first logic value, determining that the current state of the vehicle is a power-on state; and when an audio focus application instruction is received and the target zone bit is a second logic value, determining that the current state of the vehicle is a power-down state. In one embodiment, the step of setting a target flag bit according to the target screen status broadcast includes: Determining event type information according to the target screen state broadcast; when the event type information is a bright screen event, setting a target zone bit to a first logic value; and when the event type information is a screen-off event, setting a target zone bit to a second logic value. In an embodiment, the step of applying for the focus when it is determined that the current application needs to apply for the audio focus includes: when the current application needs to apply for the audio focus, determining whether the current