AudioResample
AudioResample[audio,sr]
resamples audio to have the sample rate of sr.
AudioResample[video,sr]
resamples the first audio track in video to have the sample rate of sr.
Details and Options
- AudioResample can be used to convert between any sampling rates, including the common ones, e.g. telephone, CD and DVD.
- The sample rate sr can be given as a positive integer, assumed to be in hertz, a quantity, or a Scaled parameter.
- The following common sampling rates are also supported:
-
"Telephone" 8000 used for telephone signal "CD" 44100 used in audio CD, MP3, etc. "DVD" 48000 DVD, professional video equipment, etc. "DVDAudio" 96000 DVD-Audio, Blu-ray, etc. - AudioResample works with Audio objects of any number of channels.
- The following options can be given:
-
Antialiasing True whether to antialias when downsampling Padding 0 padding method Resampling Automatic resampling method - For possible settings for Padding, see the reference page for AudioPad.
Examples
open allclose allScope (4)
Options (3)
Antialiasing (1)
When resampling to a lower sample rate, an antialiasing filter is applied by default:
Resampling by a factor of .5 with antialiasing filter:
Use Antialiasing->False:
Text
Wolfram Research (2016), AudioResample, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioResample.html (updated 2024).
CMS
Wolfram Language. 2016. "AudioResample." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/AudioResample.html.
APA
Wolfram Language. (2016). AudioResample. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioResample.html