Arbitration method and device for vehicle-mounted audio focus

文档序号:1966200 发布日期:2021-12-14 浏览:19次 中文

阅读说明:本技术 车载音频焦点的仲裁方法及装置 (Arbitration method and device for vehicle-mounted audio focus ) 是由 余华林 梁峰 李晨轩 张祺 于 2021-09-14 设计创作,主要内容包括:本发明涉及一种车载音频焦点的仲裁方法及仲裁装置,仲裁方法包括:提供一外部音频管理模块,外部音频管理模块中包括可配置的车载音频仲裁策略,车载音频仲裁策略包括多个不同音源之间的关系,每两个音源之间的关系包括拒绝、独占和共享中的一种;响应于来自音源的音频焦点请求,车载内部音频系统接收音频焦点请求并将音频焦点请求发送至外部音频管理模块,外部音频管理模块根据车载音频仲裁策略获得音频焦点请求的仲裁结果,并将仲裁结果返回至车载内部音频系统;以及车载内部音频系统根据仲裁结果处理当前音频焦点。本发明允许用户灵活地配置车载仲裁策略,方便在不同的车载产品需求项目中进行音频焦点策略管理和维护。(The invention relates to an arbitration method and an arbitration device for a vehicle-mounted audio focus, wherein the arbitration method comprises the following steps: providing an external audio management module, wherein the external audio management module comprises a configurable vehicle-mounted audio arbitration strategy, the vehicle-mounted audio arbitration strategy comprises the relationship among a plurality of different sound sources, and the relationship between every two sound sources comprises one of rejection, exclusive ownership and sharing; responding to an audio focus request from a sound source, receiving the audio focus request by the vehicle-mounted internal audio system, sending the audio focus request to the external audio management module, obtaining an arbitration result of the audio focus request by the external audio management module according to a vehicle-mounted audio arbitration strategy, and returning the arbitration result to the vehicle-mounted internal audio system; and the vehicle-mounted internal audio system processes the current audio focus according to the arbitration result. The invention allows a user to flexibly configure the vehicle-mounted arbitration strategy, and facilitates the management and maintenance of the audio focus strategy in different vehicle-mounted product requirement projects.)

1. An arbitration method for a vehicular audio focus, comprising:

providing an external audio management module, wherein the external audio management module comprises a configurable vehicle-mounted audio arbitration policy, the vehicle-mounted audio arbitration policy comprises the relationship among a plurality of different sound sources, and the relationship between every two sound sources comprises one of rejection, exclusive ownership and sharing;

responding to an audio focus request from a sound source, receiving the audio focus request by the vehicle-mounted internal audio system, sending the audio focus request to the external audio management module, obtaining an arbitration result of the audio focus request by the external audio management module according to the vehicle-mounted audio arbitration strategy, and returning the arbitration result to the vehicle-mounted internal audio system; and

and the vehicle-mounted internal audio system processes the current audio focus according to the arbitration result.

2. The arbitration method of claim 1, wherein said audio source corresponds to an in-vehicle application, said in-vehicle internal audio system receiving said audio focus requests from a plurality of different in-vehicle applications.

3. The arbitration method according to claim 1, wherein said external audio management module comprises an application program interface through which said in-vehicle internal audio system sends said audio focus request to said external audio management module.

4. The arbitration method of claim 1, further comprising: and the external audio management module registers in the vehicle-mounted internal audio system, wherein after receiving the audio focus request, the vehicle-mounted internal audio system sends the audio focus request to the registered external audio management module.

5. The arbitration method of claim 4, wherein the step of registering the external audio management module with the in-vehicle internal audio system comprises: the vehicle-mounted audio service registers a callback function in the vehicle-mounted internal audio system; and the arbitration result is returned to the vehicle-mounted internal audio system through the callback function.

6. The arbitration method of claim 1, wherein said sound source comprises any one or more of music, navigation, voice commands, ring tones, telephone voice, system alerts, alert tones, and system interaction tones.

7. The arbitration method according to claim 1, wherein said in-vehicle audio arbitration policy is configured by configuring a relationship matrix, one of a row or a column of said relationship matrix corresponding to a current audio focus corresponding to a current audio source, the other of a row or a column of said relationship matrix corresponding to a request audio source that makes an audio focus request, said relationship being set in said relationship matrix at an intersection of said row and said column.

8. An arbitration method according to claim 7, wherein said external audio management module comprises an application program interface through which said relationship matrix is configured.

