FGCom[-sa]: add IAX denoiser and auto gain + set silence threshold
This commit is contained in:
parent
fde46e7ee3
commit
d5b70e98e0
2 changed files with 4 additions and 0 deletions
|
@ -233,6 +233,8 @@ void FGCom::postinit()
|
|||
iaxc_set_callerid( _callsign_node->getStringValue(), app.c_str() );
|
||||
iaxc_set_formats (IAXC_FORMAT_SPEEX, IAXC_FORMAT_SPEEX);
|
||||
iaxc_set_speex_settings(1, 5, 0, 1, 0, 3);
|
||||
iaxc_set_filters(IAXC_FILTER_AGC | IAXC_FILTER_DENOISE);
|
||||
iaxc_set_silence_threshold(-20.0);
|
||||
iaxc_start_processing_thread ();
|
||||
|
||||
// Now IAXClient is initialized
|
||||
|
|
|
@ -450,6 +450,8 @@ main (int argc, char *argv[])
|
|||
iaxc_set_callerid ( callsign, app.c_str() );
|
||||
iaxc_set_formats (IAXC_FORMAT_SPEEX, IAXC_FORMAT_SPEEX);
|
||||
iaxc_set_speex_settings(1, 5, 0, 1, 0, 3);
|
||||
iaxc_set_filters(IAXC_FILTER_AGC | IAXC_FILTER_DENOISE);
|
||||
iaxc_set_silence_threshold(-20.0);
|
||||
iaxc_set_event_callback (iaxc_callback);
|
||||
|
||||
iaxc_start_processing_thread ();
|
||||
|
|
Loading…
Reference in a new issue