Pre-recorded best practices
Follow these recommendations to keep Lightning STT latencies low while preserving transcript fidelity.Audio preprocessing workflow
Convert with FFmpeg
Python example
JavaScript example
Quality checklist
- Use 16 kHz mono whenever possible; downsample higher-fidelity recordings.
- Normalize audio levels so peaks stay consistent across large batches.
- Remove silence at the beginning and end to avoid wasted compute.
- Handle multiple speakers by enabling diarization when agents and customers share a channel.
- Test with a sample clip before launching full backfills to validate accuracy and metadata.

