AudioLength[audio]
returns the number of samples in the Audio object audio.


AudioLength
AudioLength[audio]
returns the number of samples in the Audio object audio.
Details

- AudioLength returns the actual number of samples stored in each channel of the Audio object.
- The duration of an audio is computed as the number of samples divided by the sample rate.
Related Guides
History
Text
Wolfram Research (2016), AudioLength, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioLength.html.
CMS
Wolfram Language. 2016. "AudioLength." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AudioLength.html.
APA
Wolfram Language. (2016). AudioLength. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioLength.html
BibTeX
@misc{reference.wolfram_2025_audiolength, author="Wolfram Research", title="{AudioLength}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/AudioLength.html}", note=[Accessed: 15-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_audiolength, organization={Wolfram Research}, title={AudioLength}, year={2016}, url={https://reference.wolfram.com/language/ref/AudioLength.html}, note=[Accessed: 15-August-2025]}