Overview
This knowledge article provides troubleshooting guidance, best practices, and self-service configuration recommendations for Automatic Speech Recognition (ASR) and Text-to-Speech (TTS) issues in Voice Gateway deployments.
This article helps administrators and Voice AI developers troubleshoot:
- Speech splitting issues
- Incorrect transcription behavior
- TTS pronunciation problems
- Language and voice mismatches
- Digit and card number recognition failures
- Barge-in and transfer timing issues
- Background streaming problems
- Vendor-specific runtime configuration issues
Supported Vendors
This guide covers troubleshooting and tuning for:
| Vendor | Capability |
|---|---|
| Microsoft Azure | ASR + TTS |
| Deepgram | ASR |
| Google Cloud | ASR + TTS |
| Sarvam | TTS |
How to Use This Guide
- Identify the ASR or TTS provider used in your Voice Gateway deployment.
- Match the issue symptom with the troubleshooting section below.
- Apply the recommended configuration using:
userSessionUtils.setCallControlParam('parameterName', value);
- Add the configuration inside a Script Node at the beginning of the Experience Flow.
- Validate behavior using test calls before promoting changes to production.
Microsoft Azure ASR Troubleshooting
Issue: User Speech Splits into Multiple Utterances
Symptoms
A single user sentence is broken into multiple turns.
Example:
Caller says:
"Hello, I want to check my balance"
ASR returns:
"Hello"
"I want to check my balance"
This can cause:
- Intent mismatches
- Premature bot responses
- Conversation loops
Root Cause
Azure ASR uses silence detection to determine end-of-speech. Short pauses during natural conversation may trigger early utterance completion.
Recommended Fix
Add the following configuration in a Script Node:
userSessionUtils.setCallControlParam('AzureSegmentationSilenceTimeoutMs', 1200);
For longer conversational or agentic flows:
userSessionUtils.setCallControlParam('AzureSegmentationSilenceTimeoutMs', 2000);
Recommended Range
| Parameter | Recommended Value |
|---|---|
| AzureSegmentationSilenceTimeoutMs | 800–2000 ms |
| sttMinConfidence | 0.4–0.6 |
| botNoInputTimeoutMS | 5000–8000 ms |
Important Notes
- Lower values improve responsiveness.
- Higher values reduce speech splitting.
- Do not exceed 3000 ms, as this increases latency significantly.
Microsoft Azure TTS Troubleshooting
Issue: Hindi TTS Fails with language: undefined
Symptoms
-
Hindi voice fails during runtime
-
Logs display:
language: undefinedvoice: undefined
-
Digits are pronounced incorrectly
Example:
6987 → "Che Nau Sath Aath Feet"
Root Cause
The configured language and voice do not match.
Recommended Fix
userSessionUtils.setCallControlParam('ttsLanguage', 'hi-IN');
userSessionUtils.setCallControlParam('voiceName', 'hi-IN-SwaraNeural');
userSessionUtils.setCallControlParam('ttsProvider', 'microsoft');
Supported Hindi Voices
| Voice Name | Gender | Language |
|---|---|---|
| hi-IN-SwaraNeural | Female | hi-IN |
| hi-IN-MadhurNeural | Male | hi-IN |
Incorrect Configuration Example
language=hi-IN
voice=en-IN-AartiIndicNeural
Correct Configuration Example
language=hi-IN
voice=hi-IN-SwaraNeural
Azure TTS Pronunciation Issues
Issue: Currency, Acronyms, or Digits Pronounced Incorrectly
Recommended Solution: Use SSML Tags
Currency Formatting
<speak>
<say-as interpret-as="currency" language="hi-IN">
₹3,40,650.23
</say-as>
</speak>
Digit-by-Digit Pronunciation
<speak>
Your OTP is
<say-as interpret-as="digits">6987</say-as>
</speak>
Acronym Pronunciation
<speak>
<say-as interpret-as="spell-out">EMI</say-as>
</speak>
Add Pause Before Important Information
<speak>
Your balance is
<break time="300ms"/>
<say-as interpret-as="currency">₹5000</say-as>
</speak>
Issue: TTS Reads Literal \n Characters
Symptoms
The bot reads:
backslash n backslash n
instead of pausing naturally.
Root Cause
LLM or agentic responses include markdown or escaped newline characters.
Recommended Fix
Sanitize the response before TTS playback:
var raw = context.steps.LLMNode.response;
var clean = raw
.replace(/\\n/g, ' ')
.replace(/\n/g, ' ')
.replace(/\r/g, ' ')
.replace(/\*\*/g, '')
.replace(/\*/g, '')
.replace(/#+\s/g, '')
.replace(/^\s*[-•]\s*/gm, '')
.replace(/\s{2,}/g, ' ')
.trim();
context.ttsOutput = clean;
Important Note
There is no call control parameter to suppress newline playback. The cleanup must occur in a Script Node.
Deepgram ASR Troubleshooting
Issue: Long User Utterances Split Mid-Sentence
Symptoms
Deepgram commits speech before the user finishes speaking.
Recommended Fix
userSessionUtils.setCallControlParam('deepgramUtteranceEndMs', 1500);
userSessionUtils.setCallControlParam('deepgramEndpointing', 500);
userSessionUtils.setCallControlParam('sttMinConfidence', 0.4);
userSessionUtils.setCallControlParam('deepgramNumerals', true);
userSessionUtils.setCallControlParam('deepgramPunctuate', true);
Recommended Values
| Parameter | Recommended Range |
|---|---|
| deepgramUtteranceEndMs | 800–2000 ms |
| deepgramEndpointing | 300–600 ms |
Important Guidance
deepgramEndpointinghandles micro-pauses.deepgramUtteranceEndMshandles longer silence windows.- Increasing only
utteranceEndMsmay not resolve splitting behavior.
Deepgram Digit Recognition Best Practices
Recommended Configuration for Numeric Collection
var recognizerConfig = {
vendor: 'deepgram',
model: 'nova-3-medical',
language: 'en-US',
interim: true,
deepgramOptions: {
endpointing: 300,
utteranceEndMs: 1000,
keyterms: ['zero','one','two','three','four','five','six','seven','eight','nine'],
numerals: true
}
};
Recommended Models
| Model | Best Use Case |
|---|---|
| nova-3 | Conversational IVR |
| nova-3-medical | Healthcare and prescription numbers |
| nova-2-phonecall | Telephony audio optimization |
Google ASR & TTS Troubleshooting
Issue: 16-Digit Card Numbers Fail Recognition
Symptoms
Repeated digits are truncated or misrecognized.
Recommended Solution: Use DTMF
userSessionUtils.setCallControlParam('dtmfCollectMaxDigits', 16);
userSessionUtils.setCallControlParam('dtmfCollectInterDigitTimeoutMS', 4000);
userSessionUtils.setCallControlParam('dtmfCollectTermDigit', '#');
Optional Speech Configuration
userSessionUtils.setCallControlParam('continuousASR', true);
userSessionUtils.setCallControlParam('continuousASRTimeoutInMS', 2500);
Important Note
Azure segmentation parameters do not affect Google ASR behavior.
Issue: Google TTS Credential Error
Error Message
No text-to-speech service credentials for google with labels: undefined
Root Cause
The ttsLabel configured in the UI may not propagate correctly at runtime.
Recommended Fix
Configure the label using a Script Node:
userSessionUtils.setCallControlParam('ttsProvider', 'google');
userSessionUtils.setCallControlParam('ttsLabel', 'kore_google_key');
userSessionUtils.setCallControlParam('ttsLanguage', 'en-US');
userSessionUtils.setCallControlParam('voiceName', 'en-US-Chirp3-HD-Aoede');
Sarvam TTS Troubleshooting
Issue: TTS Fails on ₹ Symbol or Formatted Currency
Symptoms
Messages containing:
- ₹
- Commas
- Indian currency formatting
fail during synthesis.
Recommended Fix
Pre-process the text before playback:
function sanitiseForSarvam(text) {
return text
.replace(/₹([\d,]+\.?\d*)/g, function(m, n) {
var num = parseFloat(n.replace(/,/g, ''));
if (num >= 100000) return (num/100000).toFixed(0) + ' lakh rupaye';
if (num >= 1000) return (num/1000).toFixed(0) + ' hazaar rupaye';
return num + ' rupaye';
})
.replace(/[,;]/g, ' ')
.replace(/\./g, ' ')
.replace(/[()\[\]{}]/g, '')
.replace(/\s{2,}/g, ' ')
.trim();
}
Important Notes
- Sarvam supports plain text only.
- SSML is not supported.
- Background Streaming is not compatible with Sarvam TTS.
Call Flow Troubleshooting
Issue: Aggressive Barge-In Interrupts Users
Symptoms
- Bot interrupts callers prematurely
- Filler music starts too quickly
- Speech gets cut off
Recommended Fix
userSessionUtils.setCallControlParam('node.bargein', false);
userSessionUtils.setCallControlParam('actionHookDelayInMs', 8000);
userSessionUtils.setCallControlParam('session.bargeInSensitivity', 'low');
Issue: Call Transfer Occurs Before TTS Completes
Recommended Fix
Use queued transfer commands:
var transferCmd = {
type: 'command',
command: 'redirect',
queueCommand: true,
data: [{
verb: 'transfer',
destination: 'sip:agent@your-sip.com'
}]
};
print(JSON.stringify(transferCmd));
This ensures TTS playback completes before transfer execution.
Issue: Transcriptions Missing After Calls
Possible Causes
| Cause | Resolution |
|---|---|
| Twilio webhook misconfiguration | Verify transcript webhook URL |
| ASR timeout too short | Increase botNoInputTimeoutMS |
| Template override conflicts | Set timeout directly in ChannelOverrideTemplate |
Recommended Timeout
userSessionUtils.setCallControlParam('botNoInputTimeoutMS', 8000);
Quick Reference — Common Parameters
| Parameter | Recommended Range |
|---|---|
| AzureSegmentationSilenceTimeoutMs | 800–2000 ms |
| continuousASR | true / false |
| continuousASRTimeoutInMS | 1500–3000 ms |
| sttMinConfidence | 0.4–0.7 |
| botNoInputTimeoutMS | 5000–15000 ms |
| deepgramUtteranceEndMs | 800–2000 ms |
| deepgramEndpointing | 300–600 ms |
| actionHookDelayInMs | 5000–10000 ms |
| dtmfCollectMaxDigits | 1–20 |
Best Practices
Use Regional Redundancy
Configure primary and fallback ASR/TTS providers in different regions.
Use DTMF for Long Numeric Inputs
Recommended for:
- 16-digit card numbers
- Account numbers
- PIN collection
Validate Voice and Language Matching
Always ensure:
ttsLanguage matches voiceName
Mismatches can cause runtime failures.
Test Under Real Call Conditions
Validate:
- Background noise
- Long pauses
- Multiple accents
- Network jitter
- Interruptions
When to Contact Support
If issues continue after applying these recommendations, contact support with:
- Call ID
- Session ID
- Environment URL
- Voice Gateway configuration details
- ASR/TTS provider information
Support Portal: