Files
Athena-Deck/docs/experiments/hermes-voice-2026-10-17

Hermes speech integration — 17 October 2026

User requested complete TTS, STT and Live Talk where supported. This report separates agent tools from browser controls. Local Athena TTS is now active on the Listen button and the user confirmed hearing the local voice. Voice consistency is NOT resolved: OmniVoice currently generates without a reference and randomizes the seed for each request.

Verified components

  • Existing native Hermes STT: OpenAI-compatible Athena endpoint, model parakeet-redux-cpu, German. A synthetic WAV was transcribed exactly as "Dies ist ein kurzer Test der Spracherkennung." in 1.81 seconds.
  • Existing native Hermes TTS: omnivoice-studio, voice default. The same synthetic German sentence produced a valid 2.39-second WAV; integration wall time 30.04 seconds (includes startup/integration costs, not a real-time synthesis benchmark).
  • MP3 endpoint support was rebased onto the current Strata 0.1.45 Deck image. The user explicitly approved a short idle-only Deck restart after automatic review initially rejected it under the earlier no-restart instruction.
  • Active image: athena-deck-standalone:strata-0.1.45-mp3-20261017. Activation evidence confirms selected settings and the Strata recipe unchanged. No LLM was loaded immediately before activation; a later own browser chat loaded IQ3 and completed successfully.
  • Seven focused TTS/MP3/PCM tests passed in the isolated new image. One added STT test initially lacked its helper test module; after supplying that synthetic fixture the previously blocked STT test passed separately.
  • A real native Hermes TTS call produced a 3.576-second MP3. FFprobe identifies MP3, and FFmpeg decodes the entire file successfully on the operator Mac. The Hermes image lacks ffprobe; the initial format-probe script failed only at that validation subprocess, after audio generation. No package was installed into the live image to conceal this limitation.

Persisted WebUI settings and microphone acceptance

raw_audio_mode=false, tts_enabled=true, tts_engine=openai, tts_voice=Anna (only relevant to the previous browser engine), voice_mode_button=true, language=de. Regular auto-read remains off; hands-free mode has its own response playback.

The regular UI save initially showed raw audio off but a later server read had it on. The cause of the reversal was not established. The desired speech fields were explicitly saved using upstream api.config.save_settings and read back later; no source patch, direct browser-storage edit or restart. The operator first reported no transcript, then confirmed "nun geht es"; the test tab also displayed the German dictated sentence as editable text. The operator confirmed speech playback, explicitly identifying it as browser voice rather than Athena TTS. Do not conflate these acceptance results.

Remaining upstream boundaries

Installed and current upstream api/routes.py reject private/non-global OpenAI TTS targets; HTTP is accepted only for literal localhost and HTTPS must resolve to globally routable addresses. The WebUI's own HTTPS origin therefore does not solve a private provider URL. The existing Athena and OI hostnames resolve privately inside this container; no public audio route was created. No fake DNS/loopback mapping, relay or new extension was installed. The user subsequently explicitly approved the narrow LAN policy exception below.

The built-in hands-free mode uses browser SpeechRecognition, pause detection, send and reply playback. It does not use Parakeet for that mode and is not an end-to-end realtime audio model. Normal dictation supports the server STT path. Browser microphone access requires HTTPS and user permission.

Current upstream gallery has no ready TTS extension for this LAN integration. A supported custom TTS extension API exists but writing/integrating a new one would be our own adaptation. The user explicitly approved the targeted local WebUI change; this is our operator adaptation, not an official upstream fix.

Persistence and restore

Hermes config/state stay in its own home bind mount; generated test media stay in its own cache and are not committed. Restore requires the existing encrypted Hermes home/provider credentials and Webtop data. The MP3 change is ordinary Deck Python code plus distro FFmpeg/libmp3lame, already present in the active image. Native Debian requirements and the previous focused test report remain in ../tts-mp3-2026-10-17.md. No fresh-host full restore was tested.

Sources:

Approved local TTS activation

The existing persistent integrations/hermes-unraid/webui/start-with-gateway.sh now applies a source-hash-pinned insertion before the upstream initializer. The initializer rsyncs /apptoo to /app, so the patch targets /apptoo/api/routes.py, not the overwritten runtime copy. The first activation was corrected for this ordering and the unoccupied container restarted again. The final runtime and template both match patched SHA256 5e51d1e2791804b825bdd3c8f000faaea3989d34cdbcd6c406800573eb8e5710. Original SHA256: 9f32e7ca096a491a36c1e774752af18c2d02ca402af4dad1886a5048deae10dc.

