Fixed syntax on micmon

This commit is contained in:
Fabio Manganiello 2021-05-20 21:54:27 +02:00
parent 4b2507a710
commit 9c1cc13e51

View file

@ -214,7 +214,7 @@ for audio_dir in audio_dirs:
dataset_file = os.path.join(datasets_dir, os.path.basename(audio_dir.path) + '.npz') dataset_file = os.path.join(datasets_dir, os.path.basename(audio_dir.path) + '.npz')
print(f'Processing audio sample {audio_dir.path}') 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, DatasetWriter(dataset_file,
low_freq=cutoff_frequencies[0], low_freq=cutoff_frequencies[0],
high_freq=cutoff_frequencies[1]) as writer: high_freq=cutoff_frequencies[1]) as writer: