Speech_to_text / app.py
Dinesh1102's picture
Rename main.py to app.py
e2d797d
raw
history blame
193 Bytes
from IPython.display import Audio, display
import whisper
display(Audio('audio.mp3', autoplay=True))
model = whisper.load_model('large')
pred = model.transcribe('audio.mp3')
print(pred['text'])