Response control resources process the agent’s output before it is spoken.
They are used to adjust spoken output by:- fixing pronunciation
- intercepting or blocking phrases before speech synthesis
voice/response_control/.
Location
What response control does
Pronunciations
Fix how words, abbreviations, or phrases are spoken by TTS.
Phrase filtering
Block or intercept phrases before they are spoken.
Pronunciations
Pronunciation rules live in:What a pronunciation rule contains
Each item in thepronunciations list can include:
| Field | Required | Description |
|---|---|---|
regex | Yes | Regex pattern to match in the output text |
replacement | Yes | Replacement text for speech synthesis |
case_sensitive | No | Whether matching is case-sensitive |
language_code | No | Restrict the rule to a specific language |
description | No | Notes about the rule |
Example
Phrase filtering
Phrase-filtering rules live in:What a phrase filter contains
Each item in thephrase_filtering list can include:
| Field | Required | Description |
|---|---|---|
name | Yes | Identifier for the filter |
description | No | Explains what the filter does |
regular_expressions | Yes | Regex patterns to match |
say_phrase | No | Whether to still speak the matched phrase |
language_code | No | Restrict the filter to a specific language |
function | No | Global function to call when a match occurs |
Example
When to use response control
Use response control when standard prompting is not enough and you need a more deterministic layer before output is spoken. Typical cases include:- fixing abbreviations or domain-specific terms in TTS
- preventing profanity from being spoken
- reducing the risk of unsafe or brand-damaging output
- intercepting special phrases and triggering code
Best practices
For pronunciations
- keep regex patterns targeted and readable
- use language-specific rules when pronunciation should vary by locale
- rely on rule ordering deliberately where multiple patterns could overlap
For phrase filters
- use phrase filters for safety and brand protection
- keep regex patterns specific to avoid false positives
- only attach a
functionwhen you need a real side effect - ensure the
functionvalue refers to a valid global function, not a flow function
Related pages
Voice settings
See where response control fits within the broader voice-channel configuration.
Functions
Learn how global functions can be triggered from phrase filters.

