Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pyaudio mic stream

audio = pyaudio.PyAudio()
stream = audio.open(format=FORMAT, channels=CHANNELS, rate=RATE, output=True, frames_per_buffer=CHUNK)

try:
    while True:
        data = s.recv(CHUNK)
        stream.write(data)
except KeyboardInterrupt:
    pass
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #pyaudio #mic #stream
ADD COMMENT
Topic
Name
6+4 =