New: VisionPsy-Nano, a 460M vision model that outperforms models twice its size.
QVAC Logo

@qvac/audiogen-ggml

Native music generation with ACE-Step 1.5 and GGML.

Overview

@qvac/audiogen-ggml is a Bare native addon for generating music from captions, lyrics, and musical controls. It runs ACE-Step 1.5 locally with CPU inference or optional Metal/Vulkan acceleration and returns interleaved stereo Int16 PCM.

SDK consumers should use audioGen() through @qvac/sdk. Use this package directly only when building against the addon-level Bare API.

Pipeline

Generation runs through four persistent model stages:

  1. A Qwen3 text encoder for captions and lyrics.
  2. An ACE-Step language model for song structure and musical controls.
  3. A DiT model for latent audio generation.
  4. A VAE decoder for the final waveform.

The models are loaded once and reused between runs.

Models

StageFile
Text encoderQwen3-Embedding-0.6B-Q8_0.gguf
Language modelacestep-5Hz-lm-0.6B-Q8_0.gguf
Turbo DiT, Q4acestep-v15-turbo-Q4_K_M.gguf
Turbo DiT, Q8acestep-v15-turbo-Q8_0.gguf
SFT DiT, Q8acestep-v15-sft-Q8_0.gguf
VAEvae-BF16.gguf

Choose one DiT variant and combine it with the fixed text encoder, language model, and VAE.

Installation

npm install @qvac/audiogen-ggml

The package requires a supported native prebuild and the four GGUF files. Models are not bundled with the addon.

Minimal Bare usage

const { AudioGen } = require("@qvac/audiogen-ggml");

const model = new AudioGen({
  files: {
    modelDir: "/path/to/acestep/models",
    ditVariant: "turbo-q4",
  },
  config: { useGPU: true },
});

await model.load();

const response = await model.run("lo-fi hip hop with mellow piano", {
  lyrics: "[Instrumental]",
  seed: 42,
});

for await (const update of response.iterate()) {
  if (update.outputArray) {
    // Interleaved Int16 PCM at update.sampleRate.
  }
}

const stats = await response.await();
await model.destroy();

For runtime controls, supported encoders, cancellation, and complete examples, see the package README.

On this page

Ask anything about QVAC.