Hi Will,
Thanks — this is a common Twilio/PSTN symptom. Quick guidance and actionable steps:
1. Root cause (most likely)
• Twilio’s PSTN path uses μ-law + carrier-side gain/normalization; inbound caller leg often arrives quieter than agent TTS, hurting ASR.
2. Recommended fixes
• Preprocess audio before ASR (don’t rely on post-call recordings):
• Inspect Twilio Media Stream frames to confirm RMS/peak levels for the caller channel.
• Apply controlled gain/normalization (e.g., +6–+12 dB or RMS normalization) to the caller channel prior to sending to the transcriber.
• Use a limiter to avoid clipping after boosting.
• Ensure you send the boosted PCM (mono, 16-bit LE, 16kHz) to Vapi/transcriber.
• If using Twilio: consider switching transport/sample-rate settings or adding per-call gain in your Twilio Media Stream consumer.
• If μ-law artifacts persist, enable Twilio dual-channel recording / debug recordings to view raw legs separately.
3. Short-term workarounds
• Increase transcriber sensitivity/alternative model: try Deepgram Nova or Nova3 with keyterms if vocabulary is stable.
• Use model-specific features (Deepgram Flux/Assembly end-of-turn) less aggressive while you tune levels.
• Route test calls through a preprocessing step (your service) that normalizes caller audio then forwards to Vapi.
4. Diagnostics I can run if you share one recent Call ID (under 14 days)
• Inspect Vapi/Twilio media stream logs and waveform levels for both legs
• Confirm sample rates/codecs, per-call packet counts, and whether audio was received at low amplitude
• Recommend exact gain multiplier/normalization target
Reference: Voicemail/Call debugging and media guidance in our docs — see Debugging voice agents (Observe > Call Logs) for call IDs and recordings.
https://docs.vapi.ai/debugging
If you want, share one recent Call ID and I’ll pull the media diagnostics and propose exact gain settings.