Skip to content

Instantly share code, notes, and snippets.

@morning11pumpkin
morning11pumpkin / sound.py
Created October 30, 2022 16:52
matplot sound file display
#https://qiita.com/oknix/items/6cdbf853de6aeb474657
# librosaをインポート
import librosa
# numpyをインポート(配列を生成するため)
import numpy as np
# matplotlibをインポート(グラフ描画するため)
import matplotlib.pyplot as plt
y, sr = librosa.load("test.wav")
@morning11pumpkin
morning11pumpkin / sound.py
Created October 30, 2022 16:48
sound file display by matplotlib
#https://qiita.com/oknix/items/6cdbf853de6aeb474657
# librosaをインポート
import librosa
# numpyをインポート(配列を生成するため)
import numpy as np
# matplotlibをインポート(グラフ描画するため)
import matplotlib.pyplot as plt
y, sr = librosa.load("test.wav")
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.