Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Dinesh1102
/
Speech_to_text
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
Dinesh1102
commited on
Jun 22, 2023
Commit
e6e47af
·
1 Parent(s):
b18a133
Upload main.py
Browse files
Files changed (1)
hide
show
main.py
+6
-0
main.py
ADDED
Viewed
@@ -0,0 +1,6 @@
1
+
from IPython.display import Audio, display
2
+
import whisper
3
+
display(Audio('audio.mp3', autoplay=True))
4
+
model = whisper.load_model('large')
5
+
pred = model.transcribe('audio.mp3')
6
+
print(pred['text'])