File size: 150 Bytes
700517f
 
 
 
 
e7433d6
1
2
3
4
5
6
import whisper

def transcribe(audio_path):
    model = whisper.load_model("base")
    result = model.transcribe(audio_path)
    return result['text']