AudioSampleRate
✖
AudioSampleRate
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Sample rate of an Audio object:

https://wolfram.com/xid/0fq7aouam5tbq-evtrg9

Sample rate of an audio linking to a local file:

https://wolfram.com/xid/0fq7aouam5tbq-c7wrfw


https://wolfram.com/xid/0fq7aouam5tbq-ushb7c


https://wolfram.com/xid/0fq7aouam5tbq-3fr49

Sample rate of the audio track in a video:

https://wolfram.com/xid/0fq7aouam5tbq-pk3ng4

Properties & Relations (4)Properties of the function, and connections to other functions
The sample rate can be imported directly from files:

https://wolfram.com/xid/0fq7aouam5tbq-6mqmqm


https://wolfram.com/xid/0fq7aouam5tbq-zbqyx2

Use AudioResample to change the sample rate of an audio:

https://wolfram.com/xid/0fq7aouam5tbq-7tfk0p


https://wolfram.com/xid/0fq7aouam5tbq-30cy6q


https://wolfram.com/xid/0fq7aouam5tbq-x7zyvm

The sample rate of an audio can be computed by dividing AudioLength by Duration:

https://wolfram.com/xid/0fq7aouam5tbq-4ba1jg

https://wolfram.com/xid/0fq7aouam5tbq-b7hkef


https://wolfram.com/xid/0fq7aouam5tbq-xqhe4a

For Audio, dividing the number of samples by the sample rate is equivalent to the duration:

https://wolfram.com/xid/0fq7aouam5tbq-ddjjc2

This could be achieved by dividing AudioLength by AudioSampleRate:

https://wolfram.com/xid/0fq7aouam5tbq-m9rpv8

Wolfram Research (2016), AudioSampleRate, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioSampleRate.html (updated 2021).
Text
Wolfram Research (2016), AudioSampleRate, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioSampleRate.html (updated 2021).
Wolfram Research (2016), AudioSampleRate, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioSampleRate.html (updated 2021).
CMS
Wolfram Language. 2016. "AudioSampleRate." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/AudioSampleRate.html.
Wolfram Language. 2016. "AudioSampleRate." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/AudioSampleRate.html.
APA
Wolfram Language. (2016). AudioSampleRate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioSampleRate.html
Wolfram Language. (2016). AudioSampleRate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioSampleRate.html
BibTeX
@misc{reference.wolfram_2025_audiosamplerate, author="Wolfram Research", title="{AudioSampleRate}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/AudioSampleRate.html}", note=[Accessed: 04-June-2025
]}
BibLaTeX
@online{reference.wolfram_2025_audiosamplerate, organization={Wolfram Research}, title={AudioSampleRate}, year={2021}, url={https://reference.wolfram.com/language/ref/AudioSampleRate.html}, note=[Accessed: 04-June-2025
]}