s / backend /whisper_utils.py
redfernstech's picture
Upload 5 files
6537124 verified
raw
history blame
171 Bytes
import whisper
model = whisper.load_model("base")
def transcribe_audio(file_path: str) -> str:
result = model.transcribe(file_path)
return result["text"]