Open hjj-lmx opened 4 days ago
'generator' object is not subscriptable
prompt_audio = (prompt_speech.numpy() * (2 ** 15)).astype(np.int16).tobytes() prompt_speech_16k = torch.from_numpy(np.array(np.frombuffer(prompt_audio, dtype=np.int16))).unsqueeze(dim=0) prompt_speech_16k = prompt_speech_16k.float() / (2 ** 15) output = clone_model.inference_cross_lingual(f'<|{lang}|>{doubao_content}', prompt_speech_16k, True)
看readme,用新的方法
新的方法没有看到怎么返回流
'generator' object is not subscriptable