# 16101: Voice Recording : Unavailable because duration is too short

Log Level: WARNING

## Description

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.

### Possible causes

* The caller ended the recording before enough audio was captured, such as by hanging up, pressing a `finishOnKey` digit, or reaching `maxLength`.
* `trim-silence` removed 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.

### Possible solutions

* Keep the caller on the line long enough to capture audio that meets your minimum duration requirements.
* Review `timeout`, `finishOnKey`, and `maxLength` so the recording does not end before you capture enough audio.
* Set `trim` to `do-not-trim` if you need to preserve leading and trailing silence in the final recording.

#### Additional resources

* [TwiML Voice: `<Record>`](/docs/voice/twiml/record)
* [Recordings resource](/docs/voice/api/recording)
