# Audio Quality

> Improve voice quality in calls

Source: https://edesy.in/docs/voice-agent/troubleshooting/audio-quality

Optimize audio quality for better conversations.

## Common Audio Issues

### Robotic/Choppy TTS

**Causes:**
- Network latency
- TTS provider issues
- Audio buffer problems

**Solutions:**
1. Switch TTS provider (try Azure or Sarvam)
2. Use native audio models (Gemini Live)
3. Check network stability

### Echo

**Causes:**
- Acoustic feedback
- Speaker/mic too close
- Poor echo cancellation

**Solutions:**
1. Use native audio models
2. Enable enhanced echo cancellation
3. Reduce speaker volume

### Background Noise

**Causes:**
- Noisy environment
- Low-quality microphone
- STT sensitivity

**Solutions:**

Enable noise filtering in agent config:

```json
{
  "llmConfig": {
    "noiseFiltering": {
      "enabled": true,
      "sileroVad": {
        "confidence": 0.8,
        "minVolume": 0.7
      }
    }
  }
}
```

### Words Getting Cut Off

**Causes:**
- Aggressive VAD
- Early end-of-turn detection

**Solutions:**

Use conservative VAD profile:

```json
{
  "llmConfig": {
    "gemini-live": {
      "vadProfile": "conservative"
    }
  }
}
```

## Provider-Specific Tuning

### ElevenLabs TTS

```json
{
  "ttsConfig": {
    "elevenlabs": {
      "stability": 0.7,
      "similarity_boost": 0.8
    }
  }
}
```

Higher stability = more consistent but less expressive

### Sarvam TTS

```json
{
  "ttsConfig": {
    "sarvam": {
      "speed": 1.0,
      "pitch": 1.0
    }
  }
}
```

## Testing Audio

1. Go to **Test Center**
2. Select your agent
3. Make a test call
4. Listen for:
   - Clear speech
   - Natural pacing
   - No artifacts
