Files
Palash Debnath a2e9f4deb4 feat(api): ElevenLabs dialogue, timestamps, voice cloning, dubbing, input streaming and history (#4497)
* feat(api): ElevenLabs dialogue, timestamps, voice cloning, dubbing, input streaming and history

Carries the stacked feat/elevenlabs-dialogue work onto main now that the
compat API (#4467) is in:
- POST /v1/text-to-dialogue (and /stream): several voices taking turns.
- /with-timestamps: audio plus per-character timings (services/speech_alignment).
- POST /v1/voices/add and DELETE /v1/voices/{id}: instant voice cloning.
- /v1/dubbing: dubs an upload on the batch queue.
- WS /v1/text-to-speech/{id}/stream-input: input streaming for voice agents.
- /v1/history: the app's generation history.
Route inventory, OpenAPI contract and STRUCTURE counts regenerated.

* chore(changelog): name the ElevenLabs fragment after #4497

* fix(api): ElevenLabs timings never download a model; bound stream-input segments; CJK and CodeQL

- Character timings check the recognition model with require_installed, so
  an absent pytorch-whisper default falls back to estimated timings instead
  of a multi-GB download.
- Every stream-input segment (sentence, long run, flushed remainder) is at
  most _WS_MAX_BUFFER characters, so a flush of a long text no longer
  exceeds the speech limit and closes the socket.
- Full-width sentence ends are Unicode escapes, not literal CJK.
- Dubbing delete and download use the stored job id, not the request's.

* fix(api): no ASR fallback downloads for timings; split unspaced CJK sentences; annotate handlers

- _transcribe_request takes require_installed and passes it to
  load_active_asr_backend, so a fallback engine tried after the selected one
  fails to load also refuses missing weights on the timings path.
- Full-width sentence ends split without trailing whitespace (unspaced CJK);
  a Latin end still needs it, so 3.14 is not a boundary.
- Return annotations on the new public handlers; OpenAPI regenerated.

* test(android): hold draft IO while checking the legacy JSON loading gate

* docs(structure): 147 services
2026-11-26 23:00:00 -08:00
..