Skip to main content

Speech recognition resources control how the agent processes user speech input on the voice channel.

These resources live under voice/speech_recognition/ and are used to tune how the agent listens, recognizes, and post-processes spoken input.
ASR settings are platform-provisioned — update onlyasr_settings.yaml is pulled for every project with a voice channel. It can be updated with poly push but not created or deleted. See the equivalent note on agent settings for details.
Modular mode onlyKeyphrase boosting and transcript corrections only apply in modular mode, where separate components handle speech recognition and language processing. Projects in speech-native mode, such as Dialog-RSN-1, don’t use them.

Location

All three files are voice-specific. Only asr_settings.yaml is the core settings file; the others are optional.

What speech recognition controls

ASR settings

Configure turn-taking: speech end delay and barge-in.

Keyphrase boosting

Bias recognition toward specific words or phrases.

Transcript corrections

Apply regex-based corrections after speech recognition.

ASR settings

ASR settings are defined in:
They hold the voice channel’s turn-taking settings, and apply to the whole voice channel. Individual flow steps can override barge-in, ASR provider, VAD, and LLM settings for a single turn — see ASR override and barge-in in the flows reference. speech_end_delay_ms is optional: left out, it uses the platform default, and removing it resets it on the next push. barge_in is always in the file, and can’t be removed: set enabled: false to turn barge-in off. Older projects that set barge-in with Agent Studio’s earlier ASR setting pull enabled from that setting, and the first change you push to barge_in stores the whole section.

Fields

Example

Projects with a managed voice configurationIf PolyAI manages your project’s voice configuration, speech_end_delay_ms is overwritten at runtime. It’s still pulled and pushed, but has no effect. You can check on your project’s Voice › Model page in Agent Studio, which shows a Best defaults tag when the configuration is managed.

Keyphrase boosting

Keyphrase boosting is defined in:
It biases the recognizer toward specific words or phrases, which is useful for:
  • brand names
  • product names
  • specialist terminology
  • domain-specific jargon

Structure

A keyphrases list where each entry includes:

Example

Transcript corrections

Transcript corrections are defined in:
These rules post-process ASR output to fix common misrecognitions. They are especially useful for:
  • email domains
  • repeated digits
  • domain-specific phrases
  • spoken forms that should be normalized into machine-friendly text

Structure

A corrections list where each entry includes: Each regex rule can include:

Example

Validation

  • speech_end_delay_ms must be a whole number between 200 and 1500.
  • barge_in can’t be removed; set enabled: false instead.
  • barge_in.max_per_call can’t be negative.
  • Keys inside a section must be ones listed above, so a misspelt key is an error rather than being ignored.
  • Each keyphrase must be non-empty, with a level of default, boosted, or maximum.
  • Keyphrases must be unique once trimmed and lowercased — Agent Studio treats Infusion Sets and infusion sets as the same phrase, and rejects a project that keeps both.
  • Each transcript correction needs a unique name and at least one regex rule, and every rule needs a regular_expression.
  • replacement_type must be one of full, partial, or substring.

Best practices

  • use keyphrase_boosting for terms the recognizer is likely to miss
  • keep boosted keyphrases focused and specific
  • keep each keyphrase unique after trimming and lowercasing
  • use transcript corrections for common, repeated recognition errors
  • avoid overly broad regex rules that may alter normal input unexpectedly
  • change speech_end_delay_ms in small steps: lower values respond faster but cut off callers who pause mid-sentence
  • leave speech_end_delay_ms out unless you need a value other than the platform default
Use the lightest possible interventionStart with the default settings, then add boosting or transcript corrections only where recognition problems are actually recurring.

Voice settings

See how speech recognition fits into the wider voice-channel configuration.

Response control

Configure what happens to output before it is spoken.
Last modified on November 27, 2026