Skip to content

Instantly share code, notes, and snippets.

View andrewb1269's full-sized avatar

Andrew Brandt andrewb1269

View GitHub Profile
@andrewb1269
andrewb1269 / .gitignore
Created November 30, 2016 16:49 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@andrewb1269
andrewb1269 / sound_recorder.py
Created November 30, 2016 16:58 — forked from mabdrabo/sound_recorder.py
Simple script to record sound from the microphone, dependencies: easy_install pyaudio
import pyaudio
import wave
FORMAT = pyaudio.paInt16
CHANNELS = 2
RATE = 44100
CHUNK = 1024
RECORD_SECONDS = 5
WAVE_OUTPUT_FILENAME = "file.wav"