open-notebook / asr.py
avinash
addedtiny llama
299633b
raw
history blame contribute delete
165 Bytes
import whisper
model = whisper.load_model("tiny")
def transcribe_audio(file_path: str) -> str:
result = model.transcribe(file_path)
return result["text"]