# Synthetic narration in Hungarian, English and German

The application plays optional generated speech from same-origin recordings. Narration has no authority to answer questions, earn active gesture time, advance a procedure or issue clinical completion receipts. Captions remain available when audio is off or blocked.

German uses the adult Piper Kerstin and Thorsten voices for recorded dialogue, spoken learning text, and synchronized compression and ventilation counts. Its private, same-origin Opus recordings match the exact spoken text and actor. A matching on-device neural voice reads variable or newly authored German text; the text stays on the device. The waveform also supplies 20 Hz timing for German caption changes. Model and source credits are available in the [German audio notice](NARRATION_NOTICE.de.md) and the [local voice source file](neural-voice-v1/SOURCE.txt).

The base Hungarian narrator uses Piper Anna. The English foundation narrator uses Piper Lessac, matching clinical instruction across the other courses. The voice model cards identify the original datasets and their terms. Earlier English builds used LJ Speech. Both current voices are available through the Rhasspy Piper voices repository.

The Hungarian choice-feedback clips use Anna. The remastered English decision feedback uses the same Lessac voice as the clinical narrator. Each remastered loose recording has a role, preset, model hash, configuration hash, transcript hash, duration and encoded audio hash in its pack’s provenance file.

Primary voice cards checked 2026-11-08:

- https://huggingface.co/rhasspy/piper-voices/blob/main/hu/hu_HU/anna/medium/MODEL_CARD
- https://huggingface.co/rhasspy/piper-voices/blob/main/en/en_US/lessac/medium/MODEL_CARD

Provenance manifests record model/configuration hashes where available, the synthesis settings, transcript normalization and output hashes. The verifier compares the original module instructions, nurse introductions, patient-conversation cues, procedure phases and decision feedback with the corresponding original audio manifests. Reused Hungarian clips retain their original `/audio/narration-v011/` URLs; the version 0.12 manifests reference them directly to avoid duplicate downloads.

Speech is synthetic and does not portray a named clinician. Source transcript and acoustic decoding are checked automatically. No independent native-speaker listening panel or clinical pronunciation validation is claimed.

## Clinical conversation and feedback voice remaster

The role, patient-observation, routine assessment and wellbeing packs now use the clinical neural voices for the earlier eSpeak NG and Flite lines. The Hungarian narrator and female nurse use Anna, the male nurse uses Imre and the patient uses Berta. The corresponding English voices are Lessac, Ryan and Amy. The same update covers the early English decision feedback clips. Original cue identifiers and captions stay paired with their recordings. Each replacement patient take has a mouth-motion envelope measured from its final waveform.

Earlier installed clients can still request recordings at their original paths. New manifests use the current recording’s hash and duration. The build includes 439 remastered MP3s referenced by the active manifests and nine compatibility MP3s whose original transcripts were recovered from the source history.

To rebuild the role recordings from the project root, use the same clinical models and dependencies as the learning narration builder. Run the following commands with local paths for the inventory, model directory and recording stage.

```sh
python scripts/narration-learning-v221/remaster-legacy.py --inventory /tmp/legacy-lines.jsonl
python scripts/narration-learning-v221/build-audio.py --inventory /tmp/legacy-lines.jsonl --models /path/to/models --output /tmp/legacy-stage
python scripts/narration-learning-v221/verify-audio.py /tmp/legacy-lines.jsonl /tmp/legacy-stage
python scripts/narration-learning-v221/remaster-legacy.py --apply /tmp/legacy-stage
node scripts/narration-v01339/verify-audio.mjs
node scripts/narration-v012/verify-audio.mjs
```

## Current character and companion recordings

Across the nine foundation scenarios the clinical narrator, female nurse, male nurse and female patient use Anna, Anna, Imre and Berta in Hungarian, and Lessac, Lessac, Ryan and Amy in English. Named beds and patient-specific sources retain their recorded sex variants. Rebuild these cast updates using `match-clinical-cast.py --inventory`, the learning narration builder and verifier, then `match-clinical-cast.py --apply` with the verified stage. The male patient lines use the Imre or Ryan vocal preset and a patient mouth envelope calculated from the resulting audio.

MIRA’s separate, optional hint audio is in `narration-guide-v01351`. Both lookup paths use identical Supertonic 3 F4 recordings for each cue in the selected language. The game marks the speech as AI-generated. It distributes the fixed recordings with the game and does not distribute model weights. Model input is limited to the written fictional dialogue and interface cues.

- [Supertonic 3 model card](https://huggingface.co/Supertone/supertonic-3) and [OpenRAIL-M license](https://huggingface.co/Supertone/supertonic-3/blob/main/LICENSE)
- [Kokoro-82M model card and license](https://huggingface.co/hexgrad/Kokoro-82M)
- [Piper Hungarian voice cards](https://huggingface.co/rhasspy/piper-voices/tree/main/hu/hu_HU)

## Clinical skills and Vital Lab

The recordings in `narration-clinical-v01372` cover the current clinical prompts, teaching feedback for correct and incorrect decisions, shared bedside dialogue, and the Vital Lab in Hungarian and English. The female nurse, male nurse and patient have separate neural presets. The Hungarian presets are Piper Anna, Imre and Berta. The English presets are Piper Lessac, Ryan and Amy. The game distributes the generated recordings without the model weights. The [Piper voice repository](https://huggingface.co/rhasspy/piper-voices) lists each preset's model card.

## Character audio mastering in 0.13.76

The three active character, MIRA and clinical packs now use mastered editions of the recorded synthetic voices. Each role has a separate voice mix with low-frequency cleanup, a mild presence correction, a softened sibilance band, controlled dynamics and a consistent active-speech level. The mix trims long silence at clip edges and keeps the pauses inside the lines. Each edited MP3 retains a reference to its source hash in the provenance manifest. All original transcripts and voice preset identities are preserved.

The packaged patient tracks also have a compact waveform envelope sampled at 20 Hz. The patient's visible mouth strength can follow the actual playback clock and close in quiet intervals. This is speech-energy animation.

To reproduce the mastering, use the original audio folders from the 0.13.75 source release. Run the following commands with Python, NumPy, FFmpeg and ffprobe installed.

```sh
python scripts/narration-character-v01376/master-audio.py --source /path/to/original/public/audio --output /path/to/mastered/audio
python scripts/narration-character-v01376/patient-envelope.py /path/to/mastered/audio
node scripts/narration-character-v01376/verify-mastering.mjs /path/to/mastered/audio
```

## Approved human recordings

The game can load an approved human voice take before its generated counterpart. The runtime matches the cue identifier, role, language and exact spoken transcript. Added Latin equivalents remain in the on-screen teaching text. Audio matching uses the sentence in the selected language with those equivalents omitted. If the recording fails to load, the packaged audio for the same cue remains available. Narration and MIRA identify a human recording while it plays.

The human recording manifests are empty until original recordings are provided and approved for this release. The current fallback voices remain synthetic. See `docs/HUMAN_VOICES.md` in the developer source for the role scripts and audio import.

## Dialogue voices in 0.13.77

MIRA’s recorded Hungarian and English hint sets use Supertonic 3 voice F4. The original 0.13.77 package included different takes for the nurse, male patient and narrator. Their current takes use the same Piper presets as the linked clinical and foundation scenarios. Each affected manifest identifies its speech model and SHA-256. The existing guide voice and its license are credited in the original model card. [Supertonic 3](https://huggingface.co/Supertone/supertonic-3)

The named male and female patient tracks are selected in `narration-patients-v013132`. Their Hungarian voices are Imre and Berta, and their English voices are Ryan and Amy. Exact captions and 20 Hz mouth envelopes accompany both variants.

## Learning readings in 0.13.221

The additional learning recordings use the original clinical Piper presets. Anna reads the Hungarian narration and the female nurse. Imre reads the Hungarian male nurse. Lessac reads the English narration and the female nurse, and Ryan reads the English male nurse. The one-nurse occupied-bed scenario includes 72 new role-specific takes using these presets. The same-language learning indexes match the displayed text and requested role to the corresponding audio range. Repeated identical lines can share a recording. Where written clinical units, ranges or comparison signs need a spoken equivalent, synthesis uses that equivalent while the displayed wording remains the lookup text.

The recordings are mono 22,050 Hz MP3s, mastered at 24 kbps, packed into content-addressed media parts. The developer source includes the generation recipe, exact voice and configuration digests, and source revisions in `scripts/narration-learning-v221`. The Piper model cards linked there identify the original datasets and their terms.

For additional on-screen text the browser worker converts the selected language’s spelling into phonemes with eSpeak NG. A local neural voice running in ONNX Runtime synthesizes the audible waveform. Hungarian uses Anna, Imre and Berta. Additional English text uses stable, role-specific speakers from LibriTTS-R. Their timbres differ from the Lessac, Ryan and Amy actors in the authored English recordings. The model and runtime credits are in `audio/neural-voice-v1/SOURCE.txt`. The phonemizer’s source and license are in `audio/offline-speech-v1/SOURCE.txt` and `COPYING.txt`.

The bilingual practical instructions can be replayed on demand. Exact bundled takes for the new workstation vocabulary use the same on-device neural narrator as the other new workstation lines. They are mono, 22,050 Hz MP3s, encoded at 32 kbps. The developer source includes the generation recipe in `scripts/narration-learning-v221/record-workstation.mjs`.
