Update usage.py
Browse files
usage.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
from transformers import pipeline
|
| 2 |
|
| 3 |
pipe = pipeline("automatic-speech-recognition", model="stt-spanish",return_timestamps=True)
|
| 4 |
-
result=pipe ("spanish.wav", generate_kwargs={"task": "transcribe"
|
| 5 |
print (result)
|
|
|
|
| 1 |
from transformers import pipeline
|
| 2 |
|
| 3 |
pipe = pipeline("automatic-speech-recognition", model="stt-spanish",return_timestamps=True)
|
| 4 |
+
result=pipe ("spanish.wav", generate_kwargs={"task": "transcribe","language":"es"})["text"]
|
| 5 |
print (result)
|