Summary of the invention
The embodiment of the present invention provides a kind of method and apparatus of controlling indicating mode, for realizing mobile terminal according to ambient sound control indicating mode.
A method of controlling indicating mode, comprises the following steps: mobile terminal gathers ambient sound; Mobile terminal is determined the property value of ambient sound; Mobile terminal, according to the property value of ambient sound, is determined indicating mode; Mobile terminal adopts definite indicating mode.In the present embodiment, mobile terminal is controlled indicating mode automatically according to ambient sound, has reduced manual operation, and has optimized the adaptability of indicating mode to environment.
The step that mobile terminal gathers ambient sound comprises: mobile terminal, taking the predefined time interval as collection period, periodically gathers ambient sound; Or, when mobile terminal need to adopt indicating mode to remind, gather ambient sound; Or mobile terminal gathers ambient sound in real time.Like this, periodically gather ambient sound, the mobile terminal Real-time Collection ambient sound of comparing, has reduced the live load of mobile terminal; Mobile terminal gathers ambient sound in the time that needs indicating mode is reminded, and in the time not needing to remind, does not gather ambient sound, and the mobile terminal Real-time Collection ambient sound of comparing, has reduced unnecessary gatherer process, and this working method is more efficient; Mobile terminal Real-time Collection ambient sound, can quickly respond to the demand of indicating mode.
In described method, property value comprises sound pressure level and/or frequency values.The collection of mobile terminal to the multiple property value of ambient sound and property value combination, more fully analysis environments sound, indicating mode is also more accurate.
Preferably, mobile terminal, according to the property value of ambient sound, determines that the step of indicating mode comprises: mobile terminal, according to default property value and the corresponding relation in ambient sound interval, is determined ambient sound interval corresponding to property value obtaining; Mobile terminal is determined and the interval corresponding indicating mode of definite ambient sound.
Preferably, after mobile terminal is determined the property value of ambient sound, further comprising the steps of: mobile terminal calculates the average property value of the property value of the ambient sound of the collection period finishing recently.Mobile terminal is according to default property value and the corresponding relation in ambient sound interval, the step in the ambient sound interval that definite property value obtaining is corresponding comprises: mobile terminal, according to default average property value and the corresponding relation in ambient sound interval, is determined the ambient sound interval corresponding to average property value of acquisition.Reduced the of short duration and unexpected variation due to ambient sound, mobile terminal is determined the ambient sound interval corresponding with property value continually, is of value to the live load that reduces mobile terminal.
Preferably, after mobile terminal calculates the average property value of property value of the ambient sound of the collection period finishing recently, further comprising the steps of: mobile terminal calculates the average property value in average property value in the collection period finishing recently and an adjacent upper collection period, and draw the absolute value of both differences; Mobile terminal judges whether described absolute value is greater than predefined maximum variable quantity.If described absolute value is not more than maximum variable quantity, mobile terminal keeps current indicating mode constant; If described absolute value is greater than maximum variable quantity, mobile terminal, according to default average property value and the corresponding relation in ambient sound interval, is determined ambient sound interval corresponding to average property value obtaining.Beneficial effect: when ambient sound changes hour, mobile terminal does not change indicating mode; While only having ambient sound to have larger variation, mobile terminal just can be determined corresponding ambient sound interval according to described property value.Alleviate the live load of mobile terminal, and improved efficiency.
Preferably, comprise with the interval corresponding indicating mode of ambient sound: along with the ascending variation in ambient sound interval, the also ascending variation of prompting degree that indicating mode is corresponding.Beneficial effect: described method has embodied the correspondence in indicating mode and ambient sound interval.Also ensured prompting degree simultaneously.
Preferably, the ascending variation of prompting degree at least comprises one of following variation: remind the ascending variation of sound pressure level of the tinkle of bells; Remind the ascending variation of frequency values of the tinkle of bells; Friction is to the variation that has vibration.Beneficial effect: the tinkle of bells of indicating mode is in many-sided ascending variation such as sound pressure level and frequency values, and indicating mode has more adaptive method to the variation of ambient sound like this; Vibrating function is reminding effect from sense of touch, and these functions have all been strengthened the adaptability of indicating mode to ambient sound, have optimized user's experience.
Preferably, mobile terminal adopts definite indicating mode to comprise the following steps: if when current indicating mode is definite indicating mode, mobile terminal keeps current indicating mode constant; If current indicating mode is not definite indicating mode, mobile terminal regulate indicating mode to definite indicating mode.Beneficial effect: mobile terminal adopts the indicating mode corresponding with definite ambient sound, has embodied the function that mobile terminal is controlled automatically.
A device of controlling indicating mode, comprising:
Acquisition module, for gathering ambient sound.
Analysis module, for determining the property value of ambient sound.
Interval module, for the property value according to ambient sound, determines indicating mode.
Prompting module, for adopting definite indicating mode.
The acquisition module of described device, taking the predefined time interval as collection period, periodically gathers ambient sound; Or, need to adopt indicating mode to remind time, gather ambient sound; Or, gather in real time ambient sound.
In described device, property value comprises sound pressure level and/or frequency values.
In described device, interval module, according to default property value and the corresponding relation in ambient sound interval, is determined ambient sound interval corresponding to property value obtaining, and determines and the interval corresponding indicating mode of definite ambient sound.
In described device, analysis module is also for calculating the average property value of property value of ambient sound of the collection period finishing recently.
In described device, after analysis module calculates the average property value of property value of the ambient sound of the collection period finishing recently, also by the average property value calculating in average property value in the collection period that finishes recently and an adjacent upper collection period, and draw the absolute value of both differences; Interval module determines whether described absolute value is greater than predefined maximum variable quantity; If described absolute value is not more than maximum variable quantity, prompting module keeps current indicating mode constant; If described absolute value is greater than maximum variable quantity, interval module, according to default property value and the corresponding relation in ambient sound interval, is determined ambient sound interval corresponding to average property value obtaining.
In described device, along with the ascending variation in ambient sound interval, the also ascending variation of prompting degree that indicating mode is corresponding.
In described device, the ascending variation of prompting degree at least comprises one of following variation:
Remind the ascending variation of sound pressure level of the tinkle of bells.
Remind the ascending variation of frequency values of the tinkle of bells.
Friction is to the variation that has vibration.
In described device, if when current indicating mode is definite indicating mode, prompting module keeps current indicating mode constant; If when current indicating mode is not definite indicating mode, prompting module regulates indicating mode to definite indicating mode.
A device of controlling indicating mode, comprising:
Audio receiver, for gathering ambient sound.
Processor, for determining the property value of ambient sound; According to the property value of ambient sound, determine indicating mode; Adopt definite indicating mode.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, or understand by implementing the present invention.Object of the present invention and other advantages can be realized and be obtained by specifically noted structure in write specification, claims and accompanying drawing.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein, only for description and interpretation the present invention, is not intended to limit the present invention.
In the embodiment of the present invention, mobile terminal gathers ambient sound, and the property value of definite ambient sound, and the corresponding ambient sound of definite property value interval, and then mobile terminal adopts and the interval corresponding indicating mode of described ambient sound, reduce user's operation burden with this, and improve convenience and the adaptability of mobile terminal device.
Referring to Fig. 1, in the present embodiment, the method flow of mobile terminal control indicating mode is as follows:
Step 101 mobile terminal gathers ambient sound.
Step 102 mobile terminal is determined the property value of ambient sound.
Step 103 mobile terminal, according to the property value of ambient sound, is determined indicating mode.Concrete, mobile terminal, according to default property value and the corresponding relation in ambient sound interval, is determined ambient sound interval corresponding to property value obtaining; Mobile terminal is determined and the interval corresponding indicating mode of definite ambient sound.
Step 104 mobile terminal adopts definite indicating mode.
Following inventive embodiments gathers ambient sound by mobile terminal, and the sound pressure level of definite ambient sound, and the corresponding ambient sound of definite sound pressure level interval, and then mobile terminal adopts and the interval corresponding indicating mode of described ambient sound.
Referring to Fig. 2, in the present embodiment, mobile terminal is as follows according to the method flow of the sound pressure level control indicating mode of ambient sound:
Step 201: mobile terminal gathers ambient sound.Mobile terminal period ground gathers the sound in surrounding environment, also can be in the time receiving note or call request need to be according to indicating mode reminding user time, gather the sound in environment.
Step 202: mobile terminal is determined the sound pressure level of the ambient sound gathering.For example, the sound pressure level of definite ambient sound is 39dB in the present embodiment.
Step 203: mobile terminal, according to default sound pressure level and the corresponding relation in ambient sound interval, is determined ambient sound interval corresponding to sound pressure level obtaining.For example, the ambient sound correspondence " ambient sound interval 02 " that in the present embodiment, the definite sound pressure level of mobile terminal is 39dB.As shown in table 1.
Step 204: mobile terminal adopts and the interval corresponding indicating mode of definite ambient sound.For example, as shown in table 1, " ambient sound interval 02 " correspondence " indicating mode 02 ".If when current indicating mode is " indicating mode 02 ", keep this pattern constant; If when current indicating mode is not " indicating mode 02 ", mobile terminal will regulate indicating mode to " indicating mode 02 " pattern.
The present embodiment is to give an example and determine ambient sound interval with sound pressure level, and then the indicating mode of definite mobile terminal.Certainly, can also proportion value etc. attribute determine ambient sound interval, and then definite indicating mode, embodiment can be referring to the embodiment shown in table 1 and Fig. 2.
Table 1
What table 1 was represented is that different sound pressure levels becomes different intervals, respectively corresponding different indicating modes with frequency values apportion.
From indicating mode 01 to indicating mode 06, along with the variation of indicating mode, prompting degree uprises gradually.Uprising of prompting degree can adopt one of following concrete mode or combination: improve gradually the sound pressure level of reminding the tinkle of bells, improve gradually the frequency values of reminding the tinkle of bells, from friction to there being vibration.
For example, indicating mode 01 comprises mute and vibration mode; Indicating mode 02 comprises the prompting the tinkle of bells of reference acoustic pressure value and reference frequency value (1kHz frequency), not vibration; Indicating mode 03 comprises the prompting the tinkle of bells of reference acoustic pressure value, and improves the frequency values of reminding the tinkle of bells, by the signal of 1kHz~10kHz frequency, filters out the signal of 1kHz with lower frequency by filter, and Vibration on Start-up function; Indicating mode 04 comprises the reference acoustic pressure value that improves prompting the tinkle of bells, reminds the tinkle of bells to keep reference frequency value constant, and Vibration on Start-up pattern; Indicating mode 05 comprises the reference acoustic pressure value and the reference frequency value that improve prompting the tinkle of bells, by the signal of 1kHz~10kHz frequency, filters out the signal of 1kHz with lower frequency by filter, and Vibration on Start-up function; Indicating mode 06 comprises high reference frequency value of reminding the tinkle of bells, by the signal of 1kHz~10kHz frequency, filters out the signal of 1kHz with lower frequency by filter, and Vibration on Start-up function.
The present embodiment is to describe as an example of sound pressure level example, can also determine corresponding ambient sound interval according to the frequency values of ambient sound, and then determines corresponding indicating mode.Referring to the embodiment shown in table 1 and Fig. 2.
In addition, the embodiment of the present invention gathers ambient sound by mobile terminal, according to sound pressure level and the frequency of ambient sound, determines the corresponding ambient sound of ambient sound interval; Remind volume and the frequency of the tinkle of bells by control, final mobile terminal adopts and the interval corresponding indicating mode of described ambient sound.
Referring to Fig. 3, the method flow that in following examples, mobile terminal is controlled the tinkle of bells sound pressure level and the frequency values of indicating mode according to sound pressure level and the frequency values of ambient sound is as follows:
Step 301: mobile terminal period ground gathers surrounding environment sound.
Step 302: mobile terminal is determined sound pressure level and the frequency values of ambient sound.For example, in the present embodiment, the sound pressure level of definite ambient sound is 55dB; Frequency values is 4.2kHz.
Step 303: mobile terminal, according to default sound pressure level and the corresponding relation in ambient sound interval, is determined ambient sound interval corresponding to sound pressure level obtaining.For example, described definite sound pressure level is 55dB, the ambient sound correspondence " ambient sound interval 03 " that frequency is 4.2kHz.
Step 304: mobile terminal adopts and the interval corresponding indicating mode of definite ambient sound.In the present embodiment, mobile terminal determines that " ambient sound interval 03 " corresponding indicating mode is " indicating mode 03 ".For example, " indicating mode 03 " is that upper frequency is (as regulation in table 1, frequency is more than 2001Hz) remind the tinkle of bells to add the indicating mode of vibration, because of the sound pressure level of ambient sound and frequency values all higher (as regulation in table 1, frequency is more than 2001Hz), indicating mode keeps the prompting the tinkle of bells of reference acoustic pressure value, and improve and remind the reference frequency value (1kHz frequency) of the tinkle of bells by filter, pass through the signal of 1kHz~10kHz frequency by filter, filter out the signal of 1kHz with lower frequency, realize the prompting degree that improves indicating mode, and don't infringement loud speaker.As shown in table 1, " ambient sound interval 03 " correspondence " indicating mode 03 ".If when current indicating mode is " indicating mode 03 ", keep this pattern constant; If when current indicating mode is not " indicating mode 03 ", mobile terminal changes indicating mode to " indicating mode 03 " pattern.
In following inventive embodiments, mobile terminal, taking the predefined time interval as collection period, periodically gathers ambient sound, and calculates the mean value of the sound pressure level of ambient sound in each cycle; In the interior described mean value of collection period that calculating finishes recently and an adjacent upper collection period, the absolute value of the difference of described mean value, determines whether this absolute value has exceeded the maximum variable quantity of the mean value of the described sound pressure level of predefined two collection period.Whether mobile terminal exceedes the maximum variable quantity of described mean value according to the absolute value of described difference, determines whether to regulate indicating mode, makes indicating mode corresponding with ambient sound.
Referring to Fig. 4, in the present embodiment, the method flow of the processing procedure of the mean value of mobile terminal to the described sound pressure level in two the adjacent collection period that finish is recently as follows:
Step 401: mobile terminal calculates the mean value of the sound pressure level of the ambient sound of the collection period finishing recently.Mobile terminal gathers the sound in environment, and calculates sound pressure level and the mean value of sound pressure level in collection period of these sound.
Step 402: mobile terminal calculates the mean value of the sound pressure level in mean value and the adjacent upper collection period of the sound pressure level in the collection period finishing recently, and draw the absolute value of both differences.
Step 403: mobile terminal judges whether described absolute value is greater than predefined maximum variable quantity, if described absolute value is greater than maximum variable quantity, mobile terminal continues step 404; Otherwise mobile terminal continues step 405.
Step 404: if described absolute value is greater than maximum variable quantity, mobile terminal, according to default sound pressure level and the corresponding relation in ambient sound interval, is determined described ambient sound interval corresponding to sound pressure level.
Step 405: mobile terminal keeps the current indicating mode adopting constant.
In the present embodiment, mobile terminal can periodically gather the sound in environment, the mean value of the sound pressure level in computing cycle, in the time receiving note, call request or network signal prompting, need to be according to indicating mode reminding user time, continue step 402 and subsequent step.
Referring to Fig. 5, the comprising of a kind of device of controlling indicating mode in following examples: acquisition module 501, analysis module 502, interval module 503 and prompting module 504.
Acquisition module 501 is for gathering ambient sound.Specifically can obtain ambient sound from equipment such as audio receivers.
Analysis module 502 is for determining the property value of ambient sound.
Interval module 503, for the corresponding relation in the property value according to default and ambient sound interval, is determined ambient sound interval corresponding to property value obtaining.
Prompting module 504 adopts and the interval corresponding indicating mode of definite ambient sound.
Acquisition module 501, taking the predefined time interval as collection period, periodically gathers ambient sound; Or, in the time that needs adopt indicating mode to remind, gather ambient sound; Or gather in real time ambient sound.
Wherein property value comprises sound pressure level and/or frequency values.
After analysis module 502 in described device calculates the average property value of property value of the ambient sound of the collection period finishing recently, also by the average property value calculating in average property value in the collection period that finishes recently and an adjacent upper collection period, and draw the absolute value of both differences; Analysis module 502 determines whether described absolute value is greater than predefined maximum variable quantity; If described absolute value is not more than maximum variable quantity, prompting module 504 keeps current indicating mode constant; If described absolute value is greater than maximum variable quantity, interval module 503, according to default property value and the corresponding relation in ambient sound interval, is determined ambient sound interval corresponding to property value obtaining.
Whether prompting module 504 is corresponding with described definite ambient sound interval according to current indicating mode, controls indicating mode.
If current indicating mode is during with the interval corresponding indicating mode of definite ambient sound, prompting module 504 keeps current indicating mode constant; If current indicating mode is not during with the interval corresponding indicating mode of definite ambient sound, prompting module 504 regulate indicating mode to the definite interval corresponding indicating mode of ambient sound.
In a kind of device of controlling indicating mode, along with the ascending variation in ambient sound interval, the also ascending variation of prompting degree that indicating mode is corresponding.
In prompting module 504 in described device, the ascending variation of prompting degree of indicating mode at least comprises one of following variation:
Remind the ascending variation of sound pressure level of the tinkle of bells.
Remind the ascending variation of frequency values of the tinkle of bells.
Friction is to the variation that has vibration.
Referring to Fig. 6, the device of described control indicating mode comprises: audio receiver 601 and processor 602.
Audio receiver 601 is for gathering ambient sound; Audio receiver is specially: sound transducer, pressure sensor etc.
Processor 602 is for determining the property value of ambient sound; According to default property value and the corresponding relation in ambient sound interval, determine ambient sound interval corresponding to property value obtaining; Adopt and the interval corresponding indicating mode of definite ambient sound.
The embodiment of the present invention gathers the sound in environment by mobile terminal, and by the property value of ambient sound is carried out to various analyses and processing, adopts and the ambient sound indicating mode that adapts, thereby has optimized the prompting function of mobile terminal, has reduced manual operation.Mobile terminal gathers ambient sound in many ways, has reduced live load, has also improved efficiency simultaneously.Whether mobile terminal is according to needing prompting to determine whether indicating mode, more efficient like this, also meets the actual demand of user to mobile terminal.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, completely implement software example or the form in conjunction with the embodiment of software and hardware aspect.And the present invention can adopt the form at one or more upper computer programs of implementing of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) that wherein include computer usable program code.
The present invention is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction that makes to carry out by the processor of computer or other programmable data processing device produces the device for realizing the function of specifying at flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of specifying in flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of specifying in flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame on computer or other programmable devices.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if these amendments of the present invention and within modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.