summaryrefslogtreecommitdiff
path: root/apps/mobile/constants
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-01-28 03:49:13 +0000
committersoryu <soryu@soryu.co>2026-01-28 03:49:54 +0000
commitd0436686f047f1d82c30da26cf83f9eca6727292 (patch)
treef4f7b6bc7c6cc410d90908d3adf7c519bdf6a2ad /apps/mobile/constants
parentc3de071511de5e8a8d63ea4ca47c815cb6450215 (diff)
downloadsoryu-d0436686f047f1d82c30da26cf83f9eca6727292.tar.gz
soryu-d0436686f047f1d82c30da26cf83f9eca6727292.zip
feat: add inference cancellation support for TTS generation
Add cooperative cancellation via Arc<AtomicBool> cancel flag that threads through TtsEngine::generate -> Qwen3Tts -> GenerationContext. The autoregressive loop and streaming decoder check the flag each iteration and break early when set. The speak WebSocket handler creates a per-session flag, passes it to generate, and sets it on Cancel/Stop/Close messages. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'apps/mobile/constants')
0 files changed, 0 insertions, 0 deletions