Summary of the invention
For achieving the above object, the invention provides a kind of method reducing voip phone system telephone echo, the second voice router that this voip phone system comprises first terminal phone, connects the first voice router of this first terminal phone, be connected with this first voice router by network and the second terminal telephone being connected this second voice router, wherein, this first terminal phone and the second terminal telephone are all multitone multifrequency telephones, and the method comprises the following steps:
Receive user's input of described second terminal telephone preset for regulate voip phone echo dtmf key value corresponding to input signal;
The RTP message bag of a test is sent to described second voice router, and receive by described voip phone system institute transmit the RTP message bag corresponding with the RTP message bag of described test, and calculating one RTP message wrap in the time that in VoIP phonological loop, one-way transmission spends; Wherein, VoIP echo test command drawn together by the RTP message handbag of this test;
Store described first voice router to send to the RTP message bag of described second voice router and receive other RTP message bag received by described first voice router, wherein, user's communication voice messaging drawn together by this RTP message handbag;
The RTP message bag that received RTP message bag and last one-way transmission time send is analyzed judge that whether received RTP message bag is identical with the RTP message bag sent;
When received RTP message bag is identical with sent RTP message bag, the received RTP message bag identical with sent RTP message bag is deleted.
In addition, the present invention also provides a kind of and reduces voip phone echo device, be applied in voip phone system, the second voice router that this voip phone system comprises first terminal phone, connects the first voice router of this first terminal phone, be connected with this first voice router by network and the second terminal telephone being connected this second voice router, wherein, this first terminal phone and the second terminal telephone are all multitone multifrequency telephones, and this device comprises:
Voice transmitting-receiving module, for sending the RTP message bag of a test to described second voice router, to receive through VoIP phonological loop transmit other RTP message bags in RTP message bag corresponding to RTP message bag that is that return and described test and voip phone loop, wherein, the voice messaging of VoIP echo test command and user's communication drawn together by described RTP message handbag;
Time-obtaining module, wraps in for obtaining a RTP message time that the one-way transmission in VoIP phonological loop spends;
Speech reproduction module, is stored in the first voice router for described first voice router being sent to the RTP message bag of described second voice router;
Speech comparison module, for the RTP message bag received by described voice transmitting-receiving module and the RTP message bag that speech reproduction module stores are compared to judge that whether two message bags identical, if two RTP message bags are identical, generate a signal and by this signal transmission give an echo cancellation module; And
Described echo cancellation module, for after the signal receiving the transmission of described Speech comparison module, eliminates the RTP message bag identical with the RTP message bag that described speech reproduction module stores received by described voice transmitting-receiving module.
Relative to prior art, the method of adjustment voip phone echo provided by the present invention and device are by storing the data that send and received data and stored data being compared to judge that whether two data are identical in router side, when two data are identical, just received data are deleted, to reduce the echo in VoIP phonological loop.
Embodiment
The method of reduction voip phone echo of the present invention on the voip phone machine of local side, inputs predetermined DTMF (DualToneMultiFrequency by user, multitone multifrequency) phone key assignments to send the control command regulating echo in VoIP phonological loop to the other side with its call, just to the echo in voip phone loop, reduction is carried out when receiving the control command of this adjustment echo to the echo adjusting device (can be voice router or voice gateways) of square end and regulates process.
Refer to Fig. 1, voip phone system provided by the present invention comprises: local terminal terminal telephone A, local terminal first voice router 100 be connected with local terminal terminal telephone A, opposite end second voice router 200, the distant terminal phone B be connected with opposite end second voice router 200.Wherein, local terminal first voice router 100 and opposite end second voice router 200 carry out data communication by IP network 300.In an embodiment of the present invention, local terminal first voice router 100 is identical with opposite end second voice router 200 function.In order to simplified characterization, only local terminal first voice router 100 is described in detail at this.
Refer to Fig. 2, local terminal first voice router 100 comprises codec unit 10, recognition unit 20 and echo processing unit 30.
In embodiments of the present invention, terminal telephone machine need be DTMF telephone set, and user can input the order for regulating the dtmf key value of voip phone echo to carry out distally voice router transmission adjustment voip phone echo preset on terminal D TMF telephone set.The user of such as local terminal terminal telephone A can input the order that " * 01 " these three buttons pre-set to send to opposite end second voice router 200 of distant terminal phone B the echo regulated in whole voip phone on local terminal terminal telephone A simultaneously continuously.
The digital signal that distant terminal phone B transmits for encoding to from the input signal corresponding to the voice signal of local terminal terminal telephone A and dtmf key value and be converted to digital signal, and is carried out decoding and is converted to the VoIP voice regulable control signal corresponding to voice signal and dtmf key value by codec unit 10.In an embodiment of the present invention, the digital signal formed after coding is RTP message bag.
Recognition unit 20 identify local terminal first voice router 100 received through opposite end second voice router 200 transmit from the dtmf key value whether carried in the RTP message bag of distant terminal phone B for regulating in voip phone echo.When recognition unit 20 recognize in the RTP message bag that distant terminal phone B transmits default for regulating the dtmf key value of VoIP language echo time, generate a signal and this signal sent to echo processing unit 30.
Echo processing unit 30 is connected with recognition unit 20, for when receiving the signal that recognition unit 20 sends, carries out adjustment process to the echo in IP phone loop.
Echo processing unit 30 comprises a voice transmitting-receiving module 31, time-obtaining module 32, speech reproduction module 33, Speech comparison module 34 and echo cancellation module 35.
Voice transmitting-receiving module 31 sends the RTP message bag of a test to described opposite end second voice router 200, the RTP message bag also receiving this test through VoIP phonological loop transmit the RTP message bag of the correspondence of returning, wherein, VoIP echo test command drawn together by the RTP message handbag of this test.
Time-obtaining module 32 obtains a RTP message and wraps in the time that in whole VoIP phonological loop, one-way transmission spends.In the present embodiment, time-obtaining module 32 by record local terminal first voice router 100 send RTP message that the time point of the RTP message bag of test and record local terminal first voice router 100 receive above-mentioned test through VoIP phonological loop transmit the RTP message bag of the correspondence of returning time point obtain a RTP message and wrap in the time that in VoIP phonological loop, one-way transmission spends.
Speech reproduction module 33 will send to the RTP message bag of opposite end second voice router 200 for storing local terminal first voice router 100, and wherein, the language message of user's communication drawn together by this RTP message handbag.In the present embodiment, speech reproduction module 33 stored this RTP message bag before local terminal first voice router 100 sends RTP message bag.
Voice transmitting-receiving module 31 also to receive in voip phone other RTP message bag.In the present embodiment, voice transmitting-receiving module 31 not only receives the RTP message bag that opposite end second voice router 200 sends to local terminal first voice router 100, also receive local terminal first voice router 100 send to the RTP message bag of opposite end second voice router 200 to return through the transmission of VoIP phonological loop the RPT message bag of correspondence.
RTP message bag received by voice transmitting-receiving module 31 and the RTP message bag that voice transmitting-receiving module 31 stores compare to judge that whether two message bags are identical by Speech comparison module 34.In the present embodiment, Speech comparison module 34 just does a comparison process to the RTP message bag received by voice transmitting-receiving module 31 and the RTP message bag stored at interval of the one-way transmission time.In the present embodiment, when in two RTP message bags, identical data exceedes certain ratio, Speech comparison module 34 just judges that two RTP message bags are identical, generates a signal and this signal is sent to echo cancellation module 35.
Echo cancellation module 35, after receiving the signal that Speech comparison module 34 sends, deletes the RTP message bag identical with sent RTP message bag received by voice transmitting-receiving module 31.
After echo cancellation module 35 processes, be eliminated from the echo of local terminal terminal telephone A in whole VoIP phonological loop, this echo will cause phonetic hearing to affect on the user of distant terminal phone B.
But, RTP message wraps in the process of whole voip phone circuit transmission, also certain noise signals can be introduced for various reasons, this noise signals can be returned in company with the transmission of original RTP message bag, when transmitting the noise signals of returning and exceeding some strength, also can impact the speech quality of the terminal use in voip phone.The present invention has also done further improvement for this problem.
In another embodiment of the present invention, local terminal first voice router 100 also comprises signal strength detection unit 40 and a noise processing unit 50.
Intensity detection unit 40, whether the intensity for detecting the TRP message bag in the VoIP language loop after echo cancellation process is less than the intensity preset.When the intensity of the TRP message bag in VoIP phonological loop is less than default intensity, just thinks that this TRP message bag is noise signals bag, should Processing for removing be given.If when the voice digital signal intensity after echo cancellation process is greater than default intensity, then think that this TRP message bag is the voice signal bag that the user of distant terminal phone B passes to local terminal terminal telephone party A-subscriber.The intensity of TRP message bag is noise signals bag lower than this TRP message bag during preset strength, and noise processing unit 50 is deleted should lower than the TRP message bag of preset strength in VoIP phonological loop.
In an execution mode more of the present invention, local terminal first voice router 100 also comprises a prompt tone playing control unit 60, for process the noise signals in whole VoIP phonological loop when described noise processing unit 50 after, send a prompt tone Play Control signal to distant terminal phone B.Distant terminal phone B just plays a prompt tone after receiving this control signal, makes the user of distant terminal phone B can know that the echo in this voip phone is disposed according to this prompt tone.
Before the method describing the reduction IP phone echo described in the embodiment of the present invention, first establish the end-to-end voice channel of local terminal terminal telephone A and distant terminal phone B, these are prior art, are not described in detail at this.After establishing connection, the user of distant terminal phone B finds that the echo when answering the phone of local terminal terminal telephone A in voip phone is too large, affects the call between the user of distant terminal phone B and local terminal terminal telephone party A-subscriber.Therefore, the user of distant terminal phone B carries out adjustment process by method provided by the present invention to the echo in whole voip phone, and refer to Fig. 3, the method specifically comprises the following steps:
Step S301: distant terminal phone B receive that user inputs on distant terminal phone B preset for regulating the dtmf key value of voip phone echo instruction and generating corresponding input signal, the input signal corresponding to this dtmf key value carries out encoded translatedly this TRP message bag being sent to local terminal first voice router 100 of local terminal terminal telephone A by IP network 300 for corresponding TRP message bag by the codec unit 10 of opposite end second voice router 200.
The recognition unit 20 of local terminal first voice router 100 of step S302: local terminal terminal telephone A generates a signal and this signal is sent to echo processing unit 30 after recognizing the TRP message bag corresponding to this dtmf key value.
Step S303: echo processing unit 30 just carries out adjustment process to the echo in whole voip phone when receiving the signal that recognition unit 20 sends.
Refer to Fig. 4, step S303 specifically comprises the following steps:
Step S3031: voice transmitting-receiving module 31 sends the RTP message bag of a test to opposite end second voice router 200, the RTP message bag also receiving this test through VoIP phonological loop transmit the RTP message bag of the correspondence of returning, time-obtaining module 32 obtains a RTP message and wraps in and be delivered to from local terminal first voice router 100 time that opposite end second voice router 200 spends, wherein, VoIP echo test command drawn together by the RTP message handbag of this test.
In the present embodiment, time-obtaining module 32 by record local terminal first voice router 100 send RTP message that the time point of the RTP message bag of test and record local terminal first voice router 100 receive above-mentioned test through VoIP phonological loop transmit the RTP message bag of the correspondence of returning time point obtain a RTP message and wrap in the time that in VoIP phonological loop, one-way transmission spends.
Step S3032: speech reproduction module 33 stores the RTP message information that local terminal first voice router 100 will send to opposite end second voice router 200.In the present embodiment, speech reproduction module 33 stored this RTP message bag before local terminal first voice router 100 sends RTP message bag.
Step S3033: voice transmitting-receiving module 31 receives the RTP message bag of the correspondence that the RTP message bag that sends from opposite end second voice router 200 and local terminal first voice router 100 send to the PRT message bag of opposite end second voice router 200 to return through the transmission of VoIP phonological loop, wherein, the language message of user's communication drawn together by this RTP message handbag.
Step S3034: the RTP message bag received by voice transmitting-receiving module 31 carries out contrasting to judge that whether two message bags are identical at the RTP message bag that the last one-way transmission time stores with speech reproduction module 33 by Speech comparison module 34; If identical, then enter step S3035; Otherwise terminate this flow process.
In the present embodiment, when in the RTP message bag that the RTP message bag received by voice transmitting-receiving module 31 and speech reproduction module 33 store, identical data exceedes certain ratio, just judge that two RTP message bags are identical, the RTP message bag namely received by voice transmitting-receiving module 31 be last one-way transmission time local terminal first voice router 100 send to the RTP message bag of opposite end second voice router 200 through VoIP phonological loop transmit the RTP message bag of the correspondence of returning.
Step S3035: echo cancellation module 35 deletes the identical RTP message bag stored with speech reproduction module 33 received by voice transmitting-receiving module 31.
In another embodiment, the method also comprises step S3036:
Step S3036: signal strength detection unit 40 carries out intensity detection to the RTP message bag after handled via echo cancellation module 35 and judges whether the intensity of this RTP message bag is less than default intensity level; If so, just think that this RTP message bag is noise signals bag, delete processing need be carried out to it, then enter step S3037, if not, then enter step S3038.
Step S3037, noise processing unit 50 deletes this RTP message bag being less than preset strength value.
Step S3038, prompt tone playing control unit 60 sends a prompt tone play signal to opposite end second voice router 200 of described distant terminal phone B, opposite end second voice router 200 of distant terminal phone B controls distant terminal phone B upon receipt of the signal and plays a prompt tone, to inform that this echo of user adjustment that distant terminal phone B holds completes.
Relative to prior art, the individual event transmission time that the present invention runs in whole voip phone loop by obtaining echo, and may on the echo information of user conversation impact and the efficiency improving echo processing to eliminate in time at interval of just carrying out single treatment to the echo in this voip phone loop during an individual event transmission time.
The technical staff in field of the present invention should be realized that, above-described embodiment is only used to the present invention is described, but not limitation of the present invention, as long as the change made within spirit of the present invention and change all fall within protection scope of the present invention.