Nico8800
add transcribe func
700517f
raw
history blame
147 Bytes
import whisper
def transcribe(audio_path):
model = whisper.load_model("base")
result = model.transcribe(audio_path)
return result.text