9. An arbitration device for an in-vehicle audio focus, comprising:

the external audio management module comprises a configurable vehicle-mounted audio arbitration strategy, the vehicle-mounted audio arbitration strategy comprises the relationship among a plurality of different sound sources, and the relationship between every two sound sources comprises one of rejection, monopolization and sharing;

the vehicle-mounted internal audio system is used for receiving an audio focus request from a sound source and sending the audio focus request to the external audio management module; and

and the controller is used for controlling the external audio management module to obtain an arbitration result of the audio focus request according to the vehicle-mounted audio arbitration strategy and returning the arbitration result to the vehicle-mounted internal audio system, and the vehicle-mounted internal audio system processes the current audio focus according to the arbitration result.

10. The arbitration device of claim 9 wherein said audio source corresponds to an in-vehicle application, said in-vehicle internal audio system receiving said audio focus requests from a plurality of different in-vehicle applications.

11. The arbitration device according to claim 9, wherein said external audio management module comprises an application program interface through which said in-vehicle internal audio system sends said audio focus request to said external audio management module.

12. The arbitration device of claim 9, wherein said external audio management module is further configured to register a callback function in said in-vehicle internal audio system via an in-vehicle audio service, said controller returning the arbitration result to said in-vehicle internal audio system by controlling said callback function.

13. The arbitration device of claim 9 wherein said sound source comprises any one or more of music, navigation, voice commands, ring tones, telephone tones, system alerts, alert tones, and system interaction tones.

14. The arbitration device according to claim 9, wherein the in-vehicle audio arbitration policy comprises a configurable relationship matrix, one of a row or a column of the relationship matrix corresponds to a current audio source corresponding to a current audio focus, the other of the row or the column of the relationship matrix corresponds to a request audio source that makes an audio focus request, and an intersection of the row and the column of the relationship matrix corresponds to the relationship.

15. The mediation apparatus of claim 14, wherein the external audio management module includes an application program interface through which the relationship matrix is configured.

Technical Field

The invention mainly relates to a vehicle-mounted system, in particular to an arbitration method and device for a vehicle-mounted audio focus.

Background

With the wide application of the internet in the automobile field, the vehicle-mounted multimedia system has leap forward and more vehicle-mounted application programs can be selected. The audio management system is an important component of the vehicle-mounted multimedia system, and not only plays a role in controlling audio playing, but also plays a role in processing relationships among different audios. The vehicle-mounted audio focus strategy is a decision center for processing conflict among a plurality of application sounds in a vehicle and maintaining the playing order of the sounds in the vehicle. The audio system manages the focus according to an audio focus policy, requiring applications to comply with the audio focus criteria. For example: some audio may not be output simultaneously, some may be output simultaneously, and some may be output simultaneously but at a reduced volume. The current arbitration principle of audio policy is that high priority preempts low priority, and the latter interrupts the former except communication, but the latter cannot interrupt the former. But such fixed audio focus strategies are difficult to meet in increasingly complex and personalized use environments.

Disclosure of Invention

The technical problem to be solved by the invention is to provide a vehicle audio focus arbitration method, which can flexibly configure an arbitration strategy of a vehicle audio focus and manage and maintain the audio focus strategy in different vehicle product requirement items.

The technical scheme adopted by the invention for solving the technical problems is an arbitration method of a vehicle-mounted audio focus, which comprises the following steps: providing an external audio management module, wherein the external audio management module comprises a configurable vehicle-mounted audio arbitration policy, the vehicle-mounted audio arbitration policy comprises the relationship among a plurality of different sound sources, and the relationship between every two sound sources comprises one of rejection, exclusive ownership and sharing; responding to an audio focus request from a sound source, receiving the audio focus request by the vehicle-mounted internal audio system, sending the audio focus request to the external audio management module, obtaining an arbitration result of the audio focus request by the external audio management module according to the vehicle-mounted audio arbitration strategy, and returning the arbitration result to the vehicle-mounted internal audio system; and the vehicle-mounted internal audio system processes the current audio focus according to the arbitration result.

In an embodiment of the invention, the audio source corresponds to a car application, and the car internal audio system receives the audio focus request from a plurality of different car applications.

In an embodiment of the present invention, the external audio management module includes an application program interface, and the in-vehicle internal audio system sends the audio focus request to the external audio management module through the application program interface.

