Where to configure it
Set a shared default inagent.yml, or override it for one channel in
integrations.yml:
- One channel
name selects the provider. instructions is required and must not be
empty. Keep provider API keys in environment variables; the built-in providers
read their own key and do not accept a key in this configuration. The selected
provider’s settings are validated when its speech model is initialized.
The instructions in the examples are written by you; they are not Rasa’s
default prompt. Rasa appends framework instructions that tell the model how to
ask Mantle to do agent work. The appended prompts and tools differ for
OpenAI GPT-Live and the other built-in providers.
Prompts and Mantle tools
OpenAI Realtime, PolyAI Dialog-RSN-1, and Rime Prism use the same appended delegation instructions:Built-in instructions for Realtime, PolyAI, and Rime
Built-in instructions for Realtime, PolyAI, and Rime
Built-in instructions for OpenAI GPT-Live
Built-in instructions for OpenAI GPT-Live
delegate_to_background function tool with
a required message string. The model writes the caller’s request in first
person; Rasa sends it to Mantle and returns Mantle’s ordered messages for the
model to say. PolyAI also requires an utterance string: a brief spoken
acknowledgement while Mantle works. The adapter marks it as poly_spoken so
PolyAI speaks it during the background request.
OpenAI GPT-Live uses client delegation instead of a function tool. The model
signals the handoff with <|SpawnThinking|>; Rasa builds the request from the
recent transcript and sends Mantle’s result back as commentary.
A channel-level speech_model overrides the shared voice.speech_model for
that channel. Configure either a speech model or cascaded asr / tts on a
channel. If a channel sets asr or tts, it uses cascaded speech instead of
the shared speech model. Those sides resolve from the channel, then
voice.asr / voice.tts, then the channel’s built-in default when available.
When a channel leaves media settings unset, voice.speech_model takes
precedence over voice.asr and voice.tts. See
integrations.yml voice channels
and agent.yml voice settings.
Built-in providers
Every provider requires non-emptyinstructions. Other supported fields are
provider-specific.
Provider configs reject unknown fields. The tables below list the supported
fields and defaults for each provider.
instructions is required and must
contain text.
OpenAI Realtime
turn_detection accepts semantic_vad or server_vad.
OpenAI GPT-Live
PolyAI Dialog-RSN-1
voice field is optional. If you override websocket_base_url, it must be
a secure WebSocket URL whose hostname ends in .poly.ai and whose path ends
in /v1.
Rime Prism
Credentials and audio formats
Set the provider’s API key in the environment of the process running Rasa. For example, setPOLY_API_KEY before starting the server when using PolyAI.
Do not put API keys directly in agent.yml or integrations.yml.
Built-in speech models support μ-law audio at 8 kHz or mono 16-bit linear PCM.
The provider adapter converts channel audio to the format required by its
service when needed. A channel with an unsupported audio format fails when the
speech model is initialized.
Limitations
- The speech model is used only on voice channels configured for speech-model mode. Text messages continue to use the Mantle orchestrator.
- Mantle remains responsible for skills, tools, constraints, and agent results. The speech model delegates work to Mantle; it does not receive the agent’s tools directly.
- The Inspector in Rasa Studio uses Studio’s Deepgram voice gateway. Set
channel-level ASR and TTS on
inspectorif you want Studio’s gateway there while other voice channels use a speech model.
Troubleshooting
See Test and monitor voice for inspecting a call and
Speech providers for cascaded ASR and TTS.