Embodiment
For technical problem, technical scheme and advantage that embodiments of the invention will be solved is clearer, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
Embodiments of the invention can not guarantee the problem of the speech quality in noisy environment at the hands-free increase In Call of mobile terminal devices such as mobile phone in the prior art time, a kind of portable terminal is provided and improves the method for speech quality.
As shown in Figure 1, embodiments of the invention portable terminal 10 comprises: receiver 11, loud speaker 12 (as in the mobile phone hands-free) and acoustic input dephonoprojectoscope 13 (as MIC, microphone), and
Noise monitoring module 14 is used for the noise volume of measurement environment;
Volume is selected module 15, is used for selecting a volume range according to the noise volume of described environment, and the data-signal of the described volume range of output expression;
Described loud speaker 12 receives the data-signal of the described volume range of expression, and plays current voice with the volume in the described volume range.
The foregoing description is by increasing noise monitoring module 14 in portable terminal 10, noise to surrounding environment is monitored, volume selects module 15 to select a suitable volume range according to the noise volume of surrounding environment, portable terminal in noisy environment when receiver 11 switches to loud speaker 12, in this volume range, converse, unlikely volume increases suddenly, and hearing user is produced injury, has guaranteed that customer mobile terminal carries out calling quality with loud speaker 12 in noisy environment.Usually, be provided with 15 grades of volumes in the portable terminal, under the non-noisy environment, 11,8~15 grades of use loud speakers 12 of 1~7 grade of use receiver; And under noisy environment, select suitable volume according to the noise volume of surrounding environment, and as the volume of 7-10 level, perhaps 6-10 level; If ambient noise is bigger, when receiver 11 switched to loud speaker 12, this volume was selected module 15 will Automatic sieve to select as the volume between the 7-10 level to play, when improving In Call, can not increase suddenly, cause hearing impaired user because of volume.
As shown in Figure 2, on above-mentioned basis embodiment illustrated in fig. 1, in order better to use the alternative audible device of loud speaker as receiver under the noisy environment, in the design mobile phone, take into full account the situation that loud speaker is used as verbal system, therefore, this portable terminal 10 also can comprise: control module 16, the sound cavity direction that is used to control described loud speaker is consistent with the direction of described receiver.Guarantee the user when using mobile phone communication, the voice directions of loud speaker 12 can face user's ear.Certainly, although it is inconsistent also can be designed to the sound cavity direction and the receiver 11 of loud speaker 12, phone structural can rotate, and guarantees in needs, loud speaker 12 and receiver 11 can be changed by the mode of structural member rotation, be made their sound cavity direction unanimity.
As shown in Figure 3, control module 16 in embodiment illustrated in fig. 2 can be specially a rotation regulating mechanism 161, be used for being rotatably connected with described receiver 11 or described loud speaker 12, when needing, can make the sound cavity direction of loud speaker 12 consistent by regulating this rotation regulating mechanism 161 with the direction of receiver 11, when guaranteeing that the user clearly hears dialog context, do not have tangible leakage sound, can not allow the bystander hear conversation content, guarantee the safety of dialog context.Certainly, it is consistent with receiver 11 also can to control the voice directions of above-mentioned loud speaker 12 by software mode, does not leak sound when guaranteeing conversation.
For boombox 12, the sound cavity direction that can consider one of them sound channel is consistent with the direction of receiver 11, can face toward user's ear, when conversing, only use this sound channel, and close another sound channel, and do not leak sound when can guarantee to converse equally, can also save certain power consumption simultaneously; Can certainly be designed to the sound cavity direction of two sound channels of stereosonic loud speaker 12 all consistent with receiver 11.
As shown in Figure 4, in the above-described embodiment, when loud speaker 12 is play current talking in volume is selected module 15 selected volume ranges, in order to make volume be more suitable for user's ear ability to accept, portable terminal 10 also can comprise: volume control module 17 is used to control described loud speaker and plays current voice in the mode that increases volume gradually in described volume range.
What usually the volume of loud speaker 12 was done is very big, if when the user is attached to mobile phone in one's ear, therefrom spreads out of very big sound suddenly, can cause damage to hearing user.Therefore, the user is after select using loud speaker 12 as audible device, and the increase of volume is gradual change.For example, the user is in conversation, the sensation volume is not enough, constantly heighten, but at this moment the other side does not speak, thus the user whether can't detect current volume suitable, then when volume is heightened a very high level, the other side speaks suddenly, just may cause very big impact to hearing user.Therefore, in design, consider that wave volume needs to increase gradually.Can reach this purpose by the sound intensity that calculates the sound that loud speaker 12 sends, computing formula is:
The sound intensity=original sound power * SPEAKER power amplifier gain
Original sound power can be by obtaining sound PCM data computing, wherein, PCM is a kind of data format of sound, loud speaker power amplifier gain also is known, therefore, when the sound intensity of the sound of finding to be about to send will far above before the maximum sound intensity time, need to adjust the gain of loud speaker power amplifier, on the basis of original sound intensity, (for example 3S) within a certain period of time adjusts on the yield value of the current actual loud speaker that is provided with gradually.
As shown in Figure 5, in the described portable terminal 10 of above-mentioned all embodiment, all also can comprise:
First adjusting module 18 is used for adjusting according to the noise volume of described environment the echo cancellation parameters of described loud speaker and described receiver, makes loud speaker 12 under noisy environment better speech quality can be arranged.
Specifically, this echo cancellation parameters mainly includes: echoloss ERL (Echo return loss) and/or sound time delay D ELAY; Wherein, ERL represents the transfer voice sent from the sound audible device sound loss to MIC (Mike) process, is unit with dB.DELAY represents the sound time delay, and the sound that expression is sent from the sound audible device spreads out of the spent time of MIC.
When above-mentioned two parameters were adjusted, as shown in Figure 6, on above-mentioned basis embodiment illustrated in fig. 5, first adjusting module 18 comprised:
First adjusts submodule 181, is used for according to the noise volume of described environment the sound time delay of described loud speaker 12 being adjusted to sound time delay greater than described receiver;
Second adjusts submodule 182, is used for according to the noise volume of described environment the echoloss of described loud speaker being turned down.
For the noisy application scenarios in the embodiments of the invention, the wave volume that loud speaker 12 audible devices send is greater than receiver 11, so on the sound time delay, the sound time delay when conversing than normal use receiver 11 is long.In addition, the ERL of the ERL of loud speaker 12 when using hand-free call under the normal condition is low.
As shown in Figure 7, the speech quality when using loud speaker to converse in the noisy environment in order to make further improves, and on the basis of above-mentioned all embodiment, the portable terminal of embodiments of the invention also can comprise:
Second adjusting module 19 is used for adjusting according to the noise volume of described environment the gain of described acoustic input dephonoprojectoscope.
In the noisy application scenarios of embodiments of the invention, the user still can be attached to mobile phone in one's ear and converse, therefore, and need be as the special gain that increases MIC.And, consider that under noisy environment, the user tends to habitually strengthen speaking volume, therefore also need suitable reduction MIC volume, guarantee to be delivered to the other side's wave volume moderate.Specifically, can measure background noise intensity, and adjust the size that MIC gains according to the intensity of background noise, background noise is big more, and the MIC gain is just adjustable more little.
As shown in Figure 8, on the basis of above-mentioned all portable terminal embodiment, portable terminal 10 also can comprise: the 3rd adjusting module 20, be used for according to the gain of described acoustic input dephonoprojectoscope (as MIC) and as described in the gain of loud speaker, adjust the bypass loop echo sound gain of the bypass loopback passage between described acoustic input dephonoprojectoscope and the described loud speaker.
When using mobile phone to converse, more approaching in order to guarantee with the normal custom of speaking, the sound that part need be imported into from MIC is circulated into audio output device by bypass loopback passage, make the people can hear own one's voice in speech, and it is very unusual to be unlikely to feel to speak.In the application scenarios of embodiments of the invention, need take all factors into consideration the gain that many-sided factor is adjusted bypass loop echo sound, it is more approached by the size of air transfer to the volume of another ear of user.Gain can use following computing formula to obtain as bypass loop echo sound:
ST_GAIN (gain of bypass loop echo sound)=MIC_GAIN (MIC gain)+SPEAKER_GAIN (SPEAKER gain)-attenuation constant
Like this, just can adjust the gain of bypass loop echo sound in real time according to the MIC gain of current talking and the gain of loud speaker.
In addition, as shown in Figure 9, to embodiment shown in Figure 8, portable terminal also comprises at above-mentioned Fig. 1:
Switching controls module 21, when being used to give tacit consent to talking mode and being the receiver talking mode, select module 15 selected volume ranges according to described volume, the talking mode of portable terminal is switched to described loud speaker 12 by described receiver 11, wherein, switching mode can be to automatically switch, and also can be manual switchover;
When automaticallying switch, when volume selects module 15 to select a volume range according to the noise volume of environment, will produce a triggering signal, this triggering signal is transferred to this switching controls module 21, and this switching controls module 21 just switches to loud speaker 12 with the talking mode of current mobile terminal by receiver 11 automatically;
And during manual switchover, volume can produce an information after selecting module 15 to select a volume range, and the prompting user carries out manual switchover.
Certainly, if the portable terminal acquiescence is the loud speaker talking mode, when then volume selected module 15 to select a volume range, loud speaker will directly be play current voice with the volume in this volume range.
To sum up, embodiments of the invention by in noisy environment when using loud speaker to substitute receiver to converse, when In Call is improved, guarantee to use loud speaker calling quality in noisy environment, it is more convenient simultaneously also to make the user switch to loud speaker from receiver, and by monitoring the noise volume of surrounding environment, select a suitable volume scope, converse in the suitable volume scope of this selection by loud speaker, when guaranteeing In Call, guarantee that also the user can not make impaired hearing greatly because of the unexpected change of sound; Simultaneously, in order to guarantee that speech quality further improves, also the parameters such as echo cancellation parameters, MIC gain and the gain of bypass loop echo sound of portable terminal are reasonably adjusted, made and in noisy environment, use loud speaker to converse, reach better speech quality.
As shown in figure 10, embodiments of the invention also provide a kind of portable terminal to improve the method for speech quality, comprising:
Step S101, the noise volume of measurement environment;
Step S102 selects a volume range according to the noise volume of described environment;
Step S103 plays current voice according to the loud speaker of described volume range control portable terminal with the volume in the described volume range.
Monitor by noise surrounding environment, noise volume according to surrounding environment is selected a suitable volume range, portable terminal in noisy environment when receiver 11 switches to loud speaker 12, unlikely volume increases suddenly, hearing user is produced injury, guaranteed that customer mobile terminal carries out calling quality with loud speaker 12 in noisy environment.If ambient noise is bigger, this volume is selected module 15 will Automatic sieve to select as the volume between the 7-10 level to play, when guaranteeing In Call, guarantee that user's hearing is not impaired.
Again said method is described in detail below:
Step S201, the noise volume of measurement environment;
Step S202 selects a volume range according to the noise volume of described environment;
Step S203 adjusts echo cancellation parameters according to the noise volume of described environment, and described echo cancellation parameters comprises: sound time delay and/or echoloss; For the noisy application scenarios in the embodiments of the invention, the wave volume that the loud speaker audible device sends is greater than receiver, so on the sound time delay, the sound time delay during than the conversation of use receiver is long.In addition, the ERL of the ERL of loud speaker 12 when using hand-free call under the normal condition is low;
Step S204 adjusts the gain of sound input according to the noise volume of described environment; Background noise intensity is measured, and adjusted the size that MIC gains according to the intensity of background noise, background noise is big more, and the MIC gain is just adjustable more little, guarantees that the sound that the other side hears can be not big especially;
Step S205 adjusts the gain of bypass loop echo sound according to the gain of sound input and the gain of voice output; Make the people can hear own one's voice in speech, and it is very unusual to be unlikely to feel to speak.
Step S206, the loud speaker of portable terminal is play current voice in the mode that increases volume gradually in described volume range; Avoid hearing user is caused very big impact.
Certainly, after step S102 or the step S202, if the portable terminal acquiescence is the receiver talking mode, then above-mentioned steps S103 is specially:
According to described volume range the talking mode of portable terminal is switched to described loud speaker by receiver, described loud speaker is play current voice with the volume in the described volume range.
And step S206 is specially: according to described volume range the talking mode of portable terminal is switched to described loud speaker by receiver, the loud speaker of portable terminal is play current voice in the mode that increases volume gradually in described volume range.
To sum up, method embodiment of the present invention monitors by the noise of surrounding environment, select a suitable volume range, make portable terminal in noisy environment, when receiver switched to loud speaker and converses, loud speaker was conversed in the volume range of this selection, and the increase of the volume in this volume range is gradual change, when using loud speaker to guarantee In Call, do not make user's impaired hearing; By adjustment, make and in noisy environment, use the speech quality of loud speaker further to improve simultaneously echo cancellation parameters, MIC gain, the gain of bypass loop echo sound.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the read/write memory medium of a portable terminal, this program is when carrying out, comprise step, described storage medium etc. as above-mentioned method embodiment.
The above is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from principle of the present invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.