Last active
February 14, 2021 02:15
-
-
Save ketanhdoshi/5e3f3d6cfbaa4438ab36ee145f77f1e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import librosa.display | |
import matplotlib.pyplot as plt | |
# x-axis has been converted to time using our sample rate. | |
# matplotlib plt.plot(y), would output the same figure, but with sample | |
# number on the x-axis instead of seconds | |
plt.figure(figsize=(14, 5)) | |
librosa.display.waveplot(samples, sr=sample_rate) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment