d34aa1f 8d7fda1 d34aa1f
1
2
3
4
5
6
from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="stt-thai",return_timestamps=True) result=pipe("thai.wav", generate_kwargs={"task": "transcribe","language":"th"})["text"] print (result)