CN103050125A - Method for realizing echo cancellation on webpage - Google Patents

Method for realizing echo cancellation on webpage Download PDF

Info

Publication number
CN103050125A
CN103050125A CN2011103074408A CN201110307440A CN103050125A CN 103050125 A CN103050125 A CN 103050125A CN 2011103074408 A CN2011103074408 A CN 2011103074408A CN 201110307440 A CN201110307440 A CN 201110307440A CN 103050125 A CN103050125 A CN 103050125A
Authority
CN
China
Prior art keywords
microphone
unit
flash plug
webpage
getenhancedmicrophone
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
CN2011103074408A
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.)
Suzhou Codyy Network Technology Co Ltd
Original Assignee
Suzhou Codyy Network Technology 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 Suzhou Codyy Network Technology Co Ltd filed Critical Suzhou Codyy Network Technology Co Ltd
Priority to CN2011103074408A priority Critical patent/CN103050125A/en
Publication of CN103050125A publication Critical patent/CN103050125A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention provides a method for realizing echo cancellation on a webpage. The method comprises the following steps that a user opens the webpage, the webpage loads a Flash plug-in and the Flash plug-in calls Microphone.getEnhancedMicrophone to open the microphone of the user; the Flash plug-in sets corresponding microphone enhancement strategies of Microphone.getEnhancedMicrophone through attributes in type MicrophoneEnhancedOptions; and the Flash plug-in sets the enhancedOptions of the called Microphone.getEnhancedMicrophone to control the microphone option attributes to be the microphone enhancement strategies.

Description

