Closed ArboterJams closed 2 weeks ago
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)
Let's close this issue for now. If needed, reopen it.
问题
TypeError: 'list' object cannot be interpreted as an integer
问题代码
环境