Summary of the invention
To overcome above-mentioned technical problem or at least being partially solved above-mentioned technical problem, spy proposes following technical scheme:
One embodiment of the present of invention proposes a kind of method of volume control, comprising:
When detecting that audio-frequence player device switches, the device identification of the audio-frequence player device after obtaining switching;
It is searched in the device voice volume database prestored with determining matching with device identification with multiple playing tasks
The corresponding information volume of task type;
Based on the information volume corresponding with the task type of multiple playing tasks found come more new task volume data
Library;
Based on the information volume corresponding with the task type of multiple playing tasks in updated task volume data library,
Playing task is executed to control the audio-frequence player device after switching.
The sound corresponding with the task type of multiple playing tasks being preferably based in updated task volume data library
Information is measured, executes playing task to control the audio-frequence player device after switching, comprising:
Determine the task type of currently playing task;
Information volume corresponding with fixed task type is found in task volume data library;
Based on the information volume found, the audio-frequence player device after control switching executes playing task.
Optionally, this method further include:
When detecting volume adjustment operation, the broadcasting of information volume, current occupancy audio playing resource adjusted is obtained
The device identification of the task type of task and currently used audio-frequence player device;
Based on information volume adjusted, the current playing task for occupying audio playing resource task type with get
Device identification, Lai Gengxin device voice volume database.
Optionally, if the task type of the current playing task for occupying audio playing resource, method has not been obtained further include:
Task type and the device identification that gets based on information volume adjusted, the playing task of system default,
To update device voice volume database.
Optionally, method further include:
When detecting volume adjustment operation, whether judgement is currently carrying out playing task;
If so, executing playing task with information volume adjusted.
Preferably, the task type of playing task includes incoming call jingle bell, notice jingle bell, alarm clock jingle bell, multimedia, system
At least one of in sound, keypad tone.
Another embodiment of the present invention proposes a kind of device of volume control, comprising:
First obtains module, for when detecting that audio-frequence player device switches, the audio after obtaining switching to be played
The device identification of equipment;
Searching module, in the device voice volume database prestored search with determine match with device identification with it is more
The corresponding information volume of the task type of a playing task;
First update module, for based on the information volume corresponding with the task type of multiple playing tasks found come
More new task volume data library;
Control module, for based on the task type phase with multiple playing tasks in updated task volume data library
The information volume answered executes playing task to control the audio-frequence player device after switching.
Preferably, control module includes:
Type determining units, for determining the task type of currently playing task;
Information searching unit, for finding volume corresponding with fixed task type in task volume data library
Information;
Victim control unit, for based on the information volume found, the audio-frequence player device execution after control switching to be broadcast
Let alone business.
Optionally, the device further include:
Second obtains module, for when detecting volume adjustment operation, obtaining information volume, currently occupancy adjusted
The device identification of the task type of the playing task of audio playing resource and currently used audio-frequence player device;
Second update module, for based on information volume adjusted, the current playing task for occupying audio playing resource
Task type and the device identification that gets, Lai Gengxin device voice volume database.
Optionally, device further include:
Judgment module, for when detecting volume adjustment operation, whether judgement to be currently carrying out playing task;
Task execution module when for being currently executing playing task, executes broadcasting with information volume adjusted
Task.
Technical solution of the present invention solves the audio broadcast sound volume after switching audio-frequence player device and bigger than normal or less than normal asks
Topic.When detecting that audio-frequence player device switches, search in the device voice volume database that prestores with determining and device identification phase
Matched information volume corresponding with the task type of multiple playing tasks, the audio-frequence player device after switching is with pre-stored
Corresponding with the task type of multiple playing tasks volume executes the operation that audio plays, wherein it is pre-stored with it is more
The corresponding volume of the task type of a playing task is previous multiple for the audio-frequence player device execution after switching respectively
The play operation of the task type of playing task is adjusted and finds the volume for meeting user's sense of hearing comfort level, so, switching
The audio that audio-frequence player device afterwards can make user receive in such a way that the volume executes the operation that audio plays
Volume it is moderate, and the size of volume is got by reading the information volume in corresponding database, user
Without being adjusted or selecting manually, therefore the present invention program realizes the volume adjustment operation of intelligence and automation, to increase
Add user experience.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description
Obviously, or practice through the invention is recognized.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention
Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member
Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be
Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange
Diction "and/or" includes one or more associated wholes for listing item or any cell and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here
To explain.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless communication
The equipment of number receiver, only has the equipment of the wireless signal receiver of non-emissive ability, and including receiving and emitting hardware
Equipment, have on bidirectional communication link, can carry out two-way communication reception and emit hardware equipment.This equipment
It may include: honeycomb or other communication equipments, shown with single line display or multi-line display or without multi-line
The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), can
With combine voice, data processing, fax and/or communication ability;PDA (Personal Digital Assistant, it is personal
Digital assistants), it may include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day
It goes through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm
Type computer or other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its
His equipment." terminal " used herein above, " terminal device " can be it is portable, can transport, be mounted on the vehicles (aviation,
Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth
And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on
Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet
Equipment) and/or mobile phone with music/video playing function, it is also possible to the equipment such as smart television, set-top box.
Fig. 1 is the flow diagram of the method for the volume control of one embodiment of the invention.
Step S110: when detecting that audio-frequence player device switches, the equipment of the audio-frequence player device after obtaining switching
Mark.
Specifically, audio-frequence player device includes but is not limited to loudspeaker, built-in earpiece, peripheral earphone etc..It is possible, firstly, to be
Each audio-frequence player device on terminal device distributes corresponding device identification respectively;Secondly, will be played with each audio
The corresponding device identification of equipment is separately recorded in audio-frequence player device list;Then, detect that audio-frequence player device is cut
Operation is changed, thus when triggering call back function, based on parameter corresponding in call back function in record and each audio-frequence player device pair
The device identification of the audio-frequence player device after switching is determined in the audio-frequence player device list for the device identification answered.
Step S120: it is searched in the device voice volume database prestored to determine that is matched with device identification broadcasts with multiple
Let alone the corresponding information volume of task type of business.
Wherein, equipment corresponding with each audio-frequence player device is stored in association in advance in device voice volume database
Mark and each audio-frequence player device play the newest information volume of each task type.
It should be noted that the audio-frequence player device before switching with multiple play before switching audio-frequence player device to appoint
Corresponding first volume of the task type of business executes audio player operation, after switching audio-frequence player device, if after switching
Audio-frequence player device is still executed with the first volume corresponding with the task type of multiple playing tasks, that is, identical power grade
The volume of audio player operation, the then audio that the audio-frequence player device after switching plays can become bigger than normal or less than normal.Therefore, at this
In inventive embodiments, that the audio-frequence player device after switching is matched with the pre-stored audio-frequence player device with after switching,
And corresponding with the task type of multiple playing tasks the second volume executes the operation that audio plays, wherein it is pre-stored with
Corresponding second volume of the task type of multiple playing tasks is that the previous audio-frequence player device for after switching is adjusted simultaneously
The volume for meeting user's sense of hearing comfort level is found, so, the audio-frequence player device after switching is with the task with multiple playing tasks
The volume for the audio that the mode that corresponding second volume of type executes audio player operation can make user receive is moderate, from
And increase user experience.
For example, the outer lug when detecting that audio-frequence player device is switched to peripheral earphone by loudspeaker, after obtaining switching
The device identification " earphone " of machine;Then, it is searched and device identification " earphone " in the device voice volume database prestored
The information volume corresponding with the task type of multiple playing tasks to match be " earphone- send a telegram here jingle bell -5,
Earphone- notify jingle bell -5, earphone- alarm clock jingle bell -5, earphone- multimedia -3, earphone- system sound -2,
Earphone- keypad tone -2 ", wherein the volume that peripheral earphone executes multimedia operation is 3.
Step S130: based on the information volume corresponding with the task type of multiple playing tasks found come more new task
Volume data library.
For example, terminal device detects that the peripheral earphone for executing incoming call jingle bell play operation with volume " 3 " is switched to loudspeaking
Device executes the play operation of same task type, the device identification " Speaker " of the loudspeaker after obtaining switching;Then, pre-
The task type phase with multiple playing tasks to match with device identification " Speaker " is searched in the device voice volume database deposited
The information volume answered be " Speaker- send a telegram here jingle bell -5, Speaker- notify jingle bell -5, Speaker- alarm clock jingle bell -5,
Speaker- multimedia -3, Speaker- system sound -2, Speaker- keypad tone -2 ";Subsequently, based on the loudspeaker found
Information volume corresponding with the task type of multiple playing tasks comes more new task volume data library.Wherein, task volume data
Library is for correspondingly storing the information volume found and incoming call jingle bell, notice jingle bell, alarm clock jingle bell, multimedia, system
The database of the task types such as sound, keypad tone.It should be noted that if currently occupying the playing task of audio playing resource
Task type is different, then its corresponding information volume is also different, for example, volume corresponding with task type " incoming call jingle bell " is
" 5 ", and volume corresponding with task type " multimedia " is " 3 ", it is generally the case that setting and task type " incoming call jingle bell " phase
The volume answered is greater than volume corresponding with other task types, to be in apart from terminal device farther out or environmental noise as user
When larger, user is more effectively notified to have to be electrically accessed.Therefore, it is necessary to based on the task with multiple playing tasks found
The corresponding information volume of type comes more new task volume data library, to distinguish information volume corresponding to different task type.
Step S140: based on corresponding with the task type of multiple playing tasks in updated task volume data library
Information volume executes playing task to control the audio-frequence player device after switching.
Preferably, as shown in Fig. 2, the task type phase based on each playing task being stored in task volume data library
Corresponding information volume includes step S141, step to control the step of audio-frequence player device after switching executes playing task
S142 and step S143: step S141: determining the task type of currently playing task;Step S142: in task volume data library
In find information volume corresponding with fixed task type;Step S143: based on the information volume found, control is cut
Audio-frequence player device after changing executes playing task.
For example, present terminal equipment does not play any audio and Foreground and Background does not open any occupancy audio playing resource yet
Application program, the loudspeaker when detecting that audio-frequence player device is switched to loudspeaker by peripheral earphone, after obtaining switching
Device identification " Speaker ";Then, it searches in the device voice volume database prestored and matches with device identification " Speaker "
Information volume corresponding with the task type of multiple playing tasks be " Speaker- send a telegram here jingle bell -5, Speaker- notice ring
Bell -5, Speaker- alarm clock jingle bell -5, Speaker- multimedia -3, Speaker- system sound -2, Speaker- keypad tone -2 ";
" come subsequently, based on the information volume corresponding with the task type of multiple playing tasks to match with device identification " Speaker "
Electric jingle bell -5, notice jingle bell -5, alarm clock jingle bell -5, multimedia -3, system sound -2, keypad tone -2 " more new task volume data library;
Then, terminal device has to be electrically accessed, and detects the incoming call access operation and the switching of audio-frequence player device does not occur again
When operation, determine that the task type of currently playing task is " incoming call jingle bell ";Then, found in task volume data library with
Task type " incoming call jingle bell " corresponding information volume " 5 ";Finally, control loudspeaker is with volume " 5 " execution " incoming call jingle bell "
Play operation.
In another example when detecting that acquisition switches when switching back into loudspeaker by other audio-frequence player devices in addition to loudspeaker
The device identification " Speaker " of loudspeaker afterwards;Then, it searches in the device voice volume database prestored with determining and equipment mark
Know " Speaker " match information volume corresponding with the task type of multiple playing tasks " Speaker- send a telegram here jingle bell -4,
Speaker- notify jingle bell -5, Speaker- alarm clock jingle bell -5, Speaker- multimedia -3, Speaker- system sound -2,
Speaker- keypad tone -2 ";Then, based on find information volume corresponding with the task type of multiple playing tasks " come
Electric jingle bell -4, notice jingle bell -5, alarm clock jingle bell -5, multimedia -3, system sound -2, keypad tone -2 " carrys out more new task volume data
Library;Finally, determining task type " more matchmakers of currently playing task when detecting that executing music by loudspeaker operates
Body ", it is updated include information " incoming call jingle bell -4, notice jingle bell -5, alarm clock jingle bell -5, multimedia -3, system sound -2, press
It is " 3 " that information volume corresponding with fixed task type " multimedia " is found in the task volume data library of key sound -2 ",
Based on the information volume " 3 " found, controls loudspeaker and execute music task.
Optionally, the method for the embodiment of the present invention further includes step S150 and step S160: step S150: detecting volume
When adjustment operation, obtain information volume adjusted, the current playing task for occupying audio playing resource task type and work as
The device identification of the preceding audio-frequence player device used;Step S160: it is played based on information volume adjusted, the current audio that occupies
The task type of the playing task of resource and the device identification got, Lai Gengxin device voice volume database.
Preferably, the task type of playing task includes but is not limited to send a telegram here jingle bell, notice jingle bell, alarm clock jingle bell, more matchmakers
Body, system sound, in keypad tone at least one of.
For example, terminal device, which is currently passing through loudspeaker, executes music operation with volume " 3 ", when detecting volume
When operation is turned up, the task type of the information volume " 5 " after being turned up, the current playing task for occupying audio playing resource is obtained
The device identification " Speaker " of " multimedia " and currently used audio-frequence player device loudspeaker;Then, based on the sound after height-regulating
The device identification of amount information " 5 ", task type " multimedia " and loudspeaker of the current playing task for occupying audio playing resource
" Speaker ", Lai Gengxin device voice volume database, so that updated device voice volume database includes that " Speaker- incoming call is rung
Bell -4, Speaker- notice jingle bell -5, Speaker- alarm clock jingle bell -5, Speaker- multimedia -5, Speaker- system sound -2,
The information of Speaker- keypad tone -2 ".It should be noted that when detecting volume adjustment operation every time, after adjustment being based on
Information volume, the current playing task for occupying audio playing resource task type and the device identification that gets, Lai Gengxin
Therefore device voice volume database stores corresponding with each audio-frequence player device in association in device voice volume database
Device identification and each audio-frequence player device play the newest information volume of each task type.Device voice volume data in the updated
The volume corresponding with the task type of multiple playing tasks stored in library is to broadcast respectively for the audio after switching in the past
The play operation for putting the task type that equipment executes multiple playing tasks, which is adjusted and finds, meets user itself sense of hearing habit
With the volume of sense of hearing comfort level, so, audio-frequence player device after switching executes operation that audio plays with the volume
The volume for the audio that mode can make user receive is moderate, is very bonded the sense organ comfort level of user.
Optionally, the method for the embodiment of the present invention further includes step S170: being based on information volume adjusted, system default
Playing task task type and the device identification that gets, Lai Gengxin device voice volume database.
It should be noted that if audio being currently played or starts the application journey for occupying audio playing resource
Sequence, then it is available to arrive the task type for currently occupying the playing task of audio playing resource;If not playing any sound currently
Frequency and Foreground and Background do not open any application program for occupying audio playing resource yet, then fail to get currently occupancy audio and broadcast
Put the task type of the playing task of resource, therefore, can task type based on the playing task of the system default got,
Information volume adjusted and the device identification got, Lai Gengxin device voice volume database.For example, not playing any sound currently
When frequency and Foreground and Background do not open any application program for occupying audio playing resource, the task class of the playing task of system default
Type is " incoming call jingle bell ", then the task type " incoming call jingle bell " based on information volume adjusted, the playing task of system default
With the device identification got, Lai Gengxin device voice volume database.
Optionally, the method for the embodiment of the present invention further includes step S180 and step S190: step S180: detecting volume
When adjustment operation, whether judgement is currently carrying out playing task;Step S190: if so, being come with information volume adjusted
Execute playing task.
For example, terminal device currently pass through loudspeaker with volume " 3 " execute music operation, when detect volume be turned up
When operation, the information volume " 5 " after being turned up is obtained;Then, judge to determine and be currently executing music operation, then control is raised
Sound device is operated with volume " 5 " the Lai Zhihang music after being turned up.
Technical solution of the present invention solves the audio broadcast sound volume after switching audio-frequence player device and bigger than normal or less than normal asks
Topic.When detecting that audio-frequence player device switches, search in the device voice volume database that prestores with determining and device identification phase
Matched information volume corresponding with the task type of multiple playing tasks, the audio-frequence player device after switching is with pre-stored
Corresponding with the task type of multiple playing tasks volume executes the operation that audio plays, wherein it is pre-stored with it is more
The corresponding volume of the task type of a playing task is previous multiple for the audio-frequence player device execution after switching respectively
The play operation of the task type of playing task is adjusted and finds the volume for meeting user's sense of hearing comfort level, so, switching
The audio that audio-frequence player device afterwards can make user receive in such a way that the volume executes the operation that audio plays
Volume it is moderate, and the size of volume is got by reading the information volume in corresponding database, user
Without being adjusted or selecting manually, therefore the present invention program realizes the volume adjustment operation of intelligence and automation, to increase
Add user experience.
Fig. 3 is the structural schematic diagram of the device of the volume control of another embodiment of the present invention.
When first acquisition module 310 detects that audio-frequence player device switches, the audio-frequence player device after obtaining switching
Device identification.
Specifically, audio-frequence player device includes but is not limited to loudspeaker, built-in earpiece, peripheral earphone etc..It is possible, firstly, to be
Each audio-frequence player device on terminal device distributes corresponding device identification respectively;Secondly, will be played with each audio
The corresponding device identification of equipment is separately recorded in audio-frequence player device list;Then, detect that audio-frequence player device is cut
Operation is changed, thus when triggering call back function, based on parameter corresponding in call back function in record and each audio-frequence player device pair
The device identification of the audio-frequence player device after switching is determined in the audio-frequence player device list for the device identification answered.
Searching module 320 searched in the device voice volume database prestored with determine match with device identification with it is multiple
The corresponding information volume of the task type of playing task.
Wherein, equipment corresponding with each audio-frequence player device is stored in association in advance in device voice volume database
Mark and each audio-frequence player device play the newest information volume of each task type.
It should be noted that the audio-frequence player device before switching with multiple play before switching audio-frequence player device to appoint
Corresponding first volume of the task type of business executes audio player operation, after switching audio-frequence player device, if after switching
Audio-frequence player device is still executed with the first volume corresponding with the task type of multiple playing tasks, that is, identical power grade
The volume of audio player operation, the then audio that the audio-frequence player device after switching plays can become bigger than normal or less than normal.Therefore, at this
In inventive embodiments, that the audio-frequence player device after switching is matched with the pre-stored audio-frequence player device with after switching,
And corresponding with the task type of multiple playing tasks the second volume executes the operation that audio plays, wherein it is pre-stored with
Corresponding second volume of the task type of multiple playing tasks is that the previous audio-frequence player device for after switching is adjusted simultaneously
The volume for meeting user's sense of hearing comfort level is found, so, the audio-frequence player device after switching is with the task with multiple playing tasks
The volume for the audio that the mode that corresponding second volume of type executes audio player operation can make user receive is moderate, from
And increase user experience.
For example, the outer lug when detecting that audio-frequence player device is switched to peripheral earphone by loudspeaker, after obtaining switching
The device identification " earphone " of machine;Then, it is searched and device identification " earphone " in the device voice volume database prestored
The information volume corresponding with the task type of multiple playing tasks to match be " earphone- send a telegram here jingle bell -5,
Earphone- notify jingle bell -5, earphone- alarm clock jingle bell -5, earphone- multimedia -3, earphone- system sound -2,
Earphone- keypad tone -2 ", wherein the volume that peripheral earphone executes multimedia operation is 3.
First update module 330 is based on the information volume corresponding with the task type of multiple playing tasks found come more
New task volume data library.
For example, terminal device detects that the peripheral earphone for executing incoming call jingle bell play operation with volume " 3 " is switched to loudspeaking
Device executes the play operation of same task type, the device identification " Speaker " of the loudspeaker after obtaining switching;Then, pre-
The task type phase with multiple playing tasks to match with device identification " Speaker " is searched in the device voice volume database deposited
The information volume answered be " Speaker- send a telegram here jingle bell -5, Speaker- notify jingle bell -5, Speaker- alarm clock jingle bell -5,
Speaker- multimedia -3, Speaker- system sound-amount 2, Speaker- keypad tone -2 ";Subsequently, based on the loudspeaker found
Information volume corresponding with the task type of multiple playing tasks come more new task volume data library.Wherein, task volume number
According to library be for correspondingly store the information volume found with incoming call jingle bell, notice jingle bell, alarm clock jingle bell, multimedia, be
The database of the task types such as system sound, keypad tone.It should be noted that if currently occupying the playing task of audio playing resource
Task type it is different, then its corresponding information volume is also different, for example, volume corresponding with task type " incoming call jingle bell "
For " 5 ", and volume corresponding with task type " multimedia " is " 3 ", it is generally the case that setting and task type " incoming call jingle bell "
Corresponding volume is greater than volume corresponding with other task types, to be in apart from terminal device farther out or environment is made an uproar as user
When sound is larger, user is more effectively notified to have to be electrically accessed.Therefore, it is necessary to based on times with multiple playing tasks found
The corresponding information volume of service type comes more new task volume data library, to distinguish information volume corresponding to different task type.
Control module 340 is based on corresponding to the task type of multiple playing tasks in updated task volume data library
Information volume, come control switching after audio-frequence player device execute playing task.
Preferably, control module 340 includes type determining units, information searching unit and victim control unit: type is true
Order member determines the task type of currently playing task;Information searching unit finds and has determined that in task volume data library
The corresponding information volume of task type;Victim control unit based on the information volume found, broadcast by the audio after control switching
It puts equipment and executes playing task.
For example, present terminal equipment does not play any audio and Foreground and Background does not open any occupancy audio playing resource yet
Application program, the loudspeaker when detecting that audio-frequence player device is switched to loudspeaker by peripheral earphone, after obtaining switching
Device identification " Speaker ";Then, it searches in the device voice volume database prestored and matches with device identification " Speaker "
Information volume corresponding with the task type of multiple playing tasks be " Speaker- send a telegram here jingle bell -5, Speaker- notice ring
Bell -5, Speaker- alarm clock jingle bell -5, Speaker- multimedia -3, Speaker- system sound -2, Speaker- keypad tone -2 ";
" come subsequently, based on the information volume corresponding with the task type of multiple playing tasks to match with device identification " Speaker "
Electric jingle bell -5, notice jingle bell -5, alarm clock jingle bell -5, multimedia -3, system sound -2, keypad tone -2 " more new task volume data library;
Then, terminal device has to be electrically accessed, and detects the incoming call access operation and the switching of audio-frequence player device does not occur again
When operation, determine that the task type of currently playing task is " incoming call jingle bell ";Then, found in task volume data library with
Task type " incoming call jingle bell " corresponding information volume " 5 ";Finally, control loudspeaker is with volume " 5 " execution " incoming call jingle bell "
Play operation.
In another example when detecting that acquisition switches when switching back into loudspeaker by other audio-frequence player devices in addition to loudspeaker
The device identification " Speaker " of loudspeaker afterwards;Then, it searches in the device voice volume database prestored with determining and equipment mark
Know " Speaker " match information volume corresponding with the task type of multiple playing tasks " Speaker- send a telegram here jingle bell -4,
Speaker- notify jingle bell -5, Speaker- alarm clock jingle bell -5, Speaker- multimedia -3, Speaker- system sound -2,
Speaker- keypad tone -2 ";Then, based on find information volume corresponding with the task type of multiple playing tasks " come
Electric jingle bell -4, notice jingle bell -5, alarm clock jingle bell -5, multimedia -3, system sound -2, keypad tone -2 " carrys out more new task volume data
Library;Finally, determining task type " more matchmakers of currently playing task when detecting that executing music by loudspeaker operates
Body ", it is updated include information " incoming call jingle bell -4, notice jingle bell -5, alarm clock jingle bell -5, multimedia -3, system sound -2, press
It is " 3 " that information volume corresponding with fixed task type " multimedia " is found in the task volume data library of key sound -2 ",
Based on the information volume " 3 " found, controls loudspeaker and execute music task.
Optionally, the device of the embodiment of the present invention further includes the second acquisition module and the second update module: second obtains mould
When block detects volume adjustment operation, information volume adjusted, the current playing task for occupying audio playing resource are obtained
The device identification of task type and currently used audio-frequence player device;Second update module be based on information volume adjusted,
The task type of the current playing task for occupying audio playing resource and the device identification got, Lai Gengxin device voice volume data
Library.
Preferably, the task type of playing task includes but is not limited to send a telegram here jingle bell, notice jingle bell, alarm clock jingle bell, more matchmakers
Body, system sound, in keypad tone at least one of.
For example, terminal device, which is currently passing through loudspeaker, executes music operation with volume " 3 ", when detecting volume
When operation is turned up, the task type of the information volume " 5 " after being turned up, the current playing task for occupying audio playing resource is obtained
The device identification " Speaker " of " multimedia " and currently used audio-frequence player device loudspeaker;Then, based on the sound after height-regulating
The device identification of amount information " 5 ", task type " multimedia " and loudspeaker of the current playing task for occupying audio playing resource
" Speaker ", Lai Gengxin device voice volume database, so that updated device voice volume database includes that " Speaker- incoming call is rung
Bell -4, Speaker- notice jingle bell -5, Speaker- alarm clock jingle bell -5, Speaker- multimedia -5, Speaker- system sound -2,
The information of Speaker- keypad tone -2 ".It should be noted that when detecting volume adjustment operation every time, after adjustment being based on
Information volume, the current playing task for occupying audio playing resource task type and the device identification that gets, Lai Gengxin
Therefore device voice volume database stores corresponding with each audio-frequence player device in association in device voice volume database
Device identification and each audio-frequence player device play the newest information volume of each task type.
Optionally, the device of the embodiment of the present invention further includes third update module: third update module is based on adjusted
Task type and the device identification that gets of information volume, the playing task of system default, Lai Gengxin device voice volume database.
It should be noted that if audio being currently played or starts the application journey for occupying audio playing resource
Sequence, then it is available to arrive the task type for currently occupying the playing task of audio playing resource;If not playing any sound currently
Frequency and Foreground and Background do not open any application program for occupying audio playing resource yet, then fail to get currently occupancy audio and broadcast
Put the task type of the playing task of resource, therefore, can task type based on the playing task of the system default got,
Information volume adjusted and the device identification got, Lai Gengxin device voice volume database.For example, not playing any sound currently
When frequency and Foreground and Background do not open any application program for occupying audio playing resource, the task class of the playing task of system default
Type is " incoming call jingle bell ", then the task type " incoming call jingle bell " based on information volume adjusted, the playing task of system default
With the device identification got, Lai Gengxin device voice volume database.
Optionally, the device of the embodiment of the present invention further includes judgment module and task execution module: judgment module detects
When volume adjustment operates, whether judgement is currently carrying out playing task;Task execution module is being currently executing broadcasting times
When business, playing task is executed with information volume adjusted.
For example, terminal device currently pass through loudspeaker with volume " 3 " execute music operation, when detect volume be turned up
When operation, the information volume " 5 " after being turned up is obtained;Then, judge to determine and be currently executing music operation, then control is raised
Sound device is operated with volume " 5 " the Lai Zhihang music after being turned up.
Technical solution of the present invention solves the audio broadcast sound volume after switching audio-frequence player device and bigger than normal or less than normal asks
Topic.When detecting that audio-frequence player device switches, search in the device voice volume database that prestores with determining and device identification phase
Matched information volume corresponding with the task type of multiple playing tasks, the audio-frequence player device after switching is with pre-stored
Corresponding with the task type of multiple playing tasks volume executes the operation that audio plays, wherein it is pre-stored with it is more
The corresponding volume of the task type of a playing task is previous multiple for the audio-frequence player device execution after switching respectively
The play operation of the task type of playing task is adjusted and finds the volume for meeting user's sense of hearing comfort level, so, switching
The audio that audio-frequence player device afterwards can make user receive in such a way that the volume executes the operation that audio plays
Volume it is moderate, and the size of volume is got by reading the information volume in corresponding database, user
Without being adjusted or selecting manually, therefore the present invention program realizes the volume adjustment operation of intelligence and automation, to increase
Add user experience.
Those skilled in the art of the present technique are appreciated that the present invention includes being related to for executing in operation described herein
One or more equipment.These equipment can specially design and manufacture for required purpose, or also may include general
Known device in computer.These equipment have the computer program being stored in it, these computer programs are selectively
Activation or reconstruct.Such computer program can be stored in equipment (for example, computer) readable medium or be stored in
It e-command and is coupled in any kind of medium of bus respectively suitable for storage, the computer-readable medium includes but not
Be limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, only
Read memory), RAM (Random Access Memory, immediately memory), EPROM (Erasable Programmable
Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable
Programmable Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card
Piece.It is, readable medium includes by equipment (for example, computer) with any Jie for the form storage or transmission information that can be read
Matter.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or
The combination of each frame and these structure charts and/or the frame in block diagram and/or flow graph in block diagram and/or flow graph.This technology neck
Field technique personnel be appreciated that these computer program instructions can be supplied to general purpose computer, special purpose computer or other
The processor of programmable data processing method is realized, to pass through the processing of computer or other programmable data processing methods
The scheme specified in frame or multiple frames of the device to execute structure chart and/or block diagram and/or flow graph disclosed by the invention.
Those skilled in the art of the present technique have been appreciated that in the present invention the various operations crossed by discussion, method, in process
Steps, measures, and schemes can be replaced, changed, combined or be deleted.Further, each with having been crossed by discussion in the present invention
Kind of operation, method, other steps, measures, and schemes in process may also be alternated, changed, rearranged, decomposed, combined or deleted.
Further, in the prior art to have and the step in various operations, method disclosed in the present invention, process, measure, scheme
It may also be alternated, changed, rearranged, decomposed, combined or deleted.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.