sounddeviceEasy Playground

Play and record audio using PortAudio

Getting started with sounddeviceRun locally
Install
pip install sounddevice
Python CodeRun locally
Expected Output
# Expected output shown below
# (Run locally with: sounddevice)

sounddevice is a third-party package. Play and record audio using PortAudio. Install with: pip install sounddevice

Challenge

Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?