Accessibility mode read every message in the voice channel side chat and treated `..` as an opt-out, so ordinary chat was always spoken. Members now trigger speech explicitly with `..`, and messages without the trigger are never read.
8.3 KiB
TtsToy Commands
Two command groups plus top-level shortcuts. [p]ttstoy is configuration and mode control; [p]chatterbox is voice management. [p]tts, [p]disconnect and [p]login are top-level commands.
Running either group with no subcommand prints its help.
Speech
| Command | Aliases | Permission | Description |
|---|---|---|---|
[p]tts |
none | Any member | Generates speech, posts an MP3, and plays it in voice |
[p]disconnect |
dc |
Any member | Stops playback and disconnects from voice |
[p]login |
none | Any member | Shortcut for [p]ttstoy login, DMs a web UI key |
[p]tts requires the author to be in a voice channel unless the mode is Chatterbox. See TtsToy Overview for the full behavior and inline [mode|voice] tags.
Mode and engine settings
| Command | Permission | Description |
|---|---|---|
[p]ttstoy mode [mode] |
Owner | Shows or sets the engine |
[p]ttstoy key |
Owner | Opens a button and modal to store the MiniMax key |
[p]ttstoy model [model] |
Owner | Shows example MiniMax models or sets one |
[p]ttstoy voice [name] |
Owner | Shows or sets the global default voice |
[p]ttstoy myvoice [name] |
Any member, guild only | Shows or sets your personal voice |
[p]ttstoy sfxvolume [0-100] |
Owner | Shows or sets sound effect volume |
[p]ttstoy sfx |
Any member | Lists sound effect folders and their emoji triggers |
[p]ttstoy info |
Any member | DMs setup and usage instructions |
mode accepts minimax, chatterbox, dectalk, morshu, vox, piper, and local as an alias for chatterbox. Selecting Morshu or VOX fails with an explanation when the engine did not import.
voice and myvoice behave differently per engine. DECTalk, Morshu and VOX ignore voice selection and explain the alternative, which is inline tags for DECTalk and [p]ttstoy voxpack for VOX. Chatterbox matches the display name of an uploaded clip. MiniMax accepts a label such as Gaben or a raw voice id.
DECTalk, Piper and VOX settings
| Command | Permission | Description |
|---|---|---|
[p]ttstoy dectalkurl [url] |
Owner | Shows or sets the DECTalk URL, with a /health check |
[p]ttstoy piperurl [url] |
Owner | Shows or sets the Piper URL, with a reachability check |
[p]ttstoy pipervoice [model] |
Owner | Shows available Piper models or sets one; reset clears |
[p]ttstoy voxpack [vox or vox2] |
Owner | Shows or sets the VOX word pack |
[p]ttstoy voxwords |
Any member | Lists words in the current VOX pack |
The DECTalk and Piper commands validate the http:// or https:// prefix. A failed reachability check still saves the URL after a warning, so a service can be configured before it is started.
Piper model ids are the .onnx filename without the extension, for example en_US-ryan-medium. A model present in the server's data directory can be selected even when /voices does not list it.
DECTalk voices are chosen in the text rather than by command:
| Tag | Voice |
|---|---|
[:np] |
Paul, the default |
[:nb] |
Betty |
[:nh] |
Harry |
[:nf] |
Frank |
[:nd] |
Dennis |
[:nk] |
Kit |
[:nu] |
Ursula |
[:nr] |
Rita |
[:nw] |
Wendy |
Example: [p]tts [:nh] Deep voice [:nb] and now a different one.
The old commands [p]ttstoy dectalkinstall, dectalkstart, dectalkstop, dectalkstatus and dectalkautotoggle no longer exist. The DECTalk, Morshu and VOX services now run under systemd, outside the bot. See TtsToy Servers.
Web UI commands
| Command | Permission | Description |
|---|---|---|
[p]ttstoy login |
Any member, guild only | Requests a one-time login key and DMs it |
[p]ttstoy webui |
Any member | Replies with the web UI URL |
[p]ttstoy webuichannel [#channel] |
Owner, guild only | Shows or sets the channel for web UI audio |
[p]ttstoy webuistatus |
Owner | Checks whether the web UI URL answers |
[p]ttstoy webuirestart |
Owner | Explains that the web UI is a service and returns the restart command |
login requires the web UI to be running, because it reads an internal secret from the shared state file before asking the service to register a token. The token is valid for five minutes. The member must accept direct messages.
Chatterbox voice management
Group [p]chatterbox.
| Command | Arguments | Description |
|---|---|---|
[p]chatterbox guide |
none | Two message feature guide |
[p]chatterbox addvoice |
[name] [url] |
Uploads a reference clip and makes it active |
[p]chatterbox removevoice |
<name> |
Removes a clip from your library |
[p]chatterbox myvoices |
none | Lists your clips and marks the active one |
[p]chatterbox sharevoice |
<name> <member> |
Adds a clip to another member's library |
[p]chatterbox temp |
[value or reset] |
Randomness, stored per voice |
[p]chatterbox exag |
[value or reset] |
Expressiveness, stored per voice |
[p]chatterbox volume |
[dB or reset] |
Loudness offset, -20 to +20 |
[p]chatterbox speed |
[factor or reset] |
Speed, 0.25 to 4.0 |
[p]chatterbox reset |
none | Clears all tuning for the current voice |
[p]chatterbox model |
[turbo or original] |
Owner only, hot swaps the server model |
[p]chatterbox url |
[url] |
Owner only, sets and tests the server URL |
addvoice
Accepts a .wav or .mp3 attachment, or a direct URL. A URL without an extension is assumed to be WAV. The name is reduced to letters, digits and underscores. The stored filename is <user id>_<name>.wav.
Before upload the clip is decoded with pydub, looped if shorter than six seconds, and trimmed to thirty seconds at a nearby silence boundary when longer. If pydub is unavailable the original bytes are uploaded unchanged.
removevoice
Matches a display name or full filename. Removes the clip from the member's list and clears its temperature, exaggeration and volume offsets. The server file is deleted only when the filename starts with the caller's user id, which protects clips that were shared rather than uploaded by the caller. If the removed clip was active, the next clip in the list becomes active or the default voice is restored.
Per-voice tuning
Values are keyed by filename, so each voice keeps its own settings. The commands accept no argument to show, a number to set, or the word reset to clear. Temperature and exaggeration are parsed as floats without range enforcement; volume and speed enforce their documented ranges.
model
turbo is the faster 350M model and supports tags such as [laugh], [sigh] and [clear throat]. original is the 0.5B model with stronger cloning and emotion control. The switch calls /save_settings and then /restart_server, which can take a minute; the command edits its status message when the server replies.
The server must expose both endpoints. A stock Chatterbox build may not.
url
Validates the scheme, then requests /api/ui/initial-data. A failure produces a warning but the URL is saved anyway.
Accessibility commands
Group [p]ttstoy accessibility, alias [p]ttstoy access.
| Command | Permission | Description |
|---|---|---|
[p]ttstoy accessibility |
Any member | Shows mode, engine and name announcement state |
[p]ttstoy accessibility start |
Owner | Enables the .. speak trigger |
[p]ttstoy accessibility stop |
Owner | Disables the .. speak trigger |
[p]ttstoy accessibility engine |
Owner | Shows or sets dectalk or piper, alias tts |
[p]ttstoy accessibility names |
Owner | Shows or sets whether names are announced, alias announcenames |
[p]ttstoy accessibility voice [name] |
Any member, guild only | Shows the voice list or sets your voice, auto clears |
See TtsToy Accessibility for the behavior behind these commands.
Permission summary
Owner only: mode, key, model, voice, sfxvolume, dectalkurl, piperurl, pipervoice, voxpack, webuistatus, webuirestart, webuichannel, chatterbox model, chatterbox url, accessibility start, stop, engine and names.
Any member: tts, disconnect, login, ttstoy sfx, ttstoy info, ttstoy myvoice, ttstoy voxwords, ttstoy webui, chatterbox addvoice, removevoice, myvoices, sharevoice, temp, exag, volume, speed, reset, guide, and accessibility voice.
No command has a cooldown. Nothing prevents a member from queueing many clips or filling the engine server with requests.