Summary of the invention
The embodiment of the invention provides terminal speech transmitting method, system and equipment, has improved the speech quality at terminal.
The embodiment of the invention provides a kind of terminal speech transmitting method, comprising:
Obtain environmental noise information, said environmental noise information comprises signal to noise ratio;
According to first corresponding relation of environmental noise information that presets and the gain of terminal speech transmitting device, the gain of searching the first corresponding terminal speech transmitting device of the said environmental noise information of obtaining;
The signal magnitude of gathering according to the gain-adjusted first terminal Mike of the said first terminal speech transmitting device of searching, and, send said signal to said second terminal according to the signal magnitude after the said adjusting.
The embodiment of the invention provides a kind of terminal, comprising:
The noise acquiring unit is used to obtain environmental noise information, and said environmental noise information comprises signal to noise ratio;
Search the unit, be used for, search the gain of the first terminal speech transmitting device of the environmental noise information correspondence that said noise acquiring unit obtains according to the environmental noise information that presets first corresponding relation with the gain of terminal speech transmitting device;
Delivery unit is used for the signal magnitude of gathering according to the said gain-adjusted first terminal Mike who searches the said first terminal speech transmitting device of searching the unit, and according to the signal magnitude after the said adjusting, sends said signal to said second terminal.
The embodiment of the invention provides a kind of terminal speech transmitting system, comprising: first terminal and second terminal;
Said first terminal is used to obtain environmental noise information, and said environmental noise information comprises signal to noise ratio; According to first corresponding relation of environmental noise information that presets and the gain of terminal speech transmitting device, the gain of searching the first corresponding terminal speech transmitting device of the said environmental noise information of obtaining; The signal magnitude of gathering according to the gain-adjusted first terminal Mike of the said first terminal speech transmitting device of searching, and, send said signal to said second terminal according to the signal magnitude after the said adjusting.
In the terminal speech transmitting method of present embodiment; First terminal obtains environmental noise information; According to first corresponding relation of environmental noise information that presets and the gain of terminal speech transmitting device, search the corresponding first terminal speech transmitting device gain of environmental noise information of obtaining, and will be according to the signal magnitude of the first terminal speech transmitting device gain-adjusted, the first terminal Mike collection of searching; Signal magnitude according to after regulating sends signal to second terminal.With terminal speech transmitting device in the prior art according to fixing gain; The signal that this terminal Mike is gathered sends the opposite end to and compares; The method of the embodiment of the invention makes that the terminal can be according to own or the current environmental noise of living in opposite end in communication process; Come the size of conditioning signal, can improve speech quality effectively, and implementation method is fairly simple.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Method embodiment
A kind of terminal speech transmitting method, present embodiment be first terminal with the process of second terminal communication in method, flow chart is as shown in Figure 1, comprising:
Step 10, first terminal obtain environmental noise information, wherein environmental noise information comprise signal to noise ratio (Signal to Noise Ratio, SNR) or letter dry than (SINR);
When obtaining environmental noise information, first terminal can obtain arbitrary signal to noise ratio in first signal to noise ratio, second signal to noise ratio and the 3rd signal to noise ratio as environmental noise information; Or obtain any two the above signal to noise ratios in first signal to noise ratio, second signal to noise ratio and the 3rd signal to noise ratio; And with said two above signal to noise ratios of obtaining respectively with after corresponding noise weighted value multiplies each other; Obtain the 4th signal to noise ratio through weighted calculation again; With said the 4th signal to noise ratio as environmental noise information, the noise weighted value that said two above signal to noise ratios are corresponding and be 1;
Wherein, first signal to noise ratio is the Signal-to-Noise that the first terminal Mike gathers; Second signal to noise ratio is the signal to noise ratio of the signal of said second terminal transmission; The 3rd signal to noise ratio is the signal to noise ratio of said second terminal expectation, or the signal to noise ratio of the signal of the second terminal receiver collection, or the signal to noise ratio of the signal of the Mike at second terminal collection, and wherein receiver comprises receiver, loudspeaker, loud speaker etc.
The environmental noise information here can also be information such as the letter drying of the signal of first terminal and/or second terminal Mike collection compares.When obtaining environmental noise information; Be that the environmental noise information that presets according to first terminal and first corresponding relation of terminal speech transmitting device gain obtain; What preset such as first terminal is first corresponding relation of SINR and terminal speech transmitting device gain; Then first terminal is the SINR that obtains the signals such as signal of first terminal Mike collection when obtaining environmental noise information; And what preset when first terminal is SNR and first corresponding relation of terminal speech transmitting device gain, and then first terminal is the SNR that obtains the signals such as signal of first terminal Mike collection when obtaining environmental noise information.
Wherein, When obtaining first signal to noise ratio; Fourier transform conversion (FFT) can be adopted in first terminal, and the conversion of signals of earlier the first terminal Mike being gathered becomes frequency-region signal, then the frequency-region signal after the conversion is divided into a plurality of frequency bands; Calculate the signal to noise ratio of each frequency band, at last the signal to noise ratio of each frequency band is carried out weighted average calculation and draw first signal to noise ratio; When obtaining second signal to noise ratio, be after first terminal receives the signal that sends at second terminal, obtain that the detailed process of obtaining is similar like the method that obtains first signal to noise ratio according to the signal that receives;
When obtaining the 3rd signal to noise ratio, can receive the signal to noise ratio of the signal that the second terminal Mike that directly sends at second terminal gathers, and second terminal obtains the 3rd signal to noise ratio and first terminal to obtain the method for first signal to noise ratio similar, repeats no more; Can receive also that second terminal sends; The signal of the second terminal receiver amplifies degree and second terminal other combination of receiver current volume level; Make up like mark; Amplify second corresponding relation of degree and current volume level combination and signal to noise ratio according to the signal that presets, search the signal to noise ratio of corresponding signal to noise ratio as the signal of the said second terminal receiver collection; Signal amplifies degree and the current volume rank is 7/4 such as receiving, and then finds and 7/4 corresponding signal to noise ratio according to second corresponding relation that presets;
When obtaining the 3rd signal to noise ratio; It can also be the size that receives expectation first terminal transmission signal that sends at second terminal; Desired value that then presets according to first terminal and the 3rd corresponding relation of signal to noise ratio; Search said first terminal of expectation and send the corresponding signal to noise ratio of size of signal, as the signal to noise ratio of second terminal expectation.
Be appreciated that in first terminal and can also amplify degree and current volume level combination by preset signal, and desired value, with the corresponding relation of signal to noise ratio.And these corresponding relations can preset according to actual conditions like second corresponding relation and the 3rd corresponding relation etc.
When obtaining the 4th signal to noise ratio; Can with obtain first, second with the 3rd signal to noise ratio in two above signal to noise ratios respectively with after corresponding noise weighted value multiplies each other; Obtain the 4th signal to noise ratio through weighted calculation again, the noise weighted value that wherein said two above signal to noise ratios are corresponding and be 1.Such as: first signal to noise ratio of obtaining when first terminal is L
SNR, second signal to noise ratio of obtaining is R
SNR, the 3rd signal to noise ratio of obtaining is P
SNR, then the 4th noise is F
SNRBe L
SNRMultiply each other R with the noise weighted value a of corresponding home environment
SNRMultiply each other P with the noise weighted value b of corresponding first terminal environments
SNRAfter multiplying each other with corresponding protocols noise transmitted weighted value c, carry out the value that weighted calculation obtains, i.e. F again
SNR=a*L
SNR+ b*R
SNR+ c*P
SNRA+b+c=1 wherein; A, b and c can occurrence obtain with the strategy that presets according to first terminal, and the strategy that presets comprises that a, b and c are 1/3, or therein a signal to noise ratio greater than other two signal to noise ratios; And differ in the scope that presets, the corresponding noise weighted value of then said one of them signal to noise ratio is less than the value that presets etc.
Be appreciated that; First terminal can repeatedly obtain environmental noise information; And the value of environmental noise information through smoothly calculating that will repeatedly obtain, as the foundation that the transmitter gain is regulated at first terminal, glossmeter refers to the weighted average to the environmental noise information of repeatedly obtaining at last; Prevent that like this environmental noise information such as SNR that certain once obtains are big especially, and cause not conforming to the actual conditions in the process of carrying out the signal magnitude adjustment.
Environmental noise information that step 20, first terminal basis preset and first corresponding relation of terminal speech transmitting device gain, the gain of searching the first corresponding terminal speech transmitting device of the said environmental noise information of obtaining;
Environmental noise information can be the less corresponding bigger gain of signal to noise ratio with the corresponding relation of terminal speech transmitting device gain.
The signal magnitude that the gain-adjusted first terminal Mike of the said first terminal speech transmitting device that step 30, first terminal basis are searched gathers, and, send said signal to second terminal according to the signal magnitude after regulating.
Particularly, can control through the Mike at first terminal and realize, Mike controls the size of coming conditioning signal according to the numeral on the transmitter that the finds gain adjustment transmission path or analogue amplifier.
In a concrete embodiment; First terminal can also send to second terminal with any one or a few information in the feedback information; So that the signal magnitude that corresponding Mike gathers is regulated at second terminal; Such as can pass through dual-tone multifrequency (Dual Tone Multi Frequency, DTMF), Session Description Protocol (SDP) etc. sends to second terminal with feedback information.Wherein feedback information comprises: first signal to noise ratio of the signal that the first terminal Mike gathers; The signal of the volume rank that the first terminal receiver is current and the first terminal receiver amplifies degree, and the desired value at first terminal is promptly expected the information such as signal magnitude that send at second terminal.
Be appreciated that; If what second terminal received is that DTMF or SDP message are sent in first terminal; Second terminal can according to comprising information get access to environmental noise information; Carry out the adjusting that signal magnitude is sent at second terminal again, the process that concrete method is regulated like first terminal is similar, repeats no more at this.
In the terminal speech transmitting method of present embodiment; First terminal obtains environmental noise information; And, search the corresponding terminal speech transmitting device gain of environmental noise information of obtaining, and the signal magnitude that will gather according to the terminal speech transmitting device gain-adjusted first terminal Mike who searches according to first corresponding relation of the environmental noise information that presets and terminal speech transmitting device gain; Signal magnitude according to after regulating sends signal to second terminal.With terminal speech transmitting device in the prior art according to fixing gain; The signal that this terminal Mike is gathered sends the opposite end to and compares; The method of the embodiment of the invention makes that the terminal can be according to own or the current environmental noise of living in opposite end in communication process; Come the size of conditioning signal, can improve speech quality effectively, and implementation method is fairly simple.
Apparatus embodiments
A kind of terminal, the terminal in the present embodiment are meant first terminal cited below, and structural representation comprises shown in 2:
Noise acquiring unit 101 is used to obtain environmental noise information, and said environmental noise information comprises signal to noise ratio or the dry ratio of letter;
When obtaining environmental noise information, noise acquiring unit 101 can obtain any one signal to noise ratio in first signal to noise ratio, second signal to noise ratio and the 3rd signal to noise ratio as environmental noise information; Or obtain any two the above signal to noise ratios in first signal to noise ratio, second signal to noise ratio and the 3rd signal to noise ratio; And with said two above signal to noise ratios of obtaining respectively with after corresponding noise weighted value multiplies each other; Obtain the 4th signal to noise ratio through weighted calculation again; With said the 4th signal to noise ratio as environmental noise information, the noise weighted value that the above signal to noise ratio of said two of obtaining is corresponding and be 1.Wherein first signal to noise ratio is the signal to noise ratio of the signal of first terminal Mike collection; Second signal to noise ratio is the signal to noise ratio of the signal of said second terminal transmission; The 3rd signal to noise ratio is the signal to noise ratio of said second terminal expectation, or the signal to noise ratio of the signal of the second terminal receiver collection, or the signal to noise ratio of the signal of the Mike at second terminal collection.
Particularly, noise acquiring unit 101 can comprise:
First obtains subelement 111, and any one signal to noise ratio that is used for obtaining first signal to noise ratio, second signal to noise ratio and the 3rd signal to noise ratio is as environmental noise information; Or,
Second obtains subelement 121; Be used for obtaining any two above signal to noise ratios of first signal to noise ratio, second signal to noise ratio and the 3rd signal to noise ratio; And with two above signal to noise ratios obtaining respectively with after corresponding noise weighted value multiplies each other; Obtain the 4th signal to noise ratio through weighted calculation again, with said the 4th signal to noise ratio as environmental noise information, the noise weighted value that the above signal to noise ratio of said two of obtaining is corresponding and be 1;
Wherein, said first signal to noise ratio is the signal to noise ratio of the signal of first terminal Mike collection; Said second signal to noise ratio is the signal to noise ratio of the signal of said second terminal transmission; Said the 3rd signal to noise ratio is the signal to noise ratio of said second terminal expectation, or the signal to noise ratio of the signal of the second terminal receiver collection, or the signal to noise ratio of the signal of the Mike at second terminal collection.
Search unit 102; Be used for first corresponding relation according to environmental noise information that presets and the gain of terminal speech transmitting device; Search that said noise acquiring unit 101 obtains, obtain the gain that subelement 111 or second obtains the first corresponding terminal speech transmitting device of environmental noise information that subelement 121 obtains as first;
Delivery unit 103 is used for the signal magnitude of gathering according to the said gain-adjusted first terminal Mike who searches the said first terminal speech transmitting device of searching unit 102, and according to the signal magnitude after the said adjusting, sends said signal to second terminal.
Be appreciated that this terminal can also comprise in a concrete embodiment:
Information transmitting unit 104 is used for any one or a few information of feedback information is sent to said second terminal, so that the signal magnitude that Mike gathers is regulated at said second terminal; Wherein, said feedback information comprises: first signal to noise ratio of the signal that the said first terminal Mike gathers; Or the signal of the receiver at said first terminal amplifies other combination of receiver current volume level at degree and said first terminal; Or the signal magnitude that send at said second terminal is expected at said first terminal.Information transmitting unit 104 can send to second terminal with feedback information through DTMF, SDP agreement etc.
Noise acquiring unit 101 obtains environmental noise information in the terminal of present embodiment; By searching first corresponding relation of unit 102 according to environmental noise information that presets and the gain of terminal speech transmitting device; Search the corresponding first terminal speech transmitting device gain of environmental noise information of obtaining; And by the signal magnitude of delivery unit 103 according to the first terminal speech transmitting device gain-adjusted, the first terminal Mike collection of searching, the signal magnitude according to after regulating sends signal to second terminal.With terminal in the prior art according to fixing gain; The signal that terminal Mike is gathered sends the opposite end to and compares; The method that adopt at embodiment of the invention terminal makes that the terminal can be according to own or the current environmental noise of living in opposite end in communication process; Come the size of conditioning signal, can improve speech quality effectively, and implementation method is fairly simple.
System embodiment
A kind of terminal speech transmitting system, structural representation is as shown in Figure 3, comprising: first terminal 100 and second terminal 200;
Said first terminal 100 is used to obtain environmental noise information, and said environmental noise information comprises signal to noise ratio; According to first corresponding relation of environmental noise information that presets and the gain of terminal speech transmitting device, the gain of searching the first corresponding terminal speech transmitting device of the said environmental noise information of obtaining; The signal magnitude of gathering according to the gain-adjusted first terminal Mike of the said first terminal speech transmitting device of searching, and, send said signal to said second terminal 200 according to the signal magnitude after the said adjusting.
Particularly, first terminal is when obtaining environmental noise information: obtain any one signal to noise ratio in first signal to noise ratio, second signal to noise ratio and the 3rd signal to noise ratio as environmental noise information; Or; Obtain any two the above signal to noise ratios in first signal to noise ratio, second signal to noise ratio and the 3rd signal to noise ratio; And with two above signal to noise ratios obtaining respectively with after corresponding noise weighted value multiplies each other; Obtain the 4th signal to noise ratio through weighted calculation again, with said the 4th signal to noise ratio as environmental noise information, the noise weighted value that the above signal to noise ratio of said two of obtaining is corresponding and be 1;
Wherein, said first signal to noise ratio is the signal to noise ratio of the signal of first terminal Mike collection; Said second signal to noise ratio is the signal to noise ratio of the signal of said second terminal transmission; Said the 3rd signal to noise ratio is the signal to noise ratio of said second terminal expectation, or the signal to noise ratio of the signal of the second terminal receiver collection, or the signal to noise ratio of the signal of the Mike at second terminal collection.
Said second terminal 200; Be used for any one or a few information of following information is sent to first terminal 100: the 3rd signal to noise ratio of the signal that the said second terminal Mike gathers; The signal of the receiver at said second terminal amplifies receiver other combination of volume level at that time at degree and said second terminal, and the signal magnitude that send at said first terminal is expected at said second terminal.
In the terminal speech transmitting method of present embodiment; First terminal obtains environmental noise information; According to first corresponding relation of environmental noise information that presets and the gain of terminal speech transmitting device, search the corresponding first terminal speech transmitting device gain of environmental noise information of obtaining, and will be according to the signal magnitude of the first terminal speech transmitting device gain-adjusted, the first terminal Mike collection of searching; Signal magnitude according to after regulating sends signal to second terminal.With terminal speech transmitting device in the prior art according to fixing gain; The signal that this terminal Mike is gathered sends the opposite end to and compares; The method of the embodiment of the invention makes that the terminal can be according to own or the current environmental noise of living in opposite end in communication process; Come the size of conditioning signal, can improve speech quality effectively, and implementation method is fairly simple.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to accomplish through program; This program can be stored in the computer-readable recording medium, and storage medium can comprise: read-only memory (ROM), random-access memory (ram), disk or CD etc.
More than to terminal speech transmitting method, system and equipment that the embodiment of the invention provided; Carried out detailed introduction; Used concrete example among this paper principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.