Update: Working on SDR RX

This commit is contained in:
Logan Cusano
2022-01-02 22:31:28 -05:00
parent f89c3dc1cb
commit 1c08bc6919

2
bot.py
View File

@@ -298,7 +298,7 @@ class Bot(commands.Bot):
# Start the SDR receiver and pipe the output
self.sdr_process = Popen(["rtl_fm", "-M", str(self.mode), "-f", str(self.freq), "-g", str(self.gain),
"-l", str(self.squelch), "-s", str(self.sample_rate), "-E",
str(self.sdr_filters[0]), "-A", "fast"], stdout=PIPE)
str(self.sdr_filters[0])], stdout=PIPE)
# Use the piped output of the SDR receiver to generate audio
self.sdr_output_process = Popen(["play", "-t", "raw", "-r", str(self.play_sample_rate), "-es", "-b",
"16", "-c", "1", "-V1", "-"],