Skip to content

Instantly share code, notes, and snippets.

Khoa Nguyen Tuan shaolinkhoa

Block or report user

Report or block shaolinkhoa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@shaolinkhoa
shaolinkhoa / sound_recorder.py
Created Aug 6, 2016 — forked from mabdrabo/sound_recorder.py
Simple script to record sound from the microphone, dependencies: easy_install pyaudio
View sound_recorder.py
import pyaudio
import wave
FORMAT = pyaudio.paInt16
CHANNELS = 2
RATE = 44100
CHUNK = 1024
RECORD_SECONDS = 5
WAVE_OUTPUT_FILENAME = "file.wav"
You can’t perform that action at this time.