Background technology
Nowadays, the automobile industry development is rapid, and automobile has become the main vehicles of people.Meanwhile, automobile begins to become gradually the popular consumer goods, and the consumer group of automobile is in continuous expansion, and the consumer is when having automobile, and is also more and more higher to the requirement of automobile, especially in the performance of automobile and aspect the experience when driving a car.For example, the user needs on the automobile corresponding technical measures to be arranged, so that the service of multimedia demands such as music, video, picture to be provided, and service such as navigation, real-time road, destination maps.
Mobile unit provides positional information in interior security service, personalized service etc. based on mobile communication and Internet technology to automobile.In addition, mobile unit can provide navigation feature, transport information function, emergency function etc.And mobile unit can also provide various multimedia services, for example broadcast of local audio such as film, music video, TV and Radio Service program reception etc.Along with Internet development, the network function that mobile unit provides is more and more, for example, gets online without being tethered to a cable by mobile unit, listens to online music or watches Internet video etc.
For mobile unit, be stored in music in the USB flash drive (USB flash disk) by what described mobile unit was play, abbreviate the USB flash disk music as, be stored in music in the safe digital card (Secure Digital Memory Card) by what described mobile unit was play, abbreviate SD card music as, the music of storing in other equipment is sent to described mobile unit and is referred to as the bluetooth music by the music that described mobile unit is play by the mode of bluetooth, frequency modulation broadcasting by described mobile unit broadcast, the Voice Navigation of mobile unit guider, the tinkle of bells of car phone etc., because it is all play by mobile unit, so be referred to as onboard audio.
Third party's audio frequency refers to that then non-our company develops, and does not have the voice applications of source code by other people or other company's exploitations, and therefore, except author or development company, other people can't carry out source code to its program and revise.For example: for the development company that onboard audio is used, the QQ music then can be considered to third party's audio frequency.
See also Fig. 1, Fig. 1 is the policy manager of existing mobile unit and the connection diagram between onboard audio applying unit and the third party's voice applications unit; As can be seen from Figure 1 do not have interconnected between policy manager and the third party's voice applications unit, this is mainly because the policy manager of third party's voice applications unit and mobile unit is not to be caused by the exploitation of same company, so, can't directly directly control the multimedia file that third party's voice applications unit is transferred by mobile unit in the prior art, can't control the third party's audio frequency in playing in other words.For instance, when the user listens to song by the QQ music, car phone receives the calling of dialling in, this moment, the user needed the manual QQ music of listening to of closing, if the user drives, then can't in time close the QQ music of listening to, therefore may the speech quality in the car phone communication process be influenced to some extent, and the user is if will close the QQ music of listening to, also need manual-lock, receive calls finish after, the user is if still want to listen to the QQ music, then need the manual QQ music that reopens, brought very big inconvenience to the user.
Therefore, how can be in the scene of onboard audio and the coexistence of third party's audio frequency, directly described third party's audio frequency being controlled by mobile unit becomes one of present problem demanding prompt solution.
The correlation technique of relevant onboard audio can also be the Chinese patent application of CN101192812 with reference to publication number.
Summary of the invention
The problem that the present invention solves is in the prior art, and mobile unit can't directly be controlled described third party's audio frequency in the scene of onboard audio and the coexistence of third party's audio frequency.
For addressing the above problem, the invention provides a kind of audio frequency control method that is applied to mobile unit, comprising:
Policy manager is based on the broadcast scene of obtaining current play multimedia file from the information of media player;
Described policy manager is determined and current broadcast scene corresponding audio control strategy, carries out described audio frequency control strategy, to be implemented under the current broadcast scene control to described media player.
Optionally, the described audio frequency control strategy of described execution comprises: control described media player and carry out described audio frequency control strategy.
Optionally, to carry out described audio frequency control strategy be to realize by the multimedia file that described media player control third party voice applications unit and/or onboard audio applying unit are transferred to the described media player of described control.
Optionally, described media player is controlled the multimedia file that described third party's voice applications unit and/or onboard audio applying unit transfer and is comprised: suspend execution to the described multimedia file of transferring, withdraw from execution to described multimedia file, reload described multimedia file.
Optionally, the described audio frequency control strategy of described execution comprises: the volume the when multimedia file that the volume control module control third party voice applications unit by mobile unit and/or onboard audio applying unit are transferred is play.
Optionally, described information from media player comprises the type of current play multimedia file, and described policy manager obtains the broadcast scene of current play multimedia file based on the type of described multimedia file.
Optionally, described media player receives the type of the multimedia file that sends from described third party's voice applications unit and/or onboard audio applying unit.
Optionally, described information from media player comprises: the broadcast scene of current play multimedia file.
Optionally, the described media player type that receives the multimedia file that sends from third party's voice applications unit and/or onboard audio applying unit is determined the broadcast scene of current play multimedia file.
For addressing the above problem, the present invention also provides a kind of audio control apparatus that is applied to mobile unit, comprising:
The strategy determining unit is used for receiving the broadcast scene of obtaining current play multimedia file from the information of media player, determines and described current broadcast scene corresponding audio control strategy;
Described audio frequency control strategy be used for to be carried out in the strategy execution unit, to be implemented under the current scene control to described media player.
Optionally, described strategy execution unit comprises:
First control module is used for the described media player of control and carries out described audio frequency control strategy;
Second control module, the volume control module that is used for the described mobile unit of control is carried out described audio frequency control strategy.
Optionally, described tactful determining unit comprises:
First information receiving element is for the type of the current play multimedia file that receives described media player transmission;
The scene determining unit is for the broadcast scene of determining current play multimedia file based on the type of described current play multimedia file;
The first tactful acquiring unit is used for obtaining the audio frequency control strategy based on the broadcast scene of described current play multimedia file.
Optionally, described strategy execution unit comprises:
Second information receiving unit is for the broadcast scene of the current play multimedia file that receives described media player transmission;
The second tactful acquiring unit is used for obtaining the audio frequency control strategy based on the broadcast scene of described current play multimedia file.
For addressing the above problem, the present invention also provides a kind of mobile unit, comprising:
Above-mentioned audio control apparatus;
Media player is used for sending information to described audio control apparatus, carries out described audio frequency control strategy under the control of described audio control apparatus;
Volume control module is used for carrying out described audio frequency control strategy under the control of described audio control apparatus.
Optionally, described information comprises: the type of current play multimedia file.
Optionally, described information comprises: the broadcast scene of current play multimedia file.
Optionally, described mobile unit also comprises:
Third party's voice applications unit is used for the type of its current multimedia file of transferring is sent to described media player;
The onboard audio applying unit is used for the type of its current multimedia file of transferring is sent to described media player.
Optionally, described media player respectively and realize mutual between the described third party's voice applications unit, onboard audio applying unit, audio control apparatus by interface.
Compared with prior art, technical scheme of the present invention has the following advantages:
Policy manager is based on the broadcast scene of obtaining current play multimedia file from the information of media player, and determine and current broadcast scene corresponding audio control strategy, carry out described audio frequency control strategy, to be implemented under the current broadcast scene control to described media player.Control described media player by described policy manager and carry out described audio frequency control strategy, and control the multimedia file that described third party's voice applications unit and/or onboard audio applying unit transfer by described media player and realize described audio frequency control strategy, and then realized by the control of described policy manager to described third party's audio frequency.
Further, owing to can come the multimedia file that third party's voice applications unit is transferred is controlled by policy manager, so also improved the importance of third party's voice applications unit to a certain extent.In addition owing to control third party's audio frequency by described policy manager control media player and then by described media player, the interface between third party's voice applications unit and the policy manager so need not redevelop, therefore, the development time of third party's voice applications unit and policy manager shortens greatly, also reduce simultaneously the difficulty of matching between the two, improved the utilization factor to third party's voice applications unit.
In addition, owing to realized third party's audio frequency directly being controlled feasible when the scene of third party's audio frequency and onboard audio coexistence occurring by described mobile unit, can directly be controlled accordingly third party's audio frequency by mobile unit, and need not the application of the manual control third party audio frequency of user, bring very big convenience to the user, improved user's Experience Degree.
Embodiment
Just as described in the background art, because the policy manager of existing mobile unit and third party's voice applications unit are not by the exploitation of same company, therefore cause existing mobile unit directly to control third party's audio frequency.Please continue referring to Fig. 1, the onboard audio applying unit can be with type (the USB flash disk music of the current onboard audio of transferring in the prior art, SD card music, bluetooth music etc.) inform policy manager, namely inform the broadcast scene that described policy manager is current, as the type of the current onboard audio of transferring of policy manager is the tinkle of bells of USB flash disk music and car phone as described in informing, the type of the current onboard audio that policy manager provides according to the onboard audio applying unit, select corresponding audio frequency control strategy, as suspend the broadcast of USB flash disk music, and described audio frequency control strategy informed the onboard audio applying unit, inform that by the onboard audio applying unit media player suspends the broadcast to current USB flash disk music.
Since can't be mutual between third party's voice applications unit and the policy manager, therefore when the broadcast scene of third party's audio frequency and onboard audio coexistence occurring, policy manager cannot be controlled third party's audio frequency.So the inventor proposes, control media player by policy manager, and then come the multimedia file that described onboard audio applying unit and third party's voice applications unit are transferred is controlled accordingly by described media player, and because directly by policy manager control media player and then control onboard audio and third party's audio frequency, the interface between policy manager and the third party's voice applications unit so need not to redevelop, the development time of third party's voice applications unit and policy manager shortens greatly, also reduce the difficulty of matching between the two, improved the utilization factor to third party's voice applications unit.
For above-mentioned purpose of the present invention, feature and advantage can more be become apparent, below in conjunction with accompanying drawing the specific embodiment of the present invention is described in detail.
Set forth detail in the following description so that fully understand the present invention.But the present invention can be different from alternate manner described here and implements with multiple, and those skilled in the art can do similar popularization under the situation of intension of the present invention.Therefore the present invention is not subjected to the restriction of following public embodiment.
See also Fig. 2, Fig. 2 is the process flow diagram of the audio frequency control method that is applied to mobile unit of the embodiment of the invention, and as shown in Figure 2, the described audio frequency control method that is applied to mobile unit comprises:
Step S11: policy manager is based on the broadcast scene of obtaining current play multimedia file from the information of media player.
Step S12: described policy manager is determined and current broadcast scene corresponding audio control strategy, carries out described audio frequency control strategy, to be implemented under the current broadcast scene control to described media player.
Execution in step S11, policy manager receives the information from described media player, and the information from described media player described in the present embodiment can be the type of current play multimedia file.And the type of described current play multimedia file is sent to described media player by described third party's voice applications unit and/or onboard audio applying unit.When described third party's voice applications unit and described onboard audio applying unit bring into operation simultaneously, when transferring multimedia file to be played, described media player receives the type from the multimedia file of transferring separately of described third party's voice applications unit and the transmission of onboard audio applying unit.When described third party's voice applications unit and onboard audio applying unit are not when bringing into operation simultaneously, described media player receives the type of the multimedia file of transferring separately that sends from described third party's voice applications unit or onboard audio applying unit.
Need to prove, the type of the multimedia file described in the present embodiment does not refer to that audio file is types such as mp3 or wav, and the multimedia file that refers to current broadcast is USB flash disk music, SD card music, bluetooth music, frequency modulation broadcasting, the Voice Navigation in the onboard audio, the tinkle of bells of car phone etc. or third party's audio frequency.Described policy manager obtains the broadcast scene of current play multimedia file based on the type of described multimedia file.
Execution in step S12: described policy manager is determined and current broadcast scene corresponding audio control strategy according to the broadcast scene of the current play multimedia file that obtains.
Particularly, for policy manager, its storage inside has audio frequency control strategy table, has generally included the corresponding audio frequency control strategy of different broadcast scenes in the described audio frequency control strategy table, and described broadcast scene then is according to the type of the multimedia file of current broadcast and definite.Described audio frequency control strategy table is specially the file of XML form, and described audio frequency control strategy table is decided by user's actual demand.
Described policy manager determined with current broadcast scene corresponding audio control strategy after, then carry out described audio frequency control strategy, in the present embodiment, described policy manager is carried out described audio frequency control strategy and comprised: control described media player and carry out described audio frequency control strategy, described policy manager is controlled described media player, and to carry out described audio frequency control strategy then be to control the multimedia file that described third party's voice applications unit and/or onboard audio applying unit transfer by described media player to realize.Volume when the multimedia file that described policy manager is transferred by volume control module control third party voice applications unit and/or the onboard audio applying unit of mobile unit is play.
Particularly, described media player suspend the multimedia file that described third party's voice applications unit and/or onboard audio applying unit are transferred execution, withdraw from the multimedia file that described third party's voice applications unit and/or onboard audio applying unit are transferred execution, reload the multimedia file that described third party's voice applications unit and/or onboard audio applying unit are transferred.Also namely: suspend third party's audio frequency, withdraw from third party's audio frequency, replay third party's audio frequency.Be that the QQ music program is example with described third party's voice applications unit, then suspend the execution of the multimedia file that described QQ music program is transferred or withdraw from the execution of the multimedia file that described QQ music program is transferred or after the execution that suspends the multimedia file that described QQ music program is transferred, reload the multimedia file that described QQ music program is transferred.Playing the USB flash disk music with the onboard audio applying unit is example, then suspend the execution of the USB flash disk music that described onboard audio applying unit is transferred or withdraw from the execution of the USB flash disk music that described onboard audio applying unit is transferred or after the execution that suspends the USB flash disk music that described onboard audio applying unit is transferred, reload the USB flash disk music that described onboard audio applying unit is transferred.
In the present embodiment, described policy manager is also controlled the volume control module of mobile unit based on described audio frequency control strategy, and then the volume when controlling multimedia file that third party's voice applications unit and/or onboard audio applying unit transfer and play by described volume control module.
For the control to described third party's audio frequency and onboard audio of policy manager that the embodiment of the invention is described better, be described in detail below in conjunction with table 1.Table 1 is the audio frequency control strategy table of the embodiment of the invention, need to prove, audio frequency control strategy table in the table 1 only for policy manager that the embodiment of the invention is described based on described audio frequency control strategy control media player, and then controlled by the multimedia file that described media player is transferred described third party's voice applications unit and/or onboard audio applying unit.And in actual applications, described audio frequency control strategy table should be decided according to user's actual demand.
Table 1
As shown in table 1, for first kind of situation shown in the table 1, the user listens to the QQ music, third party voice applications unit this moment (QQ music program) is sent to media player with the type " third party's music " of its multimedia file of transferring, car phone receives the calling of dialling in, be that the car phone the tinkle of bells sounds, the onboard audio applying unit is sent to media player with multimedia file type " car phone the tinkle of bells ", described media player is with the type " third party's music " of the multimedia file of current broadcast, " car phone the tinkle of bells " is sent to policy manager, described policy manager is according to the information from media player that receives, obtaining current broadcast scene is first scene, determine that the described first scene corresponding audio control strategy suspends for the QQ music, described policy manager sends and suspends the QQ music, and described media player is given in the order of putting the QQ music in the follow-up continued broadcasting of end of conversation, and described media player suspends the broadcast of QQ music based on described order.Behind the end of conversation, continue to play the QQ music of current time-out.
Similarly, for second kind of situation shown in the table 1, the QQ music, the USB flash disk music is all being play, the guider of mobile unit is also carrying out Voice Navigation, third party's voice applications unit (QQ music program) is sent to media player with the type " third party's music " of its multimedia file of transferring, the onboard audio applying unit is transferred multimedia file type " USB flash disk music " with it and is reached " navigating audio " and be sent to media player, described media player is with the type " third party's music " of the multimedia file of current broadcast, " USB flash disk music ", " navigating audio " is sent to described policy manager, described policy manager is according to the information from media player that receives, obtaining current broadcast scene is second scene, determine that the described second scene corresponding audio control strategy is for withdrawing from broadcast QQ music, the USB flash disk music-on-mute, described policy manager send withdraw from play the QQ music order to described media player, media player withdraws from execution to the QQ music based on described order.Described policy manager sends and reduces USB flash disk music volume to the volume control module of zero order to mobile unit, and then the volume when reducing USB flash disk music that the onboard audio applying unit transfers by described volume control module makes namely that to zero the USB flash disk music in playing is in mute state.Carry out the corresponding audio frequency control strategy of second scene by policy manager, and then make the user can clearly hear the Voice Navigation of on-vehicle navigation apparatus.
Similarly, for the third situation in the table 1, then control the volume control module of mobile unit by policy manager, and then the volume during the QQ music that reduces to transfer described third party's voice applications unit (QQ music program) by described volume control module is to zero, make the QQ music in playing be in mute state, by the volume control module of policy manager control mobile unit, and then the volume when increasing navigating audio that described onboard audio applying unit transfers and play by described volume control module.
In other embodiments, the information that described policy manager receives from described media player can be the broadcast scene of current play multimedia file, and the scene of current play multimedia file is then determined by described media player.Described media player is determined current broadcast scene according to the type of the multimedia file that sends from third party's voice applications unit and/or onboard audio applying unit that it receives, and described broadcast scene is sent to policy manager, the audio frequency control strategy table that store in the policy manager this moment then no longer comprises audio types one hurdle, include only and play scene and audio frequency control strategy, described policy manager is determined and its corresponding audio control strategy based on the broadcast scene of the current play multimedia file of receiving, and then control accordingly by controlling the multimedia file that described media player transfers described third party's voice applications unit and/or onboard audio applying unit, or by the volume control module of described policy manager control mobile unit, and then the volume when playing by the multimedia file that described volume control module is transferred described third party's voice applications unit and/or onboard audio applying unit controls accordingly.
The embodiment of the invention also provides a kind of audio control apparatus that is applied to mobile unit, sees also Fig. 3, and Fig. 3 is the structural representation of the audio control apparatus that is applied to mobile unit of the embodiment of the invention, and as shown in Figure 3, described audio control apparatus 20 comprises:
Strategy determining unit 10 is used for receiving the broadcast scene of obtaining current play multimedia file from the information of media player, determines and described current broadcast scene corresponding audio control strategy.
Strategy execution unit 11 links to each other with described tactful determining unit 10, be used for to carry out described audio frequency control strategy, to be implemented under the current scene control to described media player.
In the present embodiment, described tactful determining unit 10 comprises:
First information receiving element 101 is for the type of the current play multimedia file that receives described media player transmission.
Scene determining unit 102 links to each other with described first information receiving element 101, is used for determining based on the type of described current play multimedia file the broadcast scene of current play multimedia file.
The first tactful acquiring unit 103 links to each other with described scene determining unit 102, is used for obtaining the audio frequency control strategy based on the broadcast scene of described current play multimedia file.
Described strategy execution unit 11 comprises: first control module 110, link to each other with the described first tactful acquiring unit 103, and be used for the described media player of control and carry out described audio frequency control strategy.
Second control module 111 links to each other with the described first tactful acquiring unit 103, and the volume control module that is used for the described mobile unit of control is carried out described audio frequency control strategy.
In other embodiments, described tactful determining unit comprises:
Second information receiving unit is for the broadcast scene of the current play multimedia file that receives described media player transmission.
The second tactful acquiring unit is used for obtaining the audio frequency control strategy based on the broadcast scene of described current play multimedia file.
In the present embodiment, the course of work of described audio control apparatus can be carried out referring to the above-mentioned audio frequency control method that is applied to mobile unit, repeats no more herein.
The embodiment of the invention also provides a kind of mobile unit, comprising:
Above-mentioned audio control apparatus 20.
Media player 21 links to each other with described audio control apparatus 20, is used for sending information to described audio control apparatus 20, carries out described audio frequency control strategy under the control of described audio control apparatus 20.
Volume control module 22 links to each other with described audio control apparatus 20, described media player 21, is used for carrying out under the control of described audio control apparatus 20 described audio frequency control strategy.
In the present embodiment, described mobile unit also comprises:
Third party's voice applications unit 23 links to each other with described media player 21, is used for the type of its current multimedia file of transferring is sent to described media player 21.
Onboard audio applying unit 24 links to each other with described media player 21, is used for the type of its current multimedia file of transferring is sent to described media player 21.
In the present embodiment, the information that described media player 21 sends comprises: the type of current play multimedia file, described information also can comprise the broadcast scene of current play multimedia file in other embodiments.
In the present embodiment, described media player 21 respectively and realize mutual between the described third party's voice applications unit 23, onboard audio applying unit 24, audio control apparatus 20 by interface.
In sum, technical scheme of the present invention has following beneficial effect at least:
Policy manager is based on the broadcast scene of obtaining current play multimedia file from the information of media player, and determine and current broadcast scene corresponding audio control strategy, carry out described audio frequency control strategy, to be implemented under the current broadcast scene control to described media player.Control described media player by described policy manager and carry out described audio frequency control strategy, and control the multimedia file that described third party's voice applications unit and/or onboard audio applying unit transfer by described media player and realize described audio frequency control strategy, and then realized by the control of described policy manager to described third party's audio frequency.
Further, owing to can come the multimedia file that third party's voice applications unit is transferred is controlled by policy manager, so also improved the importance of third party's voice applications unit to a certain extent.In addition owing to control third party's audio frequency by described policy manager control media player and then by described media player, the interface between third party's voice applications unit and the policy manager so need not redevelop, therefore, the development time of third party's voice applications unit and policy manager shortens greatly, also reduce simultaneously the difficulty of matching between the two, improved the utilization factor to third party's voice applications unit.
In addition, owing to realized third party's audio frequency directly being controlled feasible when the scene of third party's audio frequency and onboard audio coexistence occurring by described mobile unit, can directly be controlled accordingly third party's audio frequency by mobile unit, and need not the application of the manual control third party audio frequency of user, bring very big convenience to the user, improved user's Experience Degree.
Though the present invention with preferred embodiment openly as above; but it is not to limit the present invention; any those skilled in the art without departing from the spirit and scope of the present invention; can utilize method and the technology contents of above-mentioned announcement that technical solution of the present invention is made possible change and modification; therefore; every content that does not break away from technical solution of the present invention; to any simple modification, equivalent variations and modification that above embodiment does, all belong to the protection domain of technical solution of the present invention according to technical spirit of the present invention.