Summary of the invention
For solving above-mentioned technical problem, the embodiment of the present application provides the regulation of a kind of In Call based on environment
Method and device, to reach real-time, to improve the purpose that user experience is experienced and practicality is higher,
Technical scheme is as follows:
A kind of In Call control method based on environment, including:
The initial call volume value of mobile terminal processor record current talking, by described initial call volume
Value is as current talking volume value;And,
Every Preset Time, it is judged that one time whether current talking terminates;
If it is not, obtain network signal intensity index and noise decibel index;
By described network signal intensity index and noise decibel index, destination call volume value is set;
Use described destination call volume value that current talking volume value is adjusted, will regulation after current
Conversation voice value is as current talking volume value, and returns execution every Preset Time, it is judged that the most current
The step whether call terminates;
If so, initial call volume value is recovered.
Preferably, described by described network signal intensity index and noise decibel index, target is set and leads to
The process of speech value, including:
By described network signal intensity index, network signal intensity conversation voice value is set;
By described noise decibel index, noise decibel conversation voice value is set;
Numerical value maximum is chosen from network signal intensity conversation voice value and noise decibel conversation voice value
Conversation voice value is as destination call volume value.
Preferably, by described network signal intensity index, network signal intensity conversation voice value is set
Process, including:
In the case of described network signal intensity index is not more than and presets minimum network signal intensity index,
Network signal intensity conversation voice value is set for maximum conversation voice value;
At described network signal intensity index more than presetting minimum network signal intensity index and less than presetting
In the case of standard network signal intensity index, network signal intensity conversation voice value is set for maximum call
Volume value is corresponding after adding initial call volume value with 1/2nd of the difference of initial call volume value
Conversation voice value;
In the case of described network signal intensity index is not less than preset standard network signal intensity index,
Arranging network signal intensity conversation voice value is initial call volume value.
Preferably, by described noise decibel index, the process of noise decibel conversation voice value is set, bag
Include:
In the case of described noise decibel index is not less than default high noisy decibel index, arrange described
Noise decibel conversation voice value is maximum conversation voice value;
At described noise decibel index more than preset standard noise decibel index and less than presetting high noisy
In the case of decibel index, described noise decibel conversation voice value is set for maximum conversation voice value with initial
/ 2nd of the difference of conversation voice value are plus conversation voice value corresponding after initial call volume value;
In the case of described noise decibel index is not more than preset standard noise decibel index, arrange described
Noise decibel conversation voice value is initial call volume value.
Preferably, obtain the process of noise decibel index, including:
Receive the environmental noise that Mike gathers;
Calculate the noise decibel index that described environmental noise is corresponding;
Obtain the noise decibel index that described environmental noise is corresponding.
A kind of calling volume adjusting apparatus based on environment, including:
Record unit, for recording the initial call volume value of current talking, by described initial call volume
Value is as current talking volume value;
Judging unit, for every Preset Time, it is judged that one time whether current talking terminates, if it is not, hold
Row the first acquiring unit, if so, performs recovery unit;
First acquiring unit, is used for obtaining network signal intensity index and noise decibel index;
First arranges unit, for by described network signal intensity index and noise decibel index, arranges
Destination call volume value;
Regulation unit, is used for using described destination call volume value to be adjusted current talking volume value,
Using the current talking volume value after regulation as current talking volume value, and return execution judging unit;
Recovery unit, is used for recovering initial call volume value.
Preferably, described first unit be set include:
Second arranges unit, for by described network signal intensity index, arranges network signal intensity and leads to
Speech value;
3rd arranges unit, for by described noise decibel index, arranges noise decibel conversation voice value;
Choose unit, for selecting from network signal intensity conversation voice value and noise decibel conversation voice value
The conversation voice value of peek value maximum is as destination call volume value.
Preferably, described second unit be set include:
4th arranges unit, presets minimum network signal for being not more than at described network signal intensity index
In the case of intensity index, network signal intensity conversation voice value is set for maximum conversation voice value;
5th arranges unit, for strong more than presetting minimum network signal at described network signal intensity index
Spend index and less than in the case of preset standard network signal intensity index, network signal intensity call is set
Volume value is that 1/2nd of the maximum conversation voice value difference with initial call volume value adds initial call
Conversation voice value corresponding after volume value;
6th arranges unit, for being not less than preset standard network signal at described network signal intensity index
In the case of intensity index, arranging network signal intensity conversation voice value is initial call volume value.
Preferably, the described 3rd unit be set include:
7th arranges unit, presets high noisy decibel index for being not less than at described noise decibel index
In the case of, described noise decibel conversation voice value is set for maximum conversation voice value;
8th arranges unit, for described noise decibel index more than preset standard noise decibel index and
In the case of default high noisy decibel index, described noise decibel conversation voice value is set for maximum
Conversation voice value is right after adding initial call volume value with 1/2nd of the difference of initial call volume value
The conversation voice value answered;
9th arranges unit, for being not more than preset standard noise decibel index at described noise decibel index
In the case of, arranging described noise decibel conversation voice value is initial call volume value.
Preferably, described first acquiring unit includes:
Receive unit, for receiving the environmental noise that Mike gathers;
Computing unit, for calculating the noise decibel index that described environmental noise is corresponding;
Second acquisition unit, for obtaining the noise decibel index that described environmental noise is corresponding.
Compared with prior art, the having the beneficial effect that of the application
In this application, obtained by mobile terminal processor and pass through network signal intensity index and make an uproar
Cent shellfish index, arranges destination call volume value, uses destination call volume value to current talking sound
Value is adjusted.Owing to arranging destination call volume value, and use destination call volume value to working as
Front conversation voice value is adjusted being processed by mobile terminal processor, mobile terminal processor
Operational efficiency is that Millisecond is other, far faster than manually arranging the speed of volume, therefore by mobile eventually
Current talking volume value is adjusted by end processor, real-time.
And owing to when end of conversation, mobile terminal processor automatically recovering initial call volume value,
It is no longer necessary to user manually arrange and reduce, therefore improves the experience property impression of user.
Further, mobile terminal processor is referred to by network signal intensity index and noise decibel simultaneously
Several two factors, arrange destination call volume value, not only under the scene that noise jamming is big but also
Under the scene of network signal difference, all current talking volume value is adjusted, therefore, practicality
Higher.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present application, to the technical scheme in the embodiment of the present application
It is clearly and completely described, it is clear that described embodiment is only that the application part is real
Execute example rather than whole embodiments.Based on the embodiment in the application, ordinary skill
The every other embodiment that personnel are obtained under not making creative work premise, broadly falls into this
The scope of application protection.
One embodiment
Refer to Fig. 1, it illustrates a kind of based on environment the In Call regulation side that the application provides
A kind of flow chart of method, may comprise steps of:
Step S11: the initial call volume value of mobile terminal processor record current talking, at the beginning of described
Beginning, conversation voice value was as current talking volume value.
Mobile terminal processor, when call starts, records the initial call volume value of current talking, and will
Initial call volume value is as current talking volume value.
Step S12: mobile terminal processor is every Preset Time, it is judged that one time whether current talking terminates.
When certain judged result once judged is no, performs step S13, otherwise, perform step S14.
In the present embodiment, can but be not limited to be set to Preset Time 100 milliseconds.
Step S13: mobile terminal processor obtains network signal intensity index and noise decibel index.
Mobile terminal processor can be obtained by the api interface method that mobile terminal operating system provides
To network signal intensity index.
The acquisition process of noise decibel index is specifically as follows:
Step A11: receive the environmental noise that Mike gathers.
Wherein, the Mike that Mike carries for mobile terminal.
Step A12: calculate the noise decibel index that described environmental noise is corresponding.
The noise decibel index that computing environment noise is corresponding can be provided by mobile terminal operating system
Interface method carries out calculating or being calculated by the computational methods preset.
Step A13: obtain the noise decibel index that described environmental noise is corresponding.
Owing to environmental noise is that the Mike carried by mobile terminal is gathered, therefore the application obtains noise
Decibel index does not increase the extra equipment gathering environmental noise, and the use reducing mobile terminal becomes
This.And owing to need not increase the equipment of extra collection environmental noise, thus without occurring because of mobile terminal
Limited space and the problem of integrated difficulty.
Step S14: mobile terminal processor passes through described network signal intensity index and noise decibel index,
Destination call volume value is set.
In the present embodiment, mobile terminal processor considers power and the noise jamming two of network signal simultaneously
Kind of factor, by the network signal intensity index corresponding with network signal power and corresponding with noise jamming
Noise decibel index, is configured destination call volume value.
Step S15: mobile terminal processor uses described destination call volume value to current talking volume value
It is adjusted, by the current talking volume value after regulation as current talking volume value, and returns and perform step
Rapid S12.
Mobile terminal processor uses the destination call volume value set to carry out current talking volume value
Regulation, makes current talking volume value at least disclosure satisfy that the requirement clearly hearing the other side's sound.
After current talking volume value is adjusted, using the current talking volume value after regulation as currently
Conversation voice value, upper once conversation voice value is adjusted time, on the basis of current talking volume value
On be adjusted, i.e. when time regulation after current talking volume value on the basis of be adjusted.
It should be noted that when current talking volume value is regulated first, current talking volume value
It is initial call volume value.
After current talking volume value is adjusted, return perform every Preset Time, it is judged that once when
The step whether front call terminates, if it is judged that be no, continues to adjust current talking volume value
Joint, until end of conversation, if it is judged that be no, recovers initial call volume value.
Step S16: mobile terminal processor recovers initial call volume value.
When mobile terminal processor once judges, it is judged that result is in the case of current talking terminates,
Recover initial call volume value, initial call volume value will be reduced to by current talking volume value.
In this application, obtained by mobile terminal processor and pass through network signal intensity index and make an uproar
Cent shellfish index, arranges destination call volume value, uses destination call volume value to current talking sound
Value is adjusted.Owing to arranging destination call volume value, and use destination call volume value to working as
Front conversation voice value is adjusted being processed by mobile terminal processor, mobile terminal processor
Operational efficiency is that Millisecond is other, far faster than manually arranging the speed of volume, therefore by mobile eventually
Current talking volume value is adjusted by end processor, real-time.
And owing to when end of conversation, mobile terminal processor automatically recovering initial call volume value,
It is no longer necessary to user manually arrange and reduce, therefore improves the experience property impression of user.
Further, mobile terminal processor is referred to by network signal intensity index and noise decibel simultaneously
Several two factors, arrange destination call volume value, not only under the scene that noise jamming is big but also
Under the scene of network signal difference, all current talking volume value is adjusted, therefore, practicality
Higher.
Another embodiment
In the present embodiment, thus it is shown that referred to by described network signal intensity index and noise decibel
Number, arranges the detailed process of destination call volume value, refers to Fig. 2, Fig. 2 and be illustrated that the application
A kind of sub-process figure of a kind of based on environment the In Call control method provided, can include following step
Rapid:
Step S21: by described network signal intensity index, arranges network signal intensity conversation voice value.
In the present embodiment, by network signal intensity index, can network signal intensity be set corresponding
Conversation voice value i.e. network signal intensity conversation voice value.
Concrete setting up procedure can be:
Step A21: be not more than the feelings presetting minimum network strength index at described network signal intensity index
Under condition, network signal intensity conversation voice value is set for maximum conversation voice value.
Step A22: at described network signal intensity index more than presetting minimum network strength index and being less than
In the case of preset standard network signal intensity index, network signal intensity conversation voice value is set for maximum
Conversation voice value is right after adding initial call volume value with 1/2nd of the difference of initial call volume value
The conversation voice value answered.
Step A23: at described network signal intensity index not less than preset standard network signal intensity index
In the case of, arranging network signal intensity conversation voice value is initial call volume value.
In the case of network signal intensity index has five, each network signal intensity index characterizes one
Individual network signal intensity, wherein, is respectively the feelings of 0,1,2,3 and 4 at network signal intensity index
Under condition, preset minimum network signal intensity index can but be not limited to be set to 1, preset standard network
Signal intensity index can but be not limited to be set to 3.
Certainly, preset minimum network signal intensity index and preset standard network signal intensity all can basis
Needs are adjusted.
Step S22: by described noise decibel index, arranges noise decibel conversation voice value.
In the present embodiment, by noise decibel index, the call that noise decibel exponent pair is answered can be set
Volume value i.e. noise decibel index conversation voice value.
Concrete setting up procedure can be:
Step A31: at described noise decibel index not less than the situation presetting high noisy decibel index
Under, described noise decibel conversation voice value is set for maximum conversation voice value.
Step A32: at described noise decibel index more than preset standard noise decibel index and less than presetting
In the case of high noisy decibel index, described noise decibel conversation voice value is set for maximum In Call
It is worth with 1/2nd of the difference of initial call volume value plus call corresponding after initial call volume value
Volume value.
Step A33: be not more than the situation of preset standard noise decibel index at described noise decibel index
Under, arranging described noise decibel conversation voice value is initial call volume value.
In the present embodiment, according to the audition of the people ability to bear situation to noise decibel, the highest to presetting
Noise decibel index and preset standard noise decibel index are configured.Concrete, noise decibel is held
By capabilities might it is: 0-20 decibel is the most quiet, the most imperceptible;20-40 decibel is quiet, just as
Prattle on softly;40-60 decibel is general, general room is talked;60-70 decibel is noisy, damage nerve;
70-90 decibel is the most noisy, neurocyte is destroyed.The noisy aggravation of 90-100 decibel, impaired hearing;
It is that temporarily cause is deaf that 100-120 decibel is difficult to stand, stay one minute;More than 120 decibels: the most deaf or complete
Deaf;About 300 decibels or more than: people's unrepairable of circumference 20km is deaf.
Preset high noisy decibel index can but be not limited to be set to 60 decibels, preset standard noise
Decibel index can but be not limited to be set to 50 decibels.
It is certainly, default that high noisy decibel index and preset standard noise decibel index all can be as required
It is adjusted.
Step S23: choose number from network signal intensity conversation voice value and noise decibel conversation voice value
The conversation voice value of value maximum is as destination call volume value.
Owing to degree and the network signal intensity of noise jamming are deposited in several cases, consider the most at the same time
In the case of noise jamming and network signal intensity, to noise decibel index conversation voice value and network signal
Intensity conversation voice value considers simultaneously, using conversation voice value corresponding for numerical value maximum among both as target
Conversation voice value.
For aforesaid each method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the application is not by described dynamic
The restriction of work order, because according to the application, some step can use other orders or simultaneously
Carry out.Secondly, those skilled in the art also should know, embodiment described in this description is equal
Belong to preferred embodiment, necessary to involved action and module not necessarily the application.
Corresponding with said method embodiment, this application provides a kind of In Call based on environment and adjust
Regulating device, refers to a kind of based on environment the conversation voice that Fig. 3, Fig. 3 are illustrated that the application provides
A kind of structural representation of quantity regulating device, it should be noted that In Call based on environment is adjusted
Regulating device is desirably integrated in mobile terminal processor, it is also possible to realized by mobile terminal processor,
Calling volume adjusting apparatus based on environment includes: record unit 31, judging unit 32, first obtain
Unit 33, first unit 34, regulation unit 35 and recovery unit 36 are set.
Record unit 31, for recording the initial call volume value of current talking, by described initial call sound
Value is as current talking volume value.
Judging unit 32, for every Preset Time, it is judged that one time whether current talking terminates, if it is not,
Perform the first acquiring unit 33, if so, perform recovery unit 36.
First acquiring unit 33, is used for obtaining network signal intensity index and noise decibel index.
In the present embodiment, the concrete structure of the first acquiring unit 33 may refer to Fig. 4, Fig. 4 and shows
A kind of structural representation of a kind of first acquiring unit that the application provides, the first acquiring unit includes: connect
Receive unit 41, computing unit 42 and second acquisition unit 43.
Receive unit 41, for receiving the environmental noise that Mike gathers.
Computing unit 42, for calculating the noise decibel index that described environmental noise is corresponding.
Second acquisition unit 43, for obtaining the noise decibel index that described environmental noise is corresponding.
First arranges unit 34, is used for by described network signal intensity index and noise decibel index, if
Put destination call volume value.
In the present embodiment, the first concrete structure arranging unit 34 may refer to Fig. 5, Fig. 5 and shows
A kind of the first of the application offer arranges a kind of structural representation of unit, and first arranges unit includes: the
Two arrange unit the 51, the 3rd arranges unit 52 and chooses unit 53.
Second arranges unit 51, for by described network signal intensity index, arranges network signal intensity
Conversation voice value.
3rd arranges unit 52, for by described noise decibel index, arranges noise decibel In Call
Value.
Choose unit 53, for from network signal intensity conversation voice value and noise decibel conversation voice value
Choose the maximum conversation voice value of numerical value as destination call volume value.
Wherein, second unit 51 is set may include that and the 4th unit is set, the 5th unit and is set
Six arrange unit.
4th arranges unit, presets minimum network signal for being not more than at described network signal intensity index
In the case of intensity index, network signal intensity conversation voice value is set for maximum conversation voice value.
5th arranges unit, for strong more than presetting minimum network signal at described network signal intensity index
Spend index and less than in the case of preset standard network signal intensity index, network signal intensity call is set
Volume value is that 1/2nd of the maximum conversation voice value difference with initial call volume value adds initial call
Conversation voice value corresponding after volume value.
6th arranges unit, for being not less than preset standard network signal at described network signal intensity index
In the case of intensity index, arranging network signal intensity conversation voice value is initial call volume value.
In the case of network signal intensity index has five, each network signal intensity index characterizes one
Individual network signal intensity, wherein, is respectively the feelings of 0,1,2,3 and 4 at network signal intensity index
Under condition, preset minimum network signal intensity index can but be not limited to be set to 1, preset standard network
Signal intensity index can but be not limited to be set to 3.
Certainly, preset minimum network signal intensity index and preset standard network signal intensity all can basis
Needs are adjusted.
3rd arranges unit 52 may include that and the 7th arrange unit, the 8th arrange unit and the 9th setting
Unit.
7th arranges unit, presets high noisy decibel index for being not less than at described noise decibel index
In the case of, described noise decibel conversation voice value is set for maximum conversation voice value.
8th arranges unit, for described noise decibel index more than preset standard noise decibel index and
In the case of default high noisy decibel index, described noise decibel conversation voice value is set for maximum
Conversation voice value is right after adding initial call volume value with 1/2nd of the difference of initial call volume value
The conversation voice value answered.
9th arranges unit, for being not more than preset standard noise decibel index at described noise decibel index
In the case of, arranging described noise decibel conversation voice value is initial call volume value.
In the present embodiment, according to the audition of the people ability to bear situation to noise decibel, the highest to presetting
Noise decibel index and preset standard noise decibel index are configured.Concrete, noise decibel is held
By capabilities might it is: 0-20 decibel is the most quiet, the most imperceptible;20-40 decibel is quiet, just as
Prattle on softly;40-60 decibel is general, general room is talked;60-70 decibel is noisy, damage nerve;
70-90 decibel is the most noisy, neurocyte is destroyed.The noisy aggravation of 90-100 decibel, impaired hearing;
It is that temporarily cause is deaf that 100-120 decibel is difficult to stand, stay one minute;More than 120 decibels: the most deaf or complete
Deaf;About 300 decibels or more than: people's unrepairable of circumference 20km is deaf.
Preset high noisy decibel index can but be not limited to be set to 60 decibels, preset standard noise
Decibel index can but be not limited to be set to 50 decibels.
It is certainly, default that high noisy decibel index and preset standard noise decibel index all can be as required
It is adjusted.
Regulation unit 35, is used for using described destination call volume value to adjust current talking volume value
Joint, using the current talking volume value after regulation as current talking volume value, and returns execution judging unit
32。
Recovery unit 36, is used for recovering initial call volume value.
It should be noted that in this article, the relational terms of such as first and second or the like is only
It is used for separating an entity or operation with another entity or operating space, and not necessarily requires
Or imply relation or the order that there is any this reality between these entities or operation.And,
Term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, thus
Make to include that the process of a series of key element, method, article or equipment not only include those key elements,
But also include other key elements being not expressly set out, or also include for this process, method,
Article or the intrinsic key element of equipment.In the case of there is no more restriction, statement " include one
Individual ... " key element that limits, it is not excluded that include the process of described key element, method, article or
Equipment there is also other identical element.
For convenience of description, it is divided into various unit to be respectively described with function when describing apparatus above.Certainly,
The function of each unit can be realized in same or multiple softwares and/or hardware when implementing the application.
As seen through the above description of the embodiments, those skilled in the art can be clearly
Solve the application to add the mode of required general hardware platform by software and realize.Based on so
Understanding, the part that prior art is contributed by the technical scheme of the application the most in other words can
Embodying with the form with software product, this computer software product can be stored in storage medium
In, such as ROM/RAM, magnetic disc, CD etc., instruct with so that a computer sets including some
Standby (can be personal computer, server, or the network equipment etc.) performs the application, and each is real
Execute the method described in some part of example or embodiment.
Above a kind of based on environment In Call control method provided herein and device are carried out
Being discussed in detail, principle and the embodiment of the application are carried out by specific case used herein
Illustrating, the explanation of above example is only intended to help and understands the present processes and core concept thereof;
Simultaneously for one of ordinary skill in the art, according to the thought of the application, in specific embodiment party
All will change in formula and range of application, in sum, this specification content should not be construed as
Restriction to the application.