Answers for "pyaudio mic stream"

-1

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
Posted by: Guest on May-12-2020

Python Answers by Framework

Browse Popular Code Answers by Language