From 884b233edae38768e7e583dafcf73081fd635599 Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Tue, 2 Apr 2024 16:19:01 +0200 Subject: [PATCH] short test with reduced times --- modem/modem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modem/modem.py b/modem/modem.py index 0ce6eaa4..c02cb678 100644 --- a/modem/modem.py +++ b/modem/modem.py @@ -162,7 +162,7 @@ class RF: callback=self.sd_output_audio_callback, device=out_dev_index, samplerate=self.AUDIO_SAMPLE_RATE, - blocksize=256, + blocksize=600, ) self.sd_output_stream.start() @@ -282,7 +282,7 @@ class RF: if not self.audio_out_queue.empty() and not self.enqueuing_audio: chunk = self.audio_out_queue.get_nowait() audio_8k = self.resampler.resample48_to_8(chunk) - #audio.calculate_fft(audio_8k, self.fft_queue, self.states) + audio.calculate_fft(audio_8k, self.fft_queue, self.states) outdata[:] = chunk.reshape(outdata.shape) else: