Skip to content

v0.2.1

Latest

Choose a tag to compare

@github-actions github-actions released this 15 Nov 02:04

What's Changed

  • Streaming TTS: chunk joins no longer click — the HiFT vocoder rebuilds the mel from the accumulated origin on every callback, and the Flow decoder applies the model's fixed 50-frame mask, so boundaries sound right at any --chunk-tokens. Streaming now also produces the same token stream as one-shot synthesis.
  • LLM: long silent passages no longer stall generation, and sampling retries can no longer collapse the nucleus. Same-seed PCM stays byte-identical for the tested streamed configurations.
  • Loading: models whose packed weights exceed the backend's per-allocation limit now load (fixes Vulkan); allocation failures surface as a load error instead of a crash. COSYVOICE_MAX_WEIGHT_BUFFER_SIZE (bytes, 0 = unlimited) overrides the cap for debugging.
  • Performance: model loading is faster and uses less memory — GGUF metadata strings are parsed zero-copy and the tokenizer vocabulary/merge table is pooled into a single buffer instead of thousands of small allocations
  • CLI: interactive mode now prints the latency with the stats line — first-packet=312.4ms for streaming, total=3570.0ms otherwise: Generated audio 3 (4.20s, rtf=0.85, first-packet=312.4ms), seed=42.
  • Fix (contributed by @lizhe2004): embedding indices are preserved across LLM graph reuse (#39).
  • Windows builds: fresh source builds work again with ICU 79 (its Windows assets are now published as MSVC2026; CMake probes both toolchain names and falls back to 78.2).

New Contributors

Full Changelog: v0.2.0...v0.2.1

Release Packages

These packages only include the core cosyvoice binaries and tools, plus ONNX Runtime.
GGML, ICU, and (for FFmpeg backend) FFmpeg are not included.

To use cosyvoice, you need to download the matching backend libraries separately:

  • GGML:
    Download from llama.cpp releases and extract all GGML libraries (ggml*.dll / libggml*.so* / libggml*.dylib, including the CPU variant modules such as ggml-cpu-<isa>.dll). Place them in the same directory as the cosyvoice binaries. Backends are discovered at runtime from that directory, so omitting the CPU variants leaves the binaries without a CPU backend.
    On macOS, use cp -a (or extract the archive) so the versioned dylib symlink chain stays intact.

    GGML 1.x is required: use a llama.cpp release built after GGML v1.0.0 (2026-11-13). GGML 1.0 pruned the deprecated public API and changed the ggml_op enum values, so 0.x libraries fail to load on Linux/macOS and dispatch the wrong ops on Windows. This supersedes the previous macOS-only Metal requirement.

    Sanity check: run cosyvoice-cli --list-backends — it prints the backends that were actually loaded, and the names shown are exactly what --backend accepts.

  • ICU:
    Required unless using a "No ICU" build.
    On Linux/macOS: install via your package manager.
    On Windows: Download ICU.

  • FFmpeg:
    Required only for FFmpeg backend builds (not needed for miniaudio).
    On Linux/macOS: install via your package manager.
    On Windows: Download FFmpeg
    For Windows, use stable n8.1 builds, e.g.
    ffmpeg-n8.1-latest-win64-lgpl-shared-8.1.zip.

Windows

Windows x64 (FFmpeg)
Windows x64 (miniaudio)
Windows x64 (miniaudio, No ICU)
Windows x64 (No Frontend, No Audio, No ICU)

Linux

Ubuntu x86_64 (FFmpeg)
Ubuntu x86_64 (miniaudio)
Ubuntu x86_64 (miniaudio, No ICU)
Ubuntu x86_64 (No Frontend, No Audio, No ICU)

macOS

macOS arm64 (FFmpeg)
macOS arm64 (miniaudio)
macOS arm64 (miniaudio, No ICU)
macOS arm64 (No Frontend, No Audio, No ICU)

Notes

  • GGML 1.x is required. Prebuilt binaries ship without GGML; take the libraries from a llama.cpp release built after GGML v1.0.0 (2026-11-13). GGML 1.0 removed legacy ops and changed the ggml_op enum values, so 0.x libraries fail to load on Linux/macOS and dispatch wrong ops on Windows. This supersedes the previous macOS-only Metal requirement. Verify with cosyvoice-cli --list-backends.
  • ICU: required unless using a "No ICU" build. Linux/macOS: install via the package manager. Windows: unicode-org/icu releases.
  • FFmpeg: only needed for FFmpeg-backend builds. Linux/macOS: package manager. Windows: BtbN/FFmpeg-Builds, stable n8.1 builds.
  • Known issue with pre-built GGML CUDA (#15): audio noise with CUDA; build GGML from source or use the Vulkan backend.