Skip to content

Commit

Permalink
fix whisper tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arhihihipov committed Apr 9, 2024
1 parent b7dcc87 commit 13595e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file added tests/simple_phrases_russian.mp3
Binary file not shown.
4 changes: 2 additions & 2 deletions tests/test_whisper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

0 comments on commit 13595e4

Please sign in to comment.