How oceansofgamesspc-crypto/bozos-tts-beta works
This is a sharded Discord text-to-speech bot, with an additional opt-in, spatial-audio conversation-portal feature. Users interact through Discord commands and voice channels; the bot selects a voice, produces speech, and plays audio, while portal sessions relay microphone and TTS audio between guilds. The excerpts establish the shard launcher, main bot, spatial engine, and runtime patches. Since README content is absent and index.js is only sampled, finer command-to-subsystem wiring is shown only where the excerpts support it.
Main entry points: index.js Bot commands and state · shards.js Shard manager · spatialPortalEngine.js Portal mixer · portalRuntimeFixes.js Portal runtime fixes
Components 15
Bot runtime
- Shard manager
shards.js - Bot commands and state
index.js
Speech and audio
- Voice catalog
index.js - Guild voice session
index.js - Spatial audio engine
spatialPortalEngine.js
Conversation portals
- Portal lifecycle
index.js - Portal mixer
spatialPortalEngine.js - Portal UDP transport
spatialPortalEngine.js - Portal code countdown
portalCountdownPatch.js - Portal runtime fixes
portalRuntimeFixes.js
Runtime operations
- Health endpoint
shards.js
Other components
- Discord user
- Discord platform
- Edge TTS
- Health monitor
Connections 15
- Discord user → Discord platform: issues commands
- Discord platform → Bot commands and state: delivers interactions
- Bot commands and state → Voice catalog: selects voice
- Bot commands and state → Guild voice session: manages playback
- Bot commands and state → Spatial audio engine: assigns positions
- Bot commands and state → Portal lifecycle: handles portal actions
- Shard manager → Bot commands and state: spawns shards
- Shard manager → Portal code countdown: loads patch
- Shard manager → Portal runtime fixes: loads patch
- Portal runtime fixes → Portal mixer: patches runtime
- Portal lifecycle → Discord platform: sends portal controls
- Portal mixer → Discord platform: plays mixed audio
- Health monitor → Health endpoint: requests status
- Health endpoint → Shard manager: collects shard stats
- Edge TTS → Guild voice session: provides speech audio