CN109996099B - Audio focus control method and system of vehicle-mounted system and vehicle-mounted system - Google Patents
Audio focus control method and system of vehicle-mounted system and vehicle-mounted system Download PDFInfo
- Publication number
- CN109996099B CN109996099B CN201910304062.4A CN201910304062A CN109996099B CN 109996099 B CN109996099 B CN 109996099B CN 201910304062 A CN201910304062 A CN 201910304062A CN 109996099 B CN109996099 B CN 109996099B
- Authority
- CN
- China
- Prior art keywords
- audio
- application
- focus
- audio focus
- determining
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000012545 processing Methods 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 6
- 238000013475 authorization Methods 0.000 claims description 5
- 238000011161 development Methods 0.000 description 6
- 238000012423 maintenance Methods 0.000 description 6
- 230000008878 coupling Effects 0.000 description 5
- 238000010168 coupling process Methods 0.000 description 5
- 238000005859 coupling reaction Methods 0.000 description 5
- 238000011160 research Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000001052 transient effect Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/414—Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/462—Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
- H04N21/4627—Rights management associated to the content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/65—Transmission of management data between client and server
- H04N21/658—Transmission by the client directed to the server
- H04N21/6587—Control parameters, e.g. trick play commands, viewpoint selection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/8106—Monomedia components thereof involving special audio data, e.g. different tracks for different languages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/8166—Monomedia components thereof involving executable data, e.g. software
- H04N21/8173—End-user applications, e.g. Web browser, game
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)
Abstract
The present disclosure provides an audio focus control method of a vehicle-mounted system, the vehicle-mounted system including a plurality of processors; the control method comprises the following steps: receiving an audio focus request sent by a first audio application running in any one processor; acquiring the use state of the current audio focus; determining whether to authorize an audio focus to the first audio application according to the audio focus request, a use state of the audio focus, and a preset application priority rule; the preset application priority rule refers to an audio focus acquisition type which is required to be acquired by each audio application under different preset scenes. The disclosure also provides an audio focus control system of the vehicle-mounted system and the vehicle-mounted system.
Description
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to an audio focus control method and system for a vehicle-mounted system and the vehicle-mounted system.
Background
With the development of science and technology, a vehicle-mounted system is more and more intelligent, in order to meet various requirements of users, a plurality of application programs such as navigation, music, a vehicle-mounted radio station and the like are usually installed in the vehicle-mounted system, and when each application program runs, the vehicle-mounted system usually sets a set of audio focus control method to control audio output of each application program so as to ensure the order of audio output of each application program.
The current vehicle-mounted system usually includes a plurality of processors, such as a CPU and an MCU, application programs in the vehicle-mounted system are generally distributed and run on the CPU and the MCU, for example, applications such as navigation and music are run in an Android system of the CPU, and a vehicle-mounted radio station is generally run on the MCU. In the prior art, when controlling audio output of applications on different processors, a common method is to add a processor control layer on a bottom driver layer of hardware, and preset different processors with different weights, where the control layer determines which application the audio focus is authorized to by judging the weight of the processor to which the application belongs.
Disclosure of Invention
The embodiment of the disclosure provides an audio focus control method and system of a vehicle-mounted system, the vehicle-mounted system and a computer readable medium.
In a first aspect, an embodiment of the present disclosure provides an audio focus control method for an in-vehicle system, where the in-vehicle system includes multiple processors; the control method comprises the following steps:
receiving an audio focus request sent by a first audio application running in any one processor;
acquiring the use state of the current audio focus;
determining whether to authorize an audio focus to the first audio application according to the audio focus request, a use state of the audio focus, and a preset application priority rule;
the preset application priority rule refers to an audio focus acquisition type which is required to be acquired by each audio application under different preset scenes.
In some embodiments, the determining whether to authorize an audio focus to the first audio application according to the audio focus request, the usage state of the audio focus, and a preset application priority rule specifically includes:
determining the first audio application according to the audio focus request;
identifying and judging the use state of the audio focus;
if the use state of the audio focus is judged to be unused, determining that the audio focus is authorized to the first audio application;
and if the use state of the audio focus is judged to be used, determining a second audio application to which the audio focus belongs currently, and determining the audio focus acquisition type of the first audio application or determining that the first audio application is not authorized to acquire the audio focus based on the preset application priority rule according to the second audio application and the first audio application.
In some embodiments, after the step of determining that audio focus is authorized for the first audio application, further comprising:
authorizing a preset type of audio focus to the first audio application;
after the step of determining the audio focus acquisition type of the first audio application, the method further comprises:
and performing audio focus authorization on the first audio application according to the determined audio focus acquisition type of the first audio application.
In some embodiments, the audio focus request includes identification information of the first audio application;
the determining the first audio application according to the audio focus request comprises: acquiring identification information of the first audio application in the audio focus request, and determining the first audio application according to the identification information of the first audio application;
the determining of the second audio application to which the audio focus belongs specifically includes:
acquiring identification information of a second audio application to which an audio focus belongs currently;
the determining the audio focus acquisition type of the first audio application or determining that the first audio application is not authorized to acquire an audio focus based on the preset application priority rule specifically includes:
and inquiring an application priority rule table corresponding to the preset application priority rule according to the identification information of the first audio application and the identification information of the second audio application so as to determine the audio focus acquisition type of the first audio application or determine that the first audio application is not authorized to acquire the audio focus.
In some embodiments, the audio focus acquisition type comprises: obtaining audio focus for a long time, obtaining audio focus for a short time, and obtaining audio focus for a short time and mixing.
In a second aspect, an embodiment of the present disclosure provides an audio focus control system of an in-vehicle system, configured to control an audio focus of the in-vehicle system, where the in-vehicle system includes multiple processors; the audio focus control system includes:
the receiving module is used for receiving an audio focus request sent by a first audio application running in any one processor;
the acquisition module is used for acquiring the use state of the current audio focus;
the processing module is used for determining whether to authorize the audio focus to the first audio application according to the audio focus request, the use state of the audio focus and a preset application priority rule;
the preset application priority rule refers to an audio focus acquisition type which is required to be acquired by each audio application under different preset scenes.
In some embodiments, the processing module comprises:
a first determining unit, configured to determine the first audio application according to the audio focus request;
and the identification and judgment unit is used for identifying and judging the use state of the audio focus and determining that the audio focus is authorized to the first audio application when the use state of the audio focus is judged to be unused.
The second determining unit is used for determining a second audio application to which the audio focus belongs currently when the identification judging unit judges that the use state of the audio focus is used;
and the query unit is configured to determine, according to the second audio application and the first audio application, an audio focus acquisition type of the first audio application or determine that the first audio application is not authorized to acquire an audio focus based on the preset application priority rule when the second determination unit determines the second audio application to which the audio focus belongs currently.
In some embodiments, the processing module further comprises:
the authorization unit is used for authorizing a preset type audio focus to the first audio application when the identification judgment unit determines that the audio focus is authorized to the first audio application; and the query unit is further used for authorizing the audio focus to the first audio application according to the audio focus acquisition type of the first audio application when the query unit determines the audio focus acquisition type of the first audio application.
In some embodiments, the audio focus request includes identification information of the first audio application;
the first determining unit is specifically configured to obtain identification information of the first audio application in the audio focus request, so as to determine the first audio application according to the identification information of the first audio application;
the second determining unit is specifically configured to determine identification information of the second audio application to which the audio focus belongs currently;
the query unit is specifically configured to query an application priority rule table corresponding to the preset application priority rule according to the identification information of the first audio application and the identification information of the second audio application, so as to determine an audio focus acquisition type of the second audio application or determine that the first audio application is not authorized to acquire an audio focus.
In some embodiments, the audio focus acquisition types include: obtaining audio focus for a long time, obtaining audio focus for a short time, and obtaining audio focus for a short time and mixing.
In another aspect, the present disclosure further provides an onboard system, including: the audio focus control system and the plurality of processors.
In some embodiments, a plurality of said processors comprises at least one cpu and at least one MCU.
In a final aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the above-described method.
According to the audio focus control method and system of the vehicle-mounted system, which audio application is authorized by the audio focus is determined by directly judging the application priority among the audio applications on all the processors, compared with the prior art, the priority of the processors does not need to be judged first, so that the coupling of hardware and software is eliminated, the universality of an audio focus control mechanism among different vehicle types is enhanced, and the research, development and maintenance cost is reduced; meanwhile, the audio application is directly controlled, so that different vehicle enterprises can be more conveniently and rapidly set in a personalized mode according to self requirements, the situation that the vehicle enterprises are restrained by hardware is avoided, and the user experience is higher.
The vehicle-mounted system provided by the embodiment of the disclosure can be conveniently adapted to different vehicle types, has higher universality, and reduces the research and development and maintenance costs; meanwhile, different vehicle enterprises can set personalized requirements more conveniently, and the situation that the vehicle enterprises are restrained by hardware is avoided, so that the user experience is higher.
Drawings
The accompanying drawings are included to provide a further understanding of the embodiments of the disclosure, and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure, and do not constitute a limitation of the disclosure. The above and other features and advantages will become more apparent to those skilled in the art by describing in detail exemplary embodiments thereof with reference to the attached drawings, in which:
fig. 1 is a flowchart of an audio focus control method of an in-vehicle system according to an embodiment of the present disclosure;
FIG. 2 is a flowchart of an audio focus control method for another in-vehicle system according to an embodiment of the disclosure;
fig. 3 is a schematic structural diagram of an audio focus control system of an in-vehicle system according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an audio focus control system of another in-vehicle system provided in the embodiment of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the following describes in detail an audio focus control method and system of an in-vehicle system and an in-vehicle system provided by the present invention with reference to the accompanying drawings.
Example embodiments will be described more fully hereinafter with reference to the accompanying drawings, but which may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," 8230; \8230 "; when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Embodiments described herein may be described with reference to plan and/or cross-sectional views in light of idealized schematic illustrations of the disclosure. Accordingly, the example illustrations can be modified in accordance with manufacturing techniques and/or tolerances. Accordingly, the embodiments are not limited to the embodiments shown in the drawings, but include modifications of configurations formed based on a manufacturing process. Thus, the regions illustrated in the figures have schematic properties, and the shapes of the regions shown in the figures illustrate specific shapes of regions of elements, but are not intended to be limiting.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The audio focus control method of the vehicle-mounted system is used for controlling the use of audio focuses by various audio applications in the vehicle-mounted system, and is particularly suitable for scenes in which a plurality of audio applications run on different processors. Wherein the in-vehicle system comprises a plurality of processors, each processor being operable to run an application.
The overall inventive concept of the present disclosure is to directly control the application program of the application layer without determining the priority of the processor, and achieve the purpose of improving the generality of the audio focus control method and improving the user experience by decoupling hardware and software.
As shown in fig. 1, the method includes:
step S101, receiving an audio focus request sent by a first audio application running in any one processor.
And step S102, acquiring the use state of the current audio focus.
Step S103, determining whether to authorize the audio focus to the first audio application according to the audio focus request, the using state of the audio focus and a preset application priority rule.
In step S103, the preset application priority rule refers to an audio focus acquisition type that each audio application should acquire in different preset scenes.
According to the audio focus control method of the vehicle-mounted system, which audio application is authorized to be used by directly judging the application priority among the audio applications on all the processors is determined, and compared with the prior art, the priority of the processors does not need to be judged first, so that the coupling of hardware and software is eliminated, the universality of an audio focus control mechanism among different vehicle types is enhanced, and the research, development and maintenance cost is reduced; meanwhile, the audio application is directly controlled, so that different vehicle enterprises can be more conveniently and rapidly set in a personalized mode according to self requirements, the situation that the vehicle enterprises are restrained by hardware is avoided, and the user experience is higher.
The present disclosure also provides an audio focus control method, as shown in fig. 2, the method including:
step S201, receiving an audio focus request sent by a first audio application running in any one of the processors.
And step S202, acquiring the use state of the current audio focus.
And step S203, determining the first audio application according to the audio focus request.
In the disclosure, when an audio application needs to use an audio device, an audio focus request is sent to a system, where the audio focus request carries identification information of an audio application that sent the audio focus request, and after receiving the audio focus request, the system acquires the identification information of the audio application from the audio focus request, so as to determine the audio application that currently sends the audio focus request by identifying the identification information.
In steps S201 and S203, the system can identify the identification information of the audio application in the received audio focus request after receiving the audio focus request sent by the first audio application.
And step S204, identifying and judging the use state of the audio focus.
In the present disclosure, the usage state of the audio focus includes: used and unused, used representing that the current audio focus has been occupied by some audio application, i.e. the audio device is being used; unused means that the current audio focus is not occupied by other audio applications, i.e. the audio device is not used.
In step S204, when the usage status of the audio focus is determined to be not used, the following step S205' is executed to directly authorize the preset type of audio focus to the first audio application currently issuing the audio request; when the usage status of the audio focus is determined to be used, step S205 to step S208 are sequentially executed to further determine an audio focus acquisition type of the first audio application issuing the audio request according to a preset application priority rule, and authorize the audio focus to the first audio application according to the determined audio focus acquisition type, or determine that the first audio application is not authorized to acquire the audio focus and end the process.
Step S205', authorize a preset type of audio focus to the first audio application.
And step S205, determining a second audio application to which the audio focus belongs currently.
And step S206, according to the second audio application and the first audio application, based on a preset application priority rule, determining an audio focus acquisition type of the first audio application or determining that the first audio application is not authorized to acquire an audio focus.
And step S207, authorizing the audio focus to the first audio application according to the determined audio focus acquisition type.
And step S208, ending the process after determining that the first audio application is not authorized to obtain the audio focus.
In this disclosure, when an audio application requests that the audio focus is successfully acquired, the system can acquire the identification information of the audio application currently using the audio focus through a return function. In step S206, the second audio application is the audio application currently using the audio focus, and therefore, the system can determine the identification information of the second audio application currently using the audio focus through the return function.
In step S207, the preset application priority rule is an audio focus acquisition type that each audio application preset in the system should acquire in preset different scenes, where the audio focus acquisition type includes: obtaining an audio focus for a long time, obtaining the audio focus for a short time, obtaining the audio focus for the short time and mixing sound, wherein the long-time obtaining of the audio focus means that the audio application can release the audio focus only when a user stops manually or sound playing is finished, otherwise the audio focus is occupied all the time; the audio focus is obtained transiently, namely the audio focus is occupied by other audio applications when other audio applications send audio focus requests after the audio applications obtain the type of audio focus, and the audio focus is authorized to the audio application which originally occupies the audio focus again when the other audio applications release the audio focus; briefly obtaining audio focus and mixing is similar to briefly obtaining audio focus, except that when other audio applications occupy the audio focus, the audio application that originally occupied the audio focus does not stop voice playing, but implements mixed-sound playing with other audio applications.
For example, in a scene mode, a music application in the vehicle-mounted system is playing music, that is, an application currently using an audio focus is a music application, in this scene, when a vehicle-mounted radio station sends an audio focus request, the vehicle-mounted radio station will obtain an audio focus and start playing music, and the music application will stop playing music, that is, in this scene, the audio focus acquisition type of the vehicle-mounted radio station is to obtain an audio focus for a long time; in another scene mode, the music application in the vehicle-mounted system plays music, namely the application currently using the audio focus is the music application, in this scene, when a telephone is accessed, the telephone application obtains the audio focus, and after the telephone is finished, the audio focus returns to the music application to continue playing the music, namely in this scene, the audio focus acquisition type of the telephone is the transient audio application; in another scenario model, a vehicle radio station in a vehicle system is playing music (FM music), and in this scenario, when a key tone needs to be played, the vehicle radio station will play audio mixing with the key tone, that is, in this scenario, the audio focus acquisition type obtained by the application to which the key tone belongs is a transient audio focus acquisition and audio mixing type. Under different scenes, the audio focus acquisition types obtained by the audio applications can be set according to actual requirements, and are not listed one by one here.
In the present disclosure, an application priority rule table corresponding to the preset application priority rule is preset in the system, and the table describes audio focus acquisition types that should be obtained by the audio application in different usage scenarios. In step S207, the application priority rule table is queried according to the identification information of the first audio application and the identification information of the second audio application, that is, the audio focus acquisition type that should be obtained by the first audio application can be acquired.
In the above step S205', a preset type audio focus is set according to the type of the first audio application, and for example, any one of the long-time obtained audio focus and the short-time obtained audio focus in the above audio focus acquisition type may be used. The specific setting can be set by different vehicle enterprises according to the requirements of the vehicle enterprises.
According to the audio focus control method of the vehicle-mounted system, which audio application is authorized by directly judging the application priority among the audio applications on all the processors is determined, and compared with the prior art, the priority of the processors does not need to be judged first, so that the coupling of hardware and software is eliminated, the universality of an audio focus control mechanism among different vehicle types is enhanced, and the research, development and maintenance cost is reduced; meanwhile, the audio application is directly controlled, so that different vehicle enterprises can be more conveniently and rapidly set in a personalized mode according to self requirements, the situation that the vehicle enterprises are restrained by hardware is avoided, and the user experience is higher.
The disclosure further provides an audio focus control system of the vehicle-mounted system, and the audio focus control system is used for realizing the audio focus control method of the vehicle-mounted system. As one embodiment of an audio focus control system of an in-vehicle system, as shown in fig. 3, the system includes: a receiving module 11, an obtaining module 12 and a processing module 13.
The receiving module 11 is configured to receive an audio focus request sent by a first audio application running in any one of the processors; the obtaining module 12 is configured to obtain a use state of a current audio focus; the processing module 13 is configured to determine whether to authorize an audio focus to the first audio application according to the usage state of the audio focus, the audio focus request, and a preset application priority rule; the preset application priority rule refers to an audio focus acquisition type which is required to be acquired by each audio application under different preset scenes.
The audio focus control system of the vehicle-mounted system determines which audio application the audio focus is authorized to by directly judging the application priority among the audio applications on all the processors, and compared with the prior art, the audio focus control system does not need to judge the priority of the processors first, so that the coupling of hardware and software is released, the universality of the audio focus control system among different vehicle types is enhanced, and the research, development and maintenance cost is reduced; meanwhile, the audio application is directly controlled, so that different vehicle enterprises can conveniently and individually set according to self requirements, the constraint of hardware is avoided, and the user experience is higher.
Further, as a second embodiment of the audio focus control system of the in-vehicle system, as shown in fig. 4, the system further includes, compared with the audio focus control system provided in the previous embodiment, the processing module 13: a first determining unit 131, an identification judging unit 132, a second determining unit 133, an inquiring unit 134, and an authorizing unit 135.
The first determining unit 131 is configured to determine the first audio application according to the audio focus request; the identification judging unit 132 is configured to identify and judge the usage status of the audio focus, and determine that the audio focus is authorized for the first audio application when the usage status of the audio focus is judged to be unused; the second determining unit 133 is configured to determine, when the identification determining unit 132 determines that the usage status of the audio focus is not used, a second audio application to which the audio focus belongs currently; the querying unit 134 is configured to, when the second determining unit 133 determines the second audio application to which the audio focus belongs currently, determine, according to the second audio application and the first audio application, an audio focus obtaining type of the first audio application based on a preset application priority rule, or determine that the first audio application is not authorized to obtain the audio focus; the authorization unit 135 is configured to authorize a preset type of audio focus to the first audio application when the identification determination unit 132 determines that the audio focus is authorized to the first audio application; and is further configured to authorize audio focus to the first audio application according to the audio focus acquisition type of the first audio application when the querying element 134 determines the audio focus acquisition type of the first audio application.
In the present disclosure, the audio focus request includes identification information of the first audio application; the first determining unit 131 is specifically configured to obtain identification information of a first audio application in the audio focus request, so as to determine the first audio application according to the identification information of the first audio application; the second determining unit 133 is specifically configured to determine identification information of a second audio application to which the audio focus belongs currently; the query unit 134 is specifically configured to query an application priority rule table corresponding to a preset application priority rule according to the identification information of the first audio application and the identification information of the second audio application, so as to determine an audio focus acquisition type of the second audio application or determine that the first audio application is not authorized to acquire an audio focus.
In the present disclosure, the audio focus acquisition types include: obtaining audio focus for a long time, obtaining audio focus for a short time, and obtaining audio focus and mixing for a short time.
The audio application can release the audio focus only when the user stops manually or the sound playing is finished after the audio focus of the type is obtained by the audio application for a long time, otherwise, the audio focus is occupied all the time; the audio focus is obtained transiently, namely the audio focus is occupied by other audio applications when other audio applications send audio focus requests after the audio applications obtain the type of audio focus, and the audio focus is authorized to the audio application which originally occupies the audio focus again when the other audio applications release the audio focus; the audio focus is obtained transiently and mixed, and the difference is that when other audio applications occupy the audio focus, the audio application which originally occupies the audio focus does not stop voice playing, but realizes mixed sound playing with other audio applications.
For example, in a scene mode, a music application in the vehicle-mounted system is playing music, that is, an application currently using an audio focus is a music application, in this scene, when a vehicle-mounted radio station sends an audio focus request, the vehicle-mounted radio station will obtain the audio focus and start playing music, and the music application will stop playing music, that is, in this scene, the audio focus acquisition type of the vehicle-mounted radio station is to obtain the audio focus for a long time; in another scene mode, the music application in the vehicle-mounted system plays music, namely the application using the audio focus is the music application at present, in this scene, when a telephone is accessed, the telephone application obtains the audio focus, and after the telephone is ended, the audio focus returns to the music application to continue playing the music, namely in this scene, the audio focus acquisition type of the telephone is a transient audio application; in another scenario, a vehicle radio station in a vehicle system is playing music (FM music), and in this scenario, when a key tone needs to be played, the vehicle radio station will play audio mixing with the key tone, that is, in this scenario, the type of audio focus obtained by the application to which the key tone belongs is a transient type of obtaining audio focus and mixing audio. Under different scenes, the audio focus acquisition types obtained by the audio applications can be set according to actual requirements, and are not listed one by one here.
The audio focus control system of the vehicle-mounted system determines which audio application the audio focus is authorized to by directly judging the application priority among the audio applications on all the processors, and compared with the prior art, the audio focus control system does not need to judge the priority of the processors first, so that the coupling of hardware and software is released, the universality of the audio focus control system among different vehicle types is enhanced, and the research, development and maintenance cost is reduced; meanwhile, the audio application is directly controlled, so that different vehicle enterprises can be more conveniently and rapidly set in a personalized mode according to self requirements, the situation that the vehicle enterprises are restrained by hardware is avoided, and the user experience is higher.
The present disclosure also provides an in-vehicle system, which includes a plurality of processors and the audio focus control system provided by the above embodiment.
The plurality of processors comprise a CPU and an MCU, and each processor can run audio application. In practical implementation, an Android system generally runs on a CPU, and the audio focus control system of the vehicle-mounted system provided in the embodiment is packaged on an upper layer of the Android system, and can uniformly process a global audio request in the entire vehicle-mounted system.
The present disclosure also provides a computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the above-described method.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as is well known to those skilled in the art.
Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted in a generic and descriptive sense only and not for purposes of limitation. In some instances, features, characteristics and/or elements described in connection with a particular embodiment may be used alone or in combination with features, characteristics and/or elements described in connection with other embodiments, unless expressly stated otherwise, as would be apparent to one skilled in the art. Accordingly, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the disclosure as set forth in the appended claims.
Claims (11)
1. An audio focus control method of an in-vehicle system, the in-vehicle system comprising a plurality of processors; the method is realized based on an audio focus control system packaged at the upper layer of the android system and used for processing a request of global audio in a vehicle-mounted system, and the control method comprises the following steps:
receiving an audio focus request sent by a first audio application running in any one of the processors;
acquiring the use state of the current audio focus;
determining whether to authorize an audio focus to the first audio application according to the audio focus request, a use state of the audio focus, and a preset application priority rule;
the preset application priority rule refers to the audio focus acquisition type which is acquired by each audio application under different preset scenes;
the determining whether to authorize audio focus to the first audio application according to the audio focus request, the usage status of the audio focus, and a preset application priority rule comprises:
under the condition that the audio focus is determined to be currently used by a second audio application, according to the second audio application and the first audio application, based on the preset application priority rule, determining an audio focus obtaining type of the first audio application in a scene that the audio focus is currently used by the second audio application, or determining that the first audio application is not authorized to obtain the audio focus;
wherein a processor to which the second audio application belongs is different from a processor to which the first audio application belongs, the audio focus acquisition type comprising: obtaining audio focus for a long time, obtaining audio focus for a short time, and obtaining audio focus for a short time and mixing.
2. The method of claim 1, wherein, in the case that it is determined that the audio focus is currently used by a second audio application, before determining, according to the second audio application and the first audio application, an audio focus acquisition type of the first audio application in a scene in which the audio focus is currently used by the second audio application or determining that the first audio application is not entitled to acquire audio focus based on the preset application priority rule, the method comprises:
determining the first audio application according to the audio focus request;
identifying and judging the use state of the audio focus;
if the use state of the audio focus is judged to be unused, determining that the audio focus is authorized to the first audio application;
and if the using state of the audio focus is judged to be used, determining the second audio application to which the audio focus belongs currently.
3. The method of claim 2, wherein after the step of determining that audio focus is authorized for the first audio application, further comprising:
authorizing a preset type of audio focus to the first audio application;
after the step of determining the audio focus acquisition type of the first audio application, the method further comprises:
and performing audio focus authorization on the first audio application according to the determined audio focus acquisition type of the first audio application.
4. The method of claim 2, wherein the audio focus request includes identification information of the first audio application;
the determining the first audio application according to the audio focus request comprises: acquiring identification information of the first audio application in the audio focus request, and determining the first audio application according to the identification information of the first audio application;
the determining of the second audio application to which the audio focus belongs specifically includes:
acquiring identification information of a second audio application to which an audio focus belongs currently;
the determining the audio focus acquisition type of the first audio application or determining that the first audio application is not authorized to acquire an audio focus based on the preset application priority rule specifically includes:
and inquiring an application priority rule table corresponding to the preset application priority rule according to the identification information of the first audio application and the identification information of the second audio application so as to determine the audio focus acquisition type of the first audio application or determine that the first audio application is not authorized to acquire the audio focus.
5. An audio focus control system of an in-vehicle system for controlling audio focus of the in-vehicle system, the in-vehicle system comprising a plurality of processors; the plurality of processors comprise a CPU and an MCU, an android system runs on the CPU, the audio focus control system is packaged on the upper layer of the android system and used for processing a request of global audio in the vehicle-mounted system, and the audio focus control system comprises:
the receiving module is used for receiving an audio focus request sent by a first audio application running in any one processor;
the acquisition module is used for acquiring the use state of the current audio focus;
the processing module is used for determining whether to authorize the audio focus to the first audio application according to the audio focus request, the using state of the audio focus and a preset application priority rule;
the preset application priority rule refers to audio focus acquisition types which are acquired by the audio applications under different preset scenes;
the processing module comprises: a query unit; the query unit is configured to determine, according to a second audio application and the first audio application, an audio focus acquisition type of the first audio application in a scene where the audio focus is currently used by the second audio application based on the preset application priority rule, or determine that the first audio application is not authorized to acquire the audio focus when determining the second audio application to which the audio focus belongs currently;
wherein the processor to which the second audio application belongs is different from the processor to which the first audio application belongs, the audio focus acquisition type comprising: obtaining audio focus for a long time, obtaining audio focus for a short time, and obtaining audio focus for a short time and mixing.
6. The system of claim 5, wherein the processing module comprises:
a first determining unit, configured to determine the first audio application according to the audio focus request;
the identification and judgment unit is used for identifying and judging the use state of the audio focus and determining that the audio focus is authorized to the first audio application when the use state of the audio focus is judged to be unused;
and the second determining unit is used for determining the second audio application to which the audio focus belongs currently when the identification judging unit judges that the use state of the audio focus is used.
7. The system of claim 6, wherein the processing module further comprises:
the authorization unit is used for authorizing a preset type audio focus to the first audio application when the identification judgment unit determines that the audio focus is authorized to the first audio application; and the query unit is further used for authorizing the audio focus to the first audio application according to the audio focus acquisition type of the first audio application when the query unit determines the audio focus acquisition type of the first audio application.
8. The system of claim 6, wherein the audio focus request includes identification information of the first audio application;
the first determining unit is specifically configured to obtain identification information of the first audio application in the audio focus request, so as to determine the first audio application according to the identification information of the first audio application;
the second determining unit is specifically configured to determine identification information of the second audio application to which the audio focus belongs currently;
the query unit is specifically configured to query an application priority rule table corresponding to the preset application priority rule according to the identification information of the first audio application and the identification information of the second audio application, so as to determine an audio focus acquisition type of the second audio application or determine that the first audio application is not authorized to acquire an audio focus.
9. An in-vehicle system, comprising: the audio focus control system of any one of claims 5 to 8 and a plurality of processors.
10. The system of claim 9, a plurality of the processors comprising at least one CPU and at least one MCU.
11. A computer-readable medium, on which a computer program is stored, wherein the computer program, when being executed by a processor, carries out the method according to any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910304062.4A CN109996099B (en) | 2019-04-16 | 2019-04-16 | Audio focus control method and system of vehicle-mounted system and vehicle-mounted system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910304062.4A CN109996099B (en) | 2019-04-16 | 2019-04-16 | Audio focus control method and system of vehicle-mounted system and vehicle-mounted system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109996099A CN109996099A (en) | 2019-07-09 |
CN109996099B true CN109996099B (en) | 2022-11-01 |
Family
ID=67133827
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910304062.4A Active CN109996099B (en) | 2019-04-16 | 2019-04-16 | Audio focus control method and system of vehicle-mounted system and vehicle-mounted system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109996099B (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110673964A (en) * | 2019-09-10 | 2020-01-10 | 沈阳中科创达软件有限公司 | Audio playing control method and device of vehicle-mounted system |
CN112637412A (en) * | 2019-10-09 | 2021-04-09 | 上海博泰悦臻电子设备制造有限公司 | Audio management method and device and computer storage medium |
CN111222124B (en) * | 2020-01-16 | 2022-05-24 | 北京梧桐车联科技有限责任公司 | Method, device, equipment and storage medium for using authority distribution |
CN111328061B (en) * | 2020-02-28 | 2023-04-07 | 智达诚远科技有限公司 | Audio resource control method, vehicle-mounted terminal and system |
CN112130802A (en) * | 2020-09-24 | 2020-12-25 | 中国第一汽车股份有限公司 | Vehicle-mounted audio playing method and device, vehicle and storage medium |
CN112416290B (en) * | 2020-11-27 | 2024-06-25 | 扬州航盛科技有限公司 | Audio management method based on audio focus |
CN112542183B (en) | 2020-12-09 | 2022-03-18 | 阿波罗智联(北京)科技有限公司 | Audio data processing method, device, equipment and storage medium |
CN115407961A (en) * | 2021-05-27 | 2022-11-29 | 华为技术有限公司 | Control method of audio focus and related device |
CN113794968A (en) * | 2021-09-14 | 2021-12-14 | 合众新能源汽车有限公司 | Arbitration method and device for vehicle-mounted audio focus |
CN113873475B (en) * | 2021-09-16 | 2022-06-07 | 阿波罗智联(北京)科技有限公司 | Vehicle-mounted interconnected audio data processing method and device and electronic equipment |
CN114222024A (en) * | 2021-11-11 | 2022-03-22 | 荣耀终端有限公司 | Notification message broadcasting method, electronic device and computer readable storage medium |
CN114153314B (en) * | 2021-11-29 | 2023-04-25 | 重庆长安汽车股份有限公司 | In-vehicle noise dynamic display interaction method and system for enhancing user experience |
CN114416017B (en) * | 2022-01-30 | 2024-06-04 | 重庆长安汽车股份有限公司 | Android-based audio focus implementation method |
WO2024103418A1 (en) * | 2022-11-18 | 2024-05-23 | 华为技术有限公司 | Audio control method and device |
CN116974508B (en) * | 2023-06-30 | 2024-07-09 | 荣耀终端有限公司 | Audio focus control method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105468380A (en) * | 2015-12-29 | 2016-04-06 | 山东大学 | Optimized method for managing audio focus in Android system |
CN106060627A (en) * | 2016-06-15 | 2016-10-26 | 乐视控股(北京)有限公司 | Audio processing method and device based on multi-way live broadcast |
WO2017096903A1 (en) * | 2015-12-11 | 2017-06-15 | 乐视控股(北京)有限公司 | Android platform-based multimedia recommendation method and terminal device |
CN107360506A (en) * | 2017-08-02 | 2017-11-17 | 深圳创维汽车智能有限公司 | The radio of Android mobile unit starts method and Android mobile unit |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5703794A (en) * | 1995-06-20 | 1997-12-30 | Microsoft Corporation | Method and system for mixing audio streams in a computing system |
JP2012133575A (en) * | 2010-12-21 | 2012-07-12 | Toyota Motor Corp | Application output control method and application output control device |
CN105530171B (en) * | 2015-12-23 | 2020-08-25 | 腾讯科技(深圳)有限公司 | Method and device for playing instant message voice by vehicle-mounted terminal |
CN107967130A (en) * | 2016-10-20 | 2018-04-27 | 深圳联友科技有限公司 | A kind of switching method and device of vehicle device voice-grade channel |
CN107870799A (en) * | 2017-11-22 | 2018-04-03 | 北京安云世纪科技有限公司 | Utilize the method, apparatus and terminal of widget control audio player |
CN109525707B (en) * | 2018-10-15 | 2021-04-27 | 维沃移动通信有限公司 | Audio playing method, mobile terminal and computer readable storage medium |
-
2019
- 2019-04-16 CN CN201910304062.4A patent/CN109996099B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017096903A1 (en) * | 2015-12-11 | 2017-06-15 | 乐视控股(北京)有限公司 | Android platform-based multimedia recommendation method and terminal device |
CN105468380A (en) * | 2015-12-29 | 2016-04-06 | 山东大学 | Optimized method for managing audio focus in Android system |
CN106060627A (en) * | 2016-06-15 | 2016-10-26 | 乐视控股(北京)有限公司 | Audio processing method and device based on multi-way live broadcast |
CN107360506A (en) * | 2017-08-02 | 2017-11-17 | 深圳创维汽车智能有限公司 | The radio of Android mobile unit starts method and Android mobile unit |
Also Published As
Publication number | Publication date |
---|---|
CN109996099A (en) | 2019-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109996099B (en) | Audio focus control method and system of vehicle-mounted system and vehicle-mounted system | |
US10013823B2 (en) | Vehicle information processing system and method | |
US20120259440A1 (en) | Method for managing conflicts between audio applications and conflict managing device | |
CN108062215A (en) | Vehicle source of sound control method and system, vehicle and its car-mounted terminal | |
US20140033277A1 (en) | Program Service Based on Individual Identification | |
CN110673964A (en) | Audio playing control method and device of vehicle-mounted system | |
CN102543127A (en) | Method and device for playing vehicle-mounted music | |
US10045147B2 (en) | Application control of primary-connected devices from secondary-connected devices | |
US20200202857A1 (en) | Voice wake-up processing method, apparatus and storage medium | |
CN105407127A (en) | Method, apparatus, and system for free sharing of passenger tool resources | |
CN108268233A (en) | Sound source control method, device and vehicle | |
US20170234989A1 (en) | Quick positioning system and vehicle-mounted system | |
CN102932516A (en) | Apparatus for communication between a vehicle based computing system and a remote application | |
CN108985476A (en) | A kind of personal identification method and device | |
CN113050910A (en) | Voice interaction method, device, equipment and storage medium | |
US9789763B1 (en) | Systems and methods for infotainment system startup | |
CN112637412A (en) | Audio management method and device and computer storage medium | |
US20170171272A1 (en) | Distributed in-vehicle resource downloading and streaming | |
CN105047211A (en) | Vehicle audio playing method and vehicle mounted terminal | |
CN102789795B (en) | Method and system used for playing vehicle-mounted compact disc and based on Android operating system | |
CN107872786B (en) | Control method and smart card | |
KR102061777B1 (en) | Method for Managing Media Content File Using NFC Card, Managing Server Used Thererin, and Media Being Recorded with Program Executing the Method | |
CN114554251A (en) | Multimedia data request method and device, storage medium and electronic device | |
CN112776738A (en) | Vehicle-mounted docking station, system, automobile, external device access method and medium | |
CN114138226B (en) | Car machine audio mixing method and device, controller and car |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20211014 Address after: 100176 101, floor 1, building 1, yard 7, Ruihe West 2nd Road, Beijing Economic and Technological Development Zone, Daxing District, Beijing Applicant after: Apollo Intelligent Connectivity (Beijing) Technology Co., Ltd. Address before: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing Applicant before: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |