ESPnet How to use SLSCU/thai-dialect_korat_model with ESPnet:
from espnet2.bin.asr_inference import Speech2Text
model = Speech2Text.from_pretrained(
"SLSCU/thai-dialect_korat_model"
)
speech, rate = soundfile.read("speech.wav")
text, *_ = model(speech)[0]