LoginSignup
9
5

More than 5 years have passed since last update.

Pythonでmp3の波形を描く

Posted at

はじめに

音楽の特徴を抽出するために、mp3ファイルを波形で表示したいと思いました。

コード

test.py
import librosa

a = librosa.load('test.mp3')
librosa.display.waveplot(a[0],sr=22050)

結果

ダウンロード.png

参考

下記を参考にしました。
Urban Sound Classification with Neural Networks in Tensorflow

ありがとうございました。

9
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
5