From 646253a40eb5ae40d801bf7902b3de16afcdd2c7 Mon Sep 17 00:00:00 2001 From: Denis Date: Tue, 21 May 2024 07:20:42 +0300 Subject: [PATCH] Fixed type of data that written to wav file (#137) --- _sdr/_signal_processing/signal_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_sdr/_signal_processing/signal_utils.py b/_sdr/_signal_processing/signal_utils.py index eccf7145..c14e4fdd 100644 --- a/_sdr/_signal_processing/signal_utils.py +++ b/_sdr/_signal_processing/signal_utils.py @@ -82,7 +82,7 @@ def write_wav(f, sample_freq, x): """ from scipy.io.wavfile import write - write(f, sample_freq, x) + write(f, sample_freq, x.astype(np.int16)) def can_store_file(path: str) -> bool: