CN112235063A - Vehicle-mounted audio playing control method, device, equipment and storage medium - Google Patents

Vehicle-mounted audio playing control method, device, equipment and storage medium Download PDF

Info

Publication number
CN112235063A
CN112235063A CN202011052769.XA CN202011052769A CN112235063A CN 112235063 A CN112235063 A CN 112235063A CN 202011052769 A CN202011052769 A CN 202011052769A CN 112235063 A CN112235063 A CN 112235063A
Authority
CN
China
Prior art keywords
audio
application
focus
playing
audio application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011052769.XA
Other languages
Chinese (zh)
Inventor
郑红丽
樊永友
蔡旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAW Group Corp
Original Assignee
FAW Group Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FAW Group Corp filed Critical FAW Group Corp
Priority to CN202011052769.XA priority Critical patent/CN112235063A/en
Publication of CN112235063A publication Critical patent/CN112235063A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04HBROADCAST COMMUNICATION
    • H04H20/00Arrangements for broadcast or for distribution combined with broadcast
    • H04H20/42Arrangements for resource management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04HBROADCAST COMMUNICATION
    • H04H20/00Arrangements for broadcast or for distribution combined with broadcast
    • H04H20/86Arrangements characterised by the broadcast information itself

Abstract

The invention discloses a vehicle-mounted audio playing control method, a device, equipment and a storage medium. The method comprises the following steps: if an audio focus application request of a target audio application in any vehicle-mounted operating system is received through the audio focus service, determining a related audio application to which an audio focus currently belongs; according to the playing priority of the target audio application and the associated audio application, the audio focus preemption result of the target audio application and the associated audio application is determined.

Description

Vehicle-mounted audio playing control method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of vehicles, in particular to a vehicle-mounted audio playing control method, device, equipment and storage medium.
Background
In order to meet the user requirements and improve the user experience, various applications such as navigation, music playing and communication are often configured in the vehicle-mounted system, and the applications are closely related to audio playing. If there is no reasonable control mechanism, the problem of playing noise can be caused when different audio applications in multiple vehicle-mounted systems play audio simultaneously, thereby causing very poor user experience. Therefore, a set of audio focus AudioFocus mechanism is designed on the vehicle-mounted operating system to manage the coordinated playing of audio on each audio application.
However, with the development of the technology of the intelligent cabin of the automobile, a plurality of operating systems exist in the cabin at the same time, such as: a set of independent operating systems can be respectively operated in central control, copilot and back row entertainment, only one set of sound system is generally arranged in a vehicle, and audio of a certain audio application in a plurality of operating systems can be played simultaneously, so that audio focuses among a plurality of vehicle-mounted operating systems can be mutually seized, and the problem of playing noise caused by the fact that the audio cannot be normally played or the audio of a plurality of audio applications is played simultaneously is solved. Therefore, it is very important how to make multiple sets of car-mounted operating systems jointly comply with the same set of AudioFocus mechanism, and efficiently and quickly determine the preemption result of the audio focus.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for controlling vehicle-mounted audio playback, so as to implement a commonly-followed audio focus mechanism on multiple vehicle-mounted operating systems, so that audio is played in a coordinated manner among the multiple vehicle-mounted operating systems, and an audio focus service is adopted to directly receive an audio focus and feed back a preemption result, thereby improving efficiency of receiving and processing an audio focus related request.
In a first aspect, an embodiment of the present invention provides a vehicle-mounted audio playing control method, including:
if an audio focus application request of a target audio application in any vehicle-mounted operating system is received through the audio focus service, determining a related audio application to which an audio focus currently belongs;
and determining an audio focus preemption result of the target audio application and the associated audio application according to the playing priority of the target audio application and the associated audio application.
Further, after determining the audio focus preemption results for the target audio application and the associated audio application, the method further includes:
and feeding back corresponding audio focus preemption results to the target audio application and the associated audio application respectively so as to enable the target audio application and the associated audio application to execute corresponding audio playing operation according to the corresponding audio focus preemption results respectively.
Further, after determining the audio focus preemption results for the target audio application and the associated audio application, the method further includes:
and if the associated audio application is not empty and the associated audio application does not preempt the audio focus, setting an audio playing coordination parameter of the associated audio application under the condition that the audio focus is not preempted according to the audio playing type of the target audio application which preempts the audio focus.
Further, after setting the audio playing parameters of the associated audio application that do not preempt the audio focus, the method further includes:
and feeding back the audio playing coordination parameters under the condition that the audio focus is not preempted to the associated audio application so that the associated audio application executes corresponding audio playing operation according to the audio playing coordination parameters under the condition that the audio focus is not preempted.
Further, after determining the audio focus preemption results for the target audio application and the associated audio application, the method further includes:
if the associated audio application is not empty and an audio focus release notification is received by the audio focus service for a target audio application that has preempted audio focus, then the current audio focus continues to be assigned to the associated audio application.
Further, after the current audio focus is continuously allocated to the associated audio application, the method further includes:
and feeding back successful preemption information of the audio focus to the associated audio application so as to enable the associated audio application to continue to execute corresponding audio playing operation according to the audio playing default parameters.
Further, it is characterized by also comprising:
and receiving the audio focus processing message of any audio application in each vehicle-mounted operating system in real time through the audio focus service instance.
In a second aspect, an embodiment of the present invention provides an in-vehicle audio playing control apparatus, where the apparatus includes:
the relevant application determining module is used for determining the relevant audio application to which the audio focus belongs currently if an audio focus application request of a target audio application in any vehicle-mounted operating system is received through the audio focus service;
and the audio focus preemption module is used for determining the audio focus preemption result of the target audio application and the associated audio application according to the playing priority of the target audio application and the associated audio application.
Further, the apparatus further includes:
and a preemption result feedback module, configured to feed back corresponding audio focus preemption results to the target audio application and the associated audio application, respectively, so that the target audio application and the associated audio application execute corresponding audio playing operations according to the corresponding audio focus preemption results, respectively.
Further, the apparatus further includes:
and the coordination parameter setting module is used for setting an audio playing coordination parameter of the associated audio application under the condition that the audio focus is not preempted according to the audio playing type of the target audio application which preempts the audio focus if the associated audio application is not empty and the associated audio application does not preempt the audio focus.
Further, the apparatus further includes:
and the coordination parameter feedback module is used for feeding back the audio playing coordination parameters under the condition that the audio focus is not preempted to the associated audio application so that the associated audio application executes corresponding audio playing operation according to the audio playing coordination parameters under the condition that the audio focus is not preempted.
Further, the apparatus further includes:
and the audio focus allocation module is used for continuously allocating the current audio focus to the associated audio application if the associated audio application is not empty and an audio focus release notice of a target audio application which preempts the audio focus is received through the audio focus service.
Further, the apparatus further includes:
and the preemption information feedback module is used for feeding back successful preemption information of the audio focus to the associated audio application so as to enable the associated audio application to continue to execute corresponding audio playing operation according to the audio playing default parameters.
Further, the apparatus further includes:
and the service instance running module is used for receiving the audio focus processing message of any audio application in each vehicle-mounted operating system in real time through the audio focus service instance.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the car audio playing control method according to any one of the embodiments of the present invention.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the in-vehicle audio playing control method according to any one of the embodiments of the present invention.
When an audio focus application request of a target audio application in any vehicle-mounted operating system is received through an audio focus service, firstly, a related audio application to which an audio focus belongs at present is determined, and then, according to the playing priority of the target audio application and the related audio application, the audio focus preemption result of the target audio application and the related audio application is re-determined, so that a commonly-obeyed audio focus mechanism is realized on multiple vehicle-mounted operating systems, and audio among the multiple vehicle-mounted operating systems is played in a coordinated manner; and the audio focus service is adopted to directly receive the audio focus and feed back the preemption result, so that the efficiency of receiving and processing the audio focus related request is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart of a vehicle audio playing control method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a vehicle audio playing control method according to a second embodiment of the present invention;
FIG. 2a is a flowchart of another method for controlling playback of in-vehicle audio according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a vehicle-mounted audio playing control device in a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example one
Fig. 1 is a flowchart of a vehicle audio playing control method according to an embodiment of the present invention, where the present embodiment is applicable to a situation where audio applications of multiple operating systems in an automobile cabin play audio, and the method may be executed by a vehicle audio playing control device according to an embodiment of the present invention, where the device may be implemented in a software and/or hardware manner, as shown in fig. 1, the method specifically includes the following steps:
s110, if an audio focus application request of a target audio application in any vehicle-mounted operating system is received through the audio focus service, determining the associated audio application to which the audio focus currently belongs.
The vehicle-mounted operating system in this embodiment may be any operating system among a Windows operating system, a macOS operating system, a Linux operating system, an iOS operating system, and an Android operating system, which is not limited herein; meanwhile, the audio applications configured on the vehicle-mounted operating system may include any applications having a voice playing function, such as a call application, an audio player, and a navigation application. The communication application comprises applications such as voice telephone, WeChat and QQ, the audio player comprises applications such as broadcasting, music, video and electronic book, and the navigation application has a road condition broadcasting function.
It should be noted that, the vehicle-mounted operating system in this embodiment may be any operating system among a Windows operating system, a macOS operating system, a Linux operating system, an iOS operating system, and an Android operating system, which is not limited in this embodiment of the present invention; meanwhile, the audio applications configured on the vehicle-mounted operating system may include any applications having a voice playing function, such as a call application, an audio player, a traffic report application, and the like.
In this embodiment, the audio focus service is configured in the audio focus server, and no audio application may be configured in the operating system where the audio focus service is located. The audio focus service AudioFocus service can directly provide a set of complete AudioFocus mechanism, is used for receiving an audio focus application request of a target audio application in any vehicle-mounted operating system, determining a related audio application to which an audio focus belongs currently, and feeding back an audio focus preemption result to the target audio application and the related audio application without depending on any vehicle-mounted operating system or other audio proxy services configured with the audio application, and can directly communicate with the target audio application and the related audio application so as to improve the efficiency of receiving and processing the audio focus application request of the audio application. The mode of receiving the audio focus application request of the target audio application in any vehicle-mounted operating system through the audiofocussserve is determined by the communication mode among the operating systems, and needs to be developed by system developers, for example, the audio focus application request can be obtained through a socket communication mode.
In order to ensure the accuracy of communication interaction between the main vehicle-mounted operating system and other vehicle-mounted operating systems, corresponding Audio managers are configured on the vehicle-mounted operating systems, and corresponding Audio focus interfaces (Audio Focus APIs) are developed in the Audio focus services, so that the vehicle-mounted operating systems call the Audio focus interfaces developed in the Audio focus services through the Audio managers, and thus, the communication interaction between the Audio focus services and other vehicle-mounted operating systems is realized.
In addition, in order to ensure the timeliness of the application of each audio application to the audio focus in the multiple vehicle-mounted operating systems, the embodiment requires that the audio focus service is in a real-time working state, at this time, if a certain audio application in any one vehicle-mounted operating system needs to play the corresponding audio currently, the audio application will be used as the target audio application in the embodiment, an audio manager on the vehicle-mounted operating system in which the audio application is located calls an audio focus interface developed on the main audio focus service to report the corresponding audio focus application request to the audio focus service, so that the audio focus application request reported by the target audio application can be received by the audio focus service, and after the audio focus application request is received by the audio focus service, in order to ensure the preemption accuracy of the audio focus, the associated audio application to which the audio focus currently belongs will be found out first, the associated audio application may be an audio application that is currently playing audio on any vehicle-mounted operating system, so as to accurately determine whether the target audio application can rob an audio focus from the associated audio application.
And S120, determining an audio focus preemption result of the target audio application and the associated audio application according to the playing priority of the target audio application and the associated audio application.
Specifically, after receiving an audio focus application request of a target audio application and determining a related audio application to which an audio focus belongs at present, it is necessary to determine whether the target audio application can rob away the audio focus from the related audio application, at this time, since audio categories played by different audio applications are also different, and a user may preferentially select an audio with high real-time performance for audio played simultaneously in different audio categories to play, for example, when receiving a call request while playing music, the user may select to pause playing music to answer the call, or when receiving a traffic broadcast voice while playing music in a vehicle driving process, the user may reduce the playing volume of the music to broadcast the traffic information as much as possible. Therefore, by analyzing the audio playing categories of different audio applications, the playing priorities corresponding to the audio applications on each vehicle-mounted operating system can be set, for example, the playing priority of the call application is greater than that of the audio player and the road condition broadcast application, and the playing priority of the road condition broadcast application is greater than that of the audio player.
In this embodiment, the playing priority corresponding to the audio playing type of the audio application may be set as the first priority for the voice call or the message alert tone, the playing priority corresponding to the audio playing type of the audio application may be set as the third priority for music or video music, and the playing priority corresponding to the audio playing type of the audio application may be set as the second priority for the navigation road broadcast voice.
After determining the associated audio application to which the audio focus belongs currently, firstly, finding out the playing priority of the target audio application and the associated audio application respectively, then, by comparing the playing priority between the target audio application and the associated audio application, judging whether the target audio application can preempt the audio focus from the associated audio application, and the audio application with the high playing priority can preempt the audio focus of the audio application with the low playing priority, thereby respectively determining the audio focus preemption results of the target audio application and the associated audio application, namely, the audio focus can be preempted by the audio application with the highest playing priority finally.
It should be noted that, because the audio applications in the multiple in-vehicle operating systems may report the corresponding audio focus application requests by the audio focus service at the same time, the target audio applications in this embodiment may be one or multiple, when multiple target audio applications are provided, the playing priorities of the target audio applications and the associated audio applications are still compared, and then the audio application with the highest playing priority in the target audio applications and the associated audio applications preempts the audio focus, so that the audio application with the highest playing priority plays the corresponding audio, and the audio application without preempting the audio focus does not play the audio, thereby avoiding the noisy audio playing between the multiple in-vehicle operating systems.
According to the technical scheme of the embodiment, when an audio focus application request of a target audio application in any vehicle-mounted operating system is received through an audio focus service, a related audio application to which an audio focus belongs at present is determined, and then audio focus preemption results of the target audio application and the related audio application are re-determined according to the playing priority of the target audio application and the related audio application, so that a commonly-followed audio focus mechanism is realized on multiple vehicle-mounted operating systems, and audio is coordinately played among the multiple vehicle-mounted operating systems; and the audio focus service is adopted to directly receive the audio focus and feed back the preemption result, so that the efficiency of receiving and processing the audio focus related request is improved.
Example two
Fig. 2 is a flowchart of an audio focus playback control method in a second embodiment of the present invention, where the present embodiment is optimized based on the foregoing embodiment, and in the present embodiment, after determining an audio focus preemption result of the target audio application and the associated audio application, the method further includes: and feeding back corresponding audio focus preemption results to the target audio application and the associated audio application respectively so as to enable the target audio application and the associated audio application to execute corresponding audio playing operation according to the corresponding audio focus preemption results respectively.
As shown in fig. 2, the method of this embodiment specifically includes the following steps:
s210, if an audio focus application request of a target audio application in any vehicle-mounted operating system is received through the audio focus service, determining the associated audio application to which the audio focus currently belongs.
S220, determining the audio focus preemption result of the target audio application and the associated audio application according to the playing priority of the target audio application and the associated audio application.
And S230, feeding back corresponding audio focus preemption results to the target audio application and the associated audio application respectively, so that the target audio application and the associated audio application execute corresponding audio playing operation according to the corresponding audio focus preemption results respectively.
Specifically, after determining the audio focus preemption results of the target audio application and the associated audio application, in order to ensure that the audio in the audio application is accurately played, the embodiment may also feed back the corresponding audio focus preemption results to the target audio application and the associated audio application, and when the target audio application preempts the audio focus from the associated audio application, that is, the associated audio application does not preempt the audio focus, the target audio application may be caused to play the corresponding audio, and when the associated audio application loses the audio focus, the audio playing may be exited or paused or the volume of the audio playing may be reduced, so that the user focuses on the audio played by the target audio application; and when the target audio application does not preempt the audio focus from the associated audio application, that is, the associated audio application still preempts the audio focus, the target audio application will not play the audio, and the associated audio application continues to play the corresponding audio. Preferably, the target application does not preempt the audio focus, and can receive a prompt message to remind the user that the audio focus is occupied and the audio is not allowed to be played temporarily.
Optionally, after determining the audio focus preemption results of the target audio application and the associated audio application, the method further includes:
and if the associated audio application is not empty and the associated audio application does not preempt the audio focus, setting an audio playing coordination parameter of the associated audio application under the condition that the audio focus is not preempted according to the audio playing type of the target audio application which preempts the audio focus.
Specifically, in order to ensure the audio playing performance of the associated audio application, if the associated audio application is not empty and the associated audio application does not preempt the audio focus, the audio playing coordination parameter of the associated audio application under the condition that the audio focus is not preempted is set according to the audio playing type of the target audio application which has preempted the audio focus; and feeding back the audio playing coordination parameters under the condition that the audio focus is not preempted to the associated audio application so that the associated audio application executes corresponding audio playing operation according to the audio playing coordination parameters under the condition that the audio focus is not preempted.
Illustratively, the audio playing type of the target audio application which preempts the audio focus is a voice telephone, the associated application is an audio player, the audio playing coordination parameter of the audio player under the condition that the audio focus is not preempted is set as pause playing, and if the audio player does not preempt the audio focus for a long time, the audio playing coordination parameter is set as quit playing; and if the audio playing type of the target audio application which preempts the audio focus is the road condition broadcast voice, and the associated application is the audio player, setting the audio playing coordination parameter of the audio player under the condition that the audio focus is not preempted to be reduced in volume.
Optionally, after the setting of the audio playing parameter of the associated audio application that does not preempt the audio focus, the method further includes:
and feeding back the audio playing coordination parameters under the condition that the audio focus is not preempted to the associated audio application so that the associated audio application executes corresponding audio playing operation according to the audio playing coordination parameters under the condition that the audio focus is not preempted.
Specifically, if the associated audio application is not empty and the associated audio application does not occupy the audio focus, it indicates that the associated audio application is not focused by the user at present, and when the target audio application which occupies the audio focus plays the corresponding audio, because the audio playing types are different, the playing requirements for the associated audio application which does not occupy the audio focus are also different, for example, if the call application occupies the audio focus from the music player, the music player is required to pause playing the audio in order to ensure the call quality, and if the road condition broadcast application occupies the audio focus from the music player, the music player is only required to reduce the volume of audio playing, so that the road condition does not affect the definition of the broadcast voice; therefore, in this embodiment, after determining that the associated audio application is not empty and the associated audio application does not preempt the audio focus, the audio play coordination parameter of the associated audio application under the condition that the audio focus is not preempted is set by analyzing the audio play type of the target audio application that has preempted the audio focus this time, and the audio play coordination parameter can indicate that the associated audio application needs to quit audio play or pause audio play when the audio focus is not preempted, or only needs to reduce the volume of audio play; then, when the corresponding audio focus preemption result is fed back to the associated audio application, the audio play coordination parameter of the associated audio application under the audio focus not preempted is also fed back synchronously, so that the associated audio application directly executes the corresponding audio play operation according to the audio play coordination parameter under the audio focus not preempted, and the audio play is not required to be quitted each time the audio focus is not preempted, thereby ensuring the play performance of the associated audio application.
Optionally, after determining the audio focus preemption results of the target audio application and the associated audio application, the method further includes:
if the associated audio application is not empty and an audio focus release notification is received by the audio focus service for a target audio application that has preempted audio focus, then the current audio focus continues to be assigned to the associated audio application.
Specifically, if the associated audio application is not empty and the associated audio application does not preempt the audio focus, which means that the target audio application preempts the audio focus, the target audio application plays the corresponding audio, at this time, after the audio playing is completed, the target audio application communicates with the audio focus interface on the audio focus service through the audio manager on the vehicle-mounted operating system, so as to report a corresponding audio focus release notification to the audio focus service, at this time, if the audio focus release notification of the target audio application that has preempted the audio focus is received through the audio focus service, in order to ensure the continuity of the audio playing, when the associated audio application does not quit the last audio playing, the current audio focus is directly continuously allocated to the associated audio application, so that the associated audio application continuously plays the last audio.
Illustratively, if the target application is a call application and the target application is a navigation application, the call application occupies an audio focus, the navigation application reduces the volume broadcast if the navigation application does not occupy the audio focus, the corresponding audio focus release notification is reported to the audio focus service when the call application is finished, the navigation application receives the notification that the call application releases the audio focus, directly occupies the current audio focus, and resumes to the volume before reducing the volume to continue broadcasting the road condition.
Optionally, after the current audio focus is continuously allocated to the associated audio application, the method further includes:
and feeding back successful preemption information of the audio focus to the associated audio application so as to enable the associated audio application to continue to execute corresponding audio playing operation according to the audio playing default parameters.
Specifically, after the current audio focus is continuously allocated to the associated audio application, the successful preemption information of the audio focus is fed back to the associated audio application, so that the associated audio application can continuously execute the corresponding audio playing operation according to the audio playing default parameter, and the audio playing default parameter can indicate the audio playing standard of the associated audio application when the audio focus is preempted, for example, the playing volume of the audio player is reduced during the road condition broadcast, and the audio player continues to play music by adopting the original volume after the road condition broadcast is finished.
Optionally, the method further includes:
and receiving the audio focus processing message of any audio application in each vehicle-mounted operating system in real time through the audio focus service instance.
Specifically, in order to ensure real-time operation of the audio focus service, the embodiment receives, in real time, an audio focus processing message of any audio application in each vehicle-mounted operating system through an audio focus service instance, where the audio focus processing message may be various types of audio focus related information such as an application request, a release notification, and a change state of an audio application for an audio focus.
As shown in fig. 2a, the technical solution of this embodiment includes the following specific steps: the audio focus service can be configured in any operating system or independently configured in an operating system except the operating system carrying any audio application, and if an audio focus application request of a target audio application in any vehicle-mounted operating system is received through the audio focus service, the associated audio application to which the audio focus belongs currently is determined; and determining an audio focus preemption result of the target audio application and the associated audio application according to the playing priority of the target audio application and the associated audio application, and if the associated audio application is not empty and the associated audio application does not preempt an audio focus, setting an audio playing coordination parameter of the associated audio application under the condition that the audio focus is not preempted to be fed back to the associated audio application according to the audio playing type of the target audio application which preempts the audio focus, so that the associated audio application executes corresponding audio playing operation according to the audio playing coordination parameter under the condition that the audio focus is not preempted to be played.
When an audio focus application request of a target audio application in any vehicle-mounted operating system is received through an audio focus service, firstly, a related audio application to which an audio focus belongs at present is determined, and then, according to the playing priority of the target audio application and the related audio application, the audio focus preemption result of the target audio application and the related audio application is re-determined, so that a commonly-obeyed audio focus mechanism is realized on multiple vehicle-mounted operating systems, and audio among the multiple vehicle-mounted operating systems is played in a coordinated manner; and the audio focus service is adopted to directly receive the audio focus and feed back the preemption result, so that the efficiency of receiving and processing the audio focus related request is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a vehicle-mounted audio playing control device according to a third embodiment of the present invention. The embodiment is applicable to the case that audio applications of multiple operating systems in an automobile cabin play audio, the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be integrated in any device that provides a function of controlling the playing of vehicular audio, as shown in fig. 3, where the apparatus for controlling the playing of vehicular audio specifically includes: an associated application determination module 310 and an audio focus preemption module 320.
The associated application determining module 310 is configured to determine an associated audio application to which an audio focus belongs currently if an audio focus application request of a target audio application in any one of the in-vehicle operating systems is received through the audio focus service;
an audio focus preemption module 320, configured to determine an audio focus preemption result for the target audio application and the associated audio application according to the playing priority of the target audio application and the associated audio application.
Optionally, the apparatus further includes:
and a preemption result feedback module, configured to feed back corresponding audio focus preemption results to the target audio application and the associated audio application, respectively, so that the target audio application and the associated audio application execute corresponding audio playing operations according to the corresponding audio focus preemption results, respectively.
Optionally, the apparatus further includes:
and the coordination parameter setting module is used for setting an audio playing coordination parameter of the associated audio application under the condition that the audio focus is not preempted according to the audio playing type of the target audio application which preempts the audio focus if the associated audio application is not empty and the associated audio application does not preempt the audio focus.
Optionally, the apparatus further includes:
and the coordination parameter feedback module is used for feeding back the audio playing coordination parameters under the condition that the audio focus is not preempted to the associated audio application so that the associated audio application executes corresponding audio playing operation according to the audio playing coordination parameters under the condition that the audio focus is not preempted.
Optionally, the apparatus further includes:
and the audio focus allocation module is used for continuously allocating the current audio focus to the associated audio application if the associated audio application is not empty and an audio focus release notice of a target audio application which preempts the audio focus is received through the audio focus service.
Optionally, the apparatus further includes:
and the preemption information feedback module is used for feeding back successful preemption information of the audio focus to the associated audio application so as to enable the associated audio application to continue to execute corresponding audio playing operation according to the audio playing default parameters.
Optionally, the apparatus further includes:
and the service instance running module is used for receiving the audio focus processing message of any audio application in each vehicle-mounted operating system in real time through the audio focus service instance.
The product can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
When an audio focus application request of a target audio application in any vehicle-mounted operating system is received through an audio focus service, firstly, a related audio application to which an audio focus belongs at present is determined, and then, according to the playing priority of the target audio application and the related audio application, the audio focus preemption result of the target audio application and the related audio application is re-determined, so that a commonly-obeyed audio focus mechanism is realized on multiple vehicle-mounted operating systems, and audio among the multiple vehicle-mounted operating systems is played in a coordinated manner; and the audio focus service is adopted to directly receive the audio focus and feed back the preemption result, so that the efficiency of receiving and processing the audio focus related request is improved.
Example four
Fig. 4 is a schematic structural diagram of a computer device in the fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 4 is only one example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 4, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. In the computer device 12 of the present embodiment, the display 24 is not provided as a separate body but is embedded in the mirror surface, and when the display surface of the display 24 is not displayed, the display surface of the display 24 and the mirror surface are visually integrated. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running a program stored in the system memory 28, for example, implementing the in-vehicle audio playback control method provided by the embodiment of the present invention:
if an audio focus application request of a target audio application in any vehicle-mounted operating system is received through the audio focus service, determining a related audio application to which an audio focus currently belongs;
and determining an audio focus preemption result of the target audio application and the associated audio application according to the playing priority of the target audio application and the associated audio application.
EXAMPLE five
An embodiment five of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the on-vehicle audio playing control method provided in all the inventive embodiments of the present application:
if an audio focus application request of a target audio application in any vehicle-mounted operating system is received through the audio focus service, determining a related audio application to which an audio focus currently belongs;
and determining an audio focus preemption result of the target audio application and the associated audio application according to the playing priority of the target audio application and the associated audio application.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for playing vehicle-mounted audio is characterized by comprising the following steps:
if an audio focus application request of a target audio application in any vehicle-mounted operating system is received through the audio focus service, determining a related audio application to which an audio focus currently belongs;
and determining an audio focus preemption result of the target audio application and the associated audio application according to the playing priority of the target audio application and the associated audio application.
2. The method of claim 1, further comprising, after determining an audio focus preemption result for the target audio application and the associated audio application:
and feeding back corresponding audio focus preemption results to the target audio application and the associated audio application respectively so as to enable the target audio application and the associated audio application to execute corresponding audio playing operation according to the corresponding audio focus preemption results respectively.
3. The method of claim 1, further comprising, after determining an audio focus preemption result for the target audio application and the associated audio application:
and if the associated audio application is not empty and the associated audio application does not preempt the audio focus, setting an audio playing coordination parameter of the associated audio application under the condition that the audio focus is not preempted according to the audio playing type of the target audio application which preempts the audio focus.
4. The method of claim 3, further comprising, after setting audio playback parameters for the associated audio application that do not preempt audio focus:
and feeding back the audio playing coordination parameters under the condition that the audio focus is not preempted to the associated audio application so that the associated audio application executes corresponding audio playing operation according to the audio playing coordination parameters under the condition that the audio focus is not preempted.
5. The method of claim 1, further comprising, after determining an audio focus preemption result for the target audio application and the associated audio application:
if the associated audio application is not empty and an audio focus release notification is received by the audio focus service for a target audio application that has preempted audio focus, then the current audio focus continues to be assigned to the associated audio application.
6. The method of claim 5, further comprising, after continuing to assign a current audio focus point to the associated audio application:
and feeding back successful preemption information of the audio focus to the associated audio application so as to enable the associated audio application to continue to execute corresponding audio playing operation according to the audio playing default parameters.
7. The method of any one of claims 1-6, further comprising:
and receiving the audio focus processing message of any audio application in each vehicle-mounted operating system in real time through the audio focus service instance.
8. A playback apparatus for car audio, comprising:
the relevant application determining module is used for determining the relevant audio application to which the audio focus belongs currently if an audio focus application request of a target audio application in any vehicle-mounted operating system is received through the audio focus service;
and the audio focus preemption module is used for determining the audio focus preemption result of the target audio application and the associated audio application according to the playing priority of the target audio application and the associated audio application.
9. A vehicle, characterized in that the vehicle comprises:
one or more processors arranged on any vehicle-mounted operating system;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of playing in-vehicle audio of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the method for playing car audio according to any one of claims 1 to 7.
CN202011052769.XA 2020-09-29 2020-09-29 Vehicle-mounted audio playing control method, device, equipment and storage medium Pending CN112235063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011052769.XA CN112235063A (en) 2020-09-29 2020-09-29 Vehicle-mounted audio playing control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011052769.XA CN112235063A (en) 2020-09-29 2020-09-29 Vehicle-mounted audio playing control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112235063A true CN112235063A (en) 2021-01-15

Family

ID=74120740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011052769.XA Pending CN112235063A (en) 2020-09-29 2020-09-29 Vehicle-mounted audio playing control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112235063A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055783A (en) * 2021-03-10 2021-06-29 中国第一汽车股份有限公司 Vehicle audio output method and device, electronic equipment and storage medium
CN113810494A (en) * 2021-09-16 2021-12-17 腾讯科技(深圳)有限公司 Audio playing control method, device, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105654970A (en) * 2015-12-25 2016-06-08 中科创达软件股份有限公司 Multisystem audio playing control method and system and vehicle-mounted system
CN106445449A (en) * 2016-09-05 2017-02-22 努比亚技术有限公司 Audio focus control apparatus and method
CN109088997A (en) * 2018-10-26 2018-12-25 努比亚技术有限公司 A kind of gaming audio control method, terminal and computer readable storage medium
CN110333961A (en) * 2019-09-04 2019-10-15 宁波均胜普瑞智能车联有限公司 Multisystem audio frequency controller equipment, method and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105654970A (en) * 2015-12-25 2016-06-08 中科创达软件股份有限公司 Multisystem audio playing control method and system and vehicle-mounted system
CN106445449A (en) * 2016-09-05 2017-02-22 努比亚技术有限公司 Audio focus control apparatus and method
CN109088997A (en) * 2018-10-26 2018-12-25 努比亚技术有限公司 A kind of gaming audio control method, terminal and computer readable storage medium
CN110333961A (en) * 2019-09-04 2019-10-15 宁波均胜普瑞智能车联有限公司 Multisystem audio frequency controller equipment, method and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055783A (en) * 2021-03-10 2021-06-29 中国第一汽车股份有限公司 Vehicle audio output method and device, electronic equipment and storage medium
CN113810494A (en) * 2021-09-16 2021-12-17 腾讯科技(深圳)有限公司 Audio playing control method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN110673964A (en) Audio playing control method and device of vehicle-mounted system
CN112130802A (en) Vehicle-mounted audio playing method and device, vehicle and storage medium
CN112235063A (en) Vehicle-mounted audio playing control method, device, equipment and storage medium
CN112437383B (en) Multi-sound-source adjusting method and device, vehicle and storage medium
US20170206059A1 (en) Apparatus and method for voice recognition device in vehicle
CN113055783A (en) Vehicle audio output method and device, electronic equipment and storage medium
WO2020042154A1 (en) Audio processing method and device for vehicle
CN113794968A (en) Arbitration method and device for vehicle-mounted audio focus
CN110764724B (en) Display equipment control method, device, equipment and storage medium
KR20210041553A (en) Audio stream mixing system and method
CN113050910B (en) Voice interaction method, device, equipment and storage medium
US6859701B2 (en) Method of controlling access to devices in a vehicle communication network
WO2023227129A1 (en) Voice interaction method, head unit terminal, vehicle and storage medium
WO2023051315A1 (en) Application control method and apparatus, electronic device, and storage medium
WO2023072028A1 (en) Music caching method and apparatus, and electronic device and storage medium
CN116450082A (en) Cabin domain controller, software architecture thereof, intelligent cabin system and vehicle
CN113162964B (en) Agent system, terminal device, and agent program
CN114879923A (en) Multi-screen control method and device, electronic equipment and storage medium
CN114802029A (en) Vehicle-mounted multi-screen control method, device and system and vehicle
CN110096196B (en) Data processing method for vehicle-mounted terminal, chip and medium
CN113778371B (en) System, method and device for realizing multi-module sound management control for vehicle-mounted computer system, processor and computer storage medium thereof
CN114879931B (en) Onboard audio path management method and system supporting multiple operating systems
CN115472186A (en) Vehicle-mounted media playing control method and device and electronic equipment
CN117202031A (en) Audio playing method, audio playing device, vehicle and storage medium
CN116320539A (en) Media stream processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210115

RJ01 Rejection of invention patent application after publication