Skip to content

Instantly share code, notes, and snippets.

View phanirithvij2000's full-sized avatar
💙
Heart's gone cold, recovering....

Phani Rithvij phanirithvij2000

💙
Heart's gone cold, recovering....
View GitHub Profile
@phanirithvij2000
phanirithvij2000 / waveform.py
Created June 26, 2018 10:58 — forked from moeseth/waveform.py
Create Soundcloud style waveform from Audio in Python
from pydub import AudioSegment
from matplotlib import pyplot as plot
from PIL import Image, ImageDraw
import numpy as np
import os
src = "./test.mp3"
audio = AudioSegment.from_file(src)
data = np.fromstring(audio._data, np.int16)