Realize the method for echo cancellation on a kind of webpage
Technical field
The invention belongs to audio signal processing technique, relate in particular to the method that realizes echo cancellation on a kind of webpage.
Background technology
Along with the development of multimedia technology and popularizing of computing machine, utilize more and more the internet to carry out communication and the transmission of information.Yet the existence of present voice communication sound intermediate frequency echo problem has greatly affected the quality of voice communication.Particularly, when the user carried out voice-enabled chat, Web conference or other audio active by computer, if the user does not wear earphone, when using external audio input device, the sound that the user sends can be gathered by microphone, and plays to the other side of voice communication.So, the other side who carries out voice communication with the user not only hears user's sound, also can hear the sound that sends before own.Above-mentioned echo has greatly affected normal voice communication and has exchanged, and voice communication is exchanged can not unobstructedly be carried out, and it is not good to cause the user to experience.
Summary of the invention
The invention provides the method that realizes echo cancellation on a kind of webpage, to address the above problem.
The invention provides the method that realizes echo cancellation on a kind of webpage.Said method may further comprise the steps: the user opens webpage, and webpage loads the Flash plug-in unit, and the Flash plug-in unit calls the microphone that Microphone.getEnhancedMicrophone opens the user; The Flash plug-in unit strengthens strategy by the corresponding microphone of the setup of attribute Microphone.getEnhancedMicrophone among the class MicrophoneEnhancedOptions; The enhancedOptions control microphone option attribute of the Microphone.getEnhancedMicrophone that the setting of Flash plug-in unit is called is that described microphone strengthens strategy.
The present invention also provides the method that realizes echo cancellation on a kind of webpage.Said method may further comprise the steps: the user opens webpage, and webpage loads the Flash plug-in unit, and the Flash plug-in unit strengthens strategy by the corresponding microphone of the setup of attribute Microphone.getEnhancedMicrophone among the class MicrophoneEnhancedOptions; The Flash plug-in unit calls the microphone that Microphone.getEnhancedMicrophone opens the user.
Compared to prior art, according to the method that realizes echo cancellation on the webpage provided by the invention, after webpage loads the Flash plug-in unit, the Flash plug-in unit carries out the mic echo Processing for removing, thereby effectively avoid the audio frequency echo problem that produces in the voice communication, improve the voice communication quality, promoted user's experience.In addition, echo removing method provided by the invention is realized based on webpage fully, need not to download any plug-in unit, and realizes that principle is simple, can be widely used in the internet, applications such as Web conference, long-distance education.
Description of drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of the application's a part, and illustrative examples of the present invention and explanation thereof are used for explaining the present invention, do not consist of improper restriction of the present invention.In the accompanying drawings:
Figure 1 shows that the process flow diagram of realizing the method for echo cancellation on the webpage that the first preferred embodiment according to the present invention provides;
Figure 2 shows that the process flow diagram of realizing the method for echo cancellation on the webpage that the second preferred embodiment according to the present invention provides.
Embodiment
Hereinafter also describe in conjunction with the embodiments the present invention in detail with reference to accompanying drawing.Need to prove that in the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
Figure 1 shows that the process flow diagram of realizing the method for echo cancellation on the webpage that the first preferred embodiment according to the present invention provides.As shown in Figure 1, realize that the method for echo cancellation comprises step 101~103 on the webpage that the first preferred embodiment of the present invention provides.
In step 101, the user opens webpage, and webpage loads the Flash plug-in unit, and the Flash plug-in unit calls the microphone that Microphone.getEnhancedMicrophone opens the user.
In step 102, the Flash plug-in unit strengthens strategy by the corresponding microphone of the setup of attribute Microphone.getEnhancedMicrophone among the class MicrophoneEnhancedOptions.Particularly, the Flash plug-in unit strengthens echo path, the pattern that microphone is set and the startup Nonlinear Processing that strategy comprises the elimination that sets acho by the corresponding microphone of the setup of attribute Microphone.getEnhancedMicrophone among the class MicrophoneEnhancedOptions.For example, echoPath=128 (echo path of echo cancellation), mode=MicrophoneEnhancedMode.FULL DUPLEX (pattern of microphone is both sides' while speaking mode) and nonLinearProcessing (enabling Nonlinear Processing) are set.Yet the present invention is not limited thereto.In practical application, can adjust accordingly according to practical operation situation.
In step 103, the enhancedOptions of the Microphone.getEnhancedMicrophone that the setting of Flash plug-in unit is called control microphone option attribute is that described microphone strengthens strategy.Wherein, strengthen strategy because the Microphone.getEnhancedMicrophone that the Flash plug-in unit calls has used microphone, at this moment, microphone possesses echo cancellation function.
In addition, in the user loads the Flash plug-in unit and successfully opens microphone by webpage after, the publish method that stream by the Flash plug-in unit is processed class NetStream is published to streaming media server with the sound stream of microphone, and the play method of processing class NetStream by the stream of Flash plug-in unit is simultaneously play the sound stream that receives from streaming media server.
Particularly, when user A and user B carried out voice communication by webpage, user A and user B opened respectively webpage and load the Flash plug-in unit, and Flash plug-in unit such as above-mentioned step 101~103 are carried out Mike's echo cancellation and processed.Afterwards, the publish method that the stream of user A by the Flash plug-in unit is processed class NetStream is published to streaming media server with the sound stream of microphone, and the play method of processing class NetStream by the stream of Flash plug-in unit is simultaneously play the sound stream of the user B that receives from streaming media server.Simultaneously, the publish method that the stream of user B by the Flash plug-in unit is processed class NetStream is published to streaming media server with the sound stream of microphone, and the play method of processing class NetStream by the stream of Flash plug-in unit is simultaneously play the sound stream of the user A that receives from streaming media server.At this moment, because the microphone opened of user A, B has all passed through the echo cancellation processing, therefore, when user A and B carry out voice communication, can avoid the echo problem.
Figure 2 shows that the process flow diagram of realizing the method for echo cancellation on the webpage that the second preferred embodiment according to the present invention provides.As shown in Figure 2, realize that the method for echo cancellation comprises step 201~202 on the webpage that the second preferred embodiment of the present invention provides.
In step 201, the user opens webpage, and webpage loads the Flash plug-in unit, and the Flash plug-in unit strengthens strategy by the corresponding microphone of the setup of attribute Microphone.getEnhancedMicrophone among the class MicrophoneEnhancedOptions.Particularly, the Flash plug-in unit strengthens echo path, the pattern that microphone is set and the startup Nonlinear Processing that strategy comprises the elimination that sets acho by the corresponding microphone of the setup of attribute Microphone.getEnhancedMicrophone among the class MicrophoneEnhancedOptions.For example, echoPath=128 (echo path of echo cancellation), mode=MicrophoneEnhancedMode.FULL_DUPLEX (pattern of microphone is both sides' while speaking mode) and nonLinearProcessing (enabling Nonlinear Processing) are set.Yet the present invention is not limited thereto.In practical application, can adjust accordingly according to practical operation situation.
In step 202, the Flash plug-in unit calls the microphone that Microphone.getEnhancedMicrophone opens the user.Wherein, strengthen strategy because the Microphone.getEnhancedMicrophone that the Flash plug-in unit calls has used microphone, at this moment, microphone possesses echo cancellation function.
In addition, in the user loads the Flash plug-in unit and successfully opens microphone by webpage after, the publish method that stream by the Flash plug-in unit is processed class NetStream is published to streaming media server with the sound stream of microphone, and the play method of processing class NetStream by the stream of Flash plug-in unit is simultaneously play the sound stream that receives from streaming media server.
Particularly, when user A and user B carried out voice communication by webpage, user A and user B opened respectively webpage and load the Flash plug-in unit and successfully open the microphone with echo cancellation function.Afterwards, the publish method that the stream of user A by the Flash plug-in unit is processed class NetStream is published to streaming media server with the sound stream of microphone, and the play method of processing class NetStream by the stream of Flash plug-in unit is simultaneously play the sound stream of the user B that receives from streaming media server.Simultaneously, the publish method that the stream of user B by the Flash plug-in unit is processed class NetStream is published to streaming media server with the sound stream of microphone, and the play method of processing class NetStream by the stream of Flash plug-in unit is simultaneously play the sound stream of the user A that receives from streaming media server.So, when user A and B carry out voice communication, can avoid the echo problem.
In sum, realize the method for echo cancellation on the webpage that preferred embodiment provides according to the present invention, after webpage loads the Flash plug-in unit, the Flash plug-in unit carries out the mic echo Processing for removing, thereby effectively avoid the audio frequency echo problem that produces in the voice communication, improve the voice communication quality, promoted user's experience.In addition, echo removing method provided by the invention is realized based on webpage fully, need not to download any plug-in unit, and realizes that principle is simple, can be widely used in the internet, applications such as Web conference, long-distance education.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. realize the method for echo cancellation on the webpage, it is characterized in that, may further comprise the steps:
The user opens webpage, and webpage loads the Flash plug-in unit, and described Flash plug-in unit calls the microphone that Microphone.getEnhancedMicrophone opens the user;
Described Flash plug-in unit strengthens strategy by the corresponding microphone of the setup of attribute Microphone.getEnhancedMicrophone among the class MicrophoneEnhancedOptions;
The enhancedOptions control microphone option attribute of the Microphone.getEnhancedMicrophone that the setting of described Flash plug-in unit is called is that described microphone strengthens strategy.
2. realize the method for echo cancellation on the webpage according to claim 1, it is characterized in that described Flash plug-in unit strengthens strategy by the corresponding microphone of the setup of attribute Microphone.getEnhancedMicrophone among the class MicrophoneEnhancedOptions and comprises the echo path of eliminating that sets acho, the pattern that microphone is set and startup Nonlinear Processing.
3. realize the method for echo cancellation on the webpage according to claim 1, it is characterized in that, in described user loads the Flash plug-in unit and successfully opens microphone by webpage after, the publish method that stream by the Flash plug-in unit is processed class NetStream is published to streaming media server with the sound stream of microphone, and the play method of processing class NetStream by the stream of Flash plug-in unit is simultaneously play the sound stream that receives from streaming media server.
4. realize the method for echo cancellation on the webpage, it is characterized in that, may further comprise the steps:
The user opens webpage, and webpage loads the Flash plug-in unit, and described Flash plug-in unit strengthens strategy by the corresponding microphone of the setup of attribute Microphone.getEnhancedMicrophone among the class MicrophoneEnhancedOptions;
Described Flash plug-in unit calls the microphone that Microphone.getEnhancedMicrophone opens the user.
5. realize the method for echo cancellation on the webpage according to claim 4, it is characterized in that described Flash plug-in unit strengthens strategy by the corresponding microphone of the setup of attribute Microphone.getEnhancedMicrophone among the class MicrophoneEnhancedOptions and comprises the echo path of eliminating that sets acho, the pattern that microphone is set and startup Nonlinear Processing.
6. realize the method for echo cancellation on the webpage according to claim 4, it is characterized in that, in described user loads the Flash plug-in unit and successfully opens microphone by webpage after, the publish method that stream by the Flash plug-in unit is processed class NetStream is published to streaming media server with the sound stream of microphone, and the play method of processing class NetStream by the stream of Flash plug-in unit is simultaneously play the sound stream that receives from streaming media server.
CN2011103074408A 2011-10-12 2011-10-12 Method for realizing echo cancellation on webpage Pending CN103050125A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103074408A CN103050125A (en) 2011-10-12 2011-10-12 Method for realizing echo cancellation on webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103074408A CN103050125A (en) 2011-10-12 2011-10-12 Method for realizing echo cancellation on webpage

Publications (1)

Publication Number Publication Date
CN103050125A true CN103050125A (en) 2013-04-17

Family

ID=48062740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103074408A Pending CN103050125A (en) 2011-10-12 2011-10-12 Method for realizing echo cancellation on webpage

Country Status (1)

Country Link
CN (1) CN103050125A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113179447A (en) * 2021-04-08 2021-07-27 上海视龙软件有限公司 Method, device and equipment for echo cancellation of webpage playing media stream

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999062241A1 (en) * 1998-05-22 1999-12-02 Home Wireless Networks, Inc. Communications web for pstn subscribers
CN1637857A (en) * 2004-01-07 2005-07-13 株式会社电装 Noise eliminating system, sound identification system and vehicle navigation system
CN1812562A (en) * 2005-01-14 2006-08-02 联发科技股份有限公司 Methods and systems for audio and video communication
CN101155387A (en) * 2006-09-30 2008-04-02 深圳市阿派斯实业有限公司 Individual VoIP integral access equipment based on 3G data-voice double-channel
CN101951336A (en) * 2010-10-11 2011-01-19 苏州阔地网络科技有限公司 Method for displaying states of user microphones in webpage version web conference
CN102130921A (en) * 2011-04-27 2011-07-20 苏州阔地网络科技有限公司 Method and system for realizing two paths of voice communication based on webpage

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999062241A1 (en) * 1998-05-22 1999-12-02 Home Wireless Networks, Inc. Communications web for pstn subscribers
CN1637857A (en) * 2004-01-07 2005-07-13 株式会社电装 Noise eliminating system, sound identification system and vehicle navigation system
CN1812562A (en) * 2005-01-14 2006-08-02 联发科技股份有限公司 Methods and systems for audio and video communication
CN101155387A (en) * 2006-09-30 2008-04-02 深圳市阿派斯实业有限公司 Individual VoIP integral access equipment based on 3G data-voice double-channel
CN101951336A (en) * 2010-10-11 2011-01-19 苏州阔地网络科技有限公司 Method for displaying states of user microphones in webpage version web conference
CN102130921A (en) * 2011-04-27 2011-07-20 苏州阔地网络科技有限公司 Method and system for realizing two paths of voice communication based on webpage

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113179447A (en) * 2021-04-08 2021-07-27 上海视龙软件有限公司 Method, device and equipment for echo cancellation of webpage playing media stream

Similar Documents

Publication Publication Date Title
US8589153B2 (en) Adaptive conference comfort noise
CN111951819B (en) Echo cancellation method, device and storage medium
CN103458137B (en) System and method for the speech enhan-cement in audio conferencing
CN102461139B (en) Enhanced communication bridge
EP2772070B1 (en) Processing audio signals
CN206713019U (en) Active noise reducing device and earphone
CN104243732A (en) Use of vibration sensor in acoustic echo cancellation
CN205092949U (en) Noise -canceling headphones
US9042535B2 (en) Echo control optimization
CN105959842A (en) Earphone noise reduction processing method and device, and earphone
US20200028970A1 (en) Pre-distortion system for cancellation of nonlinear distortion in mobile devices
CN108076239B (en) Method for improving IP telephone echo
WO2011153779A1 (en) Method and terminal for noise suppression using dual-microphone
US20120243676A1 (en) Method and System for Echo Cancellation in Presence of Streamed Audio
US10291759B2 (en) Data return type voice input/output device for smart phone
CN103050125A (en) Method for realizing echo cancellation on webpage
CN105721639A (en) Stereo output device of mobile terminal and mobile terminal
CN102801881A (en) Echo eliminating device
CN104282314A (en) Acoustical signal transmission method and communication equipment
CN106328157A (en) Voice processing circuit, mobile terminal and voice processing method
CN110971769B (en) Call signal processing method and device, electronic equipment and storage medium
US9578161B2 (en) Method for metadata-based collaborative voice processing for voice communication
CN106161218A (en) Method of speech processing in real time phone call and device
CN105120199A (en) Realization method for sound processing in video call
US20220279305A1 (en) Automatic acoustic handoff

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130417