Skip to content

Instantly share code, notes, and snippets.


PM pgmolloy

View GitHub Profile
Pretz /
Created Feb 8, 2012
CSV to WAV: Needed a way to convert a list of numbers in a CSV file to a wave audio file. Go python.
import wave
import numpy
import struct
import sys
import csv
from scikits.samplerate import resample
def write_wav(data, filename, framerate, amplitude):