Summary of the invention
Embodiments of the invention provide a kind of method and apparatus eliminating noise, solve prior art and eliminate that the debugging difficulty brought of TDD noise is big and the problem of circuit complicated.
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that
First aspect, embodiments provides a kind of method eliminating TDD noise, and the method includes:
When audio signal is at the range value A of default frequencyiDuring more than predetermined threshold value B, by the described audio signal range value A at described default frequencyiAdjusting to less than described threshold value B, wherein, described audio signal is frequency-region signal, and described default frequency includes L frequency, the frequency of described L frequency respectively if altogether0, f0For 217Hz, 1≤i≤L.
In the embodiment that the first is possible, in conjunction with first aspect, described B is that the frequency-region signal obtained on a preset condition based is at frequency f0Corresponding range value, wherein, described pre-conditioned be to receive or the volume of the device that sends described audio signal is adjusted to minimum, and made the marginal value that signal is the signal that human ear is heard obtained by the transmitting power of the radio-frequency power amplifier of the described device of adjustment, and convert the signals to frequency-region signal.
In the embodiment that the second is possible, in conjunction with first aspect or embodiment that the first is possible, the described range value A by described audio signal at described default frequencyiAdjust and specifically include to less than described threshold value B:
Obtain kAiThe maximum of k during < B, wherein, k=b/2a, 1≤b < 2, a is positive integer;
By the described audio signal range value A at described default frequencyiAdjust to AiK times.
In the embodiment that the third is possible, in conjunction with first aspect or embodiment that the first is possible, the described range value A by described audio signal at described default frequencyiAdjust and specifically include to less than described threshold value B:
Obtain kAiThe maximum of k during < B, wherein, k=b/2a, 1≤b < 2, a is positive integer;
By the described audio signal range value A at described default frequencyiAdjust to AiC/22-i* k times, wherein, 1≤c < 2.
Second aspect, embodiments provides a kind of device eliminating TDD noise, and this device includes: adjustment unit;
Described adjustment unit, for when audio signal is at the range value A of default frequencyiDuring more than predetermined threshold value B, by the described audio signal range value A at described default frequencyiAdjusting to less than described threshold value B, wherein, described audio signal is frequency-region signal, and described default frequency includes L frequency, the frequency of described L frequency respectively if altogether0, f0For 217Hz, 1≤i≤L.
In the embodiment that the first is possible, in conjunction with second aspect, described B is that the frequency-region signal obtained on a preset condition based is at frequency f0Corresponding range value, wherein, described pre-conditioned be to receive or the volume of the device that sends described audio signal is adjusted to minimum, and made the marginal value that signal is the signal that human ear is heard obtained by the transmitting power of the radio-frequency power amplifier of the described device of adjustment, and convert the signals to frequency-region signal.
In the embodiment that the second is possible, in conjunction with second aspect or embodiment that the first is possible, this device also includes: acquiring unit;
Described acquiring unit, is used for obtaining kAiThe maximum of k during < B, wherein, k=b/2a, 1≤b < 2, a is positive integer;
Described adjustment unit specifically for: by the described audio signal range value A at described default frequencyiAdjust to AiK times.
In the embodiment that the third is possible, in conjunction with second aspect or embodiment that the first is possible, this device also includes: acquiring unit;
Described acquiring unit, is used for obtaining kAiThe maximum of k during < B, wherein, k=b/2a, 1≤b < 2, a is positive integer;
Described adjustment unit specifically for: by the described audio signal range value A at described default frequencyiAdjust to AiC/22-i* k times, wherein, 1≤c < 2.
Embodiments provide a kind of method and apparatus eliminating TDD noise, by judging that the audio signal receiving or sending is when frequency domain, frequency is whether the range value at the frequency place corresponding to 217Hz and frequency multiplication thereof is more than predetermined threshold value, if more than, the range value that described frequency is frequency place corresponding to 217Hz and frequency multiplication thereof is compressed to less than described threshold value, thus TDD noise is eliminated, avoiding prior art, to eliminate the debugging difficulty brought of TDD noise by hardware big, and workload is relatively big and the problem of circuit complicated.
Detailed description of the invention
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, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
In order to solve prior art, to eliminate the debugging difficulty brought of TDD noise by hardware big, and workload relatively greatly and the problem of circuit complicated, in conjunction with Fig. 1, embodiments provides a kind of method eliminating TDD noise, and the method includes:
101, when audio signal is at the range value A of default frequencyiDuring more than predetermined threshold value B, by the described audio signal range value A at described default frequencyiAdjusting to less than described threshold value B, wherein, described audio signal is frequency-region signal, and described default frequency includes L frequency, the frequency of described L frequency respectively if altogether0, f0For 217Hz, 1≤i≤L.
Concrete, described audio signal can be up audio signal, the audio signal that namely mobile phone sends, it is also possible to be descending audio signal, the audio signal that namely mobile phone receives.Described audio signal is carried out fast Fourier transform, it is thus achieved that the frequency-region signal of described audio signal.
The principle produced by TDD noise can obtain, if there is TDD noise in described audio signal, then described TDD noise profile is f in frequency0Frequency corresponding to=217Hz and frequency multiplication thereof.Theoretically, when there is TDD noise, f0The signal amplitude of the frequency corresponding to=217Hz is maximum, secondly at f0Frequency multiplication, such as 2f0, 3f0…nf0Amplitude reduce successively, but still higher than amplitude at other frequency places.
That is, f0And f0The frequency corresponding to frequency multiplication, it it is the frequency concentrated the most of TDD noise energy, if the signal intensity at these frequency places is more than predetermined threshold value B, then may determine that described audio signal exists TDD noise, if the signal intensity at these frequency places is less than predetermined threshold value, then judge described audio signal is absent from TDD noise.
Described B is that the frequency-region signal obtained on a preset condition based is at f0The range value of corresponding frequency, wherein, described pre-conditioned be to receive or the volume of the device that sends described audio signal is adjusted to minimum, and made the marginal value that signal is the signal that human ear is heard obtained by the transmitting power of the radio-frequency power amplifier of the described device of adjustment, and convert the signals to frequency-region signal.
It should be noted that, upward signal and downstream signal all can be produced TDD noise by the mobile phone of GSM standard, for example, user 1 uses the mobile phone of GSM standard, user 2 uses the mobile phone of other standards, when user 1 and user 2 converse, the signal heard with 1 signal heard and user 2 all can comprise the radio-frequency power amplifier work of the mobile phone due to user 1 and the TDD noise signal that produces.
Concrete, when obtaining described B, can by the mobile phone of GSM standard, mobile phone volume such as user 1 is adjusted to minimum, and the radio-frequency power amplifier of this mobile phone is set to maximum transmission power, obtain the signal that now this GSM standard mobile phone sends, judge whether this signal is the audible signal of human ear, if, adjust the radio-frequency power amplifier of the mobile phone of this GSM standard, until the marginal value that measured signal is the audible signal of human ear obtained, this measured signal is converted to frequency-region signal, and using the range value at 217Hz frequency place as described threshold value B.
The reason so arranging threshold value is, the size of the TDD noise produced when the mobile phone of GSM standard is unrelated with other audio signals, and when the radio-frequency power amplifier of the mobile phone of GSM standard is in maximum transmission power, the TDD noise of generation is maximum.Therefore, when the volume producing the device of TDD noise is adjusted to minimum, the signal obtained is the TDD signal not comprising other voice signals, it is adjusted descending for the transmitting power of the radio-frequency power amplifier of this device, until the marginal value that TDD noise signal is the audible signal of human ear not comprising other voice signals obtained, the signal now surveyed is converted to frequency-region signal, obtains this frequency-region signal range value at 217Hz frequency place and be marginal value.
Described audio signal reality is made up of voice signal when conversing and TDD noise, voice signal also has energy at 217Hz and frequency multiplication thereof, and voice signal is typically smaller than described threshold value at the energy of the frequency corresponding to 217Hz and frequency multiplication thereof, when audio signal is when the energy of the frequency corresponding to 217Hz and frequency multiplication thereof is more than described threshold value, just may certify that there is TDD noise, this audio signal is adjusted to less than described threshold value at the range value of 217Hz and frequency multiplication place thereof, making TDD noise signal is the non-audible signal arrived of human ear, thus eliminating TDD noise.
Concrete, it is f that described L default frequency is frequency0Frequency to frequency be f0The frequency of L times, by judging that whether the range value of each frequency of described L the frequency preset is more than predetermined threshold value B, it is possible to judge whether described audio signal exists TDD noise, concrete, the value of L can obtain according to practical situation, and this is not limited by the embodiment of the present invention.
If described audio signal is at the range value A of default frequencyiMore than predetermined threshold value B, then illustrate described audio signal exists TDD noise, then the amplitude of the range value frequency more than B in described L default frequency being compressed, being compressed to less than described threshold value, thus eliminating TDD noise.
After eliminating TDD noise, in addition it is also necessary to described audio signal is converted to time-domain signal by inverse Fourier transform, and carries out the transmission of described audio signal.
Certainly, if the range value of described L default frequency is both less than described threshold value, then judges described audio signal is absent from TDD noise, then described audio signal is converted to time-domain signal and is transmitted.
Embodiments provide a kind of method eliminating TDD noise, by judging that the audio signal receiving or sending is when frequency domain, frequency is whether the range value at the frequency place corresponding to 217Hz and frequency multiplication thereof is more than predetermined threshold value, if more than, the range value that described frequency is frequency place corresponding to 217Hz and frequency multiplication thereof is compressed to less than described threshold value, thus TDD noise is eliminated, avoiding prior art, to eliminate the debugging difficulty brought of TDD noise by hardware big, and workload is relatively big and the problem of circuit complicated.
In order to solve prior art, to eliminate the debugging difficulty brought of TDD noise by hardware big, and relatively greatly and the problem of circuit complicated, in conjunction with Fig. 2, the embodiment of the present invention additionally provides a kind of method eliminating TDD noise to workload, and the method includes:
201, when audio signal is at the range value A of default frequencyiDuring more than predetermined threshold value B, obtain kAiThe maximum of k during < B, wherein, k=b/2a, 1≤b < 2, a is positive integer.
Concrete, described k value can be obtained by following process:
Under preset rules, described audio signal is reduced identical ratio at the range value of described L frequency, find out k value maximum under this rule.For example, described preset rules is that at the range value of described L frequency, described audio signal is reduced k=b/2aTimes, b is default fixed value, concrete, and 1≤b < 2, a is variable, and a is natural number.A starts to be incremented by from 1, until described audio signal is all multiplied by b/2 at the range value of described L frequencyaWhen being both less than described predetermined threshold value after corresponding concrete numerical value, then b/2aCorresponding concrete numerical value is the k value to obtain.
For example, b=1, when a is 1 or 2, i.e. b/2aWhen being 1/2 or 1/4, described audio signal is multiplied by 1/2 or 1/4 at the range value of described L frequency and both still is greater than described predetermined threshold value, when a is 3, i.e. and b/2aWhen being 1/8, described audio signal is both less than described predetermined threshold value when the range value of described L frequency is multiplied by 1/8, then 1/8 be the k value to obtain.
It is of course also possible to find out the frequency that in described L frequency, range value is corresponding time maximum, it is judged that the range value of this frequency is compressed to the maximum k value less than threshold value, and this k value is kAiThe maximum of k during < B.
202, by the described audio signal range value A at described default frequencyiAdjust to AiK times.
The range value of described L frequency is all multiplied by k times so that the range value of described L frequency is both less than threshold value, thus the TDD noise eliminated in described audio signal.
Further, from spectral characteristic theory analysis, along with the increase of 217Hz frequency multiplication, TDD noise amplitude in 217 frequencys multiplication has the reduction of the multiple speed of 2.Concrete, TDD noise is M in the amplitude of 217Hz, then amplitude at the TDD noise at the 217Hz frequency place of 2 times is 1/2M in theory ..., the amplitude at the frequency place corresponding to the 217Hz of n times is generally the 1/2 of Mn-1。
Then in order to reduce the destruction to described audio signal really degree, after getting described k value, if0The range value of corresponding frequency is multiplied by c/2 respectively2-i* k, wherein, 1≤c < 2, it should be noted that the reason that the span of c so selects is to better remove TDD noise, as at 217Hz frequency place, calculate the range value at 217Hz frequency place just can be compressed to less than threshold value when being 1/8 by k, but still close to threshold value after compression, therefore by original for the range value boil down at 217Hz frequency place 1/10, can namely take 1≤c < 2.
For example, it is 1/8 when getting k value by step 202, and c/2*k=1/10, as i=1, by f0The range value boil down to of the frequency of=217Hz original 1/10, the range value assuming the TDD noise at 217Hz frequency place is M, the range value of voice signal is A, then the range value after compression is 1/10 (A+M), by the TDD noise boil down at 217Hz frequency place original 1/10, be original 1/10 by the Speech Signal Compression at 217Hz frequency place.
At the frequency place corresponding to the 217Hz of 2 times, i=2, then c/22-i* k=1/5, by the range value boil down at the frequency place corresponding to the 217Hz of 2 times original 1/5, the voice signal range value assuming the 217Hz frequency place of 2 times is B, TDD noise is 1/2M, then compression after range value be 1/5 (1/2M+B)=1/10M+1/5B, by TDD noise boil down to original 1/10, identical with 217Hz frequency place, but a voice signal but boil down to original 1/5, thus relatively ensure that the validity of voice signal.
After eliminating TDD noise, in addition it is also necessary to described audio signal is converted to time-domain signal by inverse Fourier transform, and carries out the transmission of described audio signal.
Certainly, if the range value of described L default frequency is both less than described threshold value, then judges described audio signal is absent from TDD noise, then described audio signal is converted to time-domain signal and is transmitted.
Embodiments provide a kind of method eliminating TDD noise, by judging that the audio signal receiving or sending is when frequency domain, frequency is whether the range value at the frequency place corresponding to 217Hz and frequency multiplication thereof is more than predetermined threshold value, if more than, the range value that described frequency is frequency place corresponding to 217Hz and frequency multiplication thereof is compressed to less than described threshold value, thus TDD noise is eliminated, avoiding prior art, to eliminate the debugging difficulty brought of TDD noise by hardware big, and workload is relatively big and the problem of circuit complicated.
In order to solve prior art, to eliminate the debugging difficulty brought of TDD noise by hardware big, and relatively greatly and the problem of circuit complicated, in conjunction with Fig. 3, the embodiment of the present invention additionally provides a kind of device eliminating TDD noise to workload, and this device includes: adjustment unit 301;
Described adjustment unit 301, for when audio signal is at the range value A of default frequencyiDuring more than predetermined threshold value B, by the described audio signal range value A at described default frequencyiAdjusting to less than described threshold value B, wherein, described audio signal is frequency-region signal, and described default frequency includes L frequency, the frequency of described L frequency respectively if altogether0, f0For 217Hz, 1≤i≤L.
Concrete, described B is that the frequency-region signal obtained on a preset condition based is at frequency f0Corresponding range value, wherein, described pre-conditioned be to receive or the volume of the device that sends described audio signal is adjusted to minimum, and made the marginal value that signal is the signal that human ear is heard obtained by the transmitting power of the radio-frequency power amplifier of the described device of adjustment, and convert the signals to frequency-region signal.
Concrete, in conjunction with Fig. 3, this device also includes: acquiring unit 302;
Described acquiring unit 302, is used for obtaining kAiThe maximum of k during < B, wherein, k=b/2a, 1≤b < 2, a is positive integer;
Described adjustment unit 301 specifically for: by the described audio signal range value A at described default frequencyiAdjust to AiK times.
Concrete, in conjunction with Fig. 3, this device also includes: acquiring unit 302;
Described acquiring unit 302, is used for obtaining kAiThe maximum of k during < B, wherein, k=b/2a, 1≤b < 2, a is positive integer;
Described adjustment unit 301 specifically for: by the described audio signal range value A at described default frequencyiAdjust to AiC/22-i* k times, wherein, 1≤c < 2.
Concrete, the detail technical features of the embodiment of the present invention can referring to the embodiment of the method corresponding to Fig. 1 and Fig. 2, and this is repeated no more by the embodiment of the present invention.
Embodiments provide a kind of device eliminating TDD noise, this device is by judging that the audio signal receiving or sending is when frequency domain, frequency is whether the range value at the frequency place corresponding to 217Hz and frequency multiplication thereof is more than predetermined threshold value, if more than, the range value that described frequency is frequency place corresponding to 217Hz and frequency multiplication thereof is compressed to less than described threshold value, thus TDD noise is eliminated, avoiding prior art, to eliminate the debugging difficulty brought of TDD noise by hardware big, and workload is relatively big and the problem of circuit complicated.
The debugging difficulty brought by hardware elimination TDD noise for solution prior art is big, workload is relatively big and the problem of circuit complicated, in conjunction with Fig. 4, the embodiment of the present invention additionally provides a kind of device eliminating TDD noise, this device includes: processor 401, bus 402 and memorizer 403, wherein, described processor 401 obtains the instruction in described memorizer 403 by described bus 402, for:
When audio signal is at the range value A of default frequencyiDuring more than predetermined threshold value B, by the described audio signal range value A at described default frequencyiAdjusting to less than described threshold value B, wherein, described audio signal is frequency-region signal, and described default frequency includes L frequency, the frequency of described L frequency respectively if altogether0, f0For 217Hz, 1≤i≤L.
Concrete, described B is that the frequency-region signal obtained on a preset condition based is at frequency f0Corresponding range value, wherein, described pre-conditioned be to receive or the volume of the device that sends described audio signal is adjusted to minimum, and made the marginal value that signal is the signal that human ear is heard obtained by the transmitting power of the radio-frequency power amplifier of the described device of adjustment, and convert the signals to frequency-region signal.
Described processor 401 specifically for:
Obtain kAiThe maximum of k during < B, wherein, k=b/2a, 1≤b < 2, a is positive integer;
By the described audio signal range value A at described default frequencyiAdjust to AiK times.
Optionally, described processor 401 specifically for:
Obtain kAiThe maximum of k during < B, wherein, k=b/2a, 1≤b < 2, a is positive integer;
By the described audio signal range value A at described default frequencyiAdjust to AiC/22-i* k times, wherein, 1≤c < 2.
Concrete, the detail technical features of the embodiment of the present invention can referring to the embodiment of the method corresponding to Fig. 1 and Fig. 2, and this is repeated no more by the embodiment of the present invention.
Embodiments provide a kind of device eliminating TDD noise, this device is by judging that the audio signal receiving or sending is when frequency domain, frequency is whether the range value at the frequency place corresponding to 217Hz and frequency multiplication thereof is more than predetermined threshold value, if more than, the range value that described frequency is frequency place corresponding to 217Hz and frequency multiplication thereof is compressed to less than described threshold value, thus TDD noise is eliminated, avoiding prior art, to eliminate the debugging difficulty brought of TDD noise by hardware big, and workload is relatively big and the problem of circuit complicated.
The above; being only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; change can be readily occurred in or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with described scope of the claims.