diff --git a/pinyin_timestamping.py b/pinyin_timestamping.py index 95848b32..4e0daf8f 100755 --- a/pinyin_timestamping.py +++ b/pinyin_timestamping.py @@ -71,6 +71,7 @@ def digi_to_py(word): model = Model("model") rec = KaldiRecognizer(model, wf.getframerate()) +rec.SetWords(True) while True: data = wf.readframes(1000000)