sibozhang / Text2Video

ICASSP 2022: "Text2Video: text-driven talking-head video synthesis with phonetic dictionary".
https://sites.google.com/view/sibozhang/text2video
421 stars 92 forks source link

KeyError: 'result' #2

Closed TomatoBoy90 closed 3 years ago

TomatoBoy90 commented 3 years ago

when I run chinese example i will get KeyError: 'result'.

TomatoBoy90 commented 3 years ago

I print this res follows: {'text': '胜算 为你 查询 合肥 的 天气 情况 今天 是 二零二零年 二月 二十四 与 合肥市 今天 多云 最低 温度 九 摄氏度 最高 温度 食物 摄氏度 微风'} it does not have a key 'result'

Augnine commented 3 years ago

I have the same problem,I add a line of code in "pinyin_timestamping,py" rec = KaldiRecognizer(model, wf.getframerate()) rec.SetWords(True)

I think it works

sibozhang commented 3 years ago

The issue is fixed.