Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jordimas committed Nov 29, 2024
1 parent e4bfaea commit 6bcdda4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion e2e-tests/testcmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,15 @@ def test_options_vad(self):

with tempfile.TemporaryDirectory() as directory:
_file = "gossos"
cmd = f"cd {directory} && whisper-ctranslate2 {path}/{_file}.mp3 --device cpu --model medium --compute_type float32 --vad_filter True --vad_threshold 0.5 --vad_min_speech_duration_ms 2000 --vad_max_speech_duration_s 50000 --output_dir {directory}"
cmd = (
f"cd {directory} && whisper-ctranslate2 {path}/{_file}.mp3 --device cpu --model medium --compute_type float32 --vad_filter True --vad_threshold 0.5"
" --vad_min_speech_duration_ms 2000 --vad_max_speech_duration_s 50000 --output_dir {directory}"
)
os.system(cmd)
self._check_ref_small(
f"{directory}", _file, "e2e-tests/ref-small-transcribe-vad", "no-option"
)


if __name__ == "__main__":
unittest.main()

0 comments on commit 6bcdda4

Please sign in to comment.