본문 바로가기
3Dsoftware/Ai

ComfyUI Zonos 오류 해결

by wonilmax 2026. 1. 10.

첫번째

ffmpeg-8.0.1-full_build-shared.zip 파일을 다운로드 해서 > 내부의 bin 폴더의 내용물을 모두 > pythonEmbedded  폴더의 phyton.exe파일이 있는 위치에 복사해서 넣기. 

 

오류 내용

ZonosGenerate
Failed to save audio to <_io.BytesIO object at 0x000001A2255B6340>: Couldn't allocate AVFormatContext. The destination file is <_io.BytesIO object at 0x000001A2255B6340>, check the desired extension? Invalid argument

 

두번째

ComfyUI\custom_nodes\ComfyUI-Zonos > Zonos.py 의 내용을 아래와 같이 수정.

 

370 line - 379 line (원본)

    for (batch_number, waveform) in enumerate(sample_audio["waveform"].cpu()):
                    # Compute hash of audio content
                    audio_hash = self.hash_audio(waveform, sample_audio["sample_rate"])
                   
                    buff = io.BytesIO()
                    torchaudio.save(buff, waveform, sample_audio["sample_rate"], format="WAV")
                    with open(wave_file_name, 'wb') as f:
                        f.write(buff.getbuffer())
                    hasAudio = True
                    break
 
 

 아래 내용으로 완전히 교체

   for (batch_number, waveform) in enumerate(sample_audio["waveform"].cpu()):
                 # Compute hash of audio content
                 audio_hash = self.hash_audio(waveform, sample_audio["sample_rate"])
                 torchaudio.save(wave_file_name, waveform, sample_audio["sample_rate"])
                 hasAudio = True
                 break