Fix voice changing between sentences

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-23 17:50:56 +09:00
co-authored by Claude Opus 5.5
parent 88cf77e8d7
commit 7699753a7c
3 changed files with 52 additions and 1 deletions
+1
View File
@@ -155,6 +155,7 @@ Every value here is a constant at the top of its file, with a comment on what it
| `audio/mouth.py` | `SPEED`, `SPEED_MIN`, `SPEED_MAX` | 0.92, 0.72, 1.2 | Speaking speed without a stored value, and the limits (Supertonic takes 0.7–2.0) |
| `audio/mouth.py` | `SPLIT_WORDS` | 8 words | TTS on the CPU only (GPU engines not loaded): a first sentence this long is said in two parts, cut after its first comma (3 words in or later), so the voice starts ~1 s sooner. On the GPU a sentence is said whole |
| `audio/mouth.py` | `STEPS` | 4 | Supertonic synthesis steps (quality / speed). On the GPU a step takes a few ms, on the CPU 0.1–0.27 s |
| `audio/mouth.py` | `NOISE_SEED` | 7 | The fixed noise every sentence starts from (one voice for every sentence; another seed is a slightly different voice) |
| `audio/mouth.py` | `ECHO_MIN`, `ECHO_TOP_DB`, `ECHO_MIN_FRAMES`, `ECHO_LAG_S`, `ECHO_KEEP_S` | 0.6, 15 dB, 12, −0.3…1.0 s, 30 s | Lumi's own voice in the clip mic: a clip-mic utterance whose spectrogram (16 bands, its frames within `ECHO_TOP_DB` of its loudest, at least `ECHO_MIN_FRAMES`) correlates at least `ECHO_MIN` with what the speaker played `ECHO_LAG_S` earlier is dropped before whisper (`mouth.own_voice`; check: `tests/echo_check.py`). Estimate |
| `audio/tts_gpu.py` | `MAX_LEN` | 640 | Longest text / latent (~44 s of speech) the TensorRT engines take; longer goes to the CPU. A change needs `tts_gpu.py build` |
| `audio/ears.py` | `WHISPER_MODEL` | `ggml-large-v3-turbo.bin` (f16) | Speech-to-text model; takes effect when the whisper-server is started again (check: `tests/asr_check.py`) |