Skip to content

Commit

Permalink
[test] OpenAI provides whisper-1 only
Browse files Browse the repository at this point in the history
  • Loading branch information
ftnext committed Dec 7, 2024
1 parent 26e5165 commit ee84956
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/recognizers/test_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def test_transcribe_with_openai_whisper(respx_mock, monkeypatch):
audio_data.get_wav_data.return_value = b"audio_data"

actual = whisper.recognize_whisper_api(
MagicMock(spec=Recognizer), audio_data, model="whisper-1"
MagicMock(spec=Recognizer), audio_data
)

assert actual == "Transcription by OpenAI Whisper"
audio_data.get_wav_data.assert_called_once()

0 comments on commit ee84956

Please sign in to comment.