From b06732dbf5b898cdcdf0aeecf31628a632c21201 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Thu, 27 Aug 2020 19:41:46 +0200 Subject: [PATCH] fine-tuning of dsd audio agc --- csdr/csdr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csdr/csdr.py b/csdr/csdr.py index d9f2606..846ddc7 100644 --- a/csdr/csdr.py +++ b/csdr/csdr.py @@ -213,7 +213,7 @@ class dsp(object): elif which == "nxdn": chain += ["dsd -fi -i - -o - -u {unvoiced_quality} -g -1 "] chain += ["CSDR_FIXED_BUFSIZE=32 csdr convert_s16_f"] - max_gain = 5 + max_gain = 50 # digiham modes else: chain += ["rrc_filter", "gfsk_demodulator"] @@ -227,7 +227,7 @@ class dsp(object): max_gain = 0.005 chain += [ "digitalvoice_filter -f", - "CSDR_FIXED_BUFSIZE=32 csdr agc_ff --max {max_gain} --initial 0.0005".format(max_gain=max_gain), + "CSDR_FIXED_BUFSIZE=32 csdr agc_ff --max {max_gain} --initial {initial_gain}".format(max_gain=max_gain, initial_gain=max_gain / 10), "sox -t raw -r 8000 -e floating-point -b 32 -c 1 --buffer 32 - -t raw -r {output_rate} -e signed-integer -b 16 -c 1 - ", ] elif which == "am":