The content of the invention
Embodiments of the invention provide a kind of method and apparatus for eliminating noise, solve prior art and eliminate TDD noises
The debugging difficulty brought is big and the problem of circuit complicated.
To reach above-mentioned purpose, embodiments of the invention adopt the following technical scheme that:
In a first aspect, the embodiments of the invention provide a kind of method of elimination TDD noises, this method includes:
When audio signal is in the range value A of default frequencyiDuring more than predetermined threshold value B, by the audio signal described
The range value A of default frequencyiAdjust to less than the threshold value B, wherein, the audio signal is frequency-region signal, described default
Frequency includes L frequency altogether, and the frequency of the L frequency is respectively if0, f0For 217Hz, 1≤i≤L.
In the first possible embodiment, with reference in a first aspect, the B be obtain on a preset condition based frequency domain letter
Number in frequency f0Corresponding range value, wherein, the preparatory condition is will to receive or send the device of the audio signal
Volume be adjusted to it is minimum, and by adjust described device radio-frequency power amplifier transmission power obtain signal be human ear
The critical value for the signal heard, and convert the signals to frequency-region signal.
It is described by institute with reference to first aspect or the first possible embodiment in second of possible embodiment
State range value A of the audio signal in the default frequencyiAdjust to less than the threshold value B and specifically include:
Obtain kAiThe maximum of k during < B, wherein, k=b/2a, 1≤b < 2, a are positive integer;
By the audio signal the default frequency range value AiAdjust to AiK times.
It is described by institute with reference to first aspect or the first possible embodiment in the third possible embodiment
State range value A of the audio signal in the default frequencyiAdjust to less than the threshold value B and specifically include:
Obtain kAiThe maximum of k during < B, wherein, k=b/2a, 1≤b < 2, a are positive integer;
By the audio signal the default frequency range value AiAdjust to AiC/22-i* k times, wherein, 1≤c <
2。
Second aspect, the embodiments of the invention provide a kind of device of elimination TDD noises, the device includes:Adjustment unit;
The adjustment unit, for when audio signal is in the range value A of default frequencyiDuring more than predetermined threshold value B, by institute
State range value A of the audio signal in the default frequencyiAdjust to less than the threshold value B, wherein, the audio signal is frequency
Domain signal, the default frequency include L frequency altogether, and the frequency of the L frequency is respectively if0, f0For 217Hz, 1≤i≤L.
In the first possible embodiment, with reference to second aspect, the B is the frequency domain letter obtained on a preset condition based
Number in frequency f0Corresponding range value, wherein, the preparatory condition is will to receive or send the device of the audio signal
Volume be adjusted to it is minimum, and by adjust described device radio-frequency power amplifier transmission power obtain signal be human ear
The critical value for the signal heard, and convert the signals to frequency-region signal.
In second of possible embodiment, with reference to second aspect or the first possible embodiment, the device is also
Including:Acquiring unit;
The acquiring unit, for obtaining kAiThe maximum of k during < B, wherein, k=b/2a, 1≤b < 2, a are just whole
Number;
The adjustment unit is specifically used for:By the audio signal the default frequency range value AiAdjust to AiK
Times.
In the third possible embodiment, with reference to second aspect or the first possible embodiment, the device is also
Including:Acquiring unit;
The acquiring unit, for obtaining kAiThe maximum of k during < B, wherein, k=b/2a, 1≤b < 2, a are just whole
Number;
The adjustment unit is specifically used for:By the audio signal the default frequency range value AiAdjust to Ai's
c/22-i* k times, wherein, 1≤c < 2.
The embodiments of the invention provide a kind of method and apparatus of elimination TDD noises, pass through the sound for judging to receive or send
For frequency signal in frequency domain, whether frequency is more than predetermined threshold value for the range value at the frequency corresponding to 217Hz and its frequency multiplication, if
It is more than, the frequency is compressed to less than the threshold value for the range value at the frequency corresponding to 217Hz and its frequency multiplication, so as to
TDD noises are eliminated, avoid prior art by hardware eliminate TDD grass come debugging difficulty it is big, workload compared with
The problem of big and circuit complicated.
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 carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
For solve prior art by hardware eliminate TDD grass come debugging difficulty it is big, workload is larger and circuit
The problem of complication, with reference to Fig. 1, the embodiments of the invention provide a kind of method of elimination TDD noises, this method includes:
101st, when audio signal is in the range value A of default frequencyiDuring more than predetermined threshold value B, the audio signal is existed
The range value A of the default frequencyiAdjust to less than the threshold value B, wherein, the audio signal is frequency-region signal, described
Default frequency includes L frequency altogether, and the frequency of the L frequency is respectively if0, f0For 217Hz, 1≤i≤L.
Specifically, the audio signal can be up audio signal, i.e., mobile phone is sent audio signal or
The audio signal that descending audio signal, i.e. mobile phone receive.The audio signal is subjected to Fast Fourier Transform (FFT), described in acquisition
The frequency-region signal of audio signal.
Principle can obtain as caused by TDD noises, if TDD noises in the audio signal be present, the TDD noise profiles
It is f in frequency0=217Hz and its frequency corresponding to frequency multiplication.Theoretically, when TDD noises be present, f0Corresponding to=217Hz
Frequency signal amplitude it is maximum, secondly in f0Frequency multiplication, such as 2f0, 3f0…nf0Amplitude reduce successively, but still be higher than
Amplitude at other frequencies.
That is, f0And f0Frequency multiplication corresponding to frequency, be the frequency that TDD noise energies are concentrated the most, if at these frequencies
Signal intensity be more than predetermined threshold value B, then may determine that TDD noises in the audio signal be present, if at these frequencies
Signal intensity is less than predetermined threshold value, then judges TDD noises are not present in the audio signal.
The B is the frequency-region signal obtained on a preset condition based in f0The range value of corresponding frequency, wherein, it is described pre-
If condition be the volume for the device for receiving or sending the audio signal is adjusted to it is minimum, and by adjusting the radio frequency of described device
The critical value for the signal that the signal that the transmission power of power amplifier to obtain is heard for human ear, and convert the signals to
Frequency-region signal.
It should be noted that the mobile phone of GSM standards can all produce TDD noises to upward signal and downstream signal, citing comes
Say, user 1 uses the mobile phone of GSM standards, and user 2 uses the mobile phone of other standards, when user 1 and user 2 are carried out
During call, the signal heard with 1 signal heard and user 2 can be all included due to the radio-frequency power of the mobile phone of user 1
Amplifier operation and caused TDD noise signals.
Specifically, when obtaining the B, the mobile phone of GSM standards, such as mobile phone volume of user 1 can be adjusted to minimum,
And the radio-frequency power amplifier of the mobile phone is arranged to maximum transmission power, the signal that now the GSM standard mobile phones are sent is obtained,
Judge whether the signal is the audible signal of human ear, if so, adjusting the radio-frequency power amplifier of the mobile phone of the GSM standards, directly
Measured signal to acquisition is the critical value of the audible signal of human ear, and the measured signal is converted into frequency-region signal, and will
Range value at 217Hz frequencies is as the threshold value B.
So setting the reason for threshold value is, when the size of TDD noises caused by the mobile phone of GSM standards and other audios are believed
Number unrelated, when the radio-frequency power amplifier of the mobile phone of GSM standards is in maximum transmission power, caused TDD noises are maximum.Cause
This, when the volume for the device for producing TDD noises is adjusted into minimum, the signal of acquisition is the TDD letters not comprising other voice signals
Number, it is adjusted the transmission power of the radio-frequency power amplifier of the device is descending, does not include other languages until acquisition
The TDD noise signals of sound signal are the critical value of the audible signal of human ear, and the signal now surveyed is converted into frequency domain letter
Number, it is critical value to obtain range value of the frequency-region signal at 217Hz frequencies.
Voice signal and TDD noises when the audio signal reality is by conversing form, and voice signal is in 217Hz and its again
Frequency also has energy, and voice signal is typically smaller than the threshold value in the energy of the frequency corresponding to 217Hz and its frequency multiplication, when
Audio signal is when the energy of the frequency corresponding to 217Hz and its frequency multiplication is more than the threshold value, it is possible to proves that TDD be present makes an uproar
Sound, range value of the audio signal at 217Hz and its frequency multiplication is adjusted to less than the threshold value so that TDD noise signals
For the non-audible signal arrived of human ear, so as to eliminate TDD noises.
Specifically, it is f that the default L frequency, which is frequency,0Frequency to frequency be f0L times of frequency, by sentencing
Whether the range value of each frequency of the individual default frequencies of the L that breaks is more than predetermined threshold value B, it is possible to judges the audio letter
Number it whether there is TDD noises, specifically, L value can obtain according to actual conditions, the embodiment of the present invention is not limited this.
If the audio signal is in the range value A of default frequencyiMore than predetermined threshold value B, then illustrate the audio signal
In TDD noises be present, then the amplitude of frequency of the range value more than B in the L default frequencies is compressed, is compressed to and is less than
The threshold value, so as to eliminate TDD noises.
After elimination TDD noises, it is also necessary to the audio signal is converted into time-domain signal by inverse Fourier transform, and
Carry out the transmission of the audio signal.
Certainly, if the range value of the L default frequencies is both less than the threshold value, judge in the audio signal not
TDD noises be present, then the audio signal is converted into time-domain signal is transmitted.
The embodiments of the invention provide a kind of method of elimination TDD noises, passes through the audio signal for judging to receive or send
In frequency domain, whether frequency is more than predetermined threshold value for the range value at the frequency corresponding to 217Hz and its frequency multiplication, if being more than,
The frequency is compressed to less than the threshold value for the range value at the frequency corresponding to 217Hz and its frequency multiplication, so as to TDD
Noise is eliminated, avoid prior art by hardware eliminate TDD grass come debugging difficulty it is big, workload it is larger and
The problem of circuit complicated.
For solve prior art by hardware eliminate TDD grass come debugging difficulty it is big, workload is larger and circuit
The problem of complication, with reference to Fig. 2, the embodiment of the present invention additionally provides a kind of method of elimination TDD noises, and this method includes:
201st, when audio signal is in the range value A of default frequencyiDuring more than predetermined threshold value B, kA is obtainediK's during < B
Maximum, wherein, k=b/2a, 1≤b < 2, a are positive integer.
Specifically, the k values can be obtained by following process:
Range value of the audio signal in the L frequency is reduced into identical ratio under preset rules, found out
Maximum k values under the rule.For example, the preset rules be by the audio signal the L frequency range value
Reduce k=b/2aTimes, b is default fixed value, specifically, 1≤b < 2, a are variable, and a is natural number.A passs since 1
Increase, until the audio signal is all multiplied by b/2 in the range value of the L frequencyaInstitute is both less than after corresponding concrete numerical value
When stating predetermined threshold value, then b/2aCorresponding concrete numerical value is the k values to be obtained.
For example, b=1, when a be 1 or 2, i.e. b/2aFor 1/2 or 1/4 when, the audio signal is in the L frequency
Range value be multiplied by 1/2 or 1/4 still be both greater than the predetermined threshold value, when a be 3, i.e. b/2aFor 1/8 when, the audio signal
The predetermined threshold value is both less than when the range value of the L frequency is multiplied by 1/8, then 1/8 is the k values to be obtained.
It is of course also possible to find out frequency corresponding during range value maximum in the L frequency, judge the width of the frequency
Angle value is compressed to the maximum k values less than threshold value, and the k values are kAiThe maximum of k during < B.
202nd, by the audio signal the default frequency range value AiAdjust to AiK times.
The range value of the L frequency is all multiplied by k times so that the range value of the L frequency is both less than threshold value, from
And eliminate the TDD noises in the audio signal.
Further, from spectral characteristic theory analysis, with the increase of 217Hz frequencys multiplication, TDD noises are in 217 frequencys multiplication
Amplitude has the reduction of 2 multiple speed.Specifically, amplitude of the TDD noises in 217Hz is M, then in theory in 2 times of 217Hz
The amplitude of TDD noises at frequency is 1/2M ..., and the amplitude at frequency corresponding to n times of 217Hz is usually the 1/2 of Mn-1。
Then in order to reduce the destruction to the audio signal really degree, after getting the k values, if0Corresponding frequency
The range value of point is multiplied by c/2 respectively2-i* k, wherein, 1≤c < 2 are, it is necessary to explanation, the reason for c span so selects
Be in order to preferably remove TDD noises, such as at 217Hz frequencies, calculate k be 1/8 when can be by the range value at 217Hz frequencies
It is compressed to and is less than threshold value, but still close to threshold value after compressing, therefore can be by the range value boil down at 217Hz frequencies
Originally 1/10, that is, take 1≤c < 2.
For example, it is 1/8 when getting k values by step 202, and c/2*k=1/10, as i=1, by f0=
The range value boil down to of 217Hz frequency it is original 1/10, it is assumed that the range value of the TDD noises at 217Hz frequencies is M, voice
The range value of signal is A, then the range value after compressing is 1/10 (A+M), i.e., the TDD noises boil down at 217Hz frequencies is former
1/10 come, it is original 1/10 by the Speech Signal Compression at 217Hz frequencies.
At the frequency corresponding to 2 times of 217Hz, i=2, then c/22-i* k=1/5, i.e., by corresponding to 2 times of 217Hz
Range value boil down at frequency it is original 1/5, it is assumed that the voice signal range value at 2 times of 217Hz frequencies is B, TDD noises
For 1/2M, then the range value after compressing be 1/5 (1/2M+B)=1/10M+1/5B, i.e., by TDD noises boil down to originally 1/10,
It is identical with 217Hz frequencies, but voice signal but a boil down to it is original 1/5, ensure that the true of voice signal so as to relative
Solidity.
After TDD noises are eliminated, it is also necessary to the audio signal is converted into time-domain signal by inverse Fourier transform,
And carry out the transmission of the audio signal.
Certainly, if the range value of the L default frequencies is both less than the threshold value, judge in the audio signal not
TDD noises be present, then the audio signal is converted into time-domain signal is transmitted.
The embodiments of the invention provide a kind of method of elimination TDD noises, passes through the audio signal for judging to receive or send
In frequency domain, whether frequency is more than predetermined threshold value for the range value at the frequency corresponding to 217Hz and its frequency multiplication, if being more than,
The frequency is compressed to less than the threshold value for the range value at the frequency corresponding to 217Hz and its frequency multiplication, so as to TDD
Noise is eliminated, avoid prior art by hardware eliminate TDD grass come debugging difficulty it is big, workload it is larger and
The problem of circuit complicated.
For solve prior art by hardware eliminate TDD grass come debugging difficulty it is big, workload is larger and circuit
The problem of complication, with reference to Fig. 3, the embodiment of the present invention additionally provides a kind of device of elimination TDD noises, and the device includes:Adjust
Whole unit 301;
The adjustment unit 301, for when audio signal is in the range value A of default frequencyiDuring more than predetermined threshold value B,
By the audio signal the default frequency range value AiAdjust to less than the threshold value B, wherein, the audio signal
For frequency-region signal, the default frequency includes L frequency altogether, and the frequency of the L frequency is respectively if0, f0For 217Hz, 1≤i
≤L。
Specifically, the B is the frequency-region signal obtained on a preset condition based in frequency f0Corresponding range value, wherein,
The preparatory condition be the volume for the device for receiving or sending the audio signal is adjusted to it is minimum, and by adjusting described device
Radio-frequency power amplifier the critical value of signal heard for human ear of the transmission power signal that to obtain, and by the signal
Be converted to frequency-region signal.
Specifically, with reference to Fig. 3, the device also includes:Acquiring unit 302;
The acquiring unit 302, for obtaining kAiThe maximum of k during < B, wherein, k=b/2a, 1≤b < 2, a is just
Integer;
The adjustment unit 301 is specifically used for:By the audio signal the default frequency range value AiAdjust to Ai
K times.
Specifically, with reference to Fig. 3, the device also includes:Acquiring unit 302;
The acquiring unit 302, for obtaining kAiThe maximum of k during < B, wherein, k=b/2a, 1≤b < 2, a is just
Integer;
The adjustment unit 301 is specifically used for:By the audio signal the default frequency range value AiAdjust to Ai
C/22-i* k times, wherein, 1≤c < 2.
Specifically, the detail technical features of the embodiment of the present invention can be found in the embodiment of the method corresponding to Fig. 1 and Fig. 2,
The embodiment of the present invention repeats no more to this.
The embodiments of the invention provide a kind of device of elimination TDD noises, the device is received by judgement or the sound of transmission
For frequency signal in frequency domain, whether frequency is more than predetermined threshold value for the range value at the frequency corresponding to 217Hz and its frequency multiplication, if
It is more than, the frequency is compressed to less than the threshold value for the range value at the frequency corresponding to 217Hz and its frequency multiplication, so as to
TDD noises are eliminated, avoid prior art by hardware eliminate TDD grass come debugging difficulty it is big, workload compared with
The problem of big and circuit complicated.
For solve prior art by hardware eliminate TDD grass come debugging difficulty it is big, workload is larger and circuit
The problem of complication, with reference to Fig. 4, the embodiment of the present invention additionally provides a kind of device of elimination TDD noises, and the device includes:Place
Device 401, bus 402 and memory 403 are managed, wherein, the processor 401 obtains the memory 403 by the bus 402
In instruction, for:
When audio signal is in the range value A of default frequencyiDuring more than predetermined threshold value B, by the audio signal described
The range value A of default frequencyiAdjust to less than the threshold value B, wherein, the audio signal is frequency-region signal, described default
Frequency includes L frequency altogether, and the frequency of the L frequency is respectively if0, f0For 217Hz, 1≤i≤L.
Specifically, the B is the frequency-region signal obtained on a preset condition based in frequency f0Corresponding range value, wherein,
The preparatory condition be the volume for the device for receiving or sending the audio signal is adjusted to it is minimum, and by adjusting described device
Radio-frequency power amplifier the critical value of signal heard for human ear of the transmission power signal that to obtain, and by the signal
Be converted to frequency-region signal.
The processor 401 is specifically used for:
Obtain kAiThe maximum of k during < B, wherein, k=b/2a, 1≤b < 2, a are positive integer;
By the audio signal the default frequency range value AiAdjust to AiK times.
Optionally, the processor 401 is specifically used for:
Obtain kAiThe maximum of k during < B, wherein, k=b/2a, 1≤b < 2, a are positive integer;
By the audio signal the default frequency range value AiAdjust to AiC/22-i* k times, wherein, 1≤c <
2。
Specifically, the detail technical features of the embodiment of the present invention can be found in the embodiment of the method corresponding to Fig. 1 and Fig. 2,
The embodiment of the present invention repeats no more to this.
The embodiments of the invention provide a kind of device of elimination TDD noises, the device is received by judgement or the sound of transmission
For frequency signal in frequency domain, whether frequency is more than predetermined threshold value for the range value at the frequency corresponding to 217Hz and its frequency multiplication, if
It is more than, the frequency is compressed to less than the threshold value for the range value at the frequency corresponding to 217Hz and its frequency multiplication, so as to
TDD noises are eliminated, avoid prior art by hardware eliminate TDD grass come debugging difficulty it is big, workload compared with
The problem of big and circuit complicated.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.