why faster-whisper is slower than openai-whisper? #300
Unanswered
guochen-code
asked this question in
Q&A
Replies: 1 comment 6 replies
-
import os
os.environ["OMP_NUM_THREADS"] = "4"
|
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking for speed up transcription process.
openai-whisper:
start timer
result = model.transcribe(audio_array,language='english',beam_size=1)
print(result["text"])
end timer
faster_whisper:
start timer
segments, _ = model.transcribe(audio_array,language='english',beam_size=1)
print(list(segments)[0].text)
end timer
both are using CPU and 'base.en' model and transcribe a five-word sentence.
The time to complete the transcription:
openai-whisper: ~0.33s
faster-whisper: ~0.5s
is anything wrong here?
Beta Was this translation helpful? Give feedback.
All reactions