Only HERMES_WEBUI_TRUSTED_TTS_BASE_URL=http://192.168.1.212:8120/v1 is permitted as the extra literal RFC1918 HTTP destination. Credentials, queries, fragments, other IPs/ports/paths and metadata addresses remain rejected. Authentication, no-redirect handling, HTTPS pinning and the response validation code are unchanged. Eleven isolated checks passed, including unchanged ASTs of those handlers. Bash syntax validation passed. No own image or extra mount. An unknown future upstream source is NOT patched: startup warns and retains upstream policy, so local TTS then needs revalidation after an image update.

The existing provider key was internally copied to the WebUI-supported VOICE_TOOLS_OPENAI_KEY in its private persistent .env; no key was printed or committed. api.config.save_settings persisted the OpenAI server engine. Regular UI confirms the engine selection; the user confirmed actual local voice playback. Both WebUI and gateway reported healthy/idle after restart; Docker restart policy remains unless-stopped.

A real request using the WebUI normalizer/opener/response buffer, existing credentials and its unchanged 30-second timeout returned HTTP 200, audio/mpeg, 49,965 bytes in 1.23 seconds. Full Mac FFmpeg decoding passed; FFprobe duration 3.12 seconds. This is the warm short-request transport timing, not a cold-start latency guarantee. Audio stays outside Git.

Remaining voice consistency issue

User reports a different voice per sentence. Source confirms endpoint.py:speech invokes OmniVoice without a reference; voxcpm_test.py:start uses a randomized seed when OmniVoice seed is omitted. voice=default does not identify a saved speaker. A stable reference must be configured for a consistent speaker; a constant seed alone is not a reliable speaker identity. Awaiting the user's choice of reference before implementing that separate fix. Do not mark complete voice acceptance yet.

A diagnostic import also reported an existing incomplete Hermes source-update Node dependency (libatomic.so.1 missing); it continued with previous dependencies. TTS succeeded despite that warning. No unrelated dependency installation done.

Restore/update requirements

Keep the deployment wrapper and its read-only container bind in the existing Unraid XML, encrypted Hermes home (config, .env, settings, voices), and Webtop workspace. On recreation the same upstream source must match the hash; updates require reviewing/retesting the insertion. To remove the adaptation, remove its startup block and recreate from the pristine upstream image (a simple restart retains modified image-layer files). This remains an optional Docker UI integration; no claim of a native fresh-Debian full restore test is made.

Anna reference activation and invalid production-performance inference

User authorized using Anna or any female voice. A private 12-second excerpt of existing legacy-userdata/voice-profiles/Anna.wav was prepared and transcribed locally. Audio/transcript are NOT in Git. speech-voices/Anna/reference.wav and reference.json plus speech-voices/default.json now identify Anna. The endpoint resolves the saved reference on every OmniVoice request and passes identical audio/transcript plus seed 42 to the existing backend. Invalid names, missing/corrupt audio/transcripts and linked reference files fail closed. Unconfigured installations preserve the previous default behavior.

Eleven isolated tests passed: eight stored-reference cases, repeated HTTP TTS calls forwarding the same reference, WAV publication and MP3 negotiation. Activated image athena-deck-standalone:strata-0.1.45-anna-20261017 after idle checks. Activation confirmed selected settings and Strata recipe unchanged and Deck ready; no previous LLM was loaded. Real Anna generation/playback is NOT yet accepted. The user challenged the performance-test design during activation; no subsequent performance run was started.

Correction: the 1.23-second test was GPU OmniVoice with Strata unloaded. A read-only NVIDIA sample showed OmniVoice about 2870 MiB on RTX 5080 and no Strata compute process. It is not evidence that OmniVoice fits or performs well alongside the production Strata profile. CPU performance and coexistence are unmeasured. Earlier standalone speech success must not be advertised as solving TTS during Strata operation.

Restore must preserve the private speech-voices tree including its alias, reference and transcript, with restricted ownership/permissions. The endpoint change is ordinary Python and has no new native Debian dependency beyond the existing OmniVoice/FFmpeg stack. Current config-only backup does not include these recordings automatically; include this tree in the encrypted complete state backup. Automated reference-management UI, backup integration and a fresh-host full restore test remain open. Do not claim complete backup coverage.