Skip to main content
Speech models receive audio from a voice channel and return spoken audio. The model handles the live conversation; Mantle runs your skills, tools, and constraints when asked, then returns results for the model to say. See Speech models for how the two parts work together.
Speech models are a beta feature. Their behavior and configuration may change in future releases. They are not intended for production or for processing sensitive or personal data.

Where to configure it

Set a shared default in agent.yml, or override it for one channel in integrations.yml:
agent.yml
The 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:
The first three providers receive a 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-empty instructions. 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

The 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, set POLY_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 inspector if 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.