diff --git a/birbnetes_iot_platform_raspberry/record_stuff.py b/birbnetes_iot_platform_raspberry/record_stuff.py index 61d8d5e..bfcd014 100644 --- a/birbnetes_iot_platform_raspberry/record_stuff.py +++ b/birbnetes_iot_platform_raspberry/record_stuff.py @@ -17,7 +17,7 @@ class SlicedRecorder(Thread): def __init__(self, slice_size: float, sample_rate=SAMPLE_RATE, microphone=MICROPHONE, dest_folder=DEST_FOLDER): super().__init__() self._output_queue = Queue() - self._samples_per_slice = slice_size * sample_rate + self._samples_per_slice = int(slice_size * sample_rate) self._dest_folder = dest_folder self._sample_rate = sample_rate self._inp = alsaaudio.PCM(