Skip to content

Bug in zipenhancer (builtin_audio_utils) output #809

Closed

Description

@Disonantemus

I've tested the builtin_audio_utils, all works as expected, except: zipenhancer. With a personal file, the output starts with noise, then silenced parts and just a short part of the original audio.

Command

Using this sample file from Github

$ audiocpp_cli --task s2s --family builtin_audio_utils --model /run/media/user1/audiocpp/assets/framework/audio_utilities/zipenhancer --load-option utility=zipenhancer --backend vulkan --audio four_speaker_short.wav --out zip.wav

Test

To play the audio file:

  • mpv zip.wav
  • ffplay zip.wav

Result

Output file has:

  • noise in the beginning
  • some parts gets silenced
  • noise at the end
  • some parts gets lost by the noise

Version

$ audiocpp_cli --version
audio.cpp 0.9.0
git: 795c45fb 2026-09-30
build: Release, gcc 13.3.0, Linux x86_64
backends: cpu,vulkan

Activity

  1. 0xShug0 commented on Oct 6, 2026

    @0xShug0
    Owner

    Fixed in PR #811 (also fixed a CPU NaN bug). The root cause is zipenhaancer has a local implementation of Swoosh activation that computes log(1 + exp(x)), which can overflow. The fix replaces it with framework’s SwooshRModule.

    Path Waveform Cosine vs Python Gain-Aligned RMSE
    Fixed CUDA 0.999684 0.000669
    Fixed Vulkan 0.999684 0.000669
    Fixed CPU 0.999684 0.000669

    after_cpu.wav
    after_cuda.wav
    after_vulkan.wav
    before_cuda.wav
    before_vulkan.wav
    python.wav

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions