FunASR
FunASR copied to clipboard
直接语音输入比较短的句子会出问题
trafficstars
问题
- 比如语音输入“二十二”,出现
TypeError: 'list' object cannot be interpreted as an integer问题 - 还有怎么能让输出为数字,比如电话号码
代码
funasr_model= AutoModel(model="./FunASR/paraformer-zh", vad_model="./FunASR/fsmn-vad", punc_model="./FunASR/ct-punc", device="cuda:3")
filename = "./audio.wav"
with open(filename, "wb") as f:
f.write(recorder.export().read())
result = funasr_model.generate(input=filename)
print(result)
环境
- Ubuntu
- FunASR 1.0.22