diff --git a/tests/simple_phrases_russian.mp3 b/tests/simple_phrases_russian.mp3 new file mode 100644 index 00000000..ad9fa0c5 Binary files /dev/null and b/tests/simple_phrases_russian.mp3 differ diff --git a/tests/test_whisper.py b/tests/test_whisper.py index f1c9fa54..fd2a7c7c 100644 --- a/tests/test_whisper.py +++ b/tests/test_whisper.py @@ -10,10 +10,10 @@ def test_whisper(): Config.init_config('../app_conf/testing.ini') whisper = WhisperAudioRecognizer(Config.c.whisper.url) - audio_to_recognize = open("./simple_phrases_russian.wav", "rb") + audio_to_recognize = open("./simple_phrases_russian.mp3", "rb") res = whisper.recognize(audio_to_recognize) print(list(map(lambda x: x.word.value.lower(), res.recognized_words))) - audio_to_recognize = open("./simple_phrases_russian.wav", "rb") + audio_to_recognize = open("./simple_phrases_russian.mp3", "rb") res = whisper.send_audio_to_recognizer(audio_to_recognize) print(list(map(lambda x: x["word"].lower(), res)))