Wolfram Language

Computational Audio

Basic Audio Editing

Pad an audio signal with silence.

In[1]:=
Click for copyable input
a = ExampleData[{"Audio", "Bird"}, "Audio"];
In[2]:=
Click for copyable input
AudioPad[a, Quantity[4, "Seconds"]]
Out[2]=

Change the sample rate of an audio object.

In[3]:=
Click for copyable input
AudioResample[a, Quantity[48000, "Hertz"]]
Out[3]=

Split the audio object into up to 1-second partitions.

In[4]:=
Click for copyable input
AudioSplit[a, {Quantity[0.5, "Seconds"], Quantity[1, "Seconds"]}]
Out[4]=

Plot the waveform of the audio.

In[5]:=
Click for copyable input
AudioPlot[a, PlotRange -> All, ImageSize -> Medium]
Out[5]=

Trim the audio signal and plot the resulting waveform.

In[6]:=
Click for copyable input
AudioPlot[AudioTrim[a, {0, .9}], PlotRange -> All, ImageSize -> Medium]
Out[6]=

Related Examples

de es fr ja ko pt-br ru zh