Skip to content

Commit

Permalink
fixing speech enhancing test
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocat93 committed Sep 19, 2024
1 parent e3d5acc commit 3548b61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/audio/tasks/speech_enhancement_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,6 @@ def test_enhance_audios_with_extreme_amplitude(audio_with_extreme_amplitude: Aud
def test_model_caching(resampled_mono_audio_sample: Audio) -> None:
"""Test model caching by enhancing audios with the same model multiple times."""
SpeechBrainEnhancer.enhance_audios_with_speechbrain(audios=[resampled_mono_audio_sample])
assert len(SpeechBrainEnhancer._models) == 1
assert len(list(SpeechBrainEnhancer._models.keys())) == 1
SpeechBrainEnhancer.enhance_audios_with_speechbrain(audios=[resampled_mono_audio_sample])
assert len(SpeechBrainEnhancer._models) == 1
assert len(list(SpeechBrainEnhancer._models.keys())) == 1

0 comments on commit 3548b61

Please sign in to comment.