File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
web/flat-web/src/api-middleware/rtc Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,10 @@ export class DeviceTest {
8282 } else {
8383 this . microphoneAudioTrack = await AgoraRTC . createMicrophoneAudioTrack ( {
8484 microphoneId : deviceId ,
85+ // AEC: acoustic echo cancellation
86+ AEC : true ,
87+ // ANS: automatic noise suppression
88+ ANS : true ,
8589 } ) ;
8690 }
8791 }
Original file line number Diff line number Diff line change @@ -136,6 +136,10 @@ export class RtcRoom {
136136 await this . joined ;
137137 this . _localAudioTrack = await AgoraRTC . createMicrophoneAudioTrack ( {
138138 microphoneId : configStore . microphoneId ,
139+ // AEC: acoustic echo cancellation
140+ AEC : true ,
141+ // ANS: automatic noise suppression
142+ ANS : true ,
139143 } ) ;
140144 setMicrophoneTrack ( this . _localAudioTrack as IMicrophoneAudioTrack ) ;
141145 this . _localAudioTrack . once ( "track-ended" , ( ) => {
You can’t perform that action at this time.
0 commit comments