Summary of the invention
In view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of mobile terminal loudness control method and
System, it is intended to solve the problems, such as that the various types of volumes of existing mobile terminal can not adjust automatically.
Technical scheme is as follows:
A kind of mobile terminal loudness control method, wherein include:
Step A, user is collected for the setting information of all types of sound under varying environment;
Step B, when detecting sound playing request, whether judgement is currently playing sound;
If step C, currently do not play sound, judge whether the volume RV for the sound that will be played is greater than or equal to institute
State the volume PV of the same type sound in setting information;When the volume RV for the sound that will be played is greater than or equal to the sound of same type
When the volume PV of sound, then played out according to the volume PV of the sound of same type, otherwise according to the volume for the sound that will be played
RV is played out.
The mobile terminal loudness control method, wherein the step C further include:
If sound is currently played, judges whether the volume RV for the sound that will be played is greater than or equal to and currently broadcast
The volume CV of sound reproduction sound;
If the volume RV for the sound that will be played is greater than or equal to the volume CV of currently playing sound, judgement is currently broadcast
Whether the volume CV of sound reproduction sound is greater than or equal to the volume PV of the same type sound in the setting information, when being, then according to
The volume PV of same type sound is played out, and when no, is then played out according to the volume CV of currently playing sound;
If the volume RV for the sound that will be played is less than the volume CV of currently playing sound, the sound that will be played is judged
Whether the volume RV of sound is greater than or equal to the volume PV of the same type sound in the setting information, when being, then according to similar
The volume PV of type sound is played out, and when no, is then played out according to the volume RV of currently playing sound.
The mobile terminal loudness control method, wherein in the step A, be set in advance in noisy, normal, quiet
The volume of all types of sound under three kinds of environment.
The mobile terminal loudness control method, wherein in the step A, by the volume of all types of sound according to phase
It is classified with series.
The mobile terminal loudness control method, wherein in the step C, under same environment, adjust respective type
The volume of sound.
A kind of mobile terminal loudness control system, wherein include:
Collection module, for collecting user for the setting information of all types of sound under varying environment;
Judgment module, for when detecting sound playing request, whether judgement to be currently playing sound;
Control module, if when for currently not playing sound, judging whether the volume RV for the sound that will be played is greater than
Or the volume PV equal to the same type sound in the setting information;When the volume RV for the sound that will be played is greater than or equal to together
When the volume PV of the sound of type, then played out according to the volume PV of the sound of same type, otherwise according to the sound that will be played
The volume RV of sound is played out.
The mobile terminal loudness control system, wherein the control module is also used to:
If sound is currently played, judges whether the volume RV for the sound that will be played is greater than or equal to and currently broadcast
The volume CV of sound reproduction sound;
If the volume RV for the sound that will be played is greater than or equal to the volume CV of currently playing sound, judgement is currently broadcast
Whether the volume CV of sound reproduction sound is greater than or equal to the volume PV of the same type sound in the setting information, when being, then according to
The volume PV of same type sound is played out, and when no, is then played out according to the volume CV of currently playing sound;
If the volume RV for the sound that will be played is less than the volume CV of currently playing sound, the sound that will be played is judged
Whether the volume RV of sound is greater than or equal to the volume PV of the same type sound in the setting information, when being, then according to similar
The volume PV of type sound is played out, and when no, is then played out according to the volume RV of currently playing sound.
The mobile terminal loudness control system, wherein in the collection module, be set in advance in noisy, normal, peace
The volume of all types of sound under quiet three kinds of environment.
The mobile terminal loudness control system, wherein in the collection module, by the volume of all types of sound according to
Identical series is classified.
The mobile terminal loudness control system, wherein in the control module, under same environment, adjust corresponding
The volume of type sound.
The utility model has the advantages that the sound of user's preferences is arranged in hobby of the present invention according to different user oneself, the influence of combining environmental
Size is measured, so that user opens sound and can hear the volume for being suitble to oneself, reduces the operation of constantly adjustment volume.Together
When switching sound, be also able to achieve volume adjust automatically, it is smoother during volume change to make all types of sound, and shut out
Exhausted sound excessive the case where damage is caused to hearing.
Specific embodiment
The present invention provides a kind of mobile terminal loudness control method and system, for make the purpose of the present invention, technical solution and
Effect is clearer, clear, and the present invention is described in more detail below.It should be appreciated that specific embodiment described herein
It is only used to explain the present invention, be not intended to limit the present invention.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of mobile terminal loudness control method preferred embodiment of the present invention, such as scheme
It is shown comprising:
Step S1, user is collected for the setting information of all types of sound under varying environment;
Step S2, when detecting sound playing request, whether judgement is currently playing sound;
If step S3, currently do not play sound, judge whether the volume RV for the sound that will be played is greater than or equal to
The volume PV of same type sound in the setting information;When the volume RV for the sound that will be played is greater than or equal to same type
When the volume PV of sound, then played out according to the volume PV of the sound of same type, otherwise according to the sound for the sound that will be played
Amount RV is played out.
In the present invention, when the environment difference locating for the user, the demand to volume is different, such as in noisy ring
It under border, needs volume larger, under the environment of some peace and quiet, then volume is needed to turn down.While mobile terminal (such as
Mobile phone) there are many sound types, such as multimedia, call voice, notice etc., the volume of these different type sound is also
It is provided separately.So the present invention in step sl, is set in advance in all types of sound under noisy, normal, quiet three kinds of environment
The volume of sound.
Such as be first arranged in multimedia audio under noisy environment, caller voice, voice communication sound, notification voice sound
Amount, is then arranged multimedia audio, the volume of caller voice, voice communication sound, notification voice in normal circumstances, finally sets
Set multimedia audio, the volume of caller voice, voice communication sound, notification voice under quiet environment.It specifically can provide one
Environmental form selection interface has " noisy ", " normal ", " peace and quiet " three options in the environmental form selection interface, elected
After selecting some option, all types of wave volume adjustment interfaces can be entered, confirmed after setting all types of wave volumes,
Then other options of reselection environmental form selection interface, then be adjusted.
Since in the present invention, there is multiple and different sound types, such as multimedia audio, caller voice, voice communication
Sound, notification voice etc..Different sound has specific volume to be classified again, this is related with respective realization, such as multimedia
Sound can divide 15 grades, and caller voice can divide 7 grades or other ranks.The present invention is preferably by the volume of all types of sound
It is classified according to identical series.I.e. it is subsequent each volume is compared when, to the volume value of variant type sound
Do equivalent conversion, that is to say, that respective sound is all converted to 15 grades or 7 grades or other same grade of same equal part
Not, would not occur the problem of different type sound can not be compared when subsequent contrast in this way.
After user setting is complete, respectively with the selection of several variable save users, for example:
UserChoice is used to save the environment of user's selection
NoiseMediaVolume is used to save the volume of noisy environment multimedia audio;
NoiseRingVolume is used to save the volume of noisy environment caller voice;
NoiseVoiceCallVolume is used to save the volume of noisy environment voice communication sound;
NormalMediaVolume is used to save the volume of normal environment multimedia audio;
NormalRingVolume is used to save the volume of normal environment caller voice;
NormalVoiceCallVolume is used to save the volume of normal environment voice communication sound;
SilenceMediaVolume is used to save the volume of quiet environment multimedia audio;
SilenceRingVolume is used to save the volume of quiet environment caller voice;
SilenceVoiceCallVolume is used to save the volume of quiet environment voice communication sound.
In addition, the present invention preferably under same environment, adjusts the volume of respective type sound.That is, adjusting
Cheng Zhong is only adjusted under same environment, such as is only adjusted under noisy, normal or quiet environment, and each ring
The range that border is adjustable, has set in step sl.
Specifically, in the present invention, the good following content of predefined:
Volume (PreferredVolume) initialism of user setting same type sound is PV;
Volume (CurrentVolume) initialism that sound is currently played is CV;
Volume (ReadyToPlavVolume) initialism that sound will be played is RV.
In the step S3, if currently do not play sound, as long as illustrating the volume for comparing the sound that will be played
The volume PV of RV and the same type sound in the setting information, wherein the sound that will be played just refers to sound playing request pair
The sound (sound to be played) answered, the same type sound in the setting information refer to and the sound same type that will play
Sound, the same type sound of subsequent meaning each mean the sound with the sound same type that will be played.
In the step S3, whether the volume RV for the sound that judgement will play is greater than or equal in the setting information
Same type sound volume PV;When the volume RV for the sound that will be played is greater than or equal to the volume PV of the sound of same type
When, then it plays out according to the volume PV of the sound of same type, is otherwise played out according to the volume RV for the sound that will be played.
Such as the volume for the sound that will be played is the 5th grade (being the multimedia audio of the 5th grade by broadcast sound volume), the setting
The volume of same type sound in information is the 4th grade (volume of the pre-set multimedia audio of user is the 4th grade), that
The sound that will be played then is played according to the 4th grade, if the volume of the same type sound in the setting information is 6th etc.
Grade (volume of the pre-set multimedia audio of user is the 6th grade), then then playing the sound that will be played according to the 5th grade
Sound.Pass through the above method, it can be ensured that the volume of the sound of broadcasting is not exceeded to the sound for the same type that user pre-sets
The volume of sound.
Further, the step S3 further include:
If sound is currently played, judges whether the volume RV for the sound that will be played is greater than or equal to and currently broadcast
The volume CV of sound reproduction sound;
If the volume RV for the sound that will be played is greater than or equal to the volume CV of currently playing sound, judgement is currently broadcast
Whether the volume CV of sound reproduction sound is greater than or equal to the volume PV of the same type sound in the setting information, when being, then according to
The volume PV of same type sound is played out, and when no, is then played out according to the volume CV of currently playing sound;
If the volume RV for the sound that will be played is less than the volume CV of currently playing sound, the sound that will be played is judged
Whether the volume RV of sound is greater than or equal to the volume PV of the same type sound in the setting information, when being, then according to similar
The volume PV of type sound is played out, and when no, is then played out according to the volume RV of currently playing sound.
In above-mentioned steps, if sound is currently played, compares the volume RV of the sound that will be played first and work as
The preceding volume CV for playing sound.
If the volume RV for the sound that will be played is greater than or equal to the volume CV of currently playing sound, more currently broadcast
Raise one's voice to its utmost the volume CV of the sound and volume PV of the same type sound in the setting information, that is, by a lesser volume and together
The volume of type sound is compared again;If the volume CV of currently playing sound is greater than or equal to similar in the setting information
The volume PV of type sound is then played out according to the volume PV of same type sound, when the volume CV of currently playing sound is less than institute
When stating the volume PV of the same type sound in setting information, then played out according to the volume CV of currently playing sound;
That is, then comparing when the volume RV of the sound of broadcasting is greater than or equal to the volume CV of currently playing sound
RV is assigned a value of CV, and compares RV and PV, if RV is greater than or equal to PV, RV is assigned a value of PV, and play out according to RV;If RV
Less than PV, then according to directly being played out according to RV.
If the volume RV for the sound that will be played is less than the volume CV of currently playing sound, compare the sound that will be played
The volume PV of the volume RV of sound and the same type sound in the setting information, that is, by a lesser volume again with it is similar
The volume of type sound is compared;If the volume RV for the sound that will be played is greater than or equal to the same type in the setting information
The volume PV of sound is then played out according to the volume PV of same type sound, if the volume RV for the sound that will be played is less than institute
The volume PV of the same type sound in setting information is stated, then is played out according to the volume RV of currently playing sound.
That is, then compare RV and PV when the volume RV of the sound of broadcasting is less than the volume CV of currently playing sound,
If RV is greater than or equal to PV, RV is assigned a value of PV, and play out according to RV;If RV is less than PV, directly carried out according to RV
It plays.
By the above method, the function of being realized is, i.e., will not be than in the setting information by the wave volume RV of broadcasting
Same type sound give great volume, will not giving great volume than the sound being currently played.Listening for user is not only protected in this way
Power, on this basis, comfort and convenience also in increase volume conversion process.
Based on the above method, the present invention also provides a kind of mobile terminal loudness control system preferred embodiments, such as Fig. 2 institute
Show comprising:
Collection module 100, for collecting user for the setting information of all types of sound under varying environment;
Judgment module 200, for when detecting sound playing request, whether judgement to be currently playing sound;
Control module 300, if when for currently not playing sound, judging whether the volume RV for the sound that will be played is big
In or equal to same type sound in the setting information volume PV;When the volume RV for the sound that will be played is greater than or equal to
It when the volume PV of the sound of same type, is then played out according to the volume PV of the sound of same type, otherwise according to will play
The volume RV of sound is played out.
Further, the control module 300 is also used to:
If sound is currently played, judges whether the volume RV for the sound that will be played is greater than or equal to and currently broadcast
The volume CV of sound reproduction sound;
If the volume RV for the sound that will be played is greater than or equal to the volume CV of currently playing sound, judgement is currently broadcast
Whether the volume CV of sound reproduction sound is greater than or equal to the volume PV of the same type sound in the setting information, when being, then according to
The volume PV of same type sound is played out, and when no, is then played out according to the volume CV of currently playing sound;
If the volume RV for the sound that will be played is less than the volume CV of currently playing sound, the sound that will be played is judged
Whether the volume RV of sound is greater than or equal to the volume PV of the same type sound in the setting information, when being, then according to similar
The volume PV of type sound is played out, and when no, is then played out according to the volume RV of currently playing sound.
Further, in the collection module 100, all types of sound that are set in advance under noisy, normal, quiet three kinds of environment
The volume of sound.
Further, in the collection module 100, the volume of all types of sound is classified according to identical series.
Further, in the control module 300, under same environment, the volume of respective type sound is adjusted.
It has been described in detail in the method for technical detail in front about above-mentioned modular unit, so it will not be repeated.
Those of ordinary skill in the art will appreciate that all or part of the process in above-described embodiment method, is that can pass through
Computer program instructs relevant hardware to complete, and the computer program can be stored in a computer-readable storage medium
In, program is when being executed, it may include the process of the embodiment of above-mentioned each method.Storage medium therein can for magnetic disk, CD,
Read-only memory (ROM) or random access memory (RAM) etc..
In conclusion the sound of user's preferences is arranged in hobby of the present invention according to different user oneself, the influence of combining environmental
Size is measured, so that user opens sound and can hear the volume for being suitble to oneself, reduces the operation of constantly adjustment volume.Together
When switching sound, be also able to achieve volume adjust automatically, it is smoother during volume change to make all types of sound, and shut out
Exhausted sound excessive the case where damage is caused to hearing.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention
Protect range.