Method, equipment and system for managing multi-audio-zone audio playing
1. A method for managing multi-zone audio playing is applied to an electronic device, wherein the electronic device is used for being connected with a plurality of audio channels, and the method comprises the following steps:
the electronic equipment divides the audio channel into a plurality of sound zones according to the position of the audio channel, and configures a strategy database for the sound zones;
the electronic equipment receives an audio playing request from a target sound zone, responds to the audio playing request, acquires a management strategy corresponding to the audio requested to be played from a strategy database corresponding to the target sound zone, and determines whether to configure an audio focus for the audio requested to be played according to the management strategy, wherein the audio playing request comprises a sound zone identifier of the audio requested to be played and a sound source type of the audio requested to be played;
and when determining that an audio focus is configured for the audio requested to be played, the electronic equipment plays the audio requested to be played through an audio channel corresponding to the target sound zone.
2. The method of claim 1,
when determining that the audio focus can not be configured for the audio requested to be played, the electronic equipment maintains the current playing state of the sound zone.
3. The method of claim 1, wherein the soundfield comprises one or more of a primary driving zone, a secondary driving zone, and a rear row soundfield.
4. The method of claim 1, wherein determining whether to configure audio focus for the requested audio for playback according to the management policy comprises:
the electronic equipment queries a current playing list of the target sound zone and the strategy database corresponding to the sound zone identification based on the sound zone identification of the target sound zone;
and the electronic equipment arbitrates the configuration of the audio focus according to the management strategy in the strategy database, the sound source type of the audio being played in the current play list and the sound source type of the audio requested to be played so as to determine whether to configure the audio focus for the audio requested to be played.
5. The method of claim 4, wherein the electronic device arbitrating the configuration of the audio focus to determine whether to configure the audio focus for the requested audio according to the management policy in the policy database and the audio source type of the audio currently playing in the current playlist and the audio source type of the requested audio comprises:
when the current play list has the audio which is being played, the electronic equipment configures an audio focus for the audio with the sound source type with the highest priority according to the priority of the sound source type in the strategy database;
and when no audio which is being played exists in the current playlist, the electronic equipment directly configures the audio focus for the audio which is requested to be played according to the management strategy.
6. The method of claim 1, wherein the audio source type comprises one of online music, local music, conversation audio, and alert tones.
7. The method according to claim 1, wherein when it is determined that an audio focus is configured for the requested audio for playing, the electronic device plays the requested audio through an audio channel corresponding to the target sound zone, and the method includes:
the electronic equipment updates the corresponding play list of the target sound zone and pauses playing the current audio;
the electronic equipment informs a multimedia program to obtain the audio focus;
and the multimedia program plays the audio requested to be played through the audio channel corresponding to the target sound zone.
8. An electronic device configured to interface with a plurality of audio channels, the electronic device comprising:
the audio frame is used for dividing the audio channel into a plurality of sound zones according to the position of the audio channel and configuring a strategy database for the sound zones;
the multimedia module is used for sending an audio playing request of the target sound zone to the audio framework;
the audio frame is used for receiving an audio playing request from the target sound zone, responding to the audio playing request, acquiring a management strategy corresponding to the target sound zone from a strategy database, and determining whether an audio focus is configured for the target sound zone according to the management strategy, wherein the audio playing request comprises a sound zone identifier of the audio requested to be played and a sound source type of the audio requested to be played;
and when the audio frame determines that an audio focus is configured for the audio requested to be played, the multimedia module plays the audio requested to be played through an audio channel corresponding to the target sound zone.
9. The electronic device of claim 8,
when it is determined that an audio focus cannot be configured for the requested audio for playback, the audio framework maintains a current playback state of the zone.
10. The electronic device of claim 8, wherein the soundfield comprises one or more of a primary driving zone, a secondary driving zone, and a rear row soundfield.
11. The electronic device of claim 8, wherein the audio frame is to:
inquiring a current playing list of the target sound zone and the strategy database corresponding to the sound zone identification based on the sound zone identification of the target sound zone;
and arbitrating the configuration of the audio focus according to the management strategy in the strategy database, the sound source type of the audio being played in the current play list and the sound source type of the audio requested to be played, so as to determine whether the audio focus is configured for the audio requested to be played.
12. The electronic device of claim 8, wherein the audio source type comprises one of online music, local music, conversation audio, and alert tones.
13. The electronic device of claim 11, wherein the audio frame is configured to:
when the current play list has the audio which is being played, the audio framework configures an audio focus for the audio with the sound source type with the highest priority according to the priority of the sound source type in the strategy database;
and when no audio which is being played exists in the current playlist, the audio framework directly configures the audio focus for the audio which is requested to be played according to the management strategy.
14. The electronic device of claim 8, wherein when it is determined to configure audio focus for the audio of the play request, the audio framework is further configured to:
updating the corresponding play list of the target sound zone, informing the multimedia module to pause playing the current audio and informing the multimedia module to obtain the audio focus;
and the multimedia program obtains the audio focus and plays the audio requested to be played through the audio channel corresponding to the target sound zone.
15. A system for multi-zone audio playback management, comprising:
an electronic device according to any one of claims 8-14;
and the audio channel is connected with the electronic equipment and is used for playing audio.
Background
In the current vehicle-mounted entertainment system, a single-tone zone system is often adopted for multimedia playing, namely, a vehicle-mounted loudspeaker uniformly plays a single sound source in a closed space of an automobile. When a plurality of audio sources need to be played, the car machine needs to judge the priority of each audio source and compare the priority with a configuration strategy preset by the system to obtain a final judgment result so as to determine the priority of playing a single audio source. Privacy of personnel in the vehicle under the single-tone zone system cannot be protected, and entertainment experience is reduced.
Disclosure of Invention
In view of the above, the present invention provides a method, device and system for managing playing of multi-zone audio, which can divide the zones and perform audio source focus arbitration.
In order to solve the technical problems, the invention adopts the following technical scheme:
the method for managing the playing of the multi-audio-zone audio according to the embodiment of the invention is applied to electronic equipment, the electronic equipment is used for being connected with a plurality of audio channels, and the method comprises the following steps:
the electronic equipment divides the audio channel into a plurality of sound zones according to the position of the audio channel, and configures a strategy database for the sound zones;
the electronic equipment receives an audio playing request from a target sound zone, responds to the audio playing request, acquires a management strategy corresponding to the audio requested to be played from a strategy database corresponding to the target sound zone, and determines whether an audio focus is configured for the audio requested to be played according to the management strategy, wherein the audio playing request comprises a sound zone identifier of the audio requested to be played and a sound source type of the audio requested to be played;
and when determining that the audio focus is configured for the audio requested to be played, the electronic equipment plays the audio requested to be played through the audio channel corresponding to the target sound zone.
Further, when it is determined that an audio focus cannot be configured for the audio requested to be played, the electronic device maintains a current playing state of the soundstage.
Further, the sound zone comprises one or more of a main driving sound zone, a secondary driving sound zone and a rear row sound zone.
Further, determining whether to configure an audio focus for the audio requested to be played according to the management policy includes:
the electronic equipment queries a current playing list of the target sound zone and a strategy database corresponding to the sound zone identification based on the sound zone identification of the target sound zone;
the electronic equipment arbitrates the configuration of the audio focus according to the management strategy in the strategy database, the sound source type of the audio being played and the sound source type of the audio requested to be played in the current play list so as to determine whether the audio focus is configured for the audio requested to be played.
Further, the sound source type includes one of online music, local music, call audio, and alert sound.
Furthermore, the electronic device arbitrating the configuration of the audio focus according to the management policy in the policy database, and the sound source type of the audio currently being played and the sound source type of the audio requested to be played in the current playlist, to determine whether to configure the audio focus for the audio requested to be played, includes:
when the current playing list has audio which is being played, the electronic equipment configures an audio focus for the audio with the sound source type with the highest priority according to the priority of the sound source type in the strategy database;
and when no audio which is being played exists in the current playlist, the electronic equipment directly configures an audio focus for the audio which is requested to be played according to the management strategy.
Further, when it is determined that the audio focus is configured for playing the requested audio, the electronic device plays the requested audio through the audio channel corresponding to the target sound zone, including:
the electronic equipment updates a corresponding play list of the target sound zone and pauses playing the current audio;
the electronic equipment informs the multimedia program to obtain an audio focus;
and the multimedia program plays the audio requested to be played through the audio channel corresponding to the target sound zone.
Another embodiment of the present invention provides an electronic device, where the electronic device is configured to be connected to multiple audio channels, and the electronic device includes:
the audio frame is used for dividing the audio channel into a plurality of sound zones according to the position of the audio channel and configuring a strategy database for the sound zones;
the multimedia module is used for sending an audio playing request of the target sound zone to the audio framework;
the audio frame is used for receiving an audio playing request from a target sound zone, responding to the audio playing request, acquiring a management strategy corresponding to the target sound zone from the strategy database, and determining whether an audio focus is configured for the target sound zone according to the management strategy, wherein the audio playing request comprises a sound zone identifier of the audio requested to be played and a sound source type of the audio requested to be played;
and when the audio frame determines that the audio focus is configured for the audio requested to be played, the multimedia module plays the audio requested to be played through the audio channel corresponding to the target sound zone.
Further, when it is determined that an audio focus cannot be configured for the requested audio for playback, the audio framework maintains the current playback state of the soundstage.
Further, the sound zone comprises one or more of a main driving sound zone, a secondary driving sound zone and a rear row sound zone.
Further, the audio framework is configured to: inquiring a current playing list of the target sound zone and a strategy database corresponding to the sound zone identification based on the sound zone identification of the target sound zone;
and arbitrating the configuration of the audio focus according to the management strategy in the strategy database, the sound source type of the audio being played and the sound source type of the audio requested to be played in the current play list so as to determine whether the audio focus is configured for the audio requested to be played.
Further, the sound source type includes one of online music, local music, call audio, and alert sound.
Further, the audio framework is configured to:
when the current playing list has audio which is being played, the audio framework configures an audio focus for the audio with the sound source type with the highest priority according to the priority of the sound source type in the strategy database;
and when no audio which is being played exists in the current playlist, the audio framework directly configures an audio focus for the audio which is requested to be played according to the management strategy.
Still further, when determining to configure audio focus for playing the requested audio, the audio framework is further operable to:
updating the corresponding play list of the target sound zone, informing the multimedia module to pause playing the current audio and informing the multimedia module to obtain an audio focus;
the multimedia program obtains an audio focus and plays the audio requested to be played through the audio channel corresponding to the target sound zone.
Another embodiment of the present invention provides a system for managing playing of multi-audio-zone audio, including:
the electronic equipment is used for executing the multi-sound-zone audio playing management method;
and the audio channel is connected with the electronic equipment and is used for playing audio.
The technical scheme of the invention at least has one of the following beneficial effects:
1. according to the method provided by the embodiment of the invention, the audio channel is divided into the plurality of sound zones to transmit the audio respectively, so that personnel in the vehicle can listen to the audio respectively and independently, and the entertainment experience of a user is improved;
2. according to the method provided by the embodiment of the invention, the strategy database is used for carrying out focus arbitration on the sound source type, so that a high-priority sound source obtains an audio focus, the user perception is better met, and the use experience is optimized;
3. the embodiment of the invention can configure the management strategy in the strategy database, customize the management strategy according to the requirement of the user and improve the adaptability of the system;
4. the embodiment of the invention manages the audio playing of the car machine from two dimensions of the sound zone and the focus of the sound source, is beneficial to code modular development and maintenance, and simplifies the problem troubleshooting process.
Drawings
FIG. 1 is an architecture diagram of a system for multi-zone audio playback management according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for multi-zone audio playback management according to an embodiment of the present invention;
FIG. 3 is a block diagram of an electronic device for multi-zone audio playback management according to an embodiment of the present invention;
FIG. 4 is a block diagram of a system for multi-zone audio playback management according to an embodiment of the present invention;
fig. 5 is a SoC block diagram of a system for multi-zone audio playing management according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the existing vehicle-mounted entertainment system, a single-tone area system is often adopted for multimedia playing, so that the whole vehicle can only play the same sound source at the same time. The invention adopts a multi-sound zone audio playing management method, so that each driver and passengers can enjoy independent sound field space and enjoy respective audio and video entertainment contents, thereby improving the entertainment experience of users.
Referring to fig. 1, fig. 1 is an architecture diagram of a system for managing playing of multi-zone audio according to an embodiment of the present invention, as shown in fig. 1, the architecture diagram includes an audio channel 110 and an audio channel 130 connected to an electronic device 100, where the audio channel 110 is divided into a zone 1, the audio channel 130 is divided into a zone 2, the zone 1 is provided with a policy database 120, and the zone 2 is provided with a policy database 140.
The electronic apparatus 100 divides the plurality of audio channels into a plurality of sound zones according to the positions of the audio channels in the vehicle and independently plays audio in each sound zone, for example, the plurality of audio channels 110 on the main driving side may be divided into sound zone 1. In particular, the soundfield may include one or more of a main driving zone, a secondary driving zone, and a rear row soundfield. Therefore, each driver and passengers in the vehicle have independent sound zone to play audio, and the entertainment experience of users is improved.
In addition, the electronic device 100 may configure the policy database 120 for the sound zone 1, specifically, when a plurality of sound sources request to play simultaneously, the electronic device 100 may configure an audio focus for a high-priority sound source according to the management policy in the policy database 120, for example, when a call is dialed, the electronic device 100 queries the management policy in the policy database 120 to determine that the priority of the call audio is higher, and the electronic device 100 configures an audio focus for the call sound source to play the audio through the corresponding audio channel 110 corresponding to the sound zone 1. Therefore, the audio can be accurately played in different sound field spaces, and the user experience is optimized.
The following describes a method for managing playing of multi-zone audio according to an embodiment of the present invention with reference to fig. 2.
The method for managing the multi-audio-zone audio playing provided by the embodiment of the invention is applied to electronic equipment.
As shown in fig. 2, the flowchart includes S210-S250 according to the method for managing playing of multi-zone audio, and the following steps are described in detail:
s210, the electronic equipment divides the audio channel into a plurality of sound zones according to the position of the audio channel.
Specifically, a plurality of audio channels are provided in the vehicle, the audio channels may be one or more of a speaker, a bluetooth headset, an audio headrest, and the like, and the electronic device divides the audio channels into a plurality of sound zones according to the positions of the audio channels, for example, the plurality of audio channels on the main driving side may be divided into main driving sound zones. In particular, the soundfield may include one or more of a main driving zone, a secondary driving zone, and a rear row soundfield. Therefore, each driver and passengers in the vehicle have independent sound zone to play audio, and the entertainment experience of users is improved.
S220, the electronic equipment configures a strategy database for each sound zone.
Specifically, the policy database is used for storing management policies required by the electronic device for focus arbitration, and more specifically, the management policies in the policy database may be customized according to the location of the sound zone, for example, in the main driving sound zone, the navigation prompt sound has a higher priority than other sound sources, and when the navigation application needs to play the navigation prompt sound, the main driving sound zone may play the navigation prompt sound preferentially. And if other sound zones do not need to be driven, the navigation prompt sound can be forbidden in the management strategy of the corresponding sound zone. Therefore, the sound source priority management strategy with flexible sound zones is more in line with the use habits of users.
And S230, the electronic equipment receives the audio playing request of the target sound zone and judges whether an audio focus is configured for the audio playing request according to the strategy database.
Specifically, the electronic device may configure an audio focus for the high-priority sound source according to a management policy in the policy database, and more specifically, the electronic device may receive an audio play request from the target sound zone, respond to the audio play request, obtain a management policy corresponding to the audio requested to be played from the policy database corresponding to the target sound zone, and determine whether to configure the audio focus for the audio requested to be played according to the management policy, where the audio play request includes a sound zone identifier of the audio requested to be played and a sound source type of the audio requested to be played. Therefore, the audio can be accurately played in different sound field spaces, and the user experience is optimized.
More specifically, the electronic device queries a current playlist of the target sound zone and a policy database corresponding to the sound zone identifier based on the sound zone identifier of the target sound zone, and arbitrates the configuration of the audio focus according to the management policy in the policy database, the sound source type of the audio currently being played in the current playlist, and the sound source type of the audio requested to be played, so as to determine whether to configure the audio focus for the audio requested to be played. The sound source type comprises one of online music, local music, conversation audio and prompt tone. When the current playing list has audio which is being played, the electronic equipment configures an audio focus for the audio with the sound source type with the highest priority according to the priority of the sound source type in the strategy database; and when no audio which is being played exists in the current playlist, the electronic equipment directly configures an audio focus for the audio which is requested to be played according to the management strategy. Therefore, each sound zone can obtain independent audio playing experience by performing audio focus arbitration on each sound zone respectively.
S240, when the audio focus is determined to be configured for the audio requested to be played, the electronic equipment plays the audio requested to be played through the audio channel corresponding to the target sound zone.
Specifically, the electronic device updates the corresponding playlist of the target soundtrack and pauses playing the current audio. Then, the electronic device informs the multimedia program to obtain the audio focus, and the multimedia program plays the audio requested to be played through the audio channel corresponding to the target sound zone.
And S250, when the electronic equipment determines that the audio focus can not be configured for the audio requested to be played, maintaining the current playing state of the sound zone.
Another embodiment of the present invention provides an electronic device 300 for connecting to a plurality of audio channels respectively. For example, referring to fig. 3, the audio channel 332, the audio channel 342, and the audio channel 352 may be connected, where the audio channel 332 is divided into a zone 1, the audio channel 342 is divided into a zone 2, the audio channel 352 is divided into a zone 3, the zone 1 is provided with the policy database 330 and the corresponding management policy 331, the zone 2 is provided with the policy database 340 and the corresponding management policy 341, and the zone 3 is provided with the policy database 350 and the corresponding management policy 351. The electronic device includes: an audio frame 310, a multimedia module 320, a multimedia module 321, and a multimedia module 322.
In an embodiment of the present application, the audio framework 310 may divide the audio channel 332 into a zone 1 according to the location of the audio channel 332, and configure the policy database 330 for the zone 1; multimedia module 320 is used to feed back the audio playing request of target audio range 1 to audio frame 310, multimedia module 321 is used to feed back the audio playing request of target audio range 2 to audio frame 310, and multimedia module 323 is used to feed back the audio playing request of target audio range 3 to audio frame 310.
For example, the audio framework 310 is configured to receive an audio playing request from the target sound zone 1, respond to the audio playing request, obtain a management policy 331 corresponding to the target sound zone 1 from the policy database 330, and determine whether to configure an audio focus for the multimedia module 320 according to the management policy 331, where the audio playing request includes an identifier of the sound zone 1 of the audio requested to be played and a sound source type of the audio requested to be played.
Further, when the audio framework 310 determines that an audio focus is configured for the multimedia module 320 requesting to play, the multimedia module 320 plays the audio requesting to play through the audio channel 332 corresponding to the target sound zone 1.
Further, audio framework 310 maintains the current play state of zone 1 when it is determined that audio focus cannot be configured for the requested audio for play.
The work flow and the function of each device in the electronic device according to the embodiment of the present invention have been described in detail in the above embodiments, and specifically refer to the description in the method in fig. 2 in the above embodiments, and are not described again here.
Another embodiment of the present invention provides a system for managing playing of multi-zone audio, as shown in fig. 4, the system includes an electronic device 410 and a plurality of audio channels 420.
An electronic device 410, which is the electronic device in the above-described embodiment;
and the audio channel 420, wherein the audio channel 420 is connected with the electronic device 410 and is used for playing audio.
The working flows and functions of the devices in the system for playing and managing multi-audio-zone audio in the embodiment of the present invention have been described in detail in the above embodiments, and refer to the description of the method in fig. 2 in the above embodiments specifically, and are not described again here.
Referring now to fig. 5, shown is a block diagram of a SoC (system on chip) 1300 in accordance with an embodiment of the present application. In fig. 5, similar components have the same reference numerals. In addition, the dashed box is an optional feature of more advanced socs. In fig. 5, SoC1300 includes: an interconnect unit 1350, 8 coupled to the application processor 1310; a system agent unit 1380; a bus controller unit 1390; an integrated memory controller unit 1340; a set or one or more coprocessors 1320 which may include integrated graphics logic, an image processor, an audio processor, and a video processor; a Static Random Access Memory (SRAM) unit 1330; a Direct Memory Access (DMA)5 unit 1360. In one embodiment, the coprocessor 1320 includes a special-purpose processor, such as, for example, a network or communication processor, compression engine, GPGPU, a high-throughput MIC processor, embedded processor, or the like. Included in Static Random Access Memory (SRAM) unit 1330 may be one or more computer-readable media for storing data and/or instructions. A computer-readable storage medium may have stored therein instructions, in particular, temporary and permanent copies of the instructions. The instructions may include: when executed by at least one unit in the processor, the Soc1300 may execute the calculation method according to the foregoing embodiment, which specifically refers to the method shown in fig. 2 in the foregoing embodiment, and is not described herein again.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.