From 9c1cc13e514307997e1fe2b084dda47f34633e48 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 20 May 2021 21:54:27 +0200 Subject: [PATCH] Fixed syntax on micmon --- ...ate-your-smart-baby-monitor-with-Platypush-and-Tensorflow.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/pages/Create-your-smart-baby-monitor-with-Platypush-and-Tensorflow.md b/static/pages/Create-your-smart-baby-monitor-with-Platypush-and-Tensorflow.md index 46d6c16..978c621 100644 --- a/static/pages/Create-your-smart-baby-monitor-with-Platypush-and-Tensorflow.md +++ b/static/pages/Create-your-smart-baby-monitor-with-Platypush-and-Tensorflow.md @@ -214,7 +214,7 @@ for audio_dir in audio_dirs: dataset_file = os.path.join(datasets_dir, os.path.basename(audio_dir.path) + '.npz') print(f'Processing audio sample {audio_dir.path}') - with AudioFile(audio_dir) as reader, \ + with AudioFile(audio_dir.audio_file, audio_dir.labels_file) as reader, \ DatasetWriter(dataset_file, low_freq=cutoff_frequencies[0], high_freq=cutoff_frequencies[1]) as writer: