Skip to content

Fel's Voice Lab 0.2.0

Choose a tag to compare

@Fel101 Fel101 released this 10 Nov 05:33
· 145 commits to main since this release

Every model now installs from its card on the Models page, and each card has a GPU/CPU switch. The models that run on a
graphics card get AMD's ROCm build on an AMD Radeon as well as NVIDIA's CUDA build. Voice conversion takes recordings from
this computer, and update.bat names every model whose packages or files an update changes. A 0.1.0 folder updates with
update.bat.

Models & features

  • A GPU/CPU switch on every card. On a computer whose graphics card the service uses, each model's card has a Runs on
    GPU | CPU
    switch. The choice is kept per model in data/engines/devices.json and applies from the model's next load: a
    loaded model is unloaded when it is switched. A model that is not installed yet installs the build its switch shows, so
    Install puts in the NVIDIA build when GPU is chosen and the card can run it. A model installed with the CPU build of
    PyTorch runs on the CPU until its GPU build is installed, and its card then offers Install GPU build, which replaces
    PyTorch in its environment and nothing else. GPU is greyed out, with the reason under it, where it cannot work: Phonon and
    Drama 3 run on the CPU, and a card or driver the build cannot run on is named. A service that runs everything on the CPU
    shows no switches and says so once. Each card's tests and its state line are those of the device it runs on now. New route:
    POST /api/engines/{engine_id}/device; POST /api/engines/{engine_id}/install takes nvidia.

  • The install window. Install opens the installer's plan in a window over the page, and Install now follows the
    install there, with its output, until it finishes; Hide leaves it running and Show progress on the card opens it
    again. The cards no longer widen or grow while a plan is open or an install runs, so the page stays where it is: a card's
    text stays the same for the whole install, and its buttons sit at its foot.

  • Chatterbox on RTX 50 cards. setup-chatterbox.bat --nvidia now installs the CUDA 13.0 builds of PyTorch 2.12 (the same
    file as Kokoro's NVIDIA build) and torchaudio 2.11 instead of PyTorch 2.6 with CUDA 12.6, which has no code for RTX 50 series
    cards. Chatterbox Turbo was checked to load, speak and clone a voice with PyTorch 2.12 and torchaudio 2.11 (their CPU builds).
    The build needs a GeForce GTX 16 or RTX 20 series card or newer and an NVIDIA driver of version 580 or later, as Kokoro's
    does, so setup.bat now gives both models their NVIDIA builds on an RTX 50 card. The CPU build is unchanged. Neither NVIDIA
    build has run on an NVIDIA card yet.

  • Every model installs from its card. The nine models that had no Install button have one now, and a launcher in the
    lab folder; each installer prints its plan and asks first, pins every package and file by its SHA-256, continues an
    interrupted download, and ends with a speech check.

    • Chatterbox 500M and Voice Conversion: setup-chatterbox.bat --original adds their 3.2 GB checkpoint to Chatterbox
      Turbo's environment, for the CPU or, with --gpu, a graphics card. On one 8-core CPU the 500M loaded in 41 s and spoke
      1.9 s of audio in 16.5 s.
    • The four Qwen3-TTS models: setup-qwen.bat --model <model> installs 66 packages into .venv-fqwen, which the four
      share, and one model's checkpoint. The Base models' check clones the clip Kokoro's installer makes.
    • VoxCPM2: setup-voxcpm.bat makes .venv-voxcpm with 62 packages and fetches the checkpoint and the 25 source files
      of VoxCPM its inference imports, at a pinned commit. Its worker no longer needs the Qwen environment's packages; a
      .venv-voxcpm without PyTorch still borrows them.
    • Breeze TTS 2: setup-breeze.bat installs 41 packages and the 7.7 GB BF16 checkpoint. Its plan says first that the
      weights are for research and non-commercial use only.
    • Drama 3: setup-drama3.bat replaces running tools/install_drama3.py by hand. Its plan states the Fish Audio
      Community License first, it refuses a computer with less than 26 GB of RAM, it fetches the 20.8 GB model in 32 MB pieces
      six at a time, and it ends with a speech check on the CPU (on one 8-core CPU: loaded in 28 s, 2.3 s of audio in 9 s).

    The Qwen3-TTS models, VoxCPM2 and Breeze TTS 2 run only on a graphics card. On a computer with an NVIDIA driver they get
    the CUDA 13.0 builds of PyTorch 2.12 and torchaudio 2.11 that Chatterbox's NVIDIA build uses, and on one with an AMD Radeon
    AMD's ROCm build (below). On a computer whose card or driver neither build can run on, their card has no Install and
    says why. None of the three has run on an NVIDIA card yet.

  • The graphics-card models install on an AMD Radeon too. On a computer without an NVIDIA driver whose graphics card is an
    AMD Radeon, Install on the cards of the four Qwen3-TTS models, VoxCPM2 and Breeze TTS 2 (and their launchers) puts in
    AMD's ROCm 7.14 builds of PyTorch 2.12 and torchaudio 2.11 from AMD's own index, in place of the CUDA builds, with the ROCm
    runtime and the code for the card's chip; before, the environment had to be made by hand and the launcher run with
    --checkpoint-only. The installer asks AMD's OpenCL driver which chip the card has, and
    requirements/amd-rocm.txt pins every file by its SHA-256 for 20 chips: the Radeon RX 5000,
    6000, 7000 and 9000 series, the Radeon PRO and AI PRO cards built on them, and the Radeon graphics in Ryzen processors. On a
    computer with two AMD cards, such as a Ryzen processor's Radeon graphics beside a Radeon card, the Lab uses the separate card,
    and the installer writes the number PyTorch gives it to runtime.local.json (hip_visible_devices), which the models'
    workers read before PyTorch starts. The service now uses the graphics card on such a computer without being told. Checked on
    an AMD mini PC with a Radeon AI PRO R9700 beside the Ryzen 7 PRO 8845HS's Radeon 780M: every installer chose the R9700 and
    passed its speech check there (Qwen3-TTS 1.7B VoiceDesign spoke 1.9 s in 1.3 s, VoxCPM2 4.6 s in 36 s on its first take,
    Breeze 3.0 s in 14.5 s), and Qwen3-TTS 1.7B CustomVoice installed from its card and passed Test on the R9700.

  • Kokoro and Chatterbox run on an AMD Radeon too. Their GPU build is now the one for this computer's card. On a computer
    without an NVIDIA driver whose card is an AMD Radeon, Install or Install GPU build with the switch on GPU, the question
    setup.bat asks, and the new --gpu of setup-kokoro.bat and setup-chatterbox.bat put in AMD's ROCm builds of PyTorch
    2.12 (and torchaudio 2.11 for Chatterbox) in place of the CPU builds, with the ROCm runtime and the code for the card's chip.
    In an environment that holds the CPU build only those packages change. --nvidia still asks for NVIDIA's build alone, and
    the Models page now asks every installer for its GPU build with --gpu. On AMD's build, Kokoro, the Chatterbox models and
    Voice Conversion leave AMD's MIOpen library off: it tuned its kernels for every new length of sentence, which took Kokoro 11
    to 53 s a sentence on the R9700, against 0.6 to 0.9 s without it. Checked on the R9700: Kokoro installed from its card in
    377 s, Chatterbox Turbo switched from its CPU build in 174 s and cloned a voice in its speech check (2.5 s of audio in 2.0 s),
    Chatterbox 500M and Voice Conversion passed theirs, and Test passed for Kokoro (2.7 s in 0.5 s), Turbo (2.1 s in 1.8 s)
    and 500M (2.6 s in 6.6 s).

  • Voice conversion takes files from this computer. Under each of its two lists, a picker takes a WAV, FLAC, OGG, MP3
    or M4A file (read as Cast imports read them, M4A through FFmpeg) and chooses it in the list under its own name: a source
    performance of up to 60 seconds, or a target voice of up to 10, which needs the permission tick, origin and allowed use
    that Voice cloning asks for. The files are kept as mono WAVs named by their SHA-256 in out\conversions\uploads, and each
    conversion's manifest records their original names and the target's terms. New route: POST /api/conversion/uploads.

  • update.bat knows every model. After an update it now names the pinned packages and files of all eleven installable
    models, not only Kokoro's, Phonon's and Chatterbox Turbo's. An environment is named once, with the command of each model
    installed in it (--gpu for a GPU build of Kokoro or Chatterbox, where it used to say --nvidia), and only for a list its
    build of PyTorch came from: a change to requirements/amd-rocm.txt names only AMD installs. A model counts as installed
    when its checkpoint is on disk at any revision, and its files are named only when its installer would fetch some; Drama 3
    when its receipt differs from its installer's pins.

  • MIOpen off for Qwen3-TTS and Breeze TTS 2 on AMD's build too. Measured on the R9700 with each model's Lab worker:
    Qwen3-TTS's first take after a load took 18 to 25 s with MIOpen and 3 s without it, and its later takes were 15 to 30%
    slower with it even once its kernels were cached; Breeze took 35 to 150% longer over each take of a new length with MIOpen
    and allocated the same graphics memory (9.5 GB at most for a 29 s take). Breeze now loads in about 30 s instead of 45 to 60,
    and its Test spoke the check sentence, 3.0 s, in 9.3 s, where its install check had taken 14.5. VoxCPM2 already ran
    without MIOpen.

  • Graphics memory checked before a download. The installers now read each NVIDIA card's memory from nvidia-smi, and
    VoxCPM2's and Breeze's refuse a card with less than 7 and 10 GB before they download anything. Breeze used up to 7.5 GB, so
    an 8 GB card is too small for it.

  • VoxCPM2 takes that run on. VoxCPM2 sometimes keeps going after its text ends, up to a length cap of about a second a
    text token, and the voice description in front of the text raised that cap: the Models page's check sentence with seed 42
    ran on to 20.8 s on the R9700. The Lab now caps a take by the spoken text alone and makes a take that reaches the cap again
    from a seed derived from the requested one, up to three tries, rather than from the next seed, which Perform gives its next
    take. The take's generation details record the seed its audio came from and every try; when all three run on, the
    generation fails instead of saving a take that ran on. Checked on the R9700: seed 42 ran on in its first try, stopped at
    11.2 s, and gave a 4.6 s take at its second; seeds 7 and 1234 were unchanged.

Checked

  • In this release's checkout, with an environment built from requirements/core.txt and no model installed, CI's steps
    pass: ruff check ., ruff format --check ., 1660 Python tests (the 17 skipped need model packages and files, FFmpeg
    encoders or link privileges that environment lacks), 203 Node tests, tools/check_repo.py and
    tools/build_api_docs.py --check.
  • The AMD builds were checked on one AMD mini PC with a Radeon AI PRO R9700, as each item above says. The NVIDIA builds of
    every model ran only against stand-ins for nvidia-smi and PyTorch: no NVIDIA card was available.
  • update.bat from 0.1.0 to this release ran only in tests, against stand-in GitHub answers and downloads, because the
    release did not exist yet.