Spaces:
Runtime error
Runtime error
from faster_whisper import WhisperModel | |
model = WhisperModel("faster-whisper-large-v3-turbo-ct2") | |
segments, info = model.transcribe("audio.wav") | |
for segment in segments: | |
print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text)) | |