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