Summary of the invention
In view of this, be necessary to provide a kind of and can regulate the devices and methods therefor of voice output volumes such as loud speaker or earphone automatically according to the noise level of user's surrounding environment.
A kind of apparatus for automatically regulating sound volume, be applied to realize comprise in the electronic equipment of both sides' speech communication: a memory cell is used to store the table of comparisons of a noise intensity and volume adjusting, described table of comparisons definition is heightened the volume of the partner that receives along with the increase of environmental noise intensity; One input unit is used for the typing external voice; One analog/digital conversion unit is used for the sound of input unit typing is converted into digital signal; One processing unit comprises: a voice recognition module is used to discern described digital signal and is user's voice or environmental noise; And a volume adjusting module, be used for after digital signal is identified as environmental noise, judge the intensity of environmental noise and obtain corresponding volume adjusting; Reach a sound volume regulation unit, be used for regulating the volume of the partner that receives according to the output of described volume adjusting module.
A kind of volume automatic regulating method comprises step: by input unit typing external voice; Described external voice is converted to digital signal; The discriminating digit signal is that environmental noise still is user's voice; If environmental noise, the intensity of judgement environmental noise; Obtain the volume adjusting corresponding from the table of comparisons of a noise intensity and volume adjusting with environmental noise intensity; Wherein said table of comparisons definition is heightened the volume of the partner that receives along with the increase of environmental noise intensity; Regulate according to the volume obtained the volume of the partner that receives is regulated and exported.
Use apparatus for automatically regulating sound volume of the present invention and method, according to the noise level of user's surrounding environment and the volume of regulating voice outputs such as loud speaker or earphone automatically, therefore, the user is when listening to the partner audio frequency, needn't the manual adjustments volume, convenient, comfortable, avoided simultaneously regulating volume and the problem of hearing damage because forget.
Embodiment
Below in conjunction with accompanying drawing, the technical scheme in the embodiment of the invention is described in detail.
With reference to shown in Figure 1, it is the hardware structure diagram of the apparatus for automatically regulatingsound volume 10 in the execution mode.Described apparatus for automatically regulatingsound volume 10 is applied to mobile phone, landline telephone, computer etc., and some can be realized in the electronic equipment of both sides' voice communication, regulate the size of the other side's voice of electronic equipment output in both sides' communication process automatically according to environmental noise.Apparatus for automatically regulatingsound volume 10 is made up of following each several part in this embodiment:memory cell 150,input unit 120, analog/digital conversion unit 130,processing unit 100.
Memory cell 150 is used to store the table of comparisons (figure does not show) of a noise intensity and volume adjusting, described noise intensity is the intensity of environmental noise, described volume is adjusted to the volume of regulating the partner that receives, described table of comparisons definition is heightened the volume of the partner that receives along with the increase of environmental noise intensity.Concrete, describedmemory cell 150 stores a noise intensity upper limit, noise intensity lower limit, one or more threshold value are divided into two or more noise intensity interval with the defined set of noise intensity bound, andmemory cell 150 also stores two or more volume value or volume-leveling value or volume and regulates ratio; The table of comparisons that described noise intensity and volume are regulated puts down in writing that described two or more noise intensity is interval to be concerned one to one with two or more volume value or volume-leveling value or the volume ratio of regulating.In the present embodiment, interval corresponding volume value of the noise intensity that noise intensity is lower or volume-leveling value or volume adjusting ratio are less than interval corresponding volume value of the higher noise intensity of noise intensity or volume-leveling value or volume and regulate ratio.What volume value defined is: corresponding each specific noise intensity interval, and the volume that volume is reached after regulating, what volume-leveling value defined is: corresponding each specific noise intensity interval, the amount of the required adjusting of volume; What volume adjusting ratio defined is: corresponding each specific noise intensity interval, the ratio of the required adjusting of volume.In addition, also store specific user's audio document in thememory cell 150, this audio document is for the data of the specific user's sound property of reaction, as the acoustic characteristic of user's sound.
Input unit 120 is used for the typing external voice.
Analog/digital conversion unit 130 is used for the sound ofinput unit 120 typings is converted into digital signal and exports to processing unit.
Processing unit comprises avoice recognition module 104 and avolume adjusting module 106.
The digital signal thatvoice recognition module 104 is used to discern 130 outputs from the analog/digital conversion unit is user's voice or environmental noise, particularly, describedvoice recognition module 104 judges that according to the audio document of the specific user of storage in thememory cell 150 digital signal of 130 outputs from the analog/digital conversion unit is user's voice or environmental noise.If environmental noise offers volume adjustingmodule 106 with environmental noise; If user's voice will be transferred to partner after user's speech coding.In other real-time modes, equally also give partner with the environmental noise coding transmission.
Volume adjusting module 106 is used for the environmental noise every 104 outputs of predetermined time interval sampling voice recognition module, according to the noise intensity ofmemory cell 150 storages and the table of comparisons of volume adjusting, obtaining the volume corresponding with environmental noise intensity regulates, particularly, describedvolume adjusting module 106 is judged the noise intensity interval that environmental noise falls into, and obtains and the interval corresponding volume value of this noise intensity or volume-leveling value or adjusting ratio and corresponding controlvolume adjusting module 106.
Soundvolume regulation unit 160 is used for the control according to above-mentionedvolume adjusting module 106, the audio frequency size of the partner that receives is regulated, and wait voice output to export byloud speaker 170 or earphone (figure does not show).
When using above-mentioned volume automatic regulatingdevice 10, volume automatic regulatingdevice 10 can be according to the noise level of user's surrounding environment and the size of regulating the other side's voice that receive automatically, therefore, the user is when receiving calls, needn't the manual adjustments volume, convenient, comfortable, avoided simultaneously regulating volume and the problem of hearing damage because forget.
See also the flow chart of Fig. 2, comprise the steps: for the self-regulating method of volume of the embodiment of the invention
Step S301 opens the automatic volume regulatory function, by input unit typing external voice;
Step S302 is converted to digital signal with this sound;
Step S303, discriminating digit signal are that environmental noise still is user's voice; If environmental noise enters step S304,, particularly, be that environmental noise still is user's voice according to specific user's the audio document discriminating digit signal of storage if user's voice enter step S305;
Step S304 will be transferred to partner after user's speech coding, and flow process finishes;
Step S305 is identified as the digital signal of environmental noise every predetermined time interval sampling, judges the intensity of environmental noise, particularly, judges the noise intensity interval that environmental noise falls into;
Step S306, the table of comparisons of regulating from a noise intensity and volume obtains and the corresponding volume of this noise intensity is regulated, and particularly, obtains and the interval corresponding volume value of this noise intensity or volume-leveling value or adjusting ratio; In the present embodiment, interval corresponding volume value of noise intensity that noise intensity is higher or volume-leveling value or volume adjusting ratio are greater than interval corresponding volume value of the lower noise intensity of noise intensity or volume-leveling value or volume and regulate ratio.
Step S307 according to above-mentioned volume value or volume-leveling value or adjusting ratio, regulates and exports the audio frequency size of the partner that receives, and flow process finishes.
In another embodiment, equally also give partner with the environmental noise coding transmission.
Use above-mentioned volume automatic regulating method, according to the noise level of user's surrounding environment and the size of regulating the other side's voice that receive automatically, therefore, the user is when receiving calls, needn't the manual adjustments volume, convenient, comfortable, avoided simultaneously regulating volume and the problem of hearing damage because forget.
Those skilled in the art will be appreciated that; above execution mode only is to be used for illustrating the present invention; and be not to be used as limitation of the invention; as long as within connotation scope of the present invention, appropriate change and the variation that above embodiment did all dropped within the scope of protection of present invention.