ttstoy: accessibility command group with per-speaker voices

Consolidate accessibility into one command group:
  ttstoy accessibility start
  ttstoy accessibility stop
  ttstoy accessibility engine <dectalk|piper>
  ttstoy accessibility voice [name|auto]

Per-speaker distinct voices so concurrent users in accessibility auto-read
can be told apart:
- Auto-assigned round-robin from the active engine's voice pool (9 DECTalk
  named voices, 19 Piper models), guaranteeing distinct voices until the
  pool is exhausted (then wraps).
- Users set their own voice with 'accessibility voice <name>', 'auto' to
  return to auto-assignment.
- Assignments are in-memory only and are NOT saved between sessions; they
  reset on start/stop, engine change, and when the bot changes voice channel.
- dectalk voice travels as voice_id, piper voice as the model id.
This commit is contained in:
2026-10-18 22:51:01 -05:00
parent dced723fa0
commit a2516f9b03
2 changed files with 164 additions and 28 deletions
+11 -5
View File
@@ -89,15 +89,21 @@ in the `/voices` listing.
### Accessibility
Accessibility mode forces a single robotic/neural engine, disables emoji SFX,
and auto-reads the side chat of the voice channel the bot is in (no command
prefix needed). The first message from a user since someone else last spoke is
Accessibility mode auto-reads the side chat of the voice channel the bot is in
(no command prefix needed), using a single engine (dectalk or piper) with emoji
SFX disabled. The first message from a user since someone else last spoke is
prefixed `Name said:`; links, images, and files are announced instead of read.
Each speaker is auto-assigned a distinct voice from the active engine's pool so
they can be told apart. Users can pick their own voice. Voice assignments are
in-memory only and are NOT saved between sessions.
| Command | Description |
|---------|-------------|
| `[p]ttstoy accessibility` | Toggle accessibility mode |
| `[p]ttstoy accessibilityengine [dectalk\|piper]` | Choose the engine accessibility uses |
| `[p]ttstoy accessibility start` | Enable accessibility mode (owner) |
| `[p]ttstoy accessibility stop` | Disable accessibility mode (owner) |
| `[p]ttstoy accessibility engine [dectalk\|piper]` | Choose the engine (owner); clears per-user voices |
| `[p]ttstoy accessibility voice [name]` | Pick your own voice for the current engine (`auto` to be auto-assigned) |
## Emoji SFX