CN106303119A - Echo cancel method in a kind of communication process and mobile terminal - Google Patents

Echo cancel method in a kind of communication process and mobile terminal Download PDF

Info

Publication number
CN106303119A
CN106303119A CN201610851966.5A CN201610851966A CN106303119A CN 106303119 A CN106303119 A CN 106303119A CN 201610851966 A CN201610851966 A CN 201610851966A CN 106303119 A CN106303119 A CN 106303119A
Authority
CN
China
Prior art keywords
signal
echo
section
downstream
preset duration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610851966.5A
Other languages
Chinese (zh)
Inventor
胡金铃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610851966.5A priority Critical patent/CN106303119A/en
Publication of CN106303119A publication Critical patent/CN106303119A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M9/00Arrangements for interconnection not involving centralised switching
    • H04M9/08Two-way loud-speaking telephone systems with means for conditioning the signal, e.g. for suppressing echoes for one or both directions of traffic
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • G10L2021/02082Noise filtering the noise being echo, reverberation of the speech

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Quality & Reliability (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

The present invention provides the echo cancel method in a kind of communication process, belongs to mobile communication technology field, including: by obtaining upward signal and the downstream signal of the first preset duration in talk line;Upward signal based on described first preset duration and downstream signal, determine the time delay of echo signal in the downstream signal of described first preset duration;The upward signal of described first preset duration is carried out the time delay of the durations such as time delay with described echo signal;Upward signal based on described first preset duration after time delay, carries out echo signal Processing for removing to the downstream signal of described first preset duration.By method disclosed by the invention, solve owing to equipment individuality hardware anomalies or operation exception cause the echo produced in communication process thoroughly not eliminate in prior art, the problem having a strong impact on speech quality.By making reference with upward signal, downstream signal being carried out echo judgement and elimination, effectively adapt to the hardware differences that communication apparatus is individual, echo cancellor is more thorough.

Description

Echo cancel method in a kind of communication process and mobile terminal
Technical field
The present invention relates to mobile communication technology field, particularly relate to the echo cancel method in a kind of communication process and shifting Dynamic terminal.
Background technology
During using the communication apparatus such as mobile terminal or landline telephone to converse, echo often occurs.I.e. when When device A and equipment B converse, device A can hear oneself what is said or talked about sound from the receiver end of oneself a moment later.Prior art In, there is a lot of solution for the echo problem in communication process, such as: in a communication network up channel is carried out echo Processing for removing, in communication apparatus, carry out echo cancellation process by the circuit design changing earphone and microphone.But, existing skill Echo processing method in art can only eliminate to a certain extent the echo caused due to the common problem of communication apparatus and by In the echo that Data Transport Protocol causes, can not thoroughly eliminate owing to equipment individuality hardware anomalies or operation exception cause logical The echo produced during words.Such as, when the other side uses hand-free call mode, may cause descending owing to MIC sealing is poor Ascending voice signal is returned by communication channel again, echogenicity.
Visible, echo cancel method of the prior art is for causing due to equipment individuality hardware anomalies or operation exception The echo produced in communication process can not thoroughly eliminate, and has a strong impact on speech quality.
Summary of the invention
The present invention provides the echo cancel method in a kind of communication process and mobile terminal, solves in prior art owing to setting Standby individual hardware anomalies or operation exception cause the echo produced in communication process thoroughly not eliminate, and have a strong impact on call matter The problem of amount.
First aspect, embodiments provides the echo cancel method in a kind of communication process, including:
Obtain upward signal and the downstream signal of the first preset duration in talk line;
Upward signal based on described first preset duration and downstream signal, determine the descending letter of described first preset duration The time delay of echo signal in number;
The upward signal of described first preset duration is carried out the time delay of the durations such as time delay with described echo signal;
Upward signal based on described first preset duration after time delay, enters the downstream signal of described first preset duration Row echo signal Processing for removing.
Second aspect, the embodiment of the present invention additionally provides a kind of mobile terminal, including
Signal acquisition module, for obtaining upward signal and the downstream signal of the first preset duration in talk line;
Echo delay time determines module, the upward signal of the first preset duration for obtaining based on described signal acquisition module And downstream signal, determine the time delay of echo signal in the downstream signal of described first preset duration;
Time delay module, for carrying out determining that module is true with described echo delay time by the upward signal of described first preset duration The time delay of the durations such as the time delay of fixed echo signal;
Echo cancellation module, for upward signal based on described first preset duration after described time delay module time delay, The downstream signal of described first preset duration is carried out echo signal Processing for removing.
Echo cancel method in communication process disclosed in the embodiment of the present invention, presets by acquisition talk line first The upward signal of duration and downstream signal;Upward signal based on described first preset duration and downstream signal, determine described The time delay of echo signal in the downstream signal of one preset duration;The upward signal of described first preset duration is carried out and described time The time delay of the durations such as the time delay of acoustical signal;Upward signal based on described first preset duration after time delay, to described first pre- If the downstream signal of duration carries out echo signal Processing for removing, solve in prior art due to equipment individuality hardware anomalies or behaviour Make the abnormal echo causing producing in communication process can not thoroughly eliminate, the problem having a strong impact on speech quality.More than by Row signal makes reference, and downstream signal is carried out echo judgement and elimination, effectively adapts to the hardware differences that communication apparatus is individual, returns Sound eliminates more thorough.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be to required in embodiments of the invention The accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only some embodiments of the present invention, right From the point of view of those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain according to these accompanying drawings Other accompanying drawing.
Fig. 1 is the echo cancel method flow chart in the communication process of the embodiment of the present invention one;
Fig. 2 is the echo cancel method flow chart in the communication process of the embodiment of the present invention two;
Fig. 3 is that the Frequency spectrum ratio of the embodiment of the present invention two is to flow chart;
Fig. 4 is the structure chart of the mobile terminal of the embodiment of the present invention three;
Fig. 5 is the structure chart of one module of mobile terminal of the embodiment of the present invention three;
Fig. 6 is the structure chart of another module of mobile terminal of the embodiment of the present invention three;
Fig. 7 is the mobile terminal structure figure of the embodiment of the present invention four;
Fig. 8 is the mobile terminal structure figure of the embodiment of the present invention five.
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 carried out clear, complete Describe, it is clear that described embodiment is a part of embodiment of the present invention rather than whole embodiments wholely.Based on this Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under not making creative work premise Example, broadly falls into the scope of protection of the invention.
Embodiment one:
Present embodiments provide the echo cancel method in a kind of communication process, as it is shown in figure 1, the method includes: step 100 to step 130.
Step 100, obtains upward signal and the downstream signal of the first preset duration in talk line.
In communication process, echo signal is that in talk line, upward signal is through after a period of time, in downstream signal The signal returned.Accordingly, it would be desirable to take upward signal for as judging that the reference whether having echo signal in downstream signal is believed Number, meanwhile, it is additionally operable to the reference signal as the echo signal eliminated in downstream signal.Echo signal in downstream signal is entered When row judges and eliminates, in order to improve real-time and accuracy, downstream signal is detected and processes by usual time segment.Cause This, it is necessary first to from caching upward signal in real time and downstream signal, obtain the upward signal of the first preset duration in talk line And downstream signal.Described first preset duration determines according to the processing speed of mobile terminal and the time delay of communication network, needs big Time delay in communication network.The most described first preset duration can be with value 1 second to 10 seconds.
Step 110, upward signal based on described first preset duration and downstream signal, determine described first preset duration Downstream signal in the time delay of echo signal.
The signal of user's local mobile terminal, after communication network sends, moves through time delay, the opposite end of 2 networks Dynamic terminal is transferred to the transmission of opposite end mobile terminal mike and prolongs after downstream signal processes time delay, the broadcasting of descending playback equipment Time, the up process time delay etc. of opposite end mobile terminal.Therefore, ceaselessly the prolonging of echo signal in the downstream signal in communication process Time be uncertain, need to calculate in real time.
Step 120, carries out the durations such as time delay with described echo signal by the upward signal of described first preset duration Time delay.
Such as, if the time delay of echo signal was equal to 5 seconds in the described downstream signal determined in step 110, then by described the The upward signal time delay of one preset duration 5 seconds.
Step 130, upward signal based on described first preset duration after time delay, under described first preset duration Row signal carries out echo signal Processing for removing.
The upward signal of described first preset duration is carried out the time delay of the durations such as time delay with described echo signal, quite In the upward signal of described first preset duration and the downstream signal of described first preset duration are carried out same based on echo signal Step.Echo signal skew in the downstream signal of described first preset duration, the original sound corresponding equal to described echo signal Skew in the upward signal of tone signal described first preset duration after the delay.Up letter by described first preset duration After number carrying out the time delay of the durations such as time delay with described echo signal, by the up letter of described first preset duration after time delay Number as eliminate echo signal reference signal.Utilize reference signal that downstream signal is amplified, then carry out negative gain, support Disappear the echo signal in downstream signal.
Echo cancel method in communication process disclosed in the embodiment of the present invention, presets by acquisition talk line first The upward signal of duration and downstream signal;Upward signal based on described first preset duration and downstream signal, determine described The time delay of echo signal in the downstream signal of one preset duration;The upward signal of described first preset duration is carried out and described time The time delay of the durations such as the time delay of acoustical signal;Upward signal based on described first preset duration after time delay, to described first pre- If the downstream signal of duration carries out echo signal Processing for removing, solve in prior art due to equipment individuality hardware anomalies or behaviour Make the abnormal echo causing producing in communication process can not thoroughly eliminate, the problem having a strong impact on speech quality.More than by Row signal makes reference, and downstream signal is carried out echo judgement and elimination, effectively adapts to the hardware differences that communication apparatus is individual, returns Sound eliminates more thorough.
Embodiment two:
Seeing Fig. 2, present embodiments provide the echo cancel method in a kind of communication process, the method includes: step 200 To step 250.
Step 200, the upward signal in caching communication process and downstream signal.
In communication process, upward signal and downstream signal in caching talk line in real time, upward signal is for as sentencing Whether disconnected downstream signal has the reference signal of echo signal, is additionally operable to as the echo signal eliminated in downstream signal meanwhile Reference signal.Generally, upward signal select to be amplified through mobile terminal, echo suppression, noise suppressed, Filtering Processing etc. Signal afterwards;Downstream signal is the signal inputted before speaker.When being embodied as, buffer can be set and obtain in real time Upward signal and downstream signal, row cache of going forward side by side.
Step 210, obtains upward signal and the downstream signal of the first preset duration in talk line.
Obtain the upward signal of the first preset duration and the concrete grammar of downstream signal in talk line and see embodiment one In correlation step, here is omitted.
Step 220, upward signal based on described first preset duration and downstream signal, determine described first preset duration Downstream signal in the time delay of echo signal.
In embodiments of the invention, by the upward signal of described first preset duration obtained and described first are preset The downstream signal of duration carries out fragmented spectrum comparison, determine echo signal in the downstream signal of described first preset duration time Prolong.
Upward signal based on described first preset duration and downstream signal, determine the descending letter of described first preset duration The time delay of echo signal in number, including: upward signal and the downstream signal of described first preset duration are respectively divided into up Signal sequence and downstream signal sequence;Wherein, described upward signal sequence includes that multiple sequencing according to signal stream arranges The second preset duration upward signal section, described downstream signal sequence include that multiple sequencing according to signal stream arranges the Two preset duration downstream signal sections;Described upward signal section and described downstream signal section are carried out Frequency spectrum ratio pair piecemeal, determine with The continuous downstream signal section of the predetermined number that the described upward signal section of front predetermined number is corresponding;Determine described downstream signal sequence Described in predetermined number continuous downstream signal section before the duration sum of all downstream signal sections, as described downstream signal The time delay of middle echo signal.
When being embodied as, first, upward signal and the downstream signal of described first preset duration are respectively divided into up Signal sequence and downstream signal sequence;Wherein, described upward signal sequence includes that multiple sequencing according to signal stream arranges The second preset duration upward signal section, described downstream signal sequence include that multiple sequencing according to signal stream arranges the Two preset duration downstream signal sections.By suitable according to the priority of signal stream to upward signal and the downstream signal of described first preset duration Sequence order the most respectively is divided into the upward signal section of multiple second preset duration and the descending of multiple second preset duration Signal segment, the upward signal section of the plurality of second preset duration constitutes upward signal sequence, and the plurality of second when presetting Long downstream signal section constitutes downstream signal sequence.Described first preset duration is more than described second preset duration.The present invention In embodiment, as a example by the first preset duration is 5 seconds, it is assumed that the second preset duration is 50ms (millisecond), first by acquisition The Shi Changwei upward signal of 5 seconds is divided into 100 upward signals according to the sequencing order the most respectively of signal stream Section, by acquisition time a length of 5 seconds downstream signal according to signal stream sequencing the most respectively order be divided into 100 Individual downstream signal section.Each signal segment can arrange corresponding sequence number and be identified, and such as 1,2 ..., each signal segment is all right Being identified by unique timestamp, such as, the timestamp of first upward signal section and first downstream signal section is 0ms, the timestamp of second upward signal section and second downstream signal section is 50ms.The timestamp of each signal segment is equal to The duration sum of all signal segments before this signal segment, the i.e. timestamp of each signal segment are equal to the institute before this signal segment There are the quantity of signal segment and the product of described second preset duration.That is, as a example by n-th downstream signal section, before it, there is N-1 Signal segment, the second preset duration is T, then the timestamp of n-th downstream signal section is (N-1) × T.
Then, according to the putting in order, the most successively of each signal segment in upward signal sequence and downstream signal sequence Described downstream signal section and described upward signal section are carried out Frequency spectrum ratio pair piecemeal, determines that front predetermined number upward signal section is corresponding Downstream signal section
Described described upward signal section and described downstream signal section are carried out Frequency spectrum ratio pair piecemeal, determine and front predetermined number The continuous downstream signal section of predetermined number corresponding to described upward signal section, including: using first downstream signal section as working as Front descending signal segment;Current downlink signal segment and first upward signal section are carried out Frequency spectrum ratio pair;If frequency spectrum is identical, then mate Quantity adds 1, continues later downstream signal section and later upward signal section are carried out Frequency spectrum ratio pair, until number of matches is equal to Predetermined number;If frequency spectrum is different, then number of matches resets, and jumps to enter current downlink signal segment and first upward signal section The step of line frequency spectrum comparison, repeats Frequency spectrum ratio pair.
Below as a example by the upward signal of the first preset duration and downstream signal are each divided into M section, explanation is by described Downstream signal section and described upward signal section carry out the process of Frequency spectrum ratio pair piecemeal.Wherein, M is positive integer more than N, M and N. When being embodied as, upward signal can be divided M the signal segment obtained and be expressed as according to the sequencing of signal stream: 1st upward signal section, the 2nd upward signal section ..., n-th upward signal section ..., m-th upward signal section;Will Downstream signal is divided M the signal segment obtained and is expressed as according to the sequencing of signal stream: the 1st downstream signal section, 1st downstream signal section ..., n-th upward signal section ..., m-th downstream signal section.The sequence number of signal segment is the least, should The time of the signal stream that signal segment is corresponding, the most early the timestamp of this signal segment was the least.See Fig. 3, corresponding according to each signal segment Sequence number, carries out Frequency spectrum ratio pair piecemeal by described downstream signal section and described upward signal section the most successively, presets before determining Downstream signal section corresponding to quantity upward signal section includes: step 2201 to step 2208.
Step 2201, using first downstream signal section as current downlink signal segment.
From the beginning of the 1st downstream signal, successively 1 upward signal section of each downstream signal Duan Yu is carried out Frequency spectrum ratio pair. Frequency spectrum ratio at the beginning of, current downlink signal segment is first downstream signal section.
Step 2202, carries out Frequency spectrum ratio pair by current downlink signal segment and first upward signal section.
Being when upward signal section does Frequency spectrum ratio pair, first with the first upward signal section carries out Frequency spectrum ratio pair.With After one upward signal section frequency spectrum is identical, just carry out the comparison successively of the most each upward signal section.When being embodied as, pass through FFT (fast Fourier transform), obtains the frequency-region signal of to be compared the 1st downstream signal section, and the frequency of the 1st upward signal Then two groups of frequency-region signals, are carried out Frequency spectrum ratio pair by territory signal.
Step 2203, it is judged that current downlink signal segment, the most identical with first upward signal section frequency spectrum, if identical, then Perform step 2204;Otherwise perform step 2208.
When the matching degree of two groups of frequency-region signals exceed preset matching spend time, such as 80%, it is believed that the 1st downstream signal section Identical with the frequency spectrum of the 1st upward signal section, continue executing with step 2204.Otherwise it is assumed that the 1st downstream signal section and the 1st Upward signal section two segment signal section frequency spectrum is different, jumps to step 2208, continues comparison later downstream signal section.
Step 2204, number of matches adds 1.
Number of matches is used for the quantity of the signal segment representing that continuous print frequency spectrum is identical.
Step 2205, it may be judged whether meet and stop matching condition, the most then mated;Otherwise, step 2206 is performed.
The condition stopping coupling can be that number of matches is more than or equal to described predetermined number, or last descending letter Number section is the most matched completes.When number of matches is more than or equal to described predetermined number, represents and have determined that downstream signal section In comprise the sequence number of downstream signal section of echo signal.If number of matches is not reaching to predetermined number threshold value, and still has non-comparison Downstream signal section, then continue comparison next signal section.
When the second preset duration long enough, such as 500ms, it is believed that if the frequency spectrum of some downstream signal section and the 1st The frequency spectrum of individual upward signal section is identical, i.e. can determine that in this downstream signal section and comprises echo signal.The most described predetermined number is 1. Now, the timestamp of this downstream signal section be exactly described first preset duration downstream signal in the time delay of echo signal.
In order to improve the accuracy that echo signal judges, it is comparatively short that the second preset duration is generally arranged, it is preferred that when even When the frequency spectrum of continuous predetermined number downstream signal section is identical with the frequency spectrum of continuous predetermined number upward signal section, it is believed that described company Continuous predetermined number downstream signal section comprises echo signal, if predetermined number is equal to 5.
If predetermined number downstream signal section is identical with continuous predetermined number upward signal section frequency spectrum continuously, then it is assumed that institute State in continuous predetermined number downstream signal section and comprise echo signal.Obtain if the downstream signal of described first preset duration divides M downstream signal section in be not present in the identical continuous predetermined number of continuous predetermined number upward signal section frequency spectrum descending Signal segment, it is determined that do not comprise echo signal in the downstream signal of described first preset duration.
Finally, using the timestamp of the described downstream signal section corresponding with first upward signal section as described downstream signal The time delay of middle echo signal.
Step 2206, using later downstream signal section as current downlink signal segment, is carried out with later upward signal section Frequency spectrum ratio pair.
After the frequency spectrum of n-th 1 upward signal section of downstream signal Duan Yu is identical, number of matches is added 1, then proceedes to Later (i.e. N+1) downstream signal section is carried out Frequency spectrum ratio pair with later (i.e. the 2nd) upward signal section, until meeting Stop matching condition, if number of matches is equal to predetermined number, predetermined number downstream signal section and continuous predetermined number i.e. continuously Individual upward signal section frequency spectrum is identical.
Step 2207, it is judged that current downlink signal segment, the most identical with current upward signal section frequency spectrum, if identical, then hold Row step 2204;Otherwise perform step 2208.
Judging that the method that the frequency spectrum of two signal segments is the most identical sees step 2202, here is omitted.If when front lower Row signal segment is different with upward signal section frequency spectrum, then the quantity of the signal segment that explanation continuous frequency spectrum is identical is unsatisfactory for pre-conditioned, The downstream signal section that comparison completes does not comprises echo signal, needs to start to re-start frequency from next downstream signal section Spectrum comparison.
Step 2208, number of matches clear 0, using later downstream signal section as current downlink signal segment, jump to step 2202。
When current downlink signal segment and the 1st upward signal section frequency spectrum are different, again by later downstream signal section and 1st upward signal section carries out Frequency spectrum ratio pair.If the frequency spectrum of 2 upward signal sections of the N+1 downstream signal Duan Yu is different, i.e. The quantity of the signal segment that frequency spectrum is identical is 1, less than predetermined number, then number of matches is reset, from the beginning of current downlink signal segment (i.e. the N+1 downstream signal section), re-executes and the Frequency spectrum ratio pair of the 1st upward signal section.
Determine continuous predetermined number the downstream signal section identical with front predetermined number section upward signal section frequency spectrum it After, it may be determined that the described downstream signal section corresponding with the 1st upward signal section is described continuous predetermined number downstream signal 1 downstream signal section of Duan Zhong.I.e. from the beginning of described continuous predetermined number downstream signal Duan Zhong 1 section, described first presets The downstream signal of duration comprises echo signal, therefore, by the time of described downstream signal section corresponding for the 1st upward signal section Stamp is as the time delay of echo signal in described downstream signal.Even n-th downstream signal section and the frequency of first upward signal section Compose identical, and, from the beginning of n-th downstream signal section, continuous 5 downstream signal sections and continuous 5 upward signal section frequency spectrum phases With, i.e. the N+1 downstream signal section, the N+2 downstream signal section identical with the 2nd upward signal section frequency spectrum and the 3rd up Signal segment frequency spectrum is identical, the N+3 downstream signal section is identical with the 4th upward signal section frequency spectrum, the N+4 downstream signal section and 5th upward signal section frequency spectrum is identical, then using the timestamp of n-th downstream signal section as echo signal in described downstream signal Time delay.In the most described downstream signal, the time delay of echo signal is equal to (N-1) × T.
Step 230, carries out the durations such as time delay with described echo signal by the upward signal of described first preset duration Time delay.
If it is determined that described downstream signal in the time delay of echo signal equal to (N-1) × T, then by described first preset duration Upward signal time delay (N-1) × T.
Step 240, determine after the pending signal segment in the downstream signal of described first preset duration and time delay is described Reference signal section in the upward signal of the first preset duration.
Upward signal based on described first preset duration after time delay, enters the downstream signal of described first preset duration Row echo signal Processing for removing includes: determine according to the time delay of described echo signal in the downstream signal of described first preset duration Comprise each downstream signal section of echo signal, as pending signal segment;By the institute after time delay corresponding for each pending signal segment State each upward signal section in the upward signal of the first preset duration, as reference signal section;Calculate each pending signal segment respectively Average amplitude with each reference signal section;Carry out bearing increasing to corresponding described pending signal segment based on each described reference signal section Benefit, to eliminate the echo signal in described downstream signal.
By the time delay of echo signal divided by described second preset duration, it may be determined that echo signal is preset described first The downstream signal of duration divides start sequence number in the downstream signal section obtained.Can also be based on described first preset duration upper Row signal and downstream signal, determine in the downstream signal of described first preset duration while the time delay of echo signal, record bag The sequence number of the 1st the downstream signal section containing echo signal.When being embodied as, at upward signal based on described first preset duration And downstream signal, determine in the downstream signal of described first preset duration while the time delay of echo signal, by by present count It is sufficiently large that amount is arranged, the downstream signal section that can obtain comprising echo signal in the downstream signal of described first preset duration Quantity Q.Using Q downstream signal section starting from described initial segment number as pending signal segment.Wherein, Q is less than or equal to presetting Quantity.
By each upward signal in the upward signal of described first preset duration after time delay corresponding for each pending signal segment Section, as reference signal section.When being embodied as, the upward signal of described first preset duration after time delay is divided according to same Phase method, is divided into multiple upward signal section with the second preset duration, if n-th in the downstream signal of described first preset duration N+4 downstream signal section of downstream signal Duan Zhi comprises echo signal, then the up letter of described first preset duration after time delay In number, N+4 upward signal section of n-th upward signal Duan Zhi is the primary signal of described echo signal.Therefore, it can to prolong The upward signal of described first preset duration time after divides in the upward signal section obtained, and sequence number is identical with pending signal segment Each upward signal section, as reference signal section.When being embodied as, it is also possible to by additive method according to the time delay of echo signal Determine the pending signal segment in downstream signal section, and determine that described first after the time delay that pending signal segment is corresponding is preset Reference signal section in the upward signal of duration, this is not limited by the present invention.
Step 250, carries out negative gain based on each described reference signal section to corresponding described pending signal segment, to eliminate Echo signal in described downstream signal.
By each described reference signal section, corresponding described pending signal segment is carried out negative gain, described descending to eliminate Echo signal in signal, including: calculate each pending signal segment and the average amplitude of each reference signal section respectively;For each Pending signal segment, by described pending signal segment and the difference of the average amplitude of corresponding reference signal section, as institute State the reference difference of pending signal segment;For each pending signal segment, based on corresponding reference difference to described pending Signal segment carries out gain process;Described pending signal segment after gain process is carried out anti-phase after, with corresponding described reference Signal segment is added, the downstream signal section after the echo that is eliminated.
When being embodied as, according to formulaCalculate each pending signal segment and each reference signal respectively The average amplitude of section.Wherein, f (t) is each signal segment function for time t, and n represents the sequence number of signal segment, and T represents that second is pre- If duration.
Aforementioned formula is utilized to calculate average amplitude Vrms1 (n) of each pending signal segment and each reference signal section respectively Average amplitude Vrms2 (n) after, calculate each pending by formula Vrms_s (n)=Vrms2 (n)-Vrms1 (n) further Difference Vrms_s of the average amplitude of signal segment and corresponding reference signal section, as the reference of described pending signal segment Difference.Then, for each pending signal segment, increase corresponding reference difference, i.e. pending signal segment is amplified place Reason.Finally, the described pending signal segment after gain process is carried out anti-phase after, by the anti-phase pending signal segment obtained with right The described reference signal section answered is added, the signal segment after the echo that is eliminated.When being embodied as, when described pending signal segment and When corresponding reference signal section does not has phase contrast, can be directly by pending signal segment and corresponding described reference signal section phase Subtract, the signal segment after the echo that is eliminated.The concrete grammar that signal carries out addition and subtraction sees prior art, herein Repeat no more.
When being embodied as, the step of the described average amplitude calculating each pending signal segment and each reference signal section respectively it After, if the average amplitude of described each pending signal segment is below presetting amplitude, then ignore described echo signal, not to descending letter Echo signal in number carries out Processing for removing.
Backhaul removing method in communication process disclosed in the embodiment of the present invention, by talk line in caching communication process In upward signal and downstream signal, then obtain upward signal and the downstream signal of the first preset duration in talk line;Base In upward signal and the downstream signal of described first preset duration, determine echo letter in the downstream signal of described first preset duration Number time delay;The upward signal of described first preset duration is carried out the time delay of the durations such as time delay with described echo signal;And Determine the upper of described first preset duration after the pending signal segment in the downstream signal of described first preset duration and time delay Reference signal section in row signal;Finally, by each described reference signal section, corresponding described pending signal segment is born Gain, to eliminate the echo signal in described downstream signal, solves in prior art due to equipment individuality hardware anomalies or behaviour Make the abnormal echo causing producing in communication process can not thoroughly eliminate, the problem having a strong impact on speech quality.More than by Row signal makes reference, and downstream signal is carried out echo judgement and elimination, effectively adapts to the hardware differences that communication apparatus is individual, returns Sound eliminates more thorough.Meanwhile, by multistage continuous signal section being carried out Frequency spectrum ratio to determining whether to comprise echo signal, improve Judge the accuracy of echo signal.
Embodiment three:
With reference to Fig. 4, correspondingly, the embodiment of the invention also discloses a kind of mobile terminal 40.Described mobile terminal 40, bag Include:
Signal acquisition module 400, for obtaining upward signal and the downstream signal of the first preset duration in talk line;
Echo delay time determines module 410, for the first preset duration based on the acquisition of described signal acquisition module 400 Row signal and downstream signal, determine the time delay of echo signal in the downstream signal of described first preset duration;
Time delay module 420, for carrying out determining mould with described echo delay time by the upward signal of described first preset duration The time delay of the durations such as the time delay of the echo signal that block 410 determines;
Echo cancellation module 430, for based on described first preset duration after the time delay of described time delay module 420 up Signal, carries out echo signal Processing for removing to the downstream signal of described first preset duration.
Mobile terminal disclosed in the embodiment of the present invention, by obtain the first preset duration in talk line upward signal and Downstream signal;Upward signal based on described first preset duration and downstream signal, determine the descending of described first preset duration The time delay of echo signal in signal;When the upward signal of described first preset duration is carried out the time delay etc. with described echo signal Long time delay;Upward signal based on described first preset duration after time delay, the downstream signal to described first preset duration Carry out echo signal Processing for removing, solve in prior art owing to equipment individuality hardware anomalies or operation exception cause in call During produce echo can not thoroughly eliminate, the problem having a strong impact on speech quality.By making reference with upward signal, under Row signal carries out echo judgement and elimination, effectively adapts to the hardware differences that communication apparatus is individual, and echo cancellor is more thorough.
Seeing Fig. 5, alternatively, described echo delay time determines that module 410 includes:
Segmenting unit 4101, for being respectively divided into up by upward signal and the downstream signal of described first preset duration Signal sequence and downstream signal sequence;Wherein, described upward signal sequence includes that multiple sequencing according to signal stream arranges The second preset duration upward signal section, described downstream signal sequence include that multiple sequencing according to signal stream arranges the Two preset duration downstream signal sections;
Frequency spectrum comparing unit 4102, for carrying out Frequency spectrum ratio piecemeal by described upward signal section and described downstream signal section Right, determine the continuous downstream signal section of the predetermined number corresponding with the described upward signal section of front predetermined number;
Time delay determines unit 4103, for determining the continuous downstream signal of predetermined number described in described downstream signal sequence The duration sum of all downstream signal sections before Duan, as the time delay of echo signal in described downstream signal.
Seeing Fig. 5, alternatively, described frequency spectrum comparing unit 4102 includes:
Initialize subelement 41021, be used for first downstream signal section as current downlink signal segment;
Comparer unit 41022, for carrying out Frequency spectrum ratio pair by current downlink signal segment and first upward signal section;
Judging comparer unit 41023, if identical for frequency spectrum, then number of matches adds 1, continues later downstream signal Section and later upward signal section carry out Frequency spectrum ratio pair, until number of matches is equal to predetermined number;
Redirecting subelement 41024, if different for frequency spectrum, then number of matches resets, and jumps to comparer unit, repeats to hold It is about to current downlink signal segment and first upward signal section carries out Frequency spectrum ratio pair.
Seeing Fig. 6, alternatively, described echo cancellation module 430 includes:
Pending signal determines unit 4301, for determining described first preset duration according to the time delay of described echo signal Downstream signal in comprise each downstream signal section of echo signal, as pending signal segment;
Reference signal determines unit 4302, in time being preset by described first after time delay corresponding for each pending signal segment Each upward signal section in long upward signal, as reference signal section;
Echo cancellation unit 4303, for carrying out corresponding described pending signal segment based on each described reference signal section Negative gain, to eliminate the echo signal in described downstream signal.
Seeing Fig. 6, alternatively, described echo cancellation unit 4303 includes:
Amplitude computation subunit 43031, for calculating each pending signal segment and the average width of each reference signal section respectively Degree;
Reference difference determines subelement 43032, for for each pending signal segment, will described pending signal segment with The difference of the average amplitude of corresponding reference signal section, as the reference difference of described pending signal segment;
Amplify subelement 43033, for for each pending signal segment, based on corresponding reference difference, described waiting is located Reason signal segment carries out gain process;
Echo cancellor subelement 43034, for the described pending signal segment after gain process is carried out anti-phase after, with right The described reference signal section answered is added, the downstream signal section after the echo that is eliminated.
Seeing Fig. 6, alternatively, described echo cancellation unit 4303 also includes:
Amplitude judgment sub-unit 43035, if the average amplitude for described each pending signal segment is below presetting amplitude, Then ignore described echo signal.
Mobile terminal disclosed in the embodiment of the present invention, by the upward signal in caching communication process and downstream signal, so The upward signal of the first preset duration and downstream signal in rear acquisition talk line;Up letter based on described first preset duration Number and downstream signal, determine the time delay of echo signal in the downstream signal of described first preset duration;When presetting described first Long upward signal carries out the time delay of the durations such as the time delay with described echo signal;And determine the descending of described first preset duration Reference signal section in the upward signal of the pending signal segment in signal and described first preset duration after time delay;Finally, By each described reference signal section, corresponding described pending signal segment is carried out negative gain, to eliminate in described downstream signal Echo signal, solves in prior art owing to equipment individuality hardware anomalies or operation exception cause generation in communication process Echo can not thoroughly eliminate, the problem having a strong impact on speech quality.By making reference with upward signal, downstream signal is carried out back Sound judges and eliminates, and effectively adapting to the hardware differences that communication apparatus is individual, echo cancellor is more thorough.Meanwhile, by multistage Continuous signal section carries out Frequency spectrum ratio to determining whether to comprise echo signal, improves the accuracy judging echo signal.
Embodiment four:
Fig. 7 is the block diagram of the mobile terminal of another embodiment of the present invention.Mobile terminal 700 shown in Fig. 7 includes: at least One processor 701, memorizer 702, at least one network interface 704, converse assembly 706 and other user interfaces 703.Mobile Each assembly in terminal 700 is coupled by bus system 705.It is understood that bus system 705 is used for realizing these groups Connection communication between part.Bus system 705, in addition to including data/address bus, also includes power bus, controls bus and state Signal bus.But for the sake of understanding explanation, in the figure 7 various buses are all designated as bus system 705.
Wherein, user interface 703 can include display, keyboard or pointing device (such as, mouse, trace ball (trackball), touch-sensitive plate, touch screen or Trackpad etc..The present embodiment detects user to desktop folder by touch screen Trigger action, such as click, pressing etc..User interface 703 also includes speaker, for play cuing information.
The memorizer 702 being appreciated that in the embodiment of the present invention can be volatile memory or nonvolatile memory, Maybe can include volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read only memory (Read- OnlyMemory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (RandomAccess Memory, RAM), and it is used as outside high speed Caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhancement mode Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memorizer 702 of system and method described herein be intended to include but not limited to these and arbitrarily its It is suitable for the memorizer of type.
In some embodiments, memorizer 702 stores following element, executable module or data structure, or Their subset of person, or their superset: operating system 7021 and application program 7022.Memorizer 702 is additionally operable to caching Upward signal and downstream signal.
Wherein, operating system 7021, comprise various system program, such as ccf layer, core library layer, driving layer etc., be used for Realize various basic business and process hardware based task.Application program 7022, comprises various application program, such as media Player (Media Player), browser (Browser) etc., be used for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 7022.In embodiments of the present invention, by calling the journey of memorizer 702 storage Sequence or instruction, concrete, can be program or the instruction of storage in application program 7022.By the touch in user interface 703 Screen detection user uses the operation of application program, and detects user and click on the trigger action of desktop folder or open desk file The trigger action of folder, and the trigger action of detection startup application program.It is pre-that processor 701 is used for obtaining in talk line first If the upward signal of duration and downstream signal;Upward signal based on described first preset duration and downstream signal, determine described The time delay of echo signal in the downstream signal of the first preset duration;The upward signal of described first preset duration is carried out with described The time delay of the durations such as the time delay of echo signal;Upward signal based on described first preset duration after time delay, to described first The downstream signal of preset duration carries out echo signal Processing for removing.
The method part that the invention described above embodiment discloses can apply in processor 701, or real by processor 701 Existing.Processor 701 is probably a kind of IC chip, has the disposal ability of signal.During realizing, said method Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor 701 or software form.Above-mentioned place Reason device 701 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated Circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components.Can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.General The processor etc. that processor can be microprocessor or this processor can also be any routine.In conjunction with embodiment of the present invention institute The step of disclosed method can be embodied directly in hardware decoding processor and perform, or with the hardware in decoding processor And software module combination execution completes.Software module may be located at random access memory, and flash memory, read only memory are able to programme read-only In the storage medium that this areas such as memorizer or electrically erasable programmable memorizer, depositor are ripe.This storage medium is positioned at Memorizer 702, processor 701 reads the access times to application program of the user in memorizer 702, completes in conjunction with its hardware State the step of method.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or its Combination realizes.Realizing for hardware, processing unit can be implemented in one or more special IC (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, Controller, microcontroller, microprocessor, for performing in other electronic unit or a combination thereof of herein described function.
Software is realized, can be realized herein by the module (such as process, function etc.) performing function described herein Described technology.Software code is storable in performing in memorizer and by processor.Memorizer can within a processor or Processor is outside to be realized.
Alternatively, processor 701 is used for: upward signal and the downstream signal of described first preset duration are respectively divided into Upward signal sequence and downstream signal sequence;Wherein, described upward signal sequence includes multiple sequencing according to signal stream Second preset duration upward signal section of arrangement, described downstream signal sequence includes that multiple sequencing according to signal stream arranges The second preset duration downstream signal section;Described upward signal section and described downstream signal section are carried out Frequency spectrum ratio pair, really piecemeal The continuous downstream signal section of the fixed predetermined number corresponding with the described upward signal section of front predetermined number;Determine described downstream signal The duration sum of all downstream signal sections before the continuous downstream signal section of predetermined number described in sequence, as described descending The time delay of echo signal in signal.
Alternatively, processor 701 is used for: using first downstream signal section as current downlink signal segment;By current downlink Signal segment and first upward signal section carry out Frequency spectrum ratio pair;If frequency spectrum is identical, then number of matches adds 1, continues under later Row signal segment and later upward signal section carry out Frequency spectrum ratio pair, until number of matches is equal to P;If frequency spectrum is different, then mate number Amount resets, and jumps to carry out current downlink signal segment and first upward signal section the step of Frequency spectrum ratio pair, repeats frequently Spectrum comparison.
Alternatively, processor 701 is used for: determine the descending of described first preset duration according to the time delay of described echo signal Signal comprises each downstream signal section of echo signal, as pending signal segment;By time delay corresponding for each pending signal segment After described first preset duration upward signal in each upward signal section, as reference signal section;By each described with reference to letter Number section carries out negative gain to corresponding described pending signal segment, to eliminate the echo signal in described downstream signal.
Alternatively, processor 701 is used for: calculate each pending signal segment and the average amplitude of each reference signal section respectively; For each pending signal segment, by described pending signal segment and the difference of the average amplitude of corresponding reference signal section Value, as the reference difference of described pending signal segment;For each pending signal segment, based on corresponding reference difference to institute State pending signal segment and carry out gain process;Described pending signal segment after gain process is carried out anti-phase after, with corresponding Described reference signal section is added, the signal segment after the echo that is eliminated.
Alternatively, processor 701 is used for: if the average amplitude of described each pending signal segment is below presetting amplitude, then Ignore described echo signal.
Mobile terminal 700 is capable of each process that in previous embodiment, mobile terminal realizes, for avoiding repeating, here Repeat no more.By embodiments of the invention, solve in prior art owing to equipment individuality hardware anomalies or operation exception are led The echo causing to produce in communication process can not thoroughly eliminate, the problem having a strong impact on speech quality.By doing with upward signal Reference, carries out echo judgement and elimination to downstream signal, effectively adapts to the hardware differences that communication apparatus is individual, and echo cancellor is more Thoroughly.Meanwhile, by multistage continuous signal section being carried out Frequency spectrum ratio to determining whether to comprise echo signal, improve and judge echo The accuracy of signal.
Embodiment five:
Fig. 8 is the structural representation of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 8 Can be mobile phone, panel computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer Deng.
Mobile terminal in Fig. 8 includes radio frequency (Radio Frequency, RF) circuit 810, memorizer 820, input block 830, display unit 840, call assembly 850, processor 860, voicefrequency circuit 870, communication module 880 and power supply 890.Audio-frequency electric Road 870 is additionally operable to play information of voice prompt.Call assembly 850 is for gathering the upward signal in communication process and descending letter Number.
Wherein, input block 830 can be used for receiving the trigger action of user's input, and produces the user with mobile terminal Arrange and function controls relevant signal input.Specifically, in the embodiment of the present invention, this input block 830 can include touching Control panel 831.Contact panel 831, also referred to as touch screen, can collect user thereon or neighbouring touch operation (such as user Use any applicable object such as finger, stylus or adnexa operation on contact panel 831), and according to journey set in advance Formula drives corresponding attachment means.Optionally, contact panel 831 can include touch detecting apparatus and two portions of touch controller Point.Wherein, the touch orientation of touch detecting apparatus detection user, and detect the signal that touch operation brings, transmit a signal to Touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives This processor 860, and order that processor 860 sends can be received and performed.Furthermore, it is possible to use resistance-type, condenser type, The polytype such as infrared ray and surface acoustic wave realizes contact panel 831.Except contact panel 831, input block 830 is all right Including other input equipments 832, other input equipments 832 can include but not limited to physical keyboard, function key (such as volume control Button processed, switch key etc.), trace ball, mouse, one or more in action bars etc..Input block 830 can also include taking the photograph As head, it is used for shooting photo.
Wherein, display unit 840 can be used for showing the information inputted by user or the information being supplied to user and movement The various menu interfaces of terminal 800.Display unit 840 can include display floater 841, optionally, can use LCD or organic The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display floater 841.
It should be noted that contact panel 831 can cover display floater 841, formed and touch display screen, when this touch display screen is examined Measure thereon or after neighbouring touch operation, send processor 860 to determine the type of touch event, with preprocessor 860 provide corresponding visual output according to the type of touch event on touch display screen.
Touch display screen and include Application Program Interface viewing area and conventional control viewing area.This Application Program Interface viewing area And the arrangement mode of this conventional control viewing area does not limit, can be arranged above and below, left-right situs etc. can be distinguished two and show Show the arrangement mode in district.This Application Program Interface viewing area is displayed for the interface of application program.Each interface is permissible The interface elements such as the icon and/or the widget desktop control that comprise at least one application program.This Application Program Interface viewing area It can also be the empty interface not comprising any content.This conventional control viewing area is for showing the control that utilization rate is higher, such as, The application icons etc. such as settings button, interface numbering, scroll bar, phone directory icon.
Wherein processor 860 is the control centre of mobile terminal 800, utilizes various interface and the whole mobile phone of connection Various piece, is stored in the software program in first memory 821 and/or module by running or performing, and calls storage Data in second memory 822, perform the various functions of mobile terminal 800 and process data, thus to mobile terminal 800 Carry out integral monitoring.Optionally, processor 860 can include one or more processing unit.
In embodiments of the present invention, by call the software program and/or module stored in this first memory 821 and/ Or the data in this second memory 822, processor 860 for obtain in talk line the upward signal of the first preset duration and Downstream signal;Upward signal based on described first preset duration and downstream signal, determine the descending of described first preset duration The time delay of echo signal in signal;When the upward signal of described first preset duration is carried out the time delay etc. with described echo signal Long time delay;Upward signal based on described first preset duration after time delay, the downstream signal to described first preset duration Carry out echo signal Processing for removing.
Alternatively, processor 860 is used for: upward signal and the downstream signal of described first preset duration are respectively divided into Upward signal sequence and downstream signal sequence;Wherein, described upward signal sequence includes multiple sequencing according to signal stream Second preset duration upward signal section of arrangement, described downstream signal sequence includes that multiple sequencing according to signal stream arranges The second preset duration downstream signal section;Described upward signal section and described downstream signal section are carried out Frequency spectrum ratio pair, really piecemeal The continuous downstream signal section of the fixed predetermined number corresponding with the described upward signal section of front predetermined number;Determine described downstream signal The duration sum of all downstream signal sections before the continuous downstream signal section of predetermined number described in sequence, as described descending The time delay of echo signal in signal.
Alternatively, processor 860 is used for: using first downstream signal section as current downlink signal segment;By current downlink Signal segment and first upward signal section carry out Frequency spectrum ratio pair;If frequency spectrum is identical, then number of matches adds 1, continues under later Row signal segment and later upward signal section carry out Frequency spectrum ratio pair, until number of matches is equal to P;If frequency spectrum is different, then mate number Amount resets, and jumps to carry out current downlink signal segment and first upward signal section the step of Frequency spectrum ratio pair, repeats frequently Spectrum comparison.
Alternatively, processor 860 is used for: determine the descending of described first preset duration according to the time delay of described echo signal Signal comprises each downstream signal section of echo signal, as pending signal segment;By time delay corresponding for each pending signal segment After described first preset duration upward signal in each upward signal section, as reference signal section;By each described with reference to letter Number section carries out negative gain to corresponding described pending signal segment, to eliminate the echo signal in described downstream signal.
Alternatively, processor 860 is used for: calculate each pending signal segment and the average amplitude of each reference signal section respectively; For each pending signal segment, by described pending signal segment and the difference of the average amplitude of corresponding reference signal section Value, as the reference difference of described pending signal segment;For each pending signal segment, based on corresponding reference difference to institute State pending signal segment and carry out gain process;Described pending signal segment after gain process is carried out anti-phase after, with corresponding Described reference signal section is added, the signal segment after the echo that is eliminated.
Alternatively, processor 860 is used for: if the average amplitude of described each pending signal segment is below presetting amplitude, then Ignore described echo signal.
Visible, by the mobile terminal of the present embodiment, owing to equipment individuality hardware anomalies or operation exception cause in call During produce echo can not thoroughly eliminate, the problem having a strong impact on speech quality.By making reference with upward signal, under Row signal carries out echo judgement and elimination, effectively adapts to the hardware differences that communication apparatus is individual, and echo cancellor is more thorough.With Time, by multistage continuous signal section being carried out Frequency spectrum ratio to determining whether to comprise echo signal, improve and judge echo signal Accuracy.
Those of ordinary skill in the art are it is to be appreciated that combine the list of each example that the embodiments described herein describes Unit and algorithm steps, it is possible to being implemented in combination in of electronic hardware or computer software and electronic hardware.These functions are actually Perform with hardware or software mode, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel Each specifically should being used for can be used different methods to realize described function, but this realization is it is not considered that exceed The scope of the present invention.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, and the movement of foregoing description The specific works process of terminal, is referred to the corresponding process in preceding method embodiment, does not repeats them here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can be passed through other Mode realizes.Such as, device embodiment described above is only schematically, such as, the division of described unit, it is only A kind of logic function divides, actual can have when realizing other dividing mode, the most multiple unit or assembly can in conjunction with or Person is desirably integrated into another system, or some features can be ignored, or does not performs.Another point, shown or discussed is mutual Between coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit or communication link Connect, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of the present embodiment scheme 's.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.
If described function is using the form realization of SFU software functional unit and as independent production marketing or use, permissible It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is the most in other words The part contributing prior art or the part of this technical scheme can embody with the form of software product, this meter Calculation machine software product is stored in a storage medium, including some instructions with so that a computer equipment (can be individual People's computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention. And aforesaid storage medium includes: USB flash disk, portable hard drive, ROM, RAM, magnetic disc or CD etc. are various can store program code Medium.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art, in the technical scope that the invention discloses, can readily occur in change or replace, should contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with scope of the claims.
Each embodiment in this specification all uses the mode gone forward one by one to describe, what each embodiment stressed is with The difference of other embodiments, between each embodiment, identical similar part sees mutually.Real for mobile terminal For executing example, due to itself and embodiment of the method basic simlarity, so describe is fairly simple, relevant part sees embodiment of the method Part illustrate.

Claims (12)

1. the echo cancel method in a communication process, it is characterised in that including:
Obtain upward signal and the downstream signal of the first preset duration in talk line;
Upward signal based on described first preset duration and downstream signal, determine in the downstream signal of described first preset duration The time delay of echo signal;
The upward signal of described first preset duration is carried out the time delay of the durations such as time delay with described echo signal;
Upward signal based on described first preset duration after time delay, is carried out back the downstream signal of described first preset duration Acoustical signal Processing for removing.
Method the most according to claim 1, it is characterised in that described upward signal based on described first preset duration and Downstream signal, determines the step of the time delay of echo signal in the downstream signal of described first preset duration, including:
Upward signal and the downstream signal of described first preset duration are respectively divided into upward signal sequence and downstream signal sequence Row;Wherein, described upward signal sequence includes the second up letter of preset duration that multiple sequencing according to signal stream arranges Number section, described downstream signal sequence includes the second preset duration downstream signal that multiple sequencing according to signal stream arranges Section;
Described upward signal section and described downstream signal section are carried out Frequency spectrum ratio pair piecemeal, determine with front predetermined number described on The continuous downstream signal section of the predetermined number that row signal segment is corresponding;
Determine all downstream signal sections before the continuous downstream signal section of predetermined number described in described downstream signal sequence Duration sum, as the time delay of echo signal in described downstream signal.
Method the most according to claim 2, it is characterised in that described by described upward signal section and described downstream signal section Carry out Frequency spectrum ratio pair piecemeal, determine the continuous downstream signal of the predetermined number corresponding with the described upward signal section of front predetermined number The step of section, including:
Using first downstream signal section as current downlink signal segment;
Current downlink signal segment and first upward signal section are carried out Frequency spectrum ratio pair;
If frequency spectrum is identical, then number of matches adds 1, continues later downstream signal section and later upward signal section are carried out frequency spectrum Comparison, until number of matches is equal to predetermined number;
If frequency spectrum is different, then number of matches resets, and jumps to current downlink signal segment and first upward signal section are carried out frequency The step of spectrum comparison, repeats Frequency spectrum ratio pair.
Method the most according to claim 2, it is characterised in that described based on described first preset duration after time delay upper Row signal, the step that the downstream signal of described first preset duration carries out echo signal Processing for removing includes:
Time delay according to described echo signal determine the downstream signal of described first preset duration comprises echo signal each under Row signal segment, as pending signal segment;
By each upward signal section in the upward signal of described first preset duration after time delay corresponding for each pending signal segment, make For reference signal section;
Based on each described reference signal section, corresponding described pending signal segment is carried out negative gain, to eliminate described downstream signal In echo signal.
Method the most according to claim 4, it is characterised in that described based on each described reference signal section to corresponding described Pending signal segment carries out negative gain, to eliminate the step of the echo signal in described downstream signal, including:
Calculate each pending signal segment and the average amplitude of each reference signal section respectively;
For each pending signal segment, by the average amplitude of described pending signal segment and corresponding reference signal section Difference, as the reference difference of described pending signal segment;
For each pending signal segment, based on corresponding reference difference, described pending signal segment is carried out gain process;
Described pending signal segment after gain process is carried out anti-phase after, be added with corresponding described reference signal section, obtain Eliminate the downstream signal section after echo.
Method the most according to claim 5, it is characterised in that described calculate respectively each pending signal segment and each with reference to letter After the step of the average amplitude of number section, also include:
If the average amplitude of described each pending signal segment is below presetting amplitude, then ignore described echo signal.
7. a mobile terminal, it is characterised in that including:
Signal acquisition module, for obtaining upward signal and the downstream signal of the first preset duration in talk line;
Echo delay time determines module, for the upward signal of the first preset duration obtained based on described signal acquisition module and under Row signal, determines the time delay of echo signal in the downstream signal of described first preset duration;
Time delay module, for carrying out determining what module determined with described echo delay time by the upward signal of described first preset duration The time delay of the durations such as the time delay of echo signal;
Echo cancellation module, for upward signal based on described first preset duration after described time delay module time delay, to institute The downstream signal stating the first preset duration carries out echo signal Processing for removing.
Mobile terminal the most according to claim 7, it is characterised in that described echo delay time determines that module includes:
Segmenting unit, for being respectively divided into upward signal sequence by upward signal and the downstream signal of described first preset duration With downstream signal sequence;Wherein, described upward signal sequence includes that multiple sequencing according to signal stream arranges second is pre- If duration upward signal section, described downstream signal sequence includes when the second of multiple sequencing arrangement according to signal stream is preset Long downstream signal section;
Frequency spectrum comparing unit, for described upward signal section and described downstream signal section are carried out Frequency spectrum ratio pair piecemeal, determine with The continuous downstream signal section of the predetermined number that the described upward signal section of front predetermined number is corresponding;
Time delay determines unit, before determining the continuous downstream signal section of predetermined number described in described downstream signal sequence The duration sum of all downstream signal sections, as the time delay of echo signal in described downstream signal.
Mobile terminal the most according to claim 8, it is characterised in that described frequency spectrum comparing unit includes:
Initialize subelement, be used for first downstream signal section as current downlink signal segment;
Comparer unit, for carrying out Frequency spectrum ratio pair by current downlink signal segment and first upward signal section;
Judging comparer unit, if identical for frequency spectrum, then number of matches adds 1, continues later downstream signal Duan Yuhou mono- Individual upward signal section carries out Frequency spectrum ratio pair, until number of matches is equal to predetermined number;
Redirecting subelement, if different for frequency spectrum, then number of matches resets, and jumps to comparer unit, repeats currently Downstream signal section and first upward signal section carry out Frequency spectrum ratio pair.
Mobile terminal the most according to claim 8, it is characterised in that described echo cancellation module includes:
Pending signal determines unit, for determining the descending letter of described first preset duration according to the time delay of described echo signal Each downstream signal section of echo signal is comprised, as pending signal segment in number;
Reference signal determines unit, up for by described first preset duration after time delay corresponding for each pending signal segment Each upward signal section in signal, as reference signal section;
Echo cancellation unit, for carrying out bearing gain to corresponding described pending signal segment based on each described reference signal section, To eliminate the echo signal in described downstream signal.
11. mobile terminals according to claim 10, it is characterised in that described echo cancellation unit includes:
Amplitude computation subunit, for calculating each pending signal segment and the average amplitude of each reference signal section respectively;
Reference difference determines subelement, for for each pending signal segment, by described pending signal segment and corresponding The difference of average amplitude of reference signal section, as the reference difference of described pending signal segment;
Amplify subelement, for for each pending signal segment, based on corresponding reference difference to described pending signal segment Carry out gain process;
Echo cancellor subelement, for the described pending signal segment after gain process is carried out anti-phase after, described in corresponding Reference signal section is added, the downstream signal section after the echo that is eliminated.
12. mobile terminals according to claim 11, it is characterised in that also include:
Amplitude judgment sub-unit, if the average amplitude for described each pending signal segment is below presetting amplitude, then ignores institute State echo signal.
CN201610851966.5A 2016-09-26 2016-09-26 Echo cancel method in a kind of communication process and mobile terminal Pending CN106303119A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610851966.5A CN106303119A (en) 2016-09-26 2016-09-26 Echo cancel method in a kind of communication process and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610851966.5A CN106303119A (en) 2016-09-26 2016-09-26 Echo cancel method in a kind of communication process and mobile terminal

Publications (1)

Publication Number Publication Date
CN106303119A true CN106303119A (en) 2017-01-04

Family

ID=57715360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610851966.5A Pending CN106303119A (en) 2016-09-26 2016-09-26 Echo cancel method in a kind of communication process and mobile terminal

Country Status (1)

Country Link
CN (1) CN106303119A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277209A (en) * 2017-07-27 2017-10-20 维沃移动通信有限公司 One kind call method of adjustment and mobile terminal
CN107819964A (en) * 2017-11-10 2018-03-20 广东欧珀移动通信有限公司 Improve method, apparatus, terminal and the computer-readable recording medium of speech quality
CN108986831A (en) * 2017-05-31 2018-12-11 南宁富桂精密工业有限公司 Method, electronic device and the computer readable storage medium of voice interference filtering
CN109087660A (en) * 2018-09-29 2018-12-25 百度在线网络技术(北京)有限公司 Method, apparatus, equipment and computer readable storage medium for echo cancellor
CN109658946A (en) * 2017-10-12 2019-04-19 深圳前海黑鲸科技有限公司 A kind of echo processing method, device, storage medium and terminal device
CN110310654A (en) * 2019-07-26 2019-10-08 歌尔科技有限公司 Echo cancel method and device, electronic equipment, readable storage medium storing program for executing
CN111640449A (en) * 2020-06-09 2020-09-08 北京大米科技有限公司 Echo cancellation method, computer readable storage medium and electronic device
CN113077805A (en) * 2021-03-18 2021-07-06 厦门视云联科技有限公司 Echo cancellation method and system based on timestamp synchronization

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040062386A1 (en) * 2002-10-01 2004-04-01 Mansour Tahernezhaadi Delay insertion for echo cancellation, with echo supression, in a communication network
US20120250728A1 (en) * 2011-03-31 2012-10-04 Broadcom Corporation Recovery and Synchronization for Spread Spectrum Modulated Clock
CN104219403A (en) * 2013-06-03 2014-12-17 腾讯科技(深圳)有限公司 An echo eliminating method and device
CN105915738A (en) * 2016-05-30 2016-08-31 宇龙计算机通信科技(深圳)有限公司 Echo cancellation method, echo cancellation device and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040062386A1 (en) * 2002-10-01 2004-04-01 Mansour Tahernezhaadi Delay insertion for echo cancellation, with echo supression, in a communication network
US20120250728A1 (en) * 2011-03-31 2012-10-04 Broadcom Corporation Recovery and Synchronization for Spread Spectrum Modulated Clock
CN104219403A (en) * 2013-06-03 2014-12-17 腾讯科技(深圳)有限公司 An echo eliminating method and device
CN105915738A (en) * 2016-05-30 2016-08-31 宇龙计算机通信科技(深圳)有限公司 Echo cancellation method, echo cancellation device and terminal

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108986831A (en) * 2017-05-31 2018-12-11 南宁富桂精密工业有限公司 Method, electronic device and the computer readable storage medium of voice interference filtering
CN108986831B (en) * 2017-05-31 2021-04-20 南宁富桂精密工业有限公司 Method for filtering voice interference, electronic device and computer readable storage medium
CN107277209B (en) * 2017-07-27 2020-05-29 维沃移动通信有限公司 Call adjustment method and mobile terminal
CN107277209A (en) * 2017-07-27 2017-10-20 维沃移动通信有限公司 One kind call method of adjustment and mobile terminal
CN109658946A (en) * 2017-10-12 2019-04-19 深圳前海黑鲸科技有限公司 A kind of echo processing method, device, storage medium and terminal device
CN107819964B (en) * 2017-11-10 2021-04-06 Oppo广东移动通信有限公司 Method, device, terminal and computer readable storage medium for improving call quality
CN107819964A (en) * 2017-11-10 2018-03-20 广东欧珀移动通信有限公司 Improve method, apparatus, terminal and the computer-readable recording medium of speech quality
CN109087660A (en) * 2018-09-29 2018-12-25 百度在线网络技术(北京)有限公司 Method, apparatus, equipment and computer readable storage medium for echo cancellor
CN110310654A (en) * 2019-07-26 2019-10-08 歌尔科技有限公司 Echo cancel method and device, electronic equipment, readable storage medium storing program for executing
CN111640449A (en) * 2020-06-09 2020-09-08 北京大米科技有限公司 Echo cancellation method, computer readable storage medium and electronic device
CN111640449B (en) * 2020-06-09 2023-07-28 北京大米科技有限公司 Echo cancellation method, computer readable storage medium and electronic device
CN113077805A (en) * 2021-03-18 2021-07-06 厦门视云联科技有限公司 Echo cancellation method and system based on timestamp synchronization
CN113077805B (en) * 2021-03-18 2024-06-21 三亚卓越青凡网络科技有限公司 Echo cancellation method and system based on time stamp synchronization

Similar Documents

Publication Publication Date Title
CN106303119A (en) Echo cancel method in a kind of communication process and mobile terminal
CN106101848A (en) A kind of barrage display packing and electronic equipment
CN103049090B (en) User controls posture detection
CN106303804A (en) The control method of a kind of mike and mobile terminal
CN107105367A (en) A kind of acoustic signal processing method and terminal
EP3863268B1 (en) Display control method and related product
CN106954143A (en) Manually adjust the method and electronic equipment of tonequality
CN105703932B (en) Log recording method for uploading, log recording method of reseptance, terminal and server
CN107396198A (en) A kind of video call method and mobile terminal
CN106791109A (en) A kind of sound prompting method and mobile terminal
CN106341535A (en) Audio playing control method and mobile terminal
CN103595859A (en) Method for handling call receiving and an electronic device thereof
CN102130988A (en) Whip dialing method and device
CN106255000A (en) A kind of audio signal sample method and mobile terminal
CN106254640A (en) A kind of task start method based on alarm clock and mobile terminal
CN106302997A (en) A kind of output control method, electronic equipment and system
CN104092809A (en) Communication sound recording method and recorded communication sound playing method and device
CN106357935A (en) Mobile terminal mode switching method and mobile terminal
CN104238812A (en) Transferring method for touch data in touch screen and related device
CN104735227A (en) Quick call recording method and communication terminal
CN104010154A (en) Information processing method and electronic equipment
CN106921802B (en) Audio data playing method and device
CN110086941B (en) Voice playing method and device and terminal equipment
CN107241642A (en) A kind of player method and terminal
CN106453951A (en) Voice control method for call, and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170104

RJ01 Rejection of invention patent application after publication