Spaces:
Runtime error
Runtime error
File size: 436 Bytes
2ce5e31 7086931 914e1c2 e1a5894 914e1c2 7086931 914e1c2 |
1 2 3 4 5 6 7 8 9 |
from transformers import pipeline
with open("mlk.flac", "rb") as f:
data = f.read()
pipe = pipeline("automatic-speech-recognition", "openai/whisper-large-v2")
pipe("mlk.flac")
# {'text': "GOING ALONG SLUSHY COUNTRY ROADS AND SPEAKING TO DAMP AUDIENCES IN DRAUGHTY SCHOOL ROOMS DAY AFTER DAY FOR A FORTNIGHT HE'LL HAVE TO PUT IN AN APPEARANCE AT SOME PLACE OF WORSHIP ON SUNDAY MORNING AND HE CAN COME TO US IMMEDIATELY AFTERWARDS"}
|