try to handle clipping problems with agc
This commit is contained in:
parent
4934e91e74
commit
0c59caa230
7
csdr.py
7
csdr.py
@ -108,14 +108,15 @@ class dsp(object):
|
|||||||
elif which == "nxdn":
|
elif which == "nxdn":
|
||||||
chain += "dsd -fi"
|
chain += "dsd -fi"
|
||||||
chain += " -i - -o - -u {unvoiced_quality} -g 10 | "
|
chain += " -i - -o - -u {unvoiced_quality} -g 10 | "
|
||||||
|
chain += "digitalvoice_filter | sox -V -v 0.95 -t raw -r 8000 -e signed-integer -b 16 -c 1 --buffer 32 - -t raw -r {output_rate} -e signed-integer -b 16 -c 1 - "
|
||||||
# digiham modes
|
# digiham modes
|
||||||
else:
|
else:
|
||||||
chain += "rrc_filter | csdr convert_f_s16 | gfsk_demodulator | "
|
chain += "rrc_filter | csdr convert_f_s16 | gfsk_demodulator | "
|
||||||
if which == "dmr":
|
if which == "dmr":
|
||||||
chain += "dmr_decoder --fifo {meta_pipe} | mbe_synthesizer -u {unvoiced_quality} | "
|
chain += "dmr_decoder --fifo {meta_pipe} | mbe_synthesizer -f -u {unvoiced_quality} | "
|
||||||
elif which == "ysf":
|
elif which == "ysf":
|
||||||
chain += "ysf_decoder --fifo {meta_pipe} | mbe_synthesizer -y -u {unvoiced_quality} | "
|
chain += "ysf_decoder --fifo {meta_pipe} | mbe_synthesizer -y -f -u {unvoiced_quality} | "
|
||||||
chain += "digitalvoice_filter | sox -V -v 0.95 -t raw -r 8000 -e signed-integer -b 16 -c 1 --buffer 32 - -t raw -r {output_rate} -e signed-integer -b 16 -c 1 - "
|
chain += "digitalvoice_filter -f | csdr agc_ff 160000 0.8 1 0.0000001 0.0005 | csdr convert_f_s16 | sox -t raw -r 8000 -e signed-integer -b 16 -c 1 --buffer 32 - -t raw -r {output_rate} -e signed-integer -b 16 -c 1 - "
|
||||||
elif which == "am":
|
elif which == "am":
|
||||||
chain += "csdr amdemod_cf | csdr fastdcblock_ff | "
|
chain += "csdr amdemod_cf | csdr fastdcblock_ff | "
|
||||||
chain += last_decimation_block
|
chain += last_decimation_block
|
||||||
|
Loading…
Reference in New Issue
Block a user