dscripka / openWakeWord

An open-source audio wake word (or phrase) detection framework with a focus on performance and simplicity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug openwakeword.data.filter_audio_paths

thatsri9ht opened this issue · comments

(Optionally) listen to mixed clips to confirm that the mixing appears correct

mixed_clips, labels, background_clips = next(mixing_generator)
ipd.display(ipd.Audio(mixed_clips[0], rate=16000, normalize=True, autoplay=False))

TypeError Traceback (most recent call last)
in <cell line: 3>()
1 # (Optionally) listen to mixed clips to confirm that the mixing appears correct
2
----> 3 mixed_clips, labels, background_clips = next(mixing_generator)
4 ipd.display(ipd.Audio(mixed_clips[0], rate=16000, normalize=True, autoplay=False))

/content/openwakeword/openwakeword/data.py in mix_clips_batch(foreground_clips, background_clips, combined_size, labels, batch_size, snr_low, snr_high, start_index, foreground_durations, foreground_truncate_strategy, rirs, rir_probability, volume_augmentation, generated_noise_augmentation, shuffle, return_sequence_labels, return_background_clips, return_background_clips_delay, seed)
464
465 # Remove any clips that are silent (happens rarely when mixing/reverberating)
--> 466 error_index = torch.from_numpy(np.where(mixed_clips_batch.max(dim=1) != 0)[0])
467 mixed_clips_batch = mixed_clips_batch[error_index]
468 labels_batch = labels_batch[error_index]

TypeError: _amax() got an unexpected keyword argument 'dim'
1