stt-spanish / usage.py
datasetsANDmodels's picture
Update usage.py
04fc286 verified
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="stt-spanish",return_timestamps=True)
result=pipe ("spanish.wav", generate_kwargs={"task": "transcribe","language":"es"})["text"]
print (result)