Bot platform adapters ship in the
praisonai-bot package. praisonai bot serve still works exactly as documented here; for a standalone install see praisonai-bot Migration.Quick Start
Level 2 — Dict
Tune behaviour with a dict — echo the transcript, force a language, or override the model.
How It Works
The adapter downloads the voice note, transcribes it, and forwards the transcript — never dropping the turn.| Step | What happens |
|---|---|
| Download | Adapter caches the audio through the SSRF-safe media cache (kind="audio") |
| Transcribe | transcribe_media_path calls stt_tool → AudioAgent.transcribe (whisper-1 by default) |
| Success | Transcript passed to agent.chat(transcript); echoed back first when echo_transcripts: true |
| Failure / off | The [Voice message received] placeholder reaches the agent — the turn is never silently dropped |
Configuration Options
Fields fromSttConfigSchema / SttConfig.
| Option | Type | Default | Description |
|---|---|---|---|
enabled | bool | true | Transcribe inbound audio. On by default. |
echo_transcripts | bool | false | Echo the recognised text back to the user. |
language | str | None | null | Optional forced language code ("en", "es", …). |
model | str | None | null | Optional STT model override (default: openai/whisper-1). |
stt: true / stt: false is accepted as {"enabled": <bool>}.
Choosing a configuration
Per-Platform YAML
When STT Is Off or Fails
Voice notes were previously dropped silently when transcription was unavailable. Now the adapter substitutes the[Voice message received] placeholder so the agent always gets the turn — it can ask the user to retype, fall back to another channel, or acknowledge the message.
Best Practices
Set language when you know it
Set language when you know it
Forcing
language: en (or the relevant code) improves transcription accuracy and speed over auto-detection.Enable echo_transcripts for accessibility
Enable echo_transcripts for accessibility
echo_transcripts: true sends the recognised text back to the user so they can confirm what the bot heard — helpful for accessibility and correcting mis-hearings.Opt out on privacy-sensitive channels
Opt out on privacy-sensitive channels
Turn STT off where voice content must not leave the device or reach a third-party STT provider.
Ship a fallback plan
Ship a fallback plan
The
[Voice message received] placeholder means the agent still gets the turn when transcription is off or fails. Give the agent instructions to handle that case gracefully.Related
Inbound Media
Forward user photos and documents to your agent’s vision capability
Audio Tools
stt_tool, tts_tool, and AudioAgent.transcribeChat Commands
Built-in and custom bot chat commands
Gateway
Unified gateway and control-plane overview

