/pystream

Python audio streaming connected to external devices network or serial

Primary LanguagePythonMIT LicenseMIT

pystream

Python audio streaming connected to external devices network or serial

Python Audio devices

python-sounddevice documentation

Install

pip install -r requirements.txt

Play a wave file

wave.py

pyhton wave.py

List devices

with command line

python -m sounddevice

with script

    devices = sd.query_devices()
    print(devices[0]["name"])

Connect input to output with a stream

mic_to_speaker.py

python mic_to_speaker.py

See the mic on live plot

plot_input.py

python plot_input.py

Play sine tone

play_sine.py

python play_sine.py

Reference

python play record sound libraries