mic_piper.py
def do_loopback(stream, chunk):
    """
    Indefinitely loop while reading audio from the input
    stream and piping it directly into the output streeam.
    """

    print("Starting playback. Press Ctrl+C to exit.")
    while True:
        mic_audio = stream.read(chunk, exception_on_overflow=False)
        stream.write(mic_audio, chunk, exception_on_underflow=False)

    Indefinitely loop while reading audio from the input
    stream and piping it directly into the output streeam.
    
Indefinitely loop while reading audio from the input
stream and piping it directly into the output streeam.
Indefinitely loop while reading audio from the input stream and piping it directly into the output streeam .
def do_loopback(stream, chunk):
    print("Starting playback. Press Ctrl+C to exit.")
    while True:
        mic_audio = stream.read(chunk, exception_on_overflow=False)
        stream.write(mic_audio, chunk, exception_on_underflow=False)
def do_loopback ( stream , chunk ) : print ( "Starting playback. Press Ctrl+C to exit." ) while True : mic_audio = stream . read ( chunk , exception_on_overflow = False ) stream . write ( mic_audio , chunk , exception_on_underflow = False )
Indefinitely loop while reading audio from the input
stream and piping it directly into the output streeam.
Indefinitely loop while reading audio from the input stream and piping it directly into the output streeam .
"""
    Indefinitely loop while reading audio from the input
    stream and piping it directly into the output streeam.
    """
stream
chunk