16101: Voice Recording : Unavailable because duration is too short
VOICE
WARNING
Twilio returns this warning when a voice recording is shorter than the minimum duration required for the recording workflow. With <Record>, the final duration can be shorter than the time spent recording when Twilio trims leading or trailing silence or when no RTP audio data is received during recording.
- The caller ended the recording before enough audio was captured, such as by hanging up, pressing a
finishOnKeydigit, or reachingmaxLength. trim-silenceremoved leading or trailing silence, which made the final recording shorter.- Twilio did not receive RTP audio data during the recording, so the effective duration was shorter than expected.
- Keep the caller on the line long enough to capture audio that meets your minimum duration requirements.
- Review
timeout,finishOnKey, andmaxLengthso the recording does not end before you capture enough audio. - Set
trimtodo-not-trimif you need to preserve leading and trailing silence in the final recording.