AIFSH / CosyVoice-ComfyUI

a comfyui custom node for CosyVoice
Apache License 2.0
150 stars 18 forks source link

Error with generator of CosyVoiceDubbingNode #54

Open CurrenWong opened 1 month ago

CurrenWong commented 1 month ago

Error Messge

CosyVoice-ComfyUI\nodes.py", line 297, in generate
    curr_output_numpy = curr_output['tts_speech'].squeeze(0).numpy() * 32768
                        ~~~~~~~~~~~^^^^^^^^^^^^^^
TypeError: 'generator' object is not subscriptable
curr_output_numpy = curr_output['tts_speech'].squeeze(0).numpy() * 32768

needs to be changed to

for curr_output_dict in curr_output:
    curr_output_numpy = curr_output_dict['tts_speech'].squeeze(0).numpy() * 32768