Skip to main content
Developer EditionIf you started building your assistant with the Rasa Developer Edition before Rasa Pro 3.11 and want to try voice features, please request a new license. Licenses issued before this version don’t contain the necessary feature scopes to run voice assistants.

Building Voice Assistants

Voice assistants provide a natural and intuitive way to interact with digital devices and services. They are particularly useful for hands-free operation, accessibility, and multitasking. They also offer a familiar and frictionless experience to the customers of contact centers. At the same time, voice solutions present distinct technical challenges and require elaborate user experience design. Rasa provides voice channel connectors that require specialized handling to address nuanced complexities in voice conversations. The connectors are described in detail below.

Voice Ready

Architecture of Voice Ready Channel Voice-ready connectors exchange text with Rasa while the channel provider handles audio. The provider supplies automatic speech recognition (ASR) and text-to-speech (TTS) services. Rasa includes AudioCodes VoiceAI Connect, Jambonz, and Twilio Voice as voice-ready connectors.

Voice Stream

Architecture of Voice Stream Channel Voice Stream connectors send audio to Rasa. Rasa transcribes incoming audio with ASR, processes the text, and synthesizes the response with TTS. Rasa includes AudioCodes Voice Stream, CHIRP, Genesys Cloud Voice, Jambonz Stream, SignalWire, Twilio Media Streams, Vonage, and WebSocket Voice. Browser Audio is available through Rasa Inspector.

How to Start Building a Voice Assistant

To build an optimized voice assistant, it is recommended to develop it separately from text-based assistants. Although a text assistant can serve as a foundation, maintaining and evolving the assistant is easier when voice and text assistants are developed separately. Following CDD best practices, start your voice project with rigorous user research and include iterative user tests in the development process. Make sure to design your voice flows with the unique requirements of the modality in mind. Configure ASR and TTS services when you use a Voice Stream connector: You can also Test your voice assistant directly in your browser, allowing for an iterative building process.

Voice-Specific Primitives and Conversation Repair

Voice assistants rely on the same core building blocks as text-based assistants (like responses, actions, and flows), but they require additional configuration and design adjustments to handle the nuances of spoken interactions. These include:
  • Fine-tuning how conversations are initiated and ended
  • Managing voice-specific metadata
  • Handling silence or no-input cases
  • Repeating or rephrasing messages when users don’t respond
These tweaks ensure voice conversations feel natural and responsive, even when user behavior is unpredictable. πŸ‘‰ Explore voice conversation patterns

Handling User Silence

In voice conversations, silence can signal confusion, hesitation, or distraction. With the silence timeout setting, you can control how long the assistant waits before responding β€” and tweak what it does when that happens. πŸ‘‰ How to configure user silence parameters

Collecting Input via DTMF (Keypad)

For voice assistants, you can collect user input through DTMF (Dual-Tone Multi-Frequency) signals β€” the tones generated when users press keys on their phone keypad. This is particularly useful for:
  • High-accuracy input: Account numbers, PINs, or numeric codes where speech recognition errors could be problematic
  • PCI DSS compliance: Securely collecting sensitive information like credit card numbers or passwords
  • Accessibility: Providing an alternative input method for users who prefer or need keypad entry
DTMF input can be configured on individual collect steps in your flows, allowing you to specify:
  • Fixed-length input (auto-submit after a specific number of digits)
  • Variable-length input (user presses a termination key like # to submit)
  • Whether to allow voice input alongside keypad input
Flow-step DTMF collection works with AudioCodes Voice Stream, Genesys Cloud Voice, Jambonz Stream, SignalWire, and Twilio Media Streams. See Requesting DTMF input for the full list and configuration. πŸ‘‰ How to configure DTMF input in collect steps

Using Channel-Specific Responses

Tailor your responses for voice channels like phone calls using channel-specific response variations. πŸ‘‰ How to configure channel-specific responses

Multilingual Voice Assistants

If your assistant needs to support users in more than one language, you can configure both your assistant and speech services accordingly. Define a primary language and any additional languages in your assistant configuration, then use supported speech integrations with language-specific settings for speech recognition and text-to-speech. The built-in ASR and TTS integrations support language_map, which maps the languages defined in your assistant to provider-specific language, model, or voice settings. πŸ‘‰ Configure multilingual ASR πŸ‘‰ Configure multilingual TTS πŸ‘‰ How to design multilingual agents

Using Filler Responses for Slow Operations

When certain operations may take time (such as certain custom actions), include β€œfiller” responses to keep users informed about the ongoing process. These responses confirm that the system is processing the request, reducing user uncertainty and abandonment. This technique is especially important for voice-based channels like phone calls, where users don’t have visual UI indicators of progress. This is an example of a filler response:
flows.yml
ReAct sub-agents can produce filler audio on voice streams while tools run. The platform applies a longer minimum pause after that audio before the next message so the caller hears a clearer break. See Minimum pacing between bot messages (voice streams).

Managing Interruptions (Barge-Ins)

In voice conversations, users may interrupt the assistant while it is speaking. Interruption handling uses partial ASR transcripts to detect speech over the assistant response. It is available on Browser Audio, AudioCodes Voice Stream, CHIRP, Genesys Cloud Voice, Jambonz Stream, SignalWire, Twilio Media Streams, Vonage, and WebSocket Voice. Speech with at least min_words words interrupts the assistant immediately. For shorter utterances, Rasa uses a backchannel classifier that compares them with the assistant text currently playing. Acknowledgements such as β€œmhm” or β€œokay” do not interrupt the response, while short answers such as β€œno” to a question can. You can tune this with the backchannel_threshold option. When the interrupted response comes from a streaming custom action, Rasa Pro also cancels the in-flight action stream: TTS stops immediately, already-delivered chunks are recorded in the tracker without being replayed, and events returned by the action are still applied. See Interruptions during streaming custom actions. πŸ‘‰ How to configure interruption handling