Spaces:
Sleeping
Sleeping
| 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") |