Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Described in the embodiment of the present invention, terminal can have for mobile phone, panel computer, notebook computer etc. the terminal of sound characteristic parameter function.
Please refer to Fig. 1, the first embodiment flow graph of the method regulating for a kind of sound provided by the invention; As described in Figure 1, the method that a kind of sound described in the present embodiment regulates comprises step:
S100, obtains the sound characteristic parameter of terminal place environment;
In specific embodiment, sound characteristic parameter can comprise volume value, frequency spectrum and the positional information etc. of sound.The sound of terminal place environment can be the noise of terminal place environment, also can, for normal talks sound at that time, that is to say voice.The sound characteristic parameter mode that obtains terminal place environment can be, according to predetermined period, obtain the sound of terminal place environment, then obtained sound is carried out to Measurement and analysis, obtain obtained sound characteristic parameter, concrete, the voice mode that obtains terminal place environment can be, utilize the sound of the sound receiver receiving terminal place environment of terminal, for example, can utilize the sound of the Mic receiving terminal place environment of mobile phone.
S101, determines the sound characteristic parameter of described terminal place environment and the sound characteristic difference value between preset reference value;
In specific embodiment, the set-up mode of preset reference value can be for when terminal is during in an environment, regulate the sound characteristic parameter of terminal, so that the sound characteristic parameter of terminal and the sound characteristic parameter of terminal place environment at that time adapt, its accommodation mode can be, here the volume value of take describes for example as sound characteristic parameter, and for example the ambient noise at mobile phone place and the sound of mobile phone music exist simultaneously, but user still can hear melodious mobile phone music.Now, using the wave volume value of terminal place environment as preset reference value, and volume value and this preset reference value of the terminal place environment at every turn obtaining are compared and calculated, draw the volume value of terminal place environment and the difference between this preset reference value; Certainly, preset reference value can also be terminal obtain a upper positional information time ambient sound characteristic parameter.
S102, according to described sound characteristic difference value, regulates the sound characteristic parameter of described terminal.
In specific embodiment, sound characteristic difference value can comprise volume difference, spectrum difference, positional information changing value etc.According to resulting sound characteristic difference value, regulate the mode of the sound characteristic parameter of terminal to be, here take volume difference as sound characteristic difference value, volume value is that sound characteristic parameter describes for example, in the stored record of terminal, search terminal volume value corresponding to this volume difference, then the volume value of terminal is adjusted to terminal volume value corresponding to this volume difference.It should be noted that, need in terminal, store the corresponding relation between volume difference and terminal volume value in advance, can be the corresponding terminal volume value of a volume difference, further, this corresponding relation need to obtain by repetition test, makes user's experience best; , when the corresponding relation of setting between volume difference and terminal volume value, can settings be for example that 5 decibels of counterpart terminal volume values are one-level volume, volume difference be 10 decibels of counterpart terminal sound secondary volumes.
In the embodiment of the present invention, by obtaining the volume value of terminal place environment, and according to the volume value of the volume difference adjusting terminal between the volume value of terminal place environment and preset reference value, since adapt to the volume value of the terminal place environment constantly changing, the intelligent height of method of this adjusting volume value, easy to operate, improved user's experience.
Please refer to Fig. 2, the second embodiment schematic flow sheet of the method regulating for a kind of sound provided by the invention; As described in Figure 2, the method that a kind of sound described in the present embodiment regulates comprises step:
S200, obtains the sound characteristic parameter of terminal place environment;
Embodiment of the present invention step S200, please refer to the embodiment step S100 shown in Fig. 1, at this, does not repeat.
S201, determines the sound characteristic parameter of described terminal place environment and the sound characteristic difference value between preset reference value;
Embodiment of the present invention step S201, please refer to the embodiment step S101 shown in Fig. 1, at this, does not repeat.
S202, described sound characteristic parameter comprises volume value, described sound characteristic difference value comprises volume difference; If described volume difference is greater than predetermined threshold value, obtain the sound spectrum of described terminal place environment;
In specific embodiment, predetermined threshold value need to preset, its established standards is the influence degree of the wave volume value based on terminal place environment to terminal volume value mainly, for example, when listening to the music with mobile phone, if the wave volume value of mobile phone place environment has affected the effect of listening to the music, the wave volume value of mobile phone place environment now and this musical sound are adapted the wave volume value of place environment between difference be set as predetermined threshold value, if the wave volume value of terminal place environment and the volume difference between predetermined threshold value are greater than this predetermined threshold value, illustrate that now the wave volume value of terminal place environment has affected terminal volume value, obtain the sound spectrum of terminal place environment, it should be noted that, the sound spectrum mode of obtaining terminal place environment can be for carrying out FFT conversion by the sound of terminal place environment, obtain the sound spectrum of terminal place environment.
S203, carries out spectrum analysis to the sound spectrum of described terminal place environment;
In specific embodiment, sound spectrum to the terminal place environment obtaining carries out spectrum analysis, the object of its analysis is mainly the sound type of judgement terminal place environment, the sound type of terminal place environment can be noise, also can be normal conversation voice sound, its concrete analysis mode can be that the low frequency and the HFS that obtain the sound spectrum of environment are compared to analysis.
S204, according to analysis result, regulates the volume value of described terminal.
In specific embodiment, according to the sound spectrum analysis result of obtained terminal place environment, adjust the volume value of terminal, concrete, if the sound spectrum of terminal place environment meets noise spectrum, according to the volume difference between the wave volume value of terminal place environment and preset reference value, determine the rank of terminal volume value, if the sound spectrum of terminal place environment meets normal conversation voice frequency spectrum, explanation has normal talk now, and terminal volume value is adjusted to quiet or predetermined volume value.
In the embodiment of the present invention, by obtaining the volume value of terminal place environment, and according to the volume value of the volume difference adjusting terminal between the volume value of terminal place environment and preset reference value, since adapt to the volume value of the terminal place environment constantly changing, the intelligent height of method of this adjusting volume value, easy to operate, improved user's experience.
Please refer to Fig. 3, is a kind of the 3rd embodiment schematic flow sheet that regulates the method for volume provided by the invention; As described in Figure 3, a kind of method of volume that regulates described in the present embodiment comprises step:
S300, stores default volume difference and the corresponding relation of terminal volume value, and the corresponding relation of storing default positional information and terminal volume value;
In specific embodiment, can be in terminal equipment the corresponding relation of pre-stored default volume difference and terminal volume value, default volume difference and the corresponding relation of terminal volume value can be, a corresponding terminal volume value of volume difference, it should be noted that, the concrete corresponding relation of volume difference and terminal volume value needs repetition test to obtain, so that the wave volume value of the terminal volume value after regulating and terminal environment of living in adapts.Further, can also in terminal equipment, store the corresponding relation of default positional information and terminal volume value, the corresponding relation of default positional information and terminal volume value can be, a corresponding terminal volume value of positional information, it should be noted that, this corresponding relation also can be along with the variation of the outside noise of this position and is constantly updated.
S301, judges whether the sound receiver of described terminal is blocked;
In specific embodiment, can utilize the range sensor of terminal to judge whether the sound receiver of terminal is blocked, if the sound receiver of terminal is blocked, the distance that range sensor is measured between terminal and shelter is smaller, if the sound receiver of terminal is not blocked, whether the distance that range sensor is measured is larger, so the range information of measuring according to range sensor can judge the sound receiver of terminal, be blocked.
S302, if not, carries out the step of the sound characteristic parameter of obtaining terminal place environment;
In specific embodiment; if the sound receiver of terminal is not blocked; illustrate that terminal can hold the sound of place environment; terminal is just obtained the wave volume value of terminal place environment; terminal place sound can be the noise of terminal place environment; also can, for normal talks sound at that time, that is to say voice.The wave volume value mode of obtaining terminal place environment can be, according to predetermined period, obtain the sound of terminal place environment, then obtained sound is carried out to Measurement and analysis, obtain obtained wave volume value, it should be noted that, the voice mode that obtains terminal place environment can be, utilize the sound of the sound receiver receiving terminal place environment of terminal, for example, can utilize the sound of the Mic receiving terminal place environment of mobile phone.
S303, determines the sound characteristic parameter of described terminal place environment and the sound characteristic difference value between preset reference value;
Embodiment of the present invention step S303, please refer to the embodiment step S101 shown in Fig. 1, at this, does not repeat.
S304, described sound characteristic parameter comprises volume value, described sound characteristic difference value comprises volume difference; If described volume difference is greater than predetermined threshold value, obtain the sound spectrum of described terminal place environment;
Embodiment of the present invention step S304, please refer to the embodiment step S202 shown in Fig. 2, at this, does not repeat.
S305, carries out spectrum analysis to the sound spectrum of described terminal place environment;
Embodiment of the present invention step S305, please refer to the embodiment step S203 shown in Fig. 2, at this, does not repeat.
S306, if the sound spectrum of described terminal place environment is voice spectrum, is adjusted to the volume value of described terminal quiet or default volume value;
In specific embodiment, when the sound spectrum of terminal place environment is carried out to spectrum analysis, if low frequency part is apparently higher than HFS, the sound spectrum that can determine terminal place environment is voice spectrum, and the sound that is to say terminal place environment is voice, now, in order to make talk, can hear, the volume value of terminal can be adjusted to a quiet or lower default volume value, it should be noted that, default volume value herein can be set by user oneself as the case may be.
S307, if the sound spectrum of described terminal place environment is noise spectrum, is adjusted to the volume value of described terminal terminal volume value corresponding to described volume difference.
In specific embodiment, when the sound spectrum of terminal place environment is carried out to spectrum analysis, if HFS is apparently higher than low frequency part, the sound that can determine terminal place environment is noise spectrum, the sound that is to say terminal place environment is noise, now, for the wave volume value of terminal and outside noise volume are answered, need the volume value of terminal to be adjusted to terminal volume value corresponding to volume difference, need to be, terminal pre-stored the corresponding relation of volume difference and terminal volume value, be the corresponding terminal volume value of a sound.
In the embodiment of the present invention, by obtaining the volume value of terminal place environment, and according to the volume value of the volume difference adjusting terminal between the volume value of terminal place environment and preset reference value, since adapt to the volume value of the terminal place environment constantly changing, the intelligent height of method of this adjusting volume value, easy to operate, improved user's experience.
Please refer to Fig. 4, is a kind of the 4th embodiment schematic flow sheet that regulates the method for volume provided by the invention; As described in Figure 4, a kind of method of volume that regulates described in the present embodiment comprises step:
S400, stores default volume difference and the corresponding relation of terminal volume value, and the corresponding relation of storing default positional information and terminal volume value;
Embodiment of the present invention step S400, please refer to the embodiment step S300 shown in Fig. 3, at this, does not repeat.
S401, judges whether the sound receiver of described terminal is blocked;
Embodiment of the present invention step S401, please refer to the embodiment step S301 shown in Fig. 3, at this, does not repeat.
S402, if so, obtains the current location information of described terminal, according to the corresponding relation of described default positional information and terminal volume value, searches the terminal volume value corresponding with the current location information of described terminal;
In specific embodiment, the mode of obtaining the current location information of terminal can be, GPS by terminal obtains the current positional information of terminal, again according to the corresponding relation of default terminal positional information and terminal volume value, search the terminal volume value corresponding with obtained current terminal positional information, it should be noted that, need in terminal, to store in advance the volume value corresponding relation of default positional information and terminal, its concrete corresponding relation can be the corresponding terminal volume value of a positional information.Searching the terminal volume value concrete mode corresponding with the current location information of terminal can be that the current location information of terminal is mated one by one with the predeterminated position information of storage, if the match is successful, terminal volume value corresponding to the predeterminated position information of storing that the match is successful extracted.
S403, is adjusted to the volume value of described terminal the described terminal volume value corresponding to current location information of the described terminal finding.
In specific embodiment, the volume value of terminal is adjusted to terminal storage with this positional information opposite end volume value, it should be noted that, between the predeterminated position information of terminal storage and terminal volume value, relation can change, and can constantly upgrade.
In the embodiment of the present invention, by obtaining the volume value of terminal place environment, and according to the volume value of the volume difference adjusting terminal between the volume value of terminal place environment and preset reference value, since adapt to the volume value of the terminal place environment constantly changing, the intelligent height of method of this adjusting volume value, easy to operate, improved user's experience.
Set forth the specific implementation of a kind of terminal that the embodiment of the present invention provides below.
Please refer to Fig. 5, the structural representation of a kind of terminal providing for the embodiment of the present invention.As shown in Figure 5, a kind of terminal described in the present embodiment comprises: acquisition module 100, determination module 101 and the first adjustment module 102.
Acquisition module 100, for obtaining the sound characteristic parameter of terminal place environment;
In specific embodiment, sound characteristic parameter can comprise volume value, frequency spectrum and the positional information etc. of sound.The sound of terminal place environment can be the noise of terminal place environment, also can, for normal talks sound at that time, that is to say voice.The sound characteristic parameter mode that acquisition module 100 obtains terminal place environment can be, according to predetermined period, obtain the sound of terminal place environment, then obtained sound is carried out to Measurement and analysis, obtain obtained sound characteristic parameter, concrete, the voice mode that the first acquisition module 100 obtains terminal place environment can be, utilize the sound of the sound receiver receiving terminal place environment of terminal, for example, can utilize the sound of the Mic receiving terminal place environment of mobile phone.
Determination module 101, for determining the sound characteristic parameter of described terminal place environment and the sound characteristic difference value between preset reference value;
In specific embodiment, the set-up mode of preset reference value can be for when terminal is during in an environment, regulate the sound characteristic parameter of terminal, so that the sound characteristic parameter of terminal and the sound characteristic parameter of terminal place environment at that time adapt, its accommodation mode can be, here the volume value of take describes for example as sound characteristic parameter, and for example the ambient noise at mobile phone place and the sound of mobile phone music exist simultaneously, but user still can hear melodious mobile phone music.Now, using the wave volume value of terminal place environment as fiducial value, computing module 101 compares volume value and this fiducial value of the terminal place environment at every turn obtaining and calculate, and draws the volume value of terminal place environment and the difference between this fiducial value; Certainly, preset reference value can also be terminal obtain a upper positional information time ambient sound characteristic parameter.
The first adjustment module 102, for according to described sound characteristic difference value, regulates the parameter of levying of described terminal.
In specific embodiment, sound characteristic difference value can comprise volume difference, spectrum difference, position changing value etc.The first adjustment module 102 is according to calculated sound characteristic difference value, regulate the mode of the sound characteristic parameter of terminal to be, here the volume difference of take describes for example as sound characteristic difference value, in the stored record of terminal, search terminal volume value corresponding to this volume difference, then the volume value of terminal is adjusted to terminal volume value corresponding to this volume difference.It should be noted that, need in terminal, store the corresponding relation between volume difference and terminal volume value in advance, can be the corresponding terminal volume value of a volume difference, further, this corresponding relation need to obtain by repetition test, makes user's experience best; For example, when the corresponding relation of setting between volume difference and terminal volume value, it is that 5 decibels of counterpart terminal volume values are one-level volume that volume difference can be set, and volume difference is that 10 decibels of counterpart terminal volume values are secondary volume.
In the embodiment of the present invention, by obtaining the volume value of terminal place environment, and according to the volume value of the volume difference adjusting terminal between the volume value of terminal place environment and preset reference value, since adapt to the volume value of the terminal place environment constantly changing, the intelligent height of method of this adjusting volume value, easy to operate, improved user's experience.
Please refer to Fig. 6, the structural representation of the another kind of terminal providing for the embodiment of the present invention.As shown in Figure 6, the another kind of terminal described in the present embodiment comprises: acquisition module 100, determination module 101, the first adjustment module 102, memory module 103, judge module 104, obtain and search module 105 and the second adjustment module 106; Wherein acquisition module 100, determination module 101 and the first adjustment module 102 please refer to the description of Fig. 5, do not repeat them here.
Memory module 103, for storing default volume difference and the corresponding relation of terminal volume value, and the corresponding relation of storing default positional information and terminal volume value;
In specific embodiment, memory module 103 can be in terminal equipment the corresponding relation of pre-stored default volume difference and terminal volume value, default volume difference and the corresponding relation of terminal volume value can be, a corresponding terminal volume value of volume difference, it should be noted that, the concrete corresponding relation of volume difference and terminal volume value needs repetition test to obtain, so that the wave volume value of the terminal volume value after regulating and terminal environment of living in adapts.Further, memory module 103 can also be stored the corresponding relation of default positional information and terminal volume value in terminal equipment, the corresponding relation of default positional information and terminal volume value can be, a corresponding terminal volume value of positional information, it should be noted that, this correspondence is closed and is constantly updated with the variation of the outside noise along with this position.
Judge module 104, for judging whether the sound receiver of described terminal is blocked;
In specific embodiment, judge module 104 can utilize the range sensor of terminal to judge whether the sound receiver of terminal is blocked, if the sound receiver of terminal is blocked, the distance that range sensor is measured between terminal and shelter is smaller, if the sound receiver of terminal is not blocked, whether the distance that range sensor is measured is larger, so the range information of measuring according to range sensor can judge the sound receiver of terminal, be blocked.
Further, if judge module 104 when the determination result is NO, utilizes acquisition module 100 to obtain the sound characteristic parameter of terminal place environment.
Obtain and search module 105, for when judgment result is that while being, obtain the current location information of described terminal, according to the corresponding relation of described default positional information and terminal volume value, search the terminal volume value corresponding with the current location information of described terminal;
In specific embodiment, obtaining the mode of searching the current location information that module 105 obtains terminal can be, GPS by terminal obtains the current positional information of terminal, again according to the corresponding relation of default terminal positional information and terminal volume value, search the terminal volume value corresponding with obtained current terminal positional information, it should be noted that, need in terminal, to store in advance the volume value corresponding relation of default positional information and terminal, its concrete corresponding relation can be the corresponding terminal volume value of a positional information.Obtain and search module 105 to search the terminal volume value concrete mode corresponding with the current location information of terminal can be that the current location information of terminal is mated one by one with the predeterminated position information of storage, if the match is successful, terminal volume value corresponding to the predeterminated position information of storing that the match is successful extracted.
The second adjustment module 106, for being adjusted to the volume value of described terminal the described terminal volume value corresponding to current location information of the described terminal finding.
In specific embodiment, the second adjustment module 106 is adjusted to the volume value of terminal the terminal volume value corresponding with this positional information of terminal storage, it should be noted that, the predeterminated position information of terminal storage and the corresponding relation between terminal volume value can change, and can constantly upgrade.
In the embodiment of the present invention, by obtaining the volume value of terminal place environment, and according to the volume value of the volume difference adjusting terminal between the volume value of terminal place environment and preset reference value, since adapt to the volume value of the terminal place environment constantly changing, the intelligent height of method of this adjusting volume value, easy to operate, improved user's experience.
Please refer to Fig. 7, is the structural representation of a kind of the first adjustment module of the present invention, executes as shown in Figure 7 described a kind of the first adjustment module 102 of example and comprises acquiring unit 1020, analytic unit 1021 and unit 1022.
Acquiring unit 1020, if be greater than predetermined threshold value for described volume difference, obtains the sound spectrum of described terminal place environment;
In specific embodiment, predetermined threshold value need to preset, its established standards is the influence degree of the wave volume value based on terminal place environment to terminal volume value mainly, for example, when listening to the music with mobile phone, if the wave volume value of mobile phone place environment has affected the effect of listening to the music, the wave volume value of mobile phone place environment now and this musical sound are adapted external environmental sounds between difference be set as predetermined threshold value, if the wave volume value of terminal place environment and the volume difference between predetermined threshold value are greater than this predetermined threshold value, illustrate that now the wave volume value of terminal place environment has affected terminal volume value, acquiring unit 1020 obtains the sound spectrum of terminal place environment, it should be noted that, acquiring unit 1020 obtains the sound spectrum mode of terminal place environment can be for carrying out FFT conversion by the sound of terminal place environment, obtain the sound spectrum of terminal place environment.
Analytic unit 1021, for carrying out spectrum analysis to the sound spectrum of described terminal place environment;
In specific embodiment, the sound spectrum of the terminal place environment that 1021 pairs of analytic units obtain carries out spectrum analysis, the object of its analysis is mainly the sound type of judgement terminal place environment, the sound type of terminal place environment can be noise, also can be normal conversation voice sound, the concrete analysis mode of analytic unit 1021 can be that low frequency and the HFS of the sound spectrum of the place environment obtaining are compared to analysis.
Regulon 1022, for according to analysis result, regulates the volume value of described terminal.
In specific embodiment, regulon 1022 is adjusted the volume value of terminal according to the sound spectrum analysis result of obtained terminal place environment, concrete, if the sound spectrum of terminal place environment meets noise spectrum, regulon 1022 is determined the rank of terminal volume value according to the volume difference between the wave volume value of terminal place environment and preset reference value, if the sound spectrum of terminal place environment meets normal conversation voice frequency spectrum, explanation has normal talk now, and regulon 1022 is adjusted to quiet or predetermined volume value by terminal volume value.
In the embodiment of the present invention, by obtaining the volume value of terminal place environment, and according to the volume value of the volume difference adjusting terminal between the volume value of terminal place environment and preset reference value, since adapt to the volume value of the terminal place environment constantly changing, the intelligent height of method of this adjusting volume value, easy to operate, improved user's experience.
Please refer to Fig. 8, is the structural representation of a kind of regulon of the present invention, and as shown in Figure 8, this described a kind of regulon 1022 comprises that the first adjusting subelement 10220 and second regulates subelement 10221.
First regulates subelement 10220, if be voice spectrum for the sound spectrum of described terminal place environment, the volume value of described terminal is adjusted to quiet or default volume value;
In specific embodiment, when the sound spectrum of terminal place environment is carried out to spectrum analysis, if low frequency part is apparently higher than HFS, the sound spectrum that can determine terminal place environment is voice spectrum, the sound that is to say terminal place environment is voice, now, in order to make talk, can hear, first regulates subelement 10220 volume value of terminal can be adjusted to a quiet or lower default volume value, it should be noted that, default volume value herein can be set by user oneself as the case may be.
Second regulates subelement 10221, if be noise spectrum for the sound spectrum of described terminal place environment, the volume value of described terminal is adjusted to terminal volume value corresponding to described volume difference.
In specific embodiment, when the sound spectrum of terminal place environment is carried out to spectrum analysis, if HFS is apparently higher than low frequency part, the sound that can determine terminal place environment is noise spectrum, the sound that is to say terminal place environment is noise, now, for the wave volume value of terminal and outside noise volume value adapt, second regulate subelement 10221 volume value of terminal need to be adjusted to terminal volume value corresponding to volume difference, it should be noted that, terminal pre-stored the corresponding relation of volume difference and terminal volume value, be the corresponding terminal volume value of a volume difference.
In the embodiment of the present invention, by obtaining the volume value of terminal place environment, and according to the volume value of the volume difference adjusting terminal between the volume value of terminal place environment and preset reference value, since adapt to the volume value of the terminal place environment constantly changing, the intelligent height of method of this adjusting volume value, easy to operate, improved user's experience.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Step in embodiment of the present invention method can be carried out according to actual needs order and adjusted, merges and delete.
Module in embodiment of the present invention terminal or unit can merge according to actual needs, draw and subtract.
Module described in the embodiment of the present invention or unit, can pass through universal integrated circuit, for example (Central Processing Unit, central processing unit), or by ASIC(Application Specific Integrated Circuit, application-specific integrated circuit (ASIC)) realize.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.