Spaces:
Sleeping
Sleeping
File size: 261 Bytes
e58a4aa |
1 2 3 4 5 6 7 8 9 10 |
import numpy as np
import matplotlib.pyplot as plt
import librosa
def result_video_viz(y, sr):
plt.figure(figsize=(10, 4))
plt.plot(np.linspace(0, len(y) / sr, len(y)), y)
plt.title("Waveform")
plt.xlabel("Time (s)")
plt.ylabel("Amplitude") |