Summary of the invention
The embodiment of the invention provides a kind of method and apparatus of controlling indicating mode, is used for the realization portable terminal and controls indicating mode according to ambient sound.
A kind of method of controlling indicating mode may further comprise the steps: portable terminal gathers ambient sound; Portable terminal is determined the property value of ambient sound; Portable terminal is determined indicating mode according to the property value of ambient sound; Portable terminal adopts the indicating mode of determining.Portable terminal is controlled indicating mode automatically according to ambient sound in the present embodiment, has reduced manual operation, and has optimized the adaptability of indicating mode to environment.
The step that portable terminal gathers ambient sound comprises: portable terminal take the predefined time interval as collection period, periodically gather ambient sound; Perhaps, when portable terminal need to adopt indicating mode to remind, gather ambient sound; Perhaps, portable terminal gathers ambient sound in real time.Like this, periodically gather ambient sound, the portable terminal Real-time Collection ambient sound of comparing has reduced the live load of portable terminal; Portable terminal gathers ambient sound when the needs indicating mode is reminded, when not needing to remind, then do not gather ambient sound, and the portable terminal Real-time Collection ambient sound of comparing has reduced unnecessary gatherer process, and this working method is more efficient; Portable terminal Real-time Collection ambient sound can quickly respond to the demand of indicating mode.
In the described method, property value comprises sound pressure level and/or frequency values.Portable terminal is to the collection of the multiple property value of ambient sound and property value combination, analysis environments sound more fully, and indicating mode is also more accurate.
Preferably, portable terminal determines that according to the property value of ambient sound the step of indicating mode comprises: portable terminal is determined ambient sound interval corresponding to property value that obtains according to default property value and the corresponding relation in ambient sound interval; Portable terminal is determined and the interval corresponding indicating mode of the ambient sound of determining.
Preferably, portable terminal is determined after the property value of ambient sound, and is further comprising the steps of: portable terminal calculates the recently average property value of the property value of the ambient sound of a collection period of end.Portable 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 that obtains is corresponding comprises: portable terminal is according to default average property value and the corresponding relation in ambient sound interval, and the ambient sound that the average property value of definite acquisition is corresponding is interval.Reduced the of short duration and unexpected variation owing to ambient sound, portable terminal determines that continually the ambient sound corresponding with property value is interval, is of value to the live load that reduces portable terminal.
Preferably, after the average property value of the property value of the ambient sound of the collection period that portable terminal calculating finishes recently, further comprising the steps of: portable terminal calculates the interior average property value of average property value and an adjacent upper collection period in the collection period that finishes recently, and draws the absolute value of both differences; Portable terminal judges that whether described absolute value is greater than predefined maximum variable quantity.If described absolute value is not more than maximum variable quantity, then portable terminal keeps current indicating mode constant; If described absolute value is greater than maximum variable quantity, then portable terminal is determined ambient sound interval corresponding to average property value that obtains according to default average property value and the corresponding relation in ambient sound interval.Beneficial effect: when ambient sound changes hour, portable terminal does not change indicating mode; When only having ambient sound that larger variation is arranged, portable terminal just can determine that corresponding ambient sound is interval according to described property value.Alleviate the live load of portable terminal, and improved efficient.
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 guaranteed simultaneously the prompting degree.
Preferably, the ascending variation of prompting degree comprises one of following variation at least: 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 vibration is arranged.Beneficial effect: the tinkle of bells of indicating mode is in many-sided ascending variations 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, the indicating mode that portable terminal adopt to be determined may further comprise the steps: if current indicating mode during for the indicating mode determined, portable terminal keeps current indicating mode constant; If current indicating mode is the indicating mode for determining, portable terminal regulate indicating mode to the indicating mode of determining.Beneficial effect: portable terminal adopts the indicating mode corresponding with the ambient sound of determining, has embodied the automatically function of control of portable terminal.
A kind of device of controlling indicating mode comprises:
Acquisition module is used for gathering ambient sound.
Analysis module is for the property value of determining ambient sound.
Interval module is used for the property value according to ambient sound, determines indicating mode.
Prompting module is used for adopting the indicating mode of determining.
The acquisition module of described device take the predefined time interval as collection period, periodically gather ambient sound; Perhaps, when needing to adopt indicating mode to remind, gather ambient sound; Perhaps, gather in real time ambient sound.
In the described device, property value comprises sound pressure level and/or frequency values.
In the described device, interval module is determined the ambient sound interval corresponding to property value of acquisition according to default property value and the corresponding relation in ambient sound interval, and the interval corresponding indicating mode of the ambient sound of determining and determining.
In the described device, analysis module also is used for calculating the recently average property value of the property value of the ambient sound of a collection period of end.
In the described device, after the average property value of the property value of the ambient sound of the collection period that analysis module calculating finishes recently, also will calculate the interior average property value of average property value and an adjacent upper collection period in the collection period that finishes recently, and draw the absolute value of both differences; Interval module determines that whether described absolute value is greater than predefined maximum variable quantity; If described absolute value is not more than maximum variable quantity, then prompting module keeps current indicating mode constant; If described absolute value is greater than maximum variable quantity, then interval module is determined ambient sound interval corresponding to average property value that obtains according to default property value and the corresponding relation in ambient sound interval.
In the described device, along with the ascending variation in ambient sound interval, the also ascending variation of prompting degree that indicating mode is corresponding.
In the described device, the ascending variation of prompting degree comprises one of following variation at least:
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 vibration is arranged.
In the described device, if current indicating mode during for the indicating mode determined, prompting module keeps current indicating mode constant; When if current indicating mode is not the indicating mode of determining, prompting module is regulated indicating mode to the indicating mode of determining.
A kind of device of controlling indicating mode comprises:
Audio receiver is used for gathering ambient sound.
Processor is for the property value of determining ambient sound; According to the property value of ambient sound, determine indicating mode; Adopt the indicating mode of determining.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the specification of writing, 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 is used for description and interpretation the present invention, is not intended to limit the present invention.
Portable terminal gathers ambient sound in the embodiment of the invention, and the property value of definite ambient sound, and the corresponding ambient sound of definite property value is interval, and then portable 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, the method flow of portable terminal control indicating mode is as follows in the present embodiment:
Step 101 portable terminal gathers ambient sound.
Step 102 portable terminal is determined the property value of ambient sound.
Step 103 portable terminal is determined indicating mode according to the property value of ambient sound.Concrete, portable terminal is according to default property value and the corresponding relation in ambient sound interval, and the ambient sound that definite property value that obtains is corresponding is interval; Portable terminal is determined and the interval corresponding indicating mode of the ambient sound of determining.
Step 104 portable terminal adopts the indicating mode of determining.
Following inventive embodiments gathers ambient sound by portable terminal, and the sound pressure level of definite ambient sound, and the corresponding ambient sound of definite sound pressure level is interval, and then portable terminal adopts and the interval corresponding indicating mode of described ambient sound.
Referring to Fig. 2, portable terminal is as follows according to the method flow of the sound pressure level control indicating mode of ambient sound in the present embodiment:
Step 201: portable terminal gathers ambient sound.Mobile terminal period ground gathers the sound in the surrounding environment, also can be when receiving note or call request need to be according to the indicating mode reminding user time, gather the sound in the environment.
Step 202: portable terminal is determined the sound pressure level of the ambient sound of collection.The sound pressure level of the ambient sound of for example, determining in the present embodiment is 39dB.
Step 203: portable terminal is determined ambient sound interval corresponding to sound pressure level that obtains according to default sound pressure level and the corresponding relation in ambient sound interval.For example, the sound pressure level that portable terminal is determined in the present embodiment is the ambient sound corresponding " ambient sound interval 02 " of 39dB.As shown in table 1.
Step 204: portable terminal adopts and the interval corresponding indicating mode of the ambient sound of determining.For example, as shown in table 1, " ambient sound interval 02 " correspondence " indicating mode 02 ".When if current indicating mode is " indicating mode 02 ", keep this pattern constant; When if current indicating mode is not " indicating mode 02 ", portable terminal will be regulated indicating mode to " indicating mode 02 " pattern.
Present embodiment is to give an example to determine that with sound pressure level ambient sound is interval, and then the indicating mode of definite portable terminal.Certainly, can also the proportion value etc. attribute determine that ambient sound is interval, and then definite indicating mode, embodiment can be referring to table 1 and embodiment shown in Figure 2.
Table 1
What table 1 was represented is that different sound pressure levels becomes different intervals, respectively corresponding different indicating modes with the frequency values apportion.
From indicating mode 01 to indicating mode 06, along with the variation of indicating mode, the prompting degree uprises gradually.Uprising of prompting degree can be adopted 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 vibration is arranged.
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 filter by 1kHz~10kHz frequency, filters out 1kHz with the signal of lower frequency, and the Vibration on Start-up function; Indicating mode 04 comprises the reference acoustic pressure value that improves the prompting the tinkle of bells, reminds the tinkle of bells to keep the reference frequency value constant, and the Vibration on Start-up pattern; Indicating mode 05 comprises reference acoustic pressure value and the reference frequency value that improves the prompting the tinkle of bells, by the signal of filter by 1kHz~10kHz frequency, filters out 1kHz with the signal of lower frequency, and the Vibration on Start-up function; Indicating mode 06 comprises high reference frequency value of reminding the tinkle of bells, by the signal of filter by 1kHz~10kHz frequency, filters out 1kHz with the signal of lower frequency, and the Vibration on Start-up function.
Present embodiment is to describe as an example of sound pressure level example, can also determine that corresponding ambient sound is interval according to the frequency values of ambient sound, and then determine corresponding indicating mode.Referring to table 1 and embodiment shown in Figure 2.
In addition, the embodiment of the invention gathers ambient sound by portable terminal, according to sound pressure level and the frequency of ambient sound, determines that the corresponding ambient sound of ambient sound is interval; By volume and the frequency that the tinkle of bells is reminded in control, final portable terminal adopts and the interval corresponding indicating mode of described ambient sound.
Referring to Fig. 3, the method flow that portable terminal is controlled the tinkle of bells sound pressure level and the frequency values of indicating mode according to the sound pressure level of ambient sound and frequency values in following examples is as follows:
Step 301: mobile terminal period ground gathers surrounding environment sound.
Step 302: portable terminal is determined sound pressure level and the frequency values of ambient sound.For example, the sound pressure level of definite ambient sound is 55dB in the present embodiment; Frequency values is 4.2kHz.
Step 303: portable terminal is determined ambient sound interval corresponding to sound pressure level that obtains according to default sound pressure level and the corresponding relation in ambient sound interval.For example, described definite sound pressure level is 55dB, and frequency is the ambient sound corresponding " ambient sound interval 03 " of 4.2kHz.
Step 304: portable terminal adopts and the interval corresponding indicating mode of the ambient sound of determining.Portable terminal determines that " ambient sound interval 03 " corresponding indicating mode is " indicating mode 03 " in the present embodiment.For example, " indicating mode 03 " is that upper frequency is (such as regulation in the 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 (such as regulation in the table 1, frequency is more than 2001Hz), indicating mode keeps the prompting the tinkle of bells of reference acoustic pressure value, and the reference frequency value (1kHz frequency) of improve reminding the tinkle of bells by filter, by the signal of filter by 1kHz~10kHz frequency, filter out 1kHz with the signal of lower frequency, realize improving the prompting degree of indicating mode, and don't the infringement loud speaker.As shown in table 1, " ambient sound interval 03 " correspondence " indicating mode 03 ".When if current indicating mode is " indicating mode 03 ", keep this pattern constant; When if current indicating mode is not " indicating mode 03 ", portable terminal changes indicating mode to " indicating mode 03 " pattern.
In the following inventive embodiments, portable terminal take the predefined time interval as collection period, periodically gather ambient sound, and calculate the mean value of the sound pressure level of ambient sound in each cycle; Calculate the absolute value of described mean value in the collection period that finishes recently and the difference of the adjacent interior described mean value of a upper collection period, determine whether this absolute value has surpassed the maximum variable quantity of mean value of the described sound pressure level of predefined two collection period.Whether portable terminal surpasses 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, portable terminal is as follows to the method flow of the processing procedure of the mean value of the described sound pressure level in two adjacent collection period of nearest end in the present embodiment:
Step 401: portable terminal calculates the recently mean value of the sound pressure level of the ambient sound of a collection period of end.Portable terminal gathers the sound in the environment, and calculates sound pressure level and the mean value of sound pressure level in collection period of these sound.
Step 402: the mean value of the sound pressure level that the mean value that portable terminal calculates the sound pressure level in the collection period that finishes recently and an adjacent upper collection period are interior, and draw the absolute value of both differences.
Step 403: whether portable terminal judges described absolute value greater than predefined maximum variable quantity, if described absolute value greater than maximum variable quantity, then portable terminal continues step 404; Otherwise portable terminal continues step 405.
Step 404: if described absolute value greater than maximum variable quantity, then portable terminal is determined the ambient sound interval that described sound pressure level is corresponding according to default sound pressure level and the corresponding relation in ambient sound interval.
Step 405: portable terminal keeps the current indicating mode that is adopting constant.
Portable terminal can periodically gather the sound in the environment in the present embodiment, the mean value of the sound pressure level in the computing cycle, when receiving the prompting of note, call request or network signal, in the time of need to be according to the indicating mode reminding user, 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 used for gathering ambient sound.Specifically can obtain ambient sound from equipment such as audio receivers.
Analysis module 502 is used for determining the property value of ambient sound.
Interval module 503 is used for according to default property value and the corresponding relation in ambient sound interval, and the ambient sound that definite property value that obtains is corresponding is interval.
Prompting module 504 adopts and the interval corresponding indicating mode of the ambient sound of determining.
Acquisition module 501 take the predefined time interval as collection period, periodically gather ambient sound; Perhaps, when needs adopt indicating mode to remind, gather ambient sound; Perhaps gather in real time ambient sound.
Wherein property value comprises sound pressure level and/or frequency values.
After the average property value of the property value of the ambient sound of the collection period that analysis module 502 calculating in the described device finish recently, also will calculate the interior average property value of average property value and an adjacent upper collection period in the collection period that finishes recently, and draw the absolute value of both differences; Analysis module 502 determines that whether described absolute value is greater than predefined maximum variable quantity; If described absolute value is not more than maximum variable quantity, then prompting module 504 keeps current indicating mode constant; If described absolute value is greater than maximum variable quantity, then interval module 503 is determined ambient sound interval corresponding to property value that obtains according to default property value and the corresponding relation in ambient sound interval.
Whether prompting module 504 is corresponding with described definite ambient sound interval according to current indicating mode, the control indicating mode.
If current indicating mode is during with the interval corresponding indicating mode of the ambient sound of determining, prompting module 504 keeps current indicating mode constant; If current indicating mode is not during with the interval corresponding indicating mode of the ambient sound of determining, prompting module 504 regulate indicating modes to the interval corresponding indicating mode of the ambient sound of determining.
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 the prompting module 504 in the described device, the ascending variation of prompting degree of indicating mode comprises one of following variation at least:
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 vibration is arranged.
Referring to Fig. 6, the device of described control indicating mode comprises: audio receiver 601 and processor 602.
Audio receiver 601 is used for gathering ambient sound; Audio receiver is specially: sound transducer, pressure sensor etc.
Processor 602 is used 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 that obtains; Adopt and the interval corresponding indicating mode of the ambient sound of determining.
The embodiment of the invention gathers sound in the environment by portable terminal, and carries out various analyses and processing by the property value to ambient sound, adopts and the ambient sound indicating mode that adapts, thereby has optimized the prompting function of portable terminal, has reduced manual operation.Portable terminal gathers ambient sound in many ways, has reduced live load, has also improved efficient simultaneously.Whether portable terminal is according to needing prompting to determine whether indicating mode, more efficient like this, also meets the user to the actual demand of portable terminal.
Those skilled in the art should understand that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, complete implement software example or in conjunction with the form of the embodiment of software and hardware aspect.And the present invention can adopt the form of the computer program of implementing in one or more 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 that reference is described according to flow chart and/or the block diagram of method, equipment (system) and the computer program of the embodiment of the invention.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block diagram and/or square frame and flow chart and/or the 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 producing a machine, so that the instruction of carrying out by the processor of computer or other programmable data processing device produces the device of the function that is used for being implemented in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
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, so that the instruction that is stored in this computer-readable memory produces the manufacture that comprises command device, this command device is implemented in the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded on computer or other programmable data processing device, so that carry out the sequence of operations step producing computer implemented processing at computer or other programmable devices, thereby be provided for being implemented in the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame in the instruction that computer or other programmable devices are carried out.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.