Skip to main content
W

dsh-voxcpm-panel

windxxf/dsh-voxcpm-panel

Sidebar panel for local VoxCPM2 speech synthesis and voice cloning: design a voice, clone from your own reference audio, and play or download the generated speech. Includes a one-click setup wizard that detects/builds the llama.cpp-omni CLI and downloads GGUF models, all running locally with no cloud TTS or model tokens.

Install

dsh plugin --profile web add github:windxxf/dsh-voxcpm-panel

README

VoxCPM Voice Studio (DSH sidebar bundle)

A DeepSeek Harness sidebar panel that drives VoxCPM2 locally for speech synthesis and voice cloning — with no Python and no PyTorch required.

Inference runs through llama.cpp-omni using GGUF weights. Everything stays on your machine: no cloud service, no API key, no LLM/token consumption, and your reference audio never leaves the computer.

What it does

  • Adds a VoxCPM 语音 icon to the left sidebar; click it to open the panel.
  • 音色设计 (Voice Design) — synthesize text with an optional style instruction.
  • 声音克隆 (Voice Clone) — supply a 5–30 s reference recording of your own voice; optionally paste its exact transcript for Hi-Fi cloning (--prompt-wav + --prompt-text). Accepted formats: WAV, M4A, MP3, FLAC, AAC, OGG. Non-WAV files are automatically transcoded to 16-bit mono 48 kHz WAV via macOS afconvert before inference (the voxcpm2-cli loader only accepts RIFF/WAVE PCM).
  • Controls for CFG scale and inference timesteps.
  • Generated audio plays inline and can be downloaded as a 48 kHz mono WAV.
  • A /voxcpm-status slash command checks the local installation.
  • Status / config / generate are served by a Host route POST /api/voxcpm; synthesis runs locally via DSH's subprocess service. Uploaded reference audio is written to a temporary file (transcoded to WAV first if needed) and deleted after generation.

How it works

Browser panel  ──POST /api/voxcpm──▶  Host route (connection.fetch.register)
                                          │  subprocess.spawn
                                          ▼
                                   voxcpm2-cli (llama.cpp-omni, GGUF)
                                          │
                                          ▼
                                   48 kHz mono WAV  ──▶  played / downloaded in panel

Requirements

  • A compiled voxcpm2-cli binary from tc-mb/llama.cpp-omni.
  • Two GGUF model files (~3.3 GB total) from DennisHuang648/VoxCPM2-GGUF:
    • VoxCPM2-BaseLM-Q8_0.gguf (~1.6 GB)
    • VoxCPM2-Acoustic-F16.gguf (~1.7 GB)
  • DSH >= 0.2.1-rc.2. Works on CPU on any platform; Metal/CUDA/Vulkan builds are supported by llama.cpp-omni but not required.

1. Build voxcpm2-cli

git clone https://github.com/tc-mb/llama.cpp-omni.git
cd llama.cpp-omni
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --target voxcpm2-cli -- -j
# binary: ./build/bin/voxcpm2-cli

Note: use CMake 3.21+ (older system cmake can fail with a "does not appear to contain CMakeLists.txt" error). The build target is voxcpm2-cli, not voxcpm2.

2. Download the GGUF weights

mkdir -p ~/.voxcpm/models
cd ~/.voxcpm/models
curl -L -O https://huggingface.co/DennisHuang648/VoxCPM2-GGUF/resolve/main/VoxCPM2-BaseLM-Q8_0.gguf
curl -L -O https://huggingface.co/DennisHuang648/VoxCPM2-GGUF/resolve/main/VoxCPM2-Acoustic-F16.gguf

3. Configure the panel

Open the VoxCPM 语音 panel → 设置 (Settings) tab, and set:

FieldMeaningExample
cliPathpath to the voxcpm2-cli binary/path/to/llama.cpp-omni/build/bin/voxcpm2-cli
modelDirdirectory holding the two GGUF files~/.voxcpm/models
baseLmFileBaseLM GGUF filenameVoxCPM2-BaseLM-Q8_0.gguf
acousticFileAcoustic GGUF filenameVoxCPM2-Acoustic-F16.gguf
devicecpu (stable everywhere) or metalcpu
timestepsCFM inference steps (4–30; higher = slower)10
cfgValueCFG scale (1.0–3.0)2.0

Save settings, then click 重新检测 (Re-detect). A successful setup reports 已就绪 / installed: true.

Settings are persisted to ~/.voxcpm/config.json.

Intel Mac / CPU note

On Intel Macs (and any machine without a usable Metal backend), the panel already passes --cpu --n-gpu-layers 0. This is required: the CLI's --cpu flag alone does not disable Metal for the llama.cpp BaseLM (its n_gpu_layers defaults to -1), which otherwise crashes at ggml_metal_get_tensor_async with GGML_ASSERT(buf_dst) failed.

Typical speed on an Intel i7-8569U (pure CPU): a short sentence with timesteps=4 takes ~20–25 s; the default timesteps=10 takes ~40–60 s. Longer Chinese text and voice cloning take longer. GPU builds are much faster.

Install as a DSH bundle

Install this directory as a bundle in DSH (plugin manager → install from local path), then enable it. The observable plugin id is voxcpm-panel. No npm install is needed — the bundle has no runtime npm dependencies.

License

Apache-2.0. VoxCPM2 model weights are released by OpenBMB under Apache-2.0.

Related plugins