2022-09-09 00:13:02 +03:00

12 lines
189 B
Python
Executable File

#!/usr/bin/env python3
import json
from vosk import Model, KaldiRecognizer
model = Model(lang="en-us")
rec = KaldiRecognizer(model, 8000)
res = json.loads(rec.FinalResult())
print(res)