Talk to the agent in the Inspector
The Inspector has a voice mode, so you can test with your own voice before connecting a phone line. Configure it with the same speech providers as your production line, as in Getting Started. See Speech providers.- Set your speech provider’s API key in your environment or
.env(DEEPGRAM_API_KEYfor Deepgram). - Run
rasa inspect. - Leave the message box empty and select Start voice conversation (the waveform button). Allow microphone access when the browser asks.
- Select End conversation to hang up.
What to listen for
Test each skill out loud at least once. Things that read fine in chat often sound wrong on a call:- Long replies. More than a few sentences is hard to follow by ear.
- Lists. Several items read in a row are hard to remember.
- Numbers and identifiers. Check that order numbers, card digits, dates, and amounts are read the way a caller expects.
- Dead air. A long silence before a reply usually means a slow tool or model call. Check the turn’s latency.
- Interruptions. Talk over the agent mid-sentence and check it stops, and that any tool with side effects did not run twice.
- The opening and the close. Check what the caller hears first, and that the agent says goodbye once.
Test the speech path separately
Simulations help you check skill behavior using text. They do not establish that a caller’s audio was recognized correctly, that a reference sounded right, or that interruptions worked on your phone line. Keep a small set of repeatable spoken cases alongside your text scenarios:
Start with the same utterances and expected tool outcomes for each configuration.
Record the Rasa version, speech provider, model, voice, language, channel, and test
date. Change one setting at a time. Include the names and pronunciations your
callers use; a good overall transcription score can hide errors in the few
fields that drive a lookup. A provider change also needs a test on the target
phone line, since browser and telephony audio paths differ.
If a short answer produces no user input, inspect recognition and suppression
before changing the skill prompt. The community
short-reply investigation
shows this diagnostic on specific Rasa versions. It is a versioned example,
not a claim about every recognizer or release. For pauses that split speech or
delay a turn, start with
Deepgram Flux settings
when using Flux; other recognizers have their own turn-completion settings.
Monitor calls in production
Voice calls emit OpenTelemetry traces and metrics. Configure an exporter inintegrations.yml:
integrations.yml
Traces
Each call produces one trace that follows the provider connections, each transcription, each agent turn, speech synthesis, and audio playback. Use traces to answer “what happened on this call”: why a turn was slow, why an interruption was accepted or ignored, or where a provider failed. Transcripts and agent text are not captured by default. See Content capture before turning it on. The full span catalog is on Observability.Metrics
Metrics answer “how are calls going overall”. Start with how long callers wait before they hear each reply (time to first audio) and how long each turn takes. Then watch how often callers interrupt, how often they go quiet, which often points to a confusing question, and the failure counts for speech recognition, speech synthesis, and playback.Separate first audio from the answer
An acknowledgement such as “Let me check” gives the caller feedback, but is not the result they asked for. Track the wait to that first sound separately from the wait to the useful answer, such as the order status or confirmation:rasa.voice.tts.time_to_first_audiomeasures one message’s synthesis from a provider request or cache lookup. It excludes speech recognition, the model, and tool work before that message.rasa.turn.time_to_first_outputstarts at accepted input. For speech, that is the final transcript, not when the caller stopped speaking. It ends at the first TTS audio chunk, which may be an acknowledgement.- To measure the caller’s wait to the answer, instrument your test client from the end of the caller’s audio to the playback of the response that supplies the answer. This is an additional measurement, not a built-in answer-latency metric.
Next steps
Designing for voice
Fix what you heard: lists, numbers, confirmations, and endings.
Connect a phone line
Put the agent behind a real phone number.