short test with reduced times

This commit is contained in:
DJ2LS 2024-04-02 16:19:01 +02:00
parent a9c1e04492
commit 884b233eda

View file

@ -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: