Adds a third TTS engine alongside Piper (modern English/multi-lang) and Kokoro (high-quality English): a small FastAPI wrapper around eSpeak-NG with built-in support for Ancient Greek (grc), Hebrew (he), and Modern Greek (el). Same shape as fc-speech-align so AiStation talks to all the TTS/alignment services with one HTTP client pattern. biblical-tts/Dockerfile + app.py: - Python 3.12 base + apt-get espeak-ng + libsndfile1 + ffmpeg-free deps. - POST /tts -> WAV audio bytes (audio/wav). - POST /timings -> word-level timings derived from espeak's --pho phoneme duration stream, distributed across whitespace-split words proportional to character count. Accuracy is good enough for chip-level read-along highlighting (~30-80ms per-word jitter). - GET /voices for catalog discovery, GET /health for probes. - Body shape mirrors AlignmentRequest from FlowerCore.Shared.Speech so the .NET BiblicalTtsClient round-trips it cleanly. K8s deployment in fc-ttsreader namespace: - ttsreader-biblical Deployment + Service on port 10402. - localhost/fc-biblical-tts:v1, imagePullPolicy: Never (built on noc1, imported to all 3 RKE2 nodes via ctr). - runAsNonRoot uid 1654 to match the namespace's standard security ctx. - Modest resources (100m/128Mi req, 1000m/512Mi limit) — eSpeak is CPU-cheap. - Probes hit /health which returns the supported language list. Verified live: container started, /health returns ok with grc/el/he, POST /timings on Ἐν ἀρχῇ ἦν ὁ λόγος returned 5 words / 1714ms. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
18 KiB
18 KiB