v0.5.0 macOS Apple Silicon — All TTS models crash server on load (regression of #151)
Summary
All TTS models fail to load in VoiceBox v0.5.0 desktop app on macOS Apple Silicon. The voicebox-server process crashes (broken pipe) whenever any TTS model is attempted to load. This appears to be a regression of #151.
Environment
- VoiceBox Version: v0.5.0
- OS: macOS (Apple Silicon, MPS backend)
- Python: 3.12.10 (bundled in voicebox-server)
- RAM: 16GB
- GPU: Apple Silicon MPS (available but not used — backend shows
cpuvariant) - Models downloaded: All TTS models show
downloaded: truein/models/status
Steps to Reproduce
- Open VoiceBox desktop app
- Select any voice profile
- Select any TTS engine (Qwen, Kokoro, Chatterbox, LuxTTS, TADA — all fail)
- Attempt to generate speech or wait for model to auto-load
- Model loading fails, voicebox-server process crashes and restarts
Actual Behavior
/healthendpoint returnsmodel_loaded: falsefor all models- POST to
/models/loadreturns{"detail": "[Errno 32] Broken pipe"} - voicebox-server process is killed and restarted by the parent VoiceBox app
- All TTS models affected: Qwen TTS 1.7B, Qwen TTS 0.6B, Qwen CustomVoice, Kokoro 82M, LuxTTS, Chatterbox, Chatterbox Turbo, TADA 1B
- Whisper STT models load successfully (golden icon appears)
Expected Behavior
TTS models should load successfully like Whisper STT models do.
API Health Response
{
"status": "healthy",
"model_loaded": false,
"model_downloaded": true,
"model_size": null,
"gpu_available": true,
"gpu_type": "MPS (Apple Silicon)",
"backend_type": "pytorch",
"backend_variant": "cpu"
}
Note
This is similar to #151 which was closed on Mar 15, 2026. The issue appears to have regressed in v0.5.0. The server stderr is not visible (redirected to /dev/null in PyInstaller bundle), making it difficult to identify the exact crash cause.
Update: Root cause identified
I cloned the repo and ran voicebox-server directly from source (not the PyInstaller bundle) on the same machine. The model loaded successfully:
2026-05-04 03:12:49,761 - backend.backends.pytorch_backend - INFO - Loading TTS model 1.7B on cpu...
2026-05-04 03:13:06,882 - backend.backends.pytorch_backend - INFO - TTS model 1.7B loaded successfully
Health endpoint after loading:
{"status":"healthy","model_loaded":true,"model_size":"1.7B","backend_type":"pytorch","backend_variant":"cpu"}
This confirms the bug is in the PyInstaller bundle, not in the source code itself. The PyInstaller-built voicebox-server binary crashes when loading TTS models, but the same code running from source works perfectly.
Possible cause
The PyInstaller bundle may be missing some files or has incorrect path resolution for the TTS model libraries (qwen_tts, kokoro, chatterbox, etc.) during the model loading phase. The build_binary.py uses --hidden-import and --collect-all for these packages, but something may be incomplete.
Suggestion
Check the PyInstaller spec/build configuration for missing hidden imports or data files, particularly for qwen_tts and its dependencies.
I can take this. I’m seeing the same Broken pipe symptom locally and have started a fix branch.
Initial finding: the PyInstaller NumPy/Torch runtime hook has a bug that prevents the torch.from_numpy compatibility fallback from installing, which can make the bundled server die and leave the UI with only [Errno 32] Broken pipe. I’m also hardening Whisper cache/loading because related reports show processor files resolving inconsistently.
I’ll link a PR once I’ve verified the frozen build path.