Skip to content

Instantly share code, notes, and snippets.

View matawushepherd's full-sized avatar
💭
I may be slow to respond.

matawushepherd

💭
I may be slow to respond.
View GitHub Profile
@matawushepherd
matawushepherd / sound_recorder.py
Created March 9, 2020 14:31 — 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"