AudioSampleRate

AudioSampleRate[audio]

returns the sample rate of the Audio object audio.

Details

  • The sample rate is the number of samples per second.

Examples

open allclose all

Basic Examples  (2)

Sample rate of an Audio object:

Sample rate of an audio linking to a local file:

Properties & Relations  (4)

The sample rate can be imported directly from files:

Use AudioResample to change the sample rate of an audio:

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

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

This could be achieved by dividing AudioLength by AudioSampleRate:

Wolfram Research (2016), AudioSampleRate, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioSampleRate.html.

Text

Wolfram Research (2016), AudioSampleRate, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioSampleRate.html.

BibTeX

@misc{reference.wolfram_2021_audiosamplerate, author="Wolfram Research", title="{AudioSampleRate}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/AudioSampleRate.html}", note=[Accessed: 16-October-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_audiosamplerate, organization={Wolfram Research}, title={AudioSampleRate}, year={2016}, url={https://reference.wolfram.com/language/ref/AudioSampleRate.html}, note=[Accessed: 16-October-2021 ]}

CMS

Wolfram Language. 2016. "AudioSampleRate." Wolfram Language & System Documentation Center. Wolfram Research. 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