For voice-note transcription in gateway bots (Telegram/Slack/WhatsApp), see Voice Notes — the bot layer already wires
stt_tool for you.Quick Start
1
Bot CLI
2
Python
TTS Tool
Convert text to speech and get an audio file.Usage
Options
STT Tool
Transcribe audio files to text.Usage
Options
Bot CLI Options
Enable audio tools when starting bots:Examples
Supported Providers
Audio tools use the coreAudioAgent which supports multiple providers via LiteLLM:
TTS Providers
TTS Providers
STT Providers
STT Providers
Voice Options
Available voices for OpenAI TTS:Architecture
Audio tools are in the wrapper layer (
praisonai), not the core SDK. They wrap the core AudioAgent for easy use with agents and bots.Best Practices
Add only the tools the agent needs
Add only the tools the agent needs
Give an agent
text_to_speech when it must speak and speech_to_text when it must listen — not both by reflex. Fewer tools keep the model focused and cut the chance it synthesises audio when plain text would do.Use --auto-tts sparingly
Use --auto-tts sparingly
--auto-tts converts every bot reply to speech, which adds cost and latency to short acknowledgements. Prefer --tts and let the model decide when audio adds value, reserving auto-conversion for voice-first channels.Transcribe inbound voice before reasoning
Transcribe inbound voice before reasoning
When users send voice notes, run
speech_to_text first so the model reasons over text. This keeps prompts small and lets you log and moderate the transcript like any other message.Keep provider credentials in the environment
Keep provider credentials in the environment
The tools wrap
AudioAgent, which calls external TTS/STT providers. Store provider keys as environment variables so voice features work the same across local runs, bots, and CI without editing tool code.Related
Bot CLI
Full bot CLI reference
AudioAgent
Core AudioAgent class
Voice Notes
Automatic transcription of inbound voice messages in gateway bots

