Selectable local speech synthesis
Date: 2026-11-04 America/Sao_Paulo.
The protected settings have a Voz tab with Piper/Faber and Kokoro/Dora. Piper is the default for existing profiles without a choice. The choice persists in the profile and reaches the private worker at its next start. The API refuses a change while voice is active, and refuses missing model files without changing the saved choice. Whisper recognition and agent model selection are unchanged.
Verification
- Formatting, syntax, lint and build checks passed, along with all 1,338 Node tests and the 17 focused Python installer/session tests.
- The real React settings rendered both choices and called the protected action with each engine ID. The control was disabled during a simulated capture.
- A synthetic private core checked authentication, strict input validation, persistence across a restart, both engine IDs reaching a fake worker, refusal during use, and preservation of the choice when files are missing.
- The updated installer ran successfully on this PC, installing kokoro-onnx 0.6.1 and the SHA-256-verified Kokoro v1.0 int8 model and voice pack. Python tests cover verified reuse, corrupt-file preservation and rejection of a failed checksum before publication. Installer orchestration tests also passed.
- Real private workers synthesized the same Portuguese sentence through each
engine. Whisper recognized both as
Olá, esta é uma resposta por voz em português.No microphone, physical speaker or live compositor was used.
The sanitized screenshot voice-settings.png and real-engines.json remain in
the local 2026-11-04-voice-engines QA artifact directory, outside Git. The
screenshot uses a synthetic settings driver; API persistence and real inference
were verified separately. No media or logs were uploaded.
Publication and synchronization prepare the feature for the next login. The running desktop was not restarted for this change. An older core ignores the new preference and retains its Piper behavior; saved history is preserved.