【m】回声抑制
This commit is contained in:
@@ -10,5 +10,29 @@ export function getRTCConfiguration() {
|
||||
let config = {};
|
||||
config.sdpSemantics = 'unified-plan';
|
||||
config.iceServers = getServers();
|
||||
|
||||
// 添加音频处理选项,增强回声消除
|
||||
config.mediaConstraints = {
|
||||
audio: {
|
||||
echoCancellation: true,
|
||||
noiseSuppression: true,
|
||||
autoGainControl: true,
|
||||
highpassFilter: true,
|
||||
typingNoiseDetection: true
|
||||
}
|
||||
};
|
||||
|
||||
// 添加WebRTC音频处理选项
|
||||
config.rtcConfiguration = {
|
||||
'googEchoCancellation': true,
|
||||
'googEchoCancellation2': true,
|
||||
'googNoiseSuppression': true,
|
||||
'googNoiseSuppression2': true,
|
||||
'googAutoGainControl': true,
|
||||
'googAutoGainControl2': true,
|
||||
'googHighpassFilter': true,
|
||||
'googTypingNoiseDetection': true
|
||||
};
|
||||
|
||||
return config;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user