From 37842594d2e8c25690c2cbbd496712c6ec88329d Mon Sep 17 00:00:00 2001 From: Mikei386 <44135113+Mikei386@users.noreply.github.com> Date: Sun, 18 Oct 2026 20:50:19 +0200 Subject: [PATCH] Prepare native local Hermes voice and document duplex model constraints --- docs/CURRENT_SYSTEM.md | 6 + .../hermes-unraid/LOCAL-VOICE-2026-10-18.md | 126 ++++++++++++++++++ 2 files changed, 132 insertions(+) create mode 100644 integrations/hermes-unraid/LOCAL-VOICE-2026-10-18.md diff --git a/docs/CURRENT_SYSTEM.md b/docs/CURRENT_SYSTEM.md index 06c1945..82b68f0 100644 --- a/docs/CURRENT_SYSTEM.md +++ b/docs/CURRENT_SYSTEM.md @@ -13,6 +13,12 @@ und TTS sind persistent eingerichtet; TTS nutzt den neutralen Alias `tts` Werkzeuge erfolgreich, ohne Neustart oder LLM-Anfrage. [Abnahme und Wiederherstellungsgrenzen](../integrations/hermes-unraid/REACTIVATION-SPEECH-2026-10-18.md). +Lokale Hermes-Sprachunterhaltung anschließend nativ vorbereitet: `chained`, +Audio über Hermes/Athena, automatische Sprachausgabe und Barge-in konfiguriert, +Sprachantworten ohne zusätzliches Thinking. Nativer PCM-Streamer mit 24 kHz +erfolgreich geprüft; Mikrofon/Client-Unterbrechung noch nicht abgenommen. +[Konfiguration, Hardwarekapazität und Duplex-Modellrecherche](../integrations/hermes-unraid/LOCAL-VOICE-2026-10-18.md). + **Prüfstand 15. Oktober 2026:** [Testindex](TEST_INDEX.md), [Backup-/Restore-Trockenprüfung und offener Exportfehler](maintenance/2026-10-14-documentation-restore-audit/README.md), [OpenCode 2 Migration](../integrations/opencode-athena/UPGRADE-V2-2026-10-14.md). diff --git a/integrations/hermes-unraid/LOCAL-VOICE-2026-10-18.md b/integrations/hermes-unraid/LOCAL-VOICE-2026-10-18.md new file mode 100644 index 0000000..9b72297 --- /dev/null +++ b/integrations/hermes-unraid/LOCAL-VOICE-2026-10-18.md @@ -0,0 +1,126 @@ +# Local voice backend and duplex model survey — 18 October 2026 + +User requested preparing the retained standalone Hermes backend for local voice +and researching a continuously listening speech model suitable for AT-Helper or +spare capacity elsewhere. No new model download, voice-model deployment, LLM +request, host/container restart or GPU reassignment was performed. + +## Native Hermes configuration applied + +Persistent private home: `/opt/data`. Only native configuration fields changed: + +```yaml +voice: + voice_chat_mode: chained + auto_tts: true + client_direct: false + barge_in: true + silence_duration: 3.0 + barge_in_grace_seconds: 0.5 + barge_in_threshold_multiplier: 3.0 + stop_phrases: [stop, stopp, gespräch beenden] +auxiliary: + voice_chat: + provider: auto + model: "" + reasoning_effort: none +stt: + streaming: false +tts: + streaming: + provider: openai +``` + +This excerpt omits the existing STT/TTS endpoint, credential and model settings +documented in [speech reactivation](REACTIVATION-SPEECH-2026-10-18.md). They remain +Athena Parakeet Redux and the neutral `tts` alias, currently Pocket Anna. + +`chained` uses local STT, the session's configured LLM, and local TTS. The voice +auxiliary slot inherits that LLM without adding a separate model; reasoning is +disabled for voice turns only. Typed coding turns retain their configuration. +Relay mode keeps speech-provider access on Hermes rather than requiring every +client to reach Athena's LAN URL. Streaming STT is explicitly off because our +Parakeet endpoint accepts recordings, not Hermes' supported realtime STT protocol. +The 3-second silence threshold is the official default, not a low-latency claim. + +Unrelated model/provider, terminal, image and all 20 MCP definitions were checked +unchanged. No live conversation was force-enabled in an existing client. +Configuration applies when supported clients start the next voice conversation. + +## Acceptance and limits + +- Installed backend `/api/status`: HTTP 200, version `0.22.2`. +- Existing published ports: 8642 (OpenAI-compatible API), 9119 (native dashboard/ + Desktop server). The native audio route is not the OpenAI chat API. +- Unauthenticated `/api/audio/voice-config`: HTTP 401. No login bypass or password + transfer was attempted; this does not verify an authenticated WebSocket session. +- Native `resolve_client_voice_config`: STT relay, TTS relay, streaming STT false. +- Native `resolve_streaming_provider`: `OpenAIStreamer` using saved Athena config. +- Synthetic PCM sentence: “Hallo, ich bin bereit für unser Gespräch.” + First nonempty chunk 1.930 s; total 2.638 s; 59 chunks, 122,880 bytes, 24 kHz + mono signed 16-bit PCM, 2.560 s audio. One sample includes Python/client startup + costs; not an inference benchmark or promised conversation latency. +- Prior native WAV TTS/STT round trip passed with an exact German transcript. +- Actual microphone, echo cancellation, VAD, barge-in, concurrent generation and + audible client playback remain untested. Backend setup alone is not a full + live-talk acceptance check. No removed third-party WebUI was reinstalled. + +## Measured hardware headroom + +AT-Helper SSH read-only check: Xeon X3450, 4 cores/8 threads, 7,944 MiB total RAM, +7,139 MiB available at measurement. Existing hardware documentation records an +RX470 8 GiB, no native FP16 shaders, and a CPU without AVX. Earlier Qwen TTS tests +were slower than real time even using the RX470; do not infer new-model speed +from weight size alone. + +Athena read-only GPU query with current workload retained: + +| GPU | Total | Used | Reported free | +| --- | --- | --- | --- | +| RTX 3060 | 12,288 MiB | 11,283 MiB | 680 MiB | +| RTX 5080 | 16,303 MiB | 15,392 MiB | 542 MiB | + +Driver-reserved memory means reported total need not equal used plus free. +These are snapshots, not reservations for a future deployment. + +## Primary-source model survey + +| Candidate | Actual capability | Constraints for this installation | +| --- | --- | --- | +| [Moshi](https://github.com/kyutai-labs/moshi) | Native duplex speech; 7B; PyTorch, Rust and Apple MLX implementations | Official Python README calls for about 24 GB GPU memory; released Moshiko card specifies English. Official model card says no tool access. Not a ready Hermes speech frontend. | +| [PersonaPlex](https://github.com/NVIDIA/personaplex) | Moshi-based 7B duplex speech with persona/voice prompts | Official [model card](https://huggingface.co/nvidia/personaplex-7b-v1) specifies English. CPU offload and offline CPU evaluation are documented, not proof of usable live performance on an old Xeon. No sufficient free Athena GPU memory. | +| [MiniCPM-o 4.5](https://huggingface.co/openbmb/MiniCPM-o-4_5) | 9B full-duplex audio/video and speech | Official quantized realtime demo calls for at least 12 GB NVIDIA VRAM or M4 Max with 24 GB RAM for duplex; full PyTorch demo at least 28 GB VRAM. Official voice support is English/Chinese. Multilingual text/understanding is not proof of German voice generation. | +| [TYGER / tyger-s2s](https://github.com/nineninesix-ai/tyger-s2s) | Streaming recognition plus learned turn taking, interruptions and backchannels | Default complete stack about 28 GB NVIDIA VRAM; EARS alone about 4 GB is not the complete system. English only. No native Hermes adapter established. | +| [Kyutai Unmute](https://github.com/kyutai-labs/unmute) | Low-latency streaming STT/text-LLM/TTS wrapper, can use external OpenAI-compatible LLM | A pipeline, not one speech-to-speech model. Manufacturer setup requires CUDA and at least 16 GB VRAM for its default stack; documented separate STT/TTS budgets about 2.5/5.3 GB. Multiple services. Not a small RX470/CPU drop-in. | +| [Smart Turn v3.2](https://github.com/pipecat-ai/smart-turn) | Audio-based end-of-turn classifier, 23 languages including German | About 8 MB int8 weights, CPU inference supported. Not STT, TTS or a conversational speech model; only decides whether a speaker finished. Most plausible small component, but needs explicit integration; AT-Helper no-AVX compatibility and latency not tested. | + +The [600M Moshi-style experiment](https://huggingface.co/blog/edwixx/shrinking-full-duplex-speech-training-a-600m-moshi) +is not treated as a ready solution: its author reports unresolved garbled audio +and unfinished streaming/quantized export work. + +[Qwen3-Omni](https://github.com/QwenLM/Qwen3-Omni) explicitly supports German +speech, but the released 30B-A3B model's documented BF16 deployment is much +larger than the available capacity. Streaming speech output does not by itself +prove the required open-source, continuously listening duplex deployment. + +## Hermes integration boundary + +The installed native `tools/voice_live.py` implements a vendor-specific GPT-Live +WebRTC session and client-delegation contract (`/live/sessions`, +`session.delegation.created`). The local Moshi/MiniCPM protocols are not interchangeable +with it merely by changing `base_url`. A local native-duplex model would require +a documented compatible provider or an explicitly approved adapter/client. +No such replacement was silently added. + +Conclusion: the existing local chained backend is prepared. No currently +researched native duplex model meets all of German voice, existing spare +hardware, and native Hermes integration without additional work. Smart Turn is +a plausible small improvement to turn detection, not a substitute for that model. + +## Persistence / recovery + +Restore the private Hermes home with the existing backup process and retain the +above native settings. No extra runtime, model weights or custom startup code +was introduced. Fresh-host restore and a microphone/client test remain separate +acceptance work. Manufacturer voice reference: +https://hermes-agent.nousresearch.com/docs/user-guide/features/voice-mode