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