From d520bf5971aa68d5c1b5dffee42280f7cfd9d53e Mon Sep 17 00:00:00 2001 From: Tobias Blomberg Date: Sat, 19 Dec 2020 14:43:57 +0100 Subject: [PATCH] Filter out CTCSS band for voice output Interference on CTCSS transmission could be caused by low frequency content in audio clips or incoming audio on Echolink for example. --- src/svxlink/ChangeLog | 4 ++++ src/svxlink/trx/LocalTx.cpp | 14 ++++++++++++-- src/versions | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/svxlink/ChangeLog b/src/svxlink/ChangeLog index a15f7929..a37a7cb1 100644 --- a/src/svxlink/ChangeLog +++ b/src/svxlink/ChangeLog @@ -84,6 +84,10 @@ * Use the new configuration variable COMMAND_PTY to set up a PTY that can be used to send commands to a logic core. +* Filter out CTCSS band for voice output. Interference on CTCSS transmission + could be caused by low frequency content in audio clips or incoming audio on + Echolink for example. + 1.7.0 -- 01 Sep 2019 diff --git a/src/svxlink/trx/LocalTx.cpp b/src/svxlink/trx/LocalTx.cpp index abbecdfa..d7532d42 100644 --- a/src/svxlink/trx/LocalTx.cpp +++ b/src/svxlink/trx/LocalTx.cpp @@ -488,7 +488,7 @@ bool LocalTx::initialize(void) prev_src->registerSink(clipper, true); prev_src = clipper; -#if 1 +#if 0 // Filter out high frequencies generated by the previous clipping #if (INTERNAL_SAMPLE_RATE == 16000) //AudioFilter *splatter_filter = new AudioFilter("LpBu10/5500"); @@ -499,7 +499,17 @@ bool LocalTx::initialize(void) prev_src->registerSink(splatter_filter, true); prev_src = splatter_filter; #endif - + +#if (INTERNAL_SAMPLE_RATE == 16000) + AudioFilter *voiceband_filter = + new AudioFilter("LpCh9/-0.05/5500 x HpCh12/-0.05/300"); +#else + AudioFilter *voiceband_filter = + new AudioFilter("LpBu20/3500 x HpCh12/-0.05/300"); +#endif + prev_src->registerSink(voiceband_filter, true); + prev_src = voiceband_filter; + // Create a valve so that we can control when to transmit audio #if USE_AUDIO_VALVE audio_valve = new AudioValve; diff --git a/src/versions b/src/versions index 2fe0538d..ab51cb30 100644 --- a/src/versions +++ b/src/versions @@ -11,7 +11,7 @@ LIBECHOLIB=1.3.3 LIBASYNC=1.6.0.99.11 # SvxLink versions -SVXLINK=1.7.99.26 +SVXLINK=1.7.99.27 MODULE_HELP=1.0.0 MODULE_PARROT=1.1.1 MODULE_ECHO_LINK=1.5.99.0