In an embodiment of the present invention, the external audio management module registers with the in-vehicle internal audio system, wherein after receiving the audio focus request, the in-vehicle internal audio system sends the audio focus request to the registered external audio management module.

In an embodiment of the present invention, the step of registering the external audio management module in the in-vehicle internal audio system by the external audio management module includes: the vehicle-mounted audio service registers a callback function in the vehicle-mounted internal audio system; and the arbitration result is returned to the vehicle-mounted internal audio system through the callback function.

In an embodiment of the invention, the sound source comprises any one or more of music, navigation, voice command, ring tone, telephone voice, system alarm, alert tone and system interaction tone.

In an embodiment of the present invention, the in-vehicle audio arbitration policy is configured by configuring a relationship matrix, one of a row or a column of the relationship matrix corresponds to a current audio source corresponding to a current audio focus, the other of the row or the column of the relationship matrix corresponds to a request audio source that makes an audio focus request, and the relationship is set at an intersection of the row and the column in the relationship matrix.

In an embodiment of the invention, the external audio management module comprises an application program interface through which the relationship matrix is configured.

The present invention further provides an arbitration device for a vehicle audio focus to solve the above technical problems, comprising: the external audio management module comprises a configurable vehicle-mounted audio arbitration strategy, the vehicle-mounted audio arbitration strategy comprises the relationship among a plurality of different sound sources, and the relationship between every two sound sources comprises one of rejection, monopolization and sharing; the vehicle-mounted internal audio system is used for receiving an audio focus request from a sound source and sending the audio focus request to the external audio management module; and the controller is used for controlling the external audio management module to obtain an arbitration result of the audio focus request according to the vehicle-mounted audio arbitration strategy and returning the arbitration result to the vehicle-mounted internal audio system, and the vehicle-mounted internal audio system processes the current audio focus according to the arbitration result.

In an embodiment of the invention, the audio source corresponds to a car application, and the car internal audio system receives the audio focus request from a plurality of different car applications.

In an embodiment of the present invention, the external audio management module includes an application program interface, and the in-vehicle internal audio system sends the audio focus request to the external audio management module through the application program interface.

In an embodiment of the invention, the external audio management module is further configured to register a callback function in the in-vehicle internal audio system through an in-vehicle audio service, and the controller returns the arbitration result to the in-vehicle internal audio system by controlling the callback function.

In an embodiment of the invention, the sound source comprises any one or more of music, navigation, voice command, ring tone, telephone voice, system alarm, alert tone and system interaction tone.

In an embodiment of the present invention, the in-vehicle audio arbitration policy includes a configurable relationship matrix, one of a row or a column of the relationship matrix corresponds to a current audio source corresponding to a current audio focus, another of the row or the column of the relationship matrix corresponds to a request audio source for making an audio focus request, and an intersection of the row and the column of the relationship matrix corresponds to the relationship.

In an embodiment of the invention, the external audio management module comprises an application program interface through which the relationship matrix is configured.

According to the arbitration method and device for the vehicle-mounted audio focus, the external audio management module is provided, the audio focus request is managed and maintained by the external audio management module, a user is allowed to flexibly configure the vehicle-mounted arbitration strategy, personalized configuration of the vehicle-mounted audio playing strategy is achieved, and management and maintenance of the audio focus strategy in different vehicle-mounted product requirement items are facilitated.

Drawings

In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below, wherein:

FIG. 1 is an exemplary flow chart of a method for arbitration of an onboard audio focus in accordance with an embodiment of the present invention;

FIG. 2 is a timing diagram illustrating an arbitration method for an on-board audio focus according to an embodiment of the present invention;

FIG. 3 is an example of a relationship matrix in an arbitration method for an in-vehicle audio focus according to an embodiment of the present invention;

FIG. 4 is a block diagram of an in-vehicle internal audio system and external audio management module of an embodiment of the present invention;

FIG. 5 is a flow chart illustrating the control of the arbitration method for audio playback according to an embodiment of the present invention;

fig. 6 is a block diagram of an arbitration device for an in-vehicle audio focus according to an embodiment of the present invention.

Detailed Description

In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.

In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways than those specifically described herein, and thus the present invention is not limited to the specific embodiments disclosed below.

As used in this application and the appended claims, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are intended to be inclusive in the plural unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that steps and elements are included which are explicitly identified, that the steps and elements do not form an exclusive list, and that a method or apparatus may include other steps or elements.

The relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise. Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description. Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate. In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values. 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, further discussion thereof is not required in subsequent figures.

