e8a4c92
1
2
3
4
5
6
7
8
import whisper model = whisper.load_model("base") def transcribe_audio(file_path: str) -> str: result = model.transcribe(file_path) return result["text"]