Wolfram 语言

计算音频

基本音频编辑

用消音填补一个音频信号.

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

更改音频对象的采样频率.

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

将音频对象分割为最大为 1 秒的分段.

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

绘制音频的波形图.

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

剪辑音频信号并绘制由此得出的波形图.

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

相关范例

de en es fr ja ko pt-br ru