CN103456330A - Audio control method and device - Google Patents
Audio control method and device Download PDFInfo
- Publication number
- CN103456330A CN103456330A CN2013104094145A CN201310409414A CN103456330A CN 103456330 A CN103456330 A CN 103456330A CN 2013104094145 A CN2013104094145 A CN 2013104094145A CN 201310409414 A CN201310409414 A CN 201310409414A CN 103456330 A CN103456330 A CN 103456330A
- Authority
- CN
- China
- Prior art keywords
- sound
- target sound
- target
- described target
- stream
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The invention provides an audio control method and device. The audio control method comprises the steps of receiving sound flows and executing the following operation according to any target sound flow of the sound flows: a target sound strategy corresponding to the target sound flow is obtained from sound strategies according to the preset corresponding relationships between the sound strategies and the sound flows, and the target sound strategy comprises target sound card information corresponding to the target sound flow; a target equipment file corresponding to the target sound card information is obtained according to the target sound card information; a target sound card corresponding to the target equipment file is driven through the target equipment file so that the operation corresponding to the functions of the target equipment file can be carried out on the target sound flow, and the target equipment file comprises a sound recording equipment file and/or a playing equipment file. Through the audio control method and device, sound playing software pieces in a vehicle-mounted navigator are not affected and limited one another.
Description
Technical field
The present invention relates to software field, in particular, relate to a kind of audio frequency control method and device.
Background technology
Automatic navigator of the prior art comprises the muli-sounds playout software, below take the sound playout software as navigation software and media play software are example, and the audio frequency control method of automatic navigator in prior art is described.
At media play software, playing in the process of media sound, if navigation software need to be play navigation speech, at this moment in order to allow the navigation speech normal play, need to reduce the volume of media sound or suspend and play media sound, after navigation speech finishes, then make media sound normal play.
To sum up, in prior art, navigation software and media play software can influence each other when playing sound, sometimes even at media play software, play in the process of media sound, can not the normal play navigation speech or, after playing navigation speech, media sound can not recover normal play.
Summary of the invention
In view of this, the invention provides a kind of audio frequency control method and device, to overcome in prior art because navigation software and media play software can influence each other when playing sound, sometimes even at media play software, play in the process of media sound, can not the normal play navigation speech or, after playing navigation speech, media sound can not recover the problem of normal play.
For achieving the above object, the invention provides following technical scheme:
A kind of audio frequency control method, be applied to automatic navigator, and described automatic navigator at least comprises two sound cards, and described method comprises:
Receive sound stream;
Carry out following operation for arbitrary target sound stream in described sound stream:
According to the sound strategy set in advance and the corresponding relation of sound stream, from the sound strategy, obtain flowing corresponding target sound strategy with described target sound, described target sound strategy comprises with described target sound and flows corresponding target sound card information;
Obtain the target device file corresponding with described target sound card information according to described target sound card information;
The target sound card corresponding with described target device file by described target device file driving, in order to described target sound stream is carried out to the operation corresponding with the function of described target device file, described target device file comprises sound pick-up outfit file and/or playback equipment file.
Preferably, before receiving sound stream, also comprise:
Receive and flow corresponding sound operational order with described target sound, described sound operational order comprises play sound stream instruction and/or the instruction of recorded voice stream;
Accordingly, describedly obtain the target device file corresponding with described target sound card information according to described target sound card information and comprise:
Obtain described target sound according to described sound operational order and flow corresponding target device file type;
Obtain described target device file according to described target sound card information and described target device file type.
Wherein, describedly obtain the target device file corresponding with described target sound card information according to described target sound card information and comprise:
Obtain the target sound card handle corresponding with described target sound card information according to described target sound card information;
Obtain the target device file corresponding with described target sound card handle according to described target sound card handle.
Preferably, described target sound strategy also comprises with described target sound and flows corresponding equipment information output, and after the described target sound card corresponding with described target device file by described target device file driving, described method also comprises:
Set up the corresponding relation between the output device that described target sound card is corresponding with described equipment information output according to described equipment information output, in order to described target sound stream is carried out to the operation corresponding with the function of described target device file in described output device.
Preferably, described output device at least comprises an equipment, described set up the corresponding relation between the output device that described target sound card is corresponding with described equipment information output according to described equipment information output before, also comprise:
Judge whether each output device corresponding with described equipment information output is being play or recorded voice stream;
The output device of being play or recorded voice flows is defined as to the target output device.
Preferably, described obtaining from the sound strategy, with before described target sound flows corresponding target sound strategy, also comprise:
The priority level of each sound stream is set;
When at least two kinds of sound streams of a sound strategy correspondence, according to the priority level of described at least two kinds of sound streams, determine that the sound stream that priority level is higher is target sound stream.
A kind of audio control apparatus, be applied to automatic navigator, and described automatic navigator at least comprises two sound cards, and described device comprises:
The first receiver module, for receiving sound stream;
First obtains module, for flowing for the arbitrary target sound of described sound stream, according to the sound strategy set in advance and the corresponding relation of sound stream, from the sound strategy, obtain flowing corresponding target sound strategy with described target sound, described target sound strategy comprises with described target sound and flows corresponding target sound card information;
Second obtains module, for for the arbitrary target sound stream of described sound stream, according to the described first target sound card information that obtains the module acquisition, obtains the target device file corresponding with described target sound card information;
Driver module, for flowing for the arbitrary target sound of described sound stream, obtain by described second the target device file driving target sound card corresponding with described target device file that module obtains, in order to described target sound stream is carried out to the operation corresponding with the function of described target device file, described target device file comprises sound pick-up outfit file and/or playback equipment file.
Preferably, also comprise:
The second receiver module, flow corresponding sound operational order for receiving with described target sound, and described sound operational order comprises play sound stream instruction and/or the instruction of recorded voice stream;
Accordingly, described second obtains module comprises: the first acquisition unit, flow corresponding target device file type for according to described sound operational order, obtaining described target sound; And second obtain unit, for according to described target sound card information and described target device file type, obtaining described target device file.
Wherein, described the second acquisition module comprises:
The 3rd obtains unit, for obtain the target sound card handle corresponding with described target sound card information according to described target sound card information;
The 4th obtains unit, for obtain the target device file corresponding with described target sound card handle according to described target sound card handle.
Preferably, also comprise:
Set up module, for after the described target sound card corresponding with described target device file by described target device file driving, set up the corresponding relation between the output device that described target sound card is corresponding with described equipment information output according to described equipment information output, in order to described target sound stream is carried out to the operation corresponding with the function of described target device file in described output device.
Preferably, also comprise:
Judge module, whether each output device corresponding with described equipment information output for judgement is being play or recorded voice stream;
The first determination module, be defined as the target output device for the output device that will be play or recorded voice flows.
Preferably, also comprise:
Module is set, for the priority level of each sound stream is set;
The second determination module, for when at least two kinds of sound streams of a sound strategy correspondence, according to the priority level of described at least two kinds of sound streams, determine that the sound stream that priority level is higher is target sound stream.
Known via above-mentioned technical scheme, compared with prior art, the embodiment of the present invention provides a kind of audio frequency control method, automatic navigator can receive sound stream, for each the target sound stream in the sound stream received, analyze the target sound strategy of this target sound stream, and obtain target sound according to the target sound strategy and flow corresponding target sound card information, obtain the target device file corresponding with target sound card information according to this target sound card information, automatic navigator just can pass through target sound card corresponding to this target sound card information of this target device file driving like this, in order to play and/or record this target sound stream.Automatic navigator in the embodiment of the present invention at least comprises two sound cards, because each target sound flows corresponding target sound card possibility difference, so automatic navigator can drive one or more sound cards to play and/or recorded voice stream simultaneously simultaneously, due to the sound card difference of playing and/or record each sound stream, so can not influence each other between each sound playout software in automatic navigator, mutually limit.
The accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to the accompanying drawing provided other accompanying drawing.
The schematic flow sheet of a kind of audio frequency control method that Fig. 1 provides for the embodiment of the present invention;
The another method flow schematic diagram of a kind of audio frequency control method that Fig. 2 provides for the embodiment of the present invention;
Obtain the method flow schematic diagram of a kind of implementation of the target device file corresponding with target sound card information in a kind of audio frequency control method that Fig. 3 provides for the embodiment of the present invention according to target sound card information;
The structural representation of a kind of audio control apparatus that Fig. 4 provides for the embodiment of the present invention.
Embodiment
For quote and know for the purpose of, the explanation of the technical term hereinafter used, write a Chinese character in simplified form or abridge and be summarized as follows:
GPS:Global Positioning System, GPS;
TTS:Text To Speech, from the text to the language;
DTMF:Dual Tone Multi Frequency, dual-tone multifrequency.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment obtained, belong to the scope of protection of the invention.
Refer to accompanying drawing 1, the schematic flow sheet of a kind of audio frequency control method provided for the embodiment of the present invention,, the method is applied to automatic navigator, and within this year, navigating instrument at least comprises two sound cards, and the method comprises:
Step S101: receive sound stream.
Can comprise at least one target sound stream in sound stream, sound stream is the general designation of all target sounds streams of receiving.Here claim " target sound stream " in order to distinguish with front " sound stream ".
Perform step S102 to step S104 for arbitrary target sound stream in the sound stream received.
Step S102: according to the sound strategy set in advance and the corresponding relation of sound stream, obtain flowing corresponding target sound strategy with target sound from the sound strategy.
The target sound strategy comprises with target sound and flows corresponding target sound card information.Here will flow corresponding sound strategy with target sound and be called the target sound strategy.
The target sound strategy can comprise: media sound strategy, telephone speech strategy, notification voice strategy.Dual-tone multifrequency sound strategy.
Wherein, the sound stream that media sound strategy is corresponding can comprise: the audio stream of telephone bell and information indicating; The sound stream that the telephone speech strategy is corresponding can comprise: the audio stream of music; The sound stream that the notification voice strategy is corresponding can comprise: bluetooth connects the audio stream of phone; The sound stream that dual-tone multifrequency sound strategy is corresponding can comprise: the audio stream of the sound stream of audio stream Text To Speech (TTS) and DTMF tone.
Each target sound strategy can corresponding unique output device, and for example, the type of output device can be wireless headset, loudspeaker, wired earphone, phone.
Output device corresponding to media sound strategy can can can be phone for wireless headset, output device that dual-tone multifrequency sound strategy is corresponding for output device corresponding to wired earphone, notification voice strategy for output device corresponding to loudspeaker, telephone speech strategy.
Certainly the output device of these four kinds of strategies can also be 4 different loudspeakers.Due to the realization that does not affect the embodiment of the present invention, thus this not to four kinds of strategies the type of corresponding output device do concrete the restriction.
Step S103: according to target sound card information, obtain the target device file corresponding with target sound card information.
The target device file has two types, and a kind of is the sound pick-up outfit file, and a kind of is the playback equipment file.
Sound pick-up outfit file driving sound card is recorded, and playback equipment file driving sound card plays sound.
In order to realize controlling a plurality of sound card independent play-out sound streams and recorded voice stream, different driver of sound cards is arranged, each sound card needs corresponding a plurality of variablees, the automatic navigator of take comprises that two sound cards are example, in order to distinguish this two sound cards, by two sound card called after sound cards 1 and sound card 2, the variable of sound card 1 can comprise controlC0, pcmC0D0c, pcmC0D0p, the variable of sound card 2 can comprise controlC1, pcmC1D0c, pcmC1D0p, wherein, control means to control use, C is writing a Chinese character in simplified form of sound card Card, C0 and C1 mean respectively sound card 1(Card0) and sound card 2(Card1), controlC0 and controlC1 are respectively the opertaing device files of sound card 1 and sound card 2, for controlling the play sound volume of stream or recorded voice stream of these two sound cards.
Pcm means data, D is writing a Chinese character in simplified form of output device Device, D0 means output device Device0, last c is writing a Chinese character in simplified form of capture, for recording, p is writing a Chinese character in simplified form of playback, for playing, pcmC0D0p is the variable corresponding to sound pick-up outfit file of sound card 2 output devices 1, pcmC1D0p is the variable corresponding to playback equipment file of sound card 2 output devices 1, equally, pcmC1D0c and pcmC1D0p are respectively corresponding variable and the variable corresponding to playback equipment file of sound pick-up outfit file of sound card 2 output devices 1.
Step S104: the target sound card corresponding with the target device file by the target device file driving, in order to target sound stream is carried out to the operation corresponding with the function of target device file.
The target device file comprises sound pick-up outfit file and/or playback equipment file.
When the target device file is the sound pick-up outfit file, " the target sound card corresponding with the target device file by the target device file driving; in order to target sound stream is carried out to the operation corresponding with the function of target device file " refers to target sound stream recorded, when the target device file comprises the playback equipment file, " the target sound card corresponding with the target device file by the target device file driving, in order to carry out the operation corresponding with the function of target device file by target sound stream " refers to that playing this target sound flows.
The audio frequency control method that the embodiment of the present invention provides, automatic navigator can receive sound stream, for each the target sound stream in the sound stream received, analyze the target sound strategy of this target sound stream, and obtain target sound according to the target sound strategy and flow corresponding target sound card information, obtain the target device file corresponding with target sound card information according to this target sound card information, automatic navigator just can pass through target sound card corresponding to this target sound card information of this target device file driving like this, in order to play and/or record this target sound stream.Automatic navigator in the embodiment of the present invention at least comprises two sound cards, because each target sound flows corresponding target sound card possibility difference, so automatic navigator can drive one or more sound cards to play and/or recorded voice stream simultaneously simultaneously, due to the sound card difference of playing and/or record each sound stream, so can not influence each other between each sound playout software in automatic navigator, mutually limit.
Refer to Fig. 2, the schematic flow sheet of the another implementation method of a kind of audio frequency control method provided for the embodiment of the present invention, within this year, navigating instrument at least comprises two sound cards, the method comprises:
Step S201: receive the sound operational order.
The sound operational order comprises play sound stream instruction and/or the instruction of recorded voice stream.
The user, when broadcasting or recorded voice stream, can or record button by broadcast button, when the user presses broadcast button, will generate the stream instruction that plays sound, and corresponding automatic navigator will receive the stream instruction that plays sound; When recording button, will generate the instruction of recorded voice stream as the user, corresponding automatic navigator will receive the instruction of recorded voice stream.
Step S202: receive sound stream.
Perform step S203 to step S206 for arbitrary target sound stream in the sound stream received.
Step S203: according to the sound strategy set in advance and the corresponding relation of sound stream, obtain flowing corresponding target sound strategy with target sound from the sound strategy.
The target sound strategy comprises with target sound and flows corresponding target sound card information.
Below for distinguishing the program of sound strategy, this program is only to realize distinguishing a kind of implementation of sound strategy, the embodiment of the present invention is not restricted to this, this program can also be programmed with other language, and this program can be one section program in frameworks/base/services/audioflinger/AudioPolicyManager Base.cpp file:
Automatic navigator can comprise the sound card identical with the kind number of sound strategy.
The target sound strategy can comprise: media sound strategy, telephone speech strategy, notification voice strategy and dual-tone multifrequency sound strategy.
Wherein, the sound stream that media sound strategy is corresponding can comprise: the audio stream of telephone bell and information indicating, the sound stream that the telephone speech strategy is corresponding can comprise: the audio stream of music, the sound stream that the notification voice strategy is corresponding can comprise: bluetooth connects the audio stream of phone, and the sound stream that dual-tone multifrequency sound strategy is corresponding can comprise: the audio stream of the sound stream of audio stream Text To Speech (TTS) and DTMF tone.
Be below the definition of the various sound streams that the target sound strategy is corresponding:
Said procedure can be one section program in frameworks/base/media/java/android/media/AudioSystem.jav a file in the JAVA layer, from said procedure, known one has 9 kinds of sound streams 0 to 8, and every kind of sound strategy corresponding to sound stream all writes out in corresponding position.
Step S204: obtain target sound according to the sound operational order and flow corresponding target device file type.
The target device file type comprises recording arrangement file type and playback equipment file type, and the recording arrangement file is for recorded voice stream, and the playback equipment file is for playing sound stream.
Step S205: according to target sound card information and target device file type, obtain described target device file.
The corresponding target device file of each sound card, the target device file comprises recording arrangement file and playback equipment file.The concrete steps that step S204 and step S205 can " obtain the target device file corresponding with target sound card information according to target sound card information " for above-described embodiment step S103.
Step S206: the target sound card corresponding with the target device file by the target device file driving, in order to target sound stream is carried out to the operation corresponding with the function of target device file.
The target device file comprises sound pick-up outfit file and/or playback equipment file.
The target sound strategy comprises with target sound and flows corresponding target sound card information.
The target sound strategy can also comprise with target sound and flows corresponding equipment information output.Now according to this equipment information output, set up the corresponding relation between the output device that the target sound card is corresponding with equipment information output, in order to target sound stream is carried out to the operation corresponding with the function of target device file in this output device.
Each target sound strategy can corresponding unique output device, and the type of output device can be wireless headset, loudspeaker, wired earphone, phone.
Can do definition to the output device type, be below the program to the output device type definition:
Here the value of DEVICE_OUT_SPEAKER and DEVICE_OUT_WIRED_HEADSET is respectively 2 and 4, when the devices of designated equipment value is respectively 2 and 4, has just meaned these two output devices of the corresponding SPEAKER of difference and HEADSET.This program can be one section program in the frameworks/base/include/media/AudioSystem.h file.
As long as the DEVICE OUT of STRATEGY_SONIFICATION is set to HEADSET, sound will be from sound card 2 out, and the sound strategy of other situation is kept intact, and output device is generally loudspeaker.
Refer to Fig. 3, the method flow schematic diagram of a kind of implementation of the target device file corresponding with target sound card information is provided according to target sound card information in a kind of audio frequency control method provided for the embodiment of the present invention, the method comprises:
Step S301: according to target sound card information, obtain the target sound card handle corresponding with target sound card information.
Opening the target device file needs target sound card handle, and target sound card handle is associated with the title of target sound card, according to target sound card handle, just can find corresponding target sound card, and the target sound card, when broadcasting or recorded voice stream, needs the target device file.
It is below the program of the relation between Offered target sound card handle and target device file.Suppose that one has two sound cards, sound card 1 and sound card 2, the pass system/program between the target device file that the sound card handle of sound card 1 is corresponding with it so, and the pass system/program between the sound card handle of the sound card 2 target device file corresponding with it is as follows:
Pass system/program between the sound card handle of the sound card 1 target device file corresponding with it:
Here mHardwareOutput is for sound card 1, mHardware2Output is for sound card 2, export the pcm data in mHardwareOutput, sound will play back from sound card 1, equally, export the pcm data in mHardware2Output, sound will play back from sound card 2.This program can be that the modification of program in frameworks/base/services/audioflinger/AudioPolicyManager Base.cpp file is obtained.
Be below that the sound card title is carried out to associated program with sound card, it is associated that this section program mainly undertaken by ALSALIB storehouse and asound.conf configuration file, and mainly to the explanation of asound.conf file modification, detailed procedure is as follows here:
Here AndroidPlayback_Speaker_normal is the another name of card0device0, AndroidPlayback_Headset_normal is the another name of card1device0, as long as what system was opened is AndroidPlayback_Speaker_normal equipment, sound will play back from sound card 1, what open is AndroidPlayback_Headset_normal equipment, sound will play back from sound card 2, and sound can play back from sound card 1 and sound card 2 simultaneously certainly.
Step S302: according to target sound card handle, obtain the target device file corresponding with target sound card handle.
In above-mentioned arbitrary embodiment, be understandable that output device at least comprises an equipment, when a certain equipment is being play or recorded voice when stream, if need again to play other sound streams, can select the equipment of current not broadcasting or recorded voice stream is the target output device, concrete methods of realizing can be as follows: before according to equipment information output, setting up the corresponding relation between the output device that the target sound card is corresponding with equipment information output, also comprise: judge whether each output device corresponding with equipment information output is being play or recorded voice stream; The output device of being play or recorded voice flows is defined as to the target output device.
In above-mentioned arbitrary embodiment, when automatic navigator receives a plurality of sound stream, and the number of sound stream is greater than the number of sound card, now for first playing or record which sound stream, also need that corresponding rule is arranged, so obtain, with before target sound flows corresponding target sound strategy, can also comprising: the priority level that each sound stream is set from the sound strategy in execution step; When at least two kinds of sound streams of a sound strategy correspondence, according to the priority level of above-mentioned at least two kinds of sound streams, determine that the sound stream that priority level is higher is target sound stream.
Describe method in detail in the disclosed embodiment of the invention described above, for method of the present invention, can adopt the device of various ways to realize, therefore the invention also discloses a kind of device, below provide specific embodiment and be elaborated.
Refer to Fig. 4, the structural representation of a kind of audio control apparatus provided for the embodiment of the present invention, this application of installation is in automatic navigator, and within this year, navigating instrument at least comprises two sound cards, and this device comprises:
The first receiver module 401, for receiving sound stream.
First obtains module 402, for flowing for the arbitrary target sound of sound stream, according to the sound strategy set in advance and the corresponding relation of sound stream, from the sound strategy, obtain flowing corresponding target sound strategy with target sound, the target sound strategy comprises with target sound and flows corresponding target sound card information.
Second obtains module 403, for for the arbitrary target sound stream of sound stream, according to the target sound card information of the first acquisition module acquisition, obtains the target device file corresponding with target sound card information.
The embodiment of the present invention provides a kind of audio control apparatus instrument, the first receiver module 401 in automatic navigator can receive sound stream, first obtains module 402 for each the target sound stream received, analyze the target sound strategy of this target sound stream, and obtain target sound according to the target sound strategy and flow corresponding target sound card information, second obtains module 403 obtains the target device file corresponding with target sound card information according to this target sound card information, driver module 404 just can pass through target sound card corresponding to this target sound card information of this target device file driving like this, in order to play and/or record this target sound stream.Automatic navigator in the embodiment of the present invention at least comprises two sound cards, because each target sound flows corresponding target sound card possibility difference, so automatic navigator can drive one or more sound cards to play and/or recorded voice stream simultaneously simultaneously, due to the sound card difference of playing and/or record each sound stream, so can not influence each other between each sound playout software in automatic navigator, mutually limit.
The audio control apparatus that the embodiment of the present invention provides can also comprise: the second receiver module, flow corresponding sound operational order for receiving with target sound, and the sound operational order comprises play sound stream instruction and/or the instruction of recorded voice stream; Accordingly, second obtains module comprises: the first acquisition unit, flow corresponding target device file type for obtain target sound according to the sound operational order; And second obtain unit, for according to target sound card information and target device file type, obtaining the target device file.
In above-mentioned arbitrary audio control apparatus embodiment second obtains module and can comprise: the 3rd obtains unit, for obtain the target sound card handle corresponding with target sound card information according to target sound card information; The 4th obtains unit, for obtain the target device file corresponding with target sound card handle according to target sound card handle.
Above-mentioned arbitrary audio control apparatus embodiment can also comprise: set up module, after the target sound card corresponding with the target device file by the target device file driving, set up the corresponding relation between the output device that the target sound card is corresponding with equipment information output according to equipment information output, in order to target sound stream is carried out to the operation corresponding with the function of target device file in output device.
Above-mentioned arbitrary audio control apparatus embodiment can also comprise: judge module, and whether each output device corresponding with equipment information output for judgement is being play or recorded voice stream; The first determination module, be defined as the target output device for the output device that will be play or recorded voice flows.
Above-mentioned arbitrary audio control apparatus embodiment can also comprise: module is set, for the priority level of each sound stream is set; The second determination module, for when at least two kinds of sound streams of a sound strategy correspondence, according to the priority level of at least two kinds of sound streams, determine that the sound stream that priority level is higher is target sound stream.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment that between each embodiment, identical similar part is mutually referring to getting final product.For device or system class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part gets final product referring to the part explanation of embodiment of the method.
Also it should be noted that, in this article, relational terms such as the first and second grades only is used for an entity or operation are separated with another entity or operational zone, and not necessarily requires or imply between these entities or operation the relation of any this reality or sequentially of existing.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make the process, method, article or the equipment that comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or also be included as the intrinsic key element of this process, method, article or equipment.In the situation that not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
The software module that the method for describing in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to carry out, or the combination of the two is implemented.Software module can be placed in the storage medium of any other form known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
To the above-mentioned explanation of the disclosed embodiments, make professional and technical personnel in the field can realize or use the present invention.Multiple modification to these embodiment will be apparent for those skilled in the art, and General Principle as defined herein can be in the situation that do not break away from the spirit or scope of the present invention, realization in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.
Claims (12)
1. an audio frequency control method, be applied to automatic navigator, it is characterized in that, described automatic navigator at least comprises two sound cards, and described method comprises:
Receive sound stream;
Carry out following operation for arbitrary target sound stream in described sound stream:
According to the sound strategy set in advance and the corresponding relation of sound stream, from the sound strategy, obtain flowing corresponding target sound strategy with described target sound, described target sound strategy comprises with described target sound and flows corresponding target sound card information;
Obtain the target device file corresponding with described target sound card information according to described target sound card information;
The target sound card corresponding with described target device file by described target device file driving, in order to described target sound stream is carried out to the operation corresponding with the function of described target device file, described target device file comprises sound pick-up outfit file and/or playback equipment file.
2. audio frequency control method according to claim 1, is characterized in that, before receiving sound stream, also comprises:
Receive and flow corresponding sound operational order with described target sound, described sound operational order comprises play sound stream instruction and/or the instruction of recorded voice stream;
Accordingly, describedly obtain the target device file corresponding with described target sound card information according to described target sound card information and comprise:
Obtain described target sound according to described sound operational order and flow corresponding target device file type;
Obtain described target device file according to described target sound card information and described target device file type.
3. audio frequency control method according to claim 1, is characterized in that, describedly obtains the target device file corresponding with described target sound card information according to described target sound card information and comprise:
Obtain the target sound card handle corresponding with described target sound card information according to described target sound card information;
Obtain the target device file corresponding with described target sound card handle according to described target sound card handle.
4. according to the described audio frequency control method of claims 1 to 3 any one, it is characterized in that, described target sound strategy also comprises with described target sound and flows corresponding equipment information output, after the described target sound card corresponding with described target device file by described target device file driving, described method also comprises:
Set up the corresponding relation between the output device that described target sound card is corresponding with described equipment information output according to described equipment information output, in order to described target sound stream is carried out to the operation corresponding with the function of described target device file in described output device.
5. audio frequency control method according to claim 4, it is characterized in that, described output device at least comprises an equipment, described set up the corresponding relation between the output device that described target sound card is corresponding with described equipment information output according to described equipment information output before, also comprise:
Judge whether each output device corresponding with described equipment information output is being play or recorded voice stream;
The output device of being play or recorded voice flows is defined as to the target output device.
6. audio frequency control method according to claim 1, is characterized in that, described obtaining from the sound strategy, with before described target sound flows corresponding target sound strategy, also comprises:
The priority level of each sound stream is set;
When at least two kinds of sound streams of a sound strategy correspondence, according to the priority level of described at least two kinds of sound streams, determine that the sound stream that priority level is higher is target sound stream.
7. an audio control apparatus, be applied to automatic navigator, it is characterized in that, described automatic navigator at least comprises two sound cards, and described device comprises:
The first receiver module, for receiving sound stream;
First obtains module, for flowing for the arbitrary target sound of described sound stream, according to the sound strategy set in advance and the corresponding relation of sound stream, from the sound strategy, obtain flowing corresponding target sound strategy with described target sound, described target sound strategy comprises with described target sound and flows corresponding target sound card information;
Second obtains module, for for the arbitrary target sound stream of described sound stream, according to the described first target sound card information that obtains the module acquisition, obtains the target device file corresponding with described target sound card information;
Driver module, for flowing for the arbitrary target sound of described sound stream, obtain by described second the target device file driving target sound card corresponding with described target device file that module obtains, in order to described target sound stream is carried out to the operation corresponding with the function of described target device file, described target device file comprises sound pick-up outfit file and/or playback equipment file.
8. audio control apparatus according to claim 7, is characterized in that, also comprises:
The second receiver module, flow corresponding sound operational order for receiving with described target sound, and described sound operational order comprises play sound stream instruction and/or the instruction of recorded voice stream;
Accordingly, described second obtains module comprises: the first acquisition unit, flow corresponding target device file type for according to described sound operational order, obtaining described target sound; And second obtain unit, for according to described target sound card information and described target device file type, obtaining described target device file.
9. audio control apparatus according to claim 7, is characterized in that, described second obtains module comprises:
The 3rd obtains unit, for obtain the target sound card handle corresponding with described target sound card information according to described target sound card information;
The 4th obtains unit, for obtain the target device file corresponding with described target sound card handle according to described target sound card handle.
10. according to the arbitrary described audio control apparatus of claim 7 to 9, it is characterized in that, also comprise:
Set up module, for after the described target sound card corresponding with described target device file by described target device file driving, set up the corresponding relation between the output device that described target sound card is corresponding with described equipment information output according to described equipment information output, in order to described target sound stream is carried out to the operation corresponding with the function of described target device file in described output device.
11. audio control apparatus, is characterized in that according to claim 10, also comprises:
Judge module, whether each output device corresponding with described equipment information output for judgement is being play or recorded voice stream;
The first determination module, be defined as the target output device for the output device that will be play or recorded voice flows.
12. audio control apparatus, is characterized in that according to claim 7, also comprises:
Module is set, for the priority level of each sound stream is set;
The second determination module, for when at least two kinds of sound streams of a sound strategy correspondence, according to the priority level of described at least two kinds of sound streams, determine that the sound stream that priority level is higher is target sound stream.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013104094145A CN103456330A (en) | 2013-09-09 | 2013-09-09 | Audio control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013104094145A CN103456330A (en) | 2013-09-09 | 2013-09-09 | Audio control method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103456330A true CN103456330A (en) | 2013-12-18 |
Family
ID=49738617
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013104094145A Pending CN103456330A (en) | 2013-09-09 | 2013-09-09 | Audio control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103456330A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105554636A (en) * | 2014-10-31 | 2016-05-04 | 惠州市德赛西威汽车电子股份有限公司 | Method for low-background-noise volume adjustment in vehicle acoustic navigation system |
CN105657632A (en) * | 2016-01-08 | 2016-06-08 | 深圳市金立通信设备有限公司 | Audio test method and system and terminal |
CN105933822A (en) * | 2016-05-18 | 2016-09-07 | 杰发科技(合肥)有限公司 | On-vehicle sound equipment control system and on-vehicle sound equipment control method |
CN106250094A (en) * | 2016-07-25 | 2016-12-21 | 乐视控股(北京)有限公司 | Sound playing method and device |
CN106708612A (en) * | 2015-11-18 | 2017-05-24 | 中兴通讯股份有限公司 | Audio recording realization method and terminal |
CN107273086A (en) * | 2017-06-06 | 2017-10-20 | 深圳市沃特沃德股份有限公司 | Audio-frequency processing method and device based on navigation |
CN108401065A (en) * | 2017-02-08 | 2018-08-14 | 厦门雅迅网络股份有限公司 | A kind of audio data transmission method and system |
WO2018177148A1 (en) * | 2017-03-30 | 2018-10-04 | 腾讯科技(深圳)有限公司 | Method, system and apparatus for playing back audio |
CN111949818A (en) * | 2020-08-14 | 2020-11-17 | 天津中新智冠信息技术有限公司 | Data processing method and device, data processing equipment and storage medium |
CN112130928A (en) * | 2020-09-22 | 2020-12-25 | 上海茂声智能科技有限公司 | Automatic searching method, device, equipment and storage medium for Linux system sound card |
CN113721881A (en) * | 2021-08-19 | 2021-11-30 | 浙江鸿泉电子科技有限公司 | Sound output control method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080165984A1 (en) * | 2007-01-10 | 2008-07-10 | Samsung Electronics Co., Ltd. | Audio output system and method for information processing terminal |
CN102117221A (en) * | 2009-12-31 | 2011-07-06 | 上海博泰悦臻电子设备制造有限公司 | Audio frequency application conflict management method and manager |
CN103187077A (en) * | 2011-12-28 | 2013-07-03 | 上海博泰悦臻电子设备制造有限公司 | Vehicle-mounted equipment, and audio control method and device applied to vehicle-mounted equipment |
-
2013
- 2013-09-09 CN CN2013104094145A patent/CN103456330A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080165984A1 (en) * | 2007-01-10 | 2008-07-10 | Samsung Electronics Co., Ltd. | Audio output system and method for information processing terminal |
CN102117221A (en) * | 2009-12-31 | 2011-07-06 | 上海博泰悦臻电子设备制造有限公司 | Audio frequency application conflict management method and manager |
CN103187077A (en) * | 2011-12-28 | 2013-07-03 | 上海博泰悦臻电子设备制造有限公司 | Vehicle-mounted equipment, and audio control method and device applied to vehicle-mounted equipment |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105554636B (en) * | 2014-10-31 | 2018-12-11 | 惠州市德赛西威汽车电子股份有限公司 | Low bottom is made an uproar the method for adjusting volume in a kind of vehicle audio navigation system |
CN105554636A (en) * | 2014-10-31 | 2016-05-04 | 惠州市德赛西威汽车电子股份有限公司 | Method for low-background-noise volume adjustment in vehicle acoustic navigation system |
CN106708612A (en) * | 2015-11-18 | 2017-05-24 | 中兴通讯股份有限公司 | Audio recording realization method and terminal |
CN105657632A (en) * | 2016-01-08 | 2016-06-08 | 深圳市金立通信设备有限公司 | Audio test method and system and terminal |
CN105657632B (en) * | 2016-01-08 | 2019-05-14 | 深圳市金立通信设备有限公司 | A kind of audio testing method, terminal and system |
CN105933822A (en) * | 2016-05-18 | 2016-09-07 | 杰发科技(合肥)有限公司 | On-vehicle sound equipment control system and on-vehicle sound equipment control method |
CN105933822B (en) * | 2016-05-18 | 2019-04-23 | 合肥杰发科技有限公司 | Vehicle audio control system and method |
CN106250094A (en) * | 2016-07-25 | 2016-12-21 | 乐视控股(北京)有限公司 | Sound playing method and device |
CN108401065A (en) * | 2017-02-08 | 2018-08-14 | 厦门雅迅网络股份有限公司 | A kind of audio data transmission method and system |
CN108668203A (en) * | 2017-03-30 | 2018-10-16 | 腾讯科技(深圳)有限公司 | Audio frequency playing method, system and device |
WO2018177148A1 (en) * | 2017-03-30 | 2018-10-04 | 腾讯科技(深圳)有限公司 | Method, system and apparatus for playing back audio |
CN107273086A (en) * | 2017-06-06 | 2017-10-20 | 深圳市沃特沃德股份有限公司 | Audio-frequency processing method and device based on navigation |
CN111949818A (en) * | 2020-08-14 | 2020-11-17 | 天津中新智冠信息技术有限公司 | Data processing method and device, data processing equipment and storage medium |
CN112130928A (en) * | 2020-09-22 | 2020-12-25 | 上海茂声智能科技有限公司 | Automatic searching method, device, equipment and storage medium for Linux system sound card |
CN113721881A (en) * | 2021-08-19 | 2021-11-30 | 浙江鸿泉电子科技有限公司 | Sound output control method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103456330A (en) | Audio control method and device | |
CN104023305B (en) | A kind of mixing control method of Wince vehicle mounted multimedia and device | |
US20140006948A1 (en) | Method and mobile phone for capturing audio file or video file | |
JP4921814B2 (en) | In-vehicle device, navigation device, and control method thereof | |
CN105808780B (en) | Song recognition method and apparatus | |
CN108231071A (en) | Not interrupt playback audio and carry out speech recognition | |
CN107273086A (en) | Audio-frequency processing method and device based on navigation | |
CN109240638A (en) | Audio-frequency processing method and device for vehicle | |
CN105657562A (en) | System and method for realizing karaoke application | |
JP4379738B2 (en) | Transfer device, transfer method, and transfer program | |
CN105323353A (en) | Mobile device audio indications | |
CN109065080A (en) | A kind of vehicle audio playback method and device | |
CN110166157A (en) | The control method and device of in-vehicle multi-media system, electronic equipment, readable medium | |
JP4514641B2 (en) | Processing apparatus and image display method | |
CN109254751A (en) | Audio for vehicle divides broadcasting method and device | |
CN103377674A (en) | Audio player and control method thereof | |
CN109120784B (en) | Audio playing method and electronic equipment | |
CN103327431A (en) | Method for retrieving audio signal and system for reproducing audio signal | |
CN109195072A (en) | Audio broadcasting control system and method based on automobile | |
JP2008071058A (en) | Device, method and program for reproducing sound | |
JPH11317063A (en) | Car audio system, its control method and recording medium recorded with car audio system controlling program | |
CN104869232A (en) | Terminal | |
CN109029490A (en) | A kind of method, system, equipment and the storage medium of separately adjustable navigation volume | |
KR101551968B1 (en) | Music source information provide method by media of vehicle | |
CN106331356A (en) | Volume control method and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20131218 |
|
RJ01 | Rejection of invention patent application after publication |