Further, although the terms used in the present application are selected from publicly known and used terms, some of the terms mentioned in the specification of the present application may be selected by the applicant at his or her discretion, the detailed meanings of which are described in relevant parts of the description herein. Further, it is required that the present application is understood not only by the actual terms used but also by the meaning of each term lying within.

Flow charts are used herein to illustrate operations performed by systems according to embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed in the exact order in which they are performed. Rather, various steps may be processed in reverse order or simultaneously. Meanwhile, other operations are added to or removed from these processes.

The arbitration method of the vehicle-mounted audio focus comprises the steps of providing an external audio management module, enabling the external audio management module to be matched with a vehicle-mounted internal audio system, enabling the vehicle-mounted internal audio system to send a received focus request of a request sound source to the external audio management module, enabling the external audio management module to obtain an arbitration result of the focus request according to a vehicle-mounted audio arbitration strategy, and returning the arbitration result to the vehicle-mounted internal audio system.

Fig. 1 is an exemplary flowchart of an arbitration method for an in-vehicle audio focus according to an embodiment of the present invention. Referring to fig. 1, the arbitration method of this embodiment includes the steps of:

step S110: providing an external audio management module, wherein the external audio management module comprises a configurable vehicle-mounted audio arbitration strategy, the vehicle-mounted audio arbitration strategy comprises the relationship among a plurality of different sound sources, and the relationship between every two sound sources comprises one of rejection, exclusive ownership and sharing;

step S120: responding to an audio focus request from a sound source, receiving the audio focus request by the vehicle-mounted internal audio system, sending the audio focus request to the external audio management module, obtaining an arbitration result of the audio focus request by the external audio management module according to a vehicle-mounted audio arbitration strategy, and returning the arbitration result to the vehicle-mounted internal audio system; and

step S130: and the vehicle-mounted internal audio system processes the current audio focus according to the arbitration result.

The steps S110 to S130 of the above embodiment are described in detail below with reference to fig. 2 and 3.

Fig. 2 is a timing diagram illustrating an arbitration method for an in-vehicle audio focus according to an embodiment of the present invention. Referring to fig. 2, the arbitration method of the present invention involves an external audio management module 210 and an in-vehicle internal audio system 220. The in-vehicle internal audio system 220 may be a part of the in-vehicle system for managing audio devices. In some embodiments, the car machine system is based on an android system, and then in-vehicle internal audio system 220 is also based on an android system.

As shown in fig. 1 and 2, in step S110, an external audio management module 210 is provided, which includes a configurable car audio arbitration policy. The vehicle audio arbitration strategy comprises a relation among a plurality of different sound sources, and the relation between every two sound sources comprises one of rejection, exclusive and sharing.

Specifically, the car audio arbitration policy is configurable, and a user may configure the car audio arbitration policy in the external audio management module 210 through an interface, which is not limited by the present invention.

In some embodiments, the external audio management module 210 includes an application interface through which a user can configure relationships between different audio sources in the focus matrix.

In some embodiments, a user may configure the in-vehicle audio arbitration policy by configuring a relationship matrix as desired, where one of the rows or columns of the relationship matrix corresponds to a current audio source corresponding to a current audio focus, and the other of the rows or columns corresponds to a request audio source that makes an audio focus request, and a specific relationship is set at the intersection of the row and column. The relationship of the audio arbitration policy includes one of denial, exclusivity and sharing, that is, a specific arbitration result after being arbitrated.

Fig. 3 is an example of a relationship matrix in an arbitration method for an in-vehicle audio focus according to an embodiment of the present invention. Referring to fig. 3, the relationship matrix includes an 8 by 8 matrix, in which the content in the title column indicates the name of the current audio source currently being focused, i.e. each row in the relationship matrix corresponds to an audio source currently being focused; the content in the title row indicates the name of the requesting audio source that made the "focus request", i.e. each column in the relation matrix corresponds to an incoming requesting audio source. In fig. 3 8 sources are listed, respectively: music, navigation, voice commands, ring tones, phone speech, system alerts, alert tones, and system interaction tones. The user can set the relationship between the corresponding two audio sources at the intersection of the row and column, as shown at R, E, C in FIG. 3, where R denotes deny, E denotes exclusive, and C denotes share.

In some embodiments, the sound source comprises any one or combination of music, navigation, voice commands, ring tones, telephone speech, system alerts, alert tones, and system interaction tones, which may be increased or decreased as desired.

The above-described embodiments define the sound source according to the type of the sound, and do not limit the hardware for playing the sound source. In automobiles, sound related hardware includes, but is not limited to, USB players, CD players, cassette players, radios, system speakers, and the like. Different sound sources can be played by the same playing device, for example, system speakers can be used to play system alarms, alert tones and system interaction tones.

To explain the configuration method of the relationship matrix in detail, a specific example is given below:

if the sInteractionmatrix [ X ] [ Y ] Z command is provided, where "[ X ] represents the X-th row and" [ Y ] represents the Y-th column. In this embodiment "X" and "Y" are positive integers from 1 to 8. It will be appreciated that the ranges of "X" and "Y" are not fixed and vary as the number of current and requested sources vary. "Z" represents that the arbitration result of the cell intersected by the X-th row and the Y-th column is Z. "Z" includes R, E, C, where R, E, C represents deny, exclusive, share, respectively. If the relation of the two sound sources is rejection, the current sound source does not release the focus, and other sound sources are rejected to seize the focus; if the relation between the two sound sources is exclusive, the request sound source needs to monopolize the focus, and other focuses are lost; if the relationship between the two sound sources is shared, the other focuses are not lost and the sound is mixed.

The commands described above are merely examples, and a user may configure the in-vehicle audio arbitration policy by performing operations on the GUI. A more detailed example is given below in connection with the above example and fig. 3.

Example 1: sInteractionmatrix [2] [3]: E, indicating that the voice command requests focus if the current navigation occupies focus, and the corresponding policy is E, indicating that the voice command monopolizes the focus.

Example 2: sInteractionmatrix [1] [1]: E, indicating that the music of another sound source requests focus under the condition that the current music occupies focus, and the corresponding strategy is E, indicating that the music of another sound source monopolizes focus.

Example 3: sInteractionmatrix [4] [1]: R, which indicates that the music requests focus in case that the current ringtone occupies focus, and R, which is the corresponding policy, indicates that the music focus is rejected.

Example 4: sInteractionmatrix [8] [2]: C, which indicates that the navigation request focus is in the case that the current system interactive voice occupies the focus, and the corresponding policy is C, which indicates that the system interactive voice can share the focus with the navigation.

The above examples are not intended to limit the specific configuration contents of the arbitration policy of the present invention, and the user can configure the arbitration policy table as desired.

Referring to fig. 1 and 2, in step S120, in response to an audio focus request from the sound source, the in-vehicle interior audio system 220 performs the following steps:

step S221: a focus request is received from a requesting audio source. The sound source has a corresponding in-vehicle application program for controlling the sound source. The different audio sources may correspond to different or the same in-vehicle applications, and the in-vehicle audio system 220 may receive audio focus requests from a plurality of different in-vehicle applications at the same time.

Step S222: a focus request is sent. The in-vehicle interior audio system 220 transmits the received focus request to the external audio management module 210.

In one embodiment, the external audio management module 210 is first registered with the in-vehicle internal audio system 220. After the in-vehicle internal audio system 220 receives the focus request, the focus request is transmitted to the registered external audio management module 210 through the application program interface. It is appreciated that the in-vehicle internal audio system 220 will only send focus requests to registered external audio management modules 210, which is beneficial to avoid information clutter.

In one embodiment, the step of registering the external audio management module 210 with the in-vehicle internal audio system 220 includes: the car audio service registers a callback function in the car interior audio system 220, wherein the arbitration result is returned to the car interior audio system 220 through the callback function.

As shown in fig. 1 and 2, in step S120, the external audio management module 210 receives the focus request and then performs the following steps:

step S211: arbitrating the received focus request;

in the step, arbitration is carried out according to the configured vehicle-mounted audio arbitration strategy. For the above-mentioned relationship matrix, the corresponding relationship between the current sound source and the request sound source can be found, and the relationship is used as the arbitration result.

Step S212: and returning an arbitration result. I.e., returns the arbitration result to the in-vehicle interior audio system 220.

In step S130, the in-vehicle interior audio system 220 performs the following steps:

step S223: and processing the current audio focus according to the arbitration result.

Wherein the arbitration result may be returned to the in-vehicle interior audio system 220 by a callback function.

In step S223, after receiving the arbitration result returned by the external audio management module 210, the in-vehicle internal audio system 220 processes the current audio focus according to the arbitration result, including: corresponding to the rejection relation, keeping the current audio focus to the current sound source; corresponding to the exclusive relationship, releasing the current audio focus to the request sound source; and corresponding to the sharing relation, enabling the current sound source and the request sound source to share the current audio focus.

In the current car audio system, the basic arbitration rule is that high priority preempts low priority, and the latter with the same priority interrupts the former except communication, but the latter cannot interrupt the former. According to the invention, a user can configure the arbitration strategy according to the requirement, and the vehicle-mounted internal audio system 220 trusts the focus request to the external audio management module 210 for management, so that the method has higher flexibility and is convenient for audio focus strategy management and maintenance in different vehicle-mounted product requirement projects.

Fig. 4 is a block diagram of an in-vehicle internal audio system and an external audio management module according to an embodiment of the present invention. Referring to FIG. 4, the in-vehicle audio system 410 includes a plurality of audio sources and their players, such as first music, navigation, calendar, OEM media, second music, etc., each of which may have an in-vehicle application corresponding thereto. The sound source may send a focus request to the car audio service 411 in the car interior audio system 410 through the car application corresponding thereto.

The external audio management module 420 first registers with the in-vehicle internal audio system 410. The external audio management module 420 may also include a car audio service 422, and the external audio management module 420 is registered with the car internal audio system 410 by the car audio service 422 communicating with a car audio service 411 of the car audio service 422. When the in-vehicle audio service 411 receives a focus request, since the external audio management module 420 is already registered in the in-vehicle internal audio system 410, the in-vehicle audio service 411 hosts the received focus request to the external audio management module 420, and after receiving the focus request, the external audio management module 420 performs arbitration according to the in-vehicle arbitration policy 423 and returns an obtained arbitration result to the in-vehicle internal audio system 410 through a callback function.

Referring to fig. 4, the external audio management module 420 further includes an application program interface 421, and the in-vehicle audio arbitration policy 423 may be configured through the application program interface 421, and may also be configured through the application program interface including a PC side and other application programs.

Further, after the in-vehicle internal audio system 410 receives the arbitration result of the focus request returned by the external audio management module 420, the following steps may be further included: the in-vehicle audio system 410 determines whether to play or reject the play request sound source according to the returned arbitration result, and sends the determination of playing or rejecting the play request sound source to the external mixer 413 through the hardware abstraction layer 412, and the external audio mixer 413 forwards the determination to the car power amplifier 414 after receiving the determination.

According to the embodiment shown in fig. 4, by setting a configurable car audio arbitration policy in the external audio manager 420, the user can handle the relationship between the request audio source and the current audio source according to the requirement, and configure different arbitration policies for different scenes.

Fig. 5 is a flowchart illustrating the control of the audio playback by the arbitration method according to an embodiment of the present invention. The embodiment takes a USB player as a specific example of the sound source device, and the arbitration method according to the present invention controls the play or stop of the USB player. The control flow of this embodiment includes the steps of:

step S510: and processing the audio focus request of the USB player according to the vehicle-mounted audio arbitration strategy of the external audio management module.

In step S510, the USB player proposes an audio focus request, for example, the USB player performs a power-on start action, or a user inputs a play command in a reference program interface of the USB player, and then arbitrates the audio focus request according to the arbitration method of the present invention, and obtains an arbitration result of the audio focus request according to a vehicle-mounted audio arbitration policy. The current audio focus may or may not be handed to the USB player depending on the arbitration result.

Step S520: whether the USB player obtains the focus is determined, if yes, step S550 is executed, and if not, step S530 is executed.

Step S530: the delay to focus state changes. In this step, since the USB player does not obtain focus as a result of the determination in step S520, in order to ensure that the USB player does not obtain focus, a time delay is performed until the current audio focus changes, and then the determination is performed in step S540. In some cases, according to the arbitration result in step S510, if the USB player obtains the current audio focus, the system will give the current audio focus to the USB player, however, if the USB player does not obtain the current audio focus at the determination time in step S520, the determination result is incorrect. Thus, step S530 provides a certain buffering time to ensure that the USB player has obtained the current audio focus or indeed has not obtained the current audio focus.

Step S540: and judging whether the USB player obtains the focus, if so, executing the step S550, and if not, ending the process.

Step S550: and playing by the USB player.

Step S560: the USB player stops.

Step S570: the USB player releases the focus.

According to the embodiment shown in fig. 5, the configurable in-vehicle audio arbitration policy in the external audio management module can be used to process the audio focus request, which has the advantage of high flexibility.

Fig. 6 is a block diagram of an arbitration device for an in-vehicle audio focus according to an embodiment of the present invention. Referring to fig. 6, the mediation apparatus 600 of this embodiment includes an external audio management module 610, an in-vehicle internal audio system 620, and a controller 630. The external audio management module 610 includes a configurable vehicle audio arbitration policy, where the vehicle audio arbitration policy includes a relationship between multiple different sound sources, and the relationship between each two sound sources includes one of denial, monopoly, and sharing; the in-vehicle internal audio system 620 is configured to receive an audio focus request from a sound source and send the audio focus request to the external audio management module; the controller 630 is configured to control the external audio management module 610 to obtain an arbitration result of the audio focus request according to the in-vehicle audio arbitration policy, and return the arbitration result to the in-vehicle internal audio system 620, where the in-vehicle internal audio system 620 processes the current audio focus according to the arbitration result.

The arbitration device 600 can be used to execute the arbitration method for the car audio focus described above, and therefore, the above descriptions can be used to describe the arbitration device 600 of the present invention, and the same contents will not be described again.

The controller 630 in the arbitration device 600 may be a main controller of the car machine system, or may be a separate controller dedicated to arbitration of the car audio focus. The controller 630 may be embodied as a program and associated hardware for controlling the external audio management module 610 and the in-vehicle internal audio system 630.

In some embodiments, the audio source corresponds to an in-vehicle application, and the in-vehicle internal audio system receives audio focus requests from a plurality of different in-vehicle applications.

In some embodiments, external audio management module 610 includes an application program interface through which in-vehicle internal audio system 620 sends an audio focus request to external audio management module 610.

In some embodiments, the external audio management module 610 is further configured to register a callback function in the in-vehicle internal audio system 620 via the in-vehicle audio service, and the controller 610 returns the arbitration result to the in-vehicle internal audio system 620 by controlling the callback function.

In some embodiments, the audio source comprises any one or combination of music, navigation, voice commands, ring tones, telephone speech, system alerts, alert tones, and system interaction tones.

In some embodiments, the in-vehicle audio arbitration policy includes a configurable relationship matrix, one of a row or a column of the relationship matrix corresponds to a current audio source corresponding to a current audio focus, another of the row or the column of the relationship matrix corresponds to a request audio source that makes an audio focus request, and an intersection of the row and the column of the relationship matrix corresponds to a relationship.

In some embodiments, the external audio management module 610 includes an application program interface through which the relationship matrix is configured.

The arbitration device 600 of the present invention can configure a vehicle audio arbitration policy in the external audio management module 610, and the external audio management module 610 hosts the audio focus request of the vehicle internal audio system 620, and obtains the arbitration result according to the vehicle audio arbitration policy, thereby breaking through the limitation of the original priority arrangement and enabling the user to select the personalized audio arbitration policy more flexibly.

Having thus described the basic concept, it will be apparent to those skilled in the art that the foregoing disclosure is by way of example only, and is not intended to limit the present application. Various modifications, improvements and adaptations to the present application may occur to those skilled in the art, although not explicitly described herein. Such modifications, improvements and adaptations are proposed in the present application and thus fall within the spirit and scope of the exemplary embodiments of the present application.

Also, this application uses specific language to describe embodiments of the application. Reference throughout this specification to "one embodiment," "an embodiment," and/or "some embodiments" means that a particular feature, structure, or characteristic described in connection with at least one embodiment of the present application is included in at least one embodiment of the present application. Therefore, it is emphasized and should be appreciated that two or more references to "an embodiment" or "one embodiment" or "an alternative embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, some features, structures, or characteristics of one or more embodiments of the present application may be combined as appropriate.

Numerals describing the number of components, attributes, etc. are used in some embodiments, it being understood that such numerals used in the description of the embodiments are modified in some instances by the use of the modifier "about", "approximately" or "substantially". Unless otherwise indicated, "about", "approximately" or "substantially" indicates that the number allows a variation of ± 20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximations that may vary depending upon the desired properties of the individual embodiments. In some embodiments, the numerical parameter should take into account the specified significant digits and employ a general digit preserving approach. Notwithstanding that the numerical ranges and parameters setting forth the broad scope of the range are approximations, in the specific examples, such numerical values are set forth as precisely as possible within the scope of the application.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:增强空间定位的驱动方法、系统及相关设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!