Suppress noise on incoming voice
This commit is contained in:
parent
6844b1047a
commit
063e7ca105
|
@ -184,7 +184,7 @@ tsk_size_t tdav_consumer_audio_get(tdav_consumer_audio_t* self, void* out_data,
|
|||
tsk_buffer_copy(self->denoise->last_frame, 0, out_data, ret_size);
|
||||
}
|
||||
|
||||
#if 0 // Noise suppression only on producers
|
||||
#if 1 // suppress noise if not supported by remote party's encoder
|
||||
// suppress noise
|
||||
tmedia_denoise_process_playback(self->denoise, out_data);
|
||||
#endif
|
||||
|
|
|
@ -171,9 +171,6 @@ static int tdav_session_audio_producer_enc_cb(const void* callback_data, const v
|
|||
if(audio->denoise->echo_supp_enabled ){
|
||||
ret = tmedia_denoise_process_record(TMEDIA_DENOISE(audio->denoise), (void*)buffer, &silence_or_noise);
|
||||
}
|
||||
else if(audio->denoise->vad_enabled || audio->denoise->noise_supp_enabled){
|
||||
ret = tmedia_denoise_process_playback(TMEDIA_DENOISE(audio->denoise), (void*)buffer);
|
||||
}
|
||||
}
|
||||
// adjust the gain
|
||||
if(audio->producer->audio.gain){
|
||||
|
|
Loading…
Reference in New Issue