python-sounddevice
0.3.15
  • Installation
  • Usage
    • Playback
    • Recording
    • Simultaneous Playback and Recording
    • Device Selection
    • Callback Streams
    • Blocking Read/Write Streams
  • Example Programs
    • Play a Sound File
    • Play a Very Long Sound File
    • Play a Sine Signal
    • Input to Output Pass-Through
    • Plot Microphone Signal(s) in Real-Time
    • Real-Time Text-Mode Spectrogram
    • Recording with Arbitrary Duration
    • Using a stream in an asyncio coroutine
    • Creating an asyncio generator for audio blocks
  • Contributing
  • API Documentation
    • Convenience Functions using NumPy Arrays
    • Checking Available Hardware
    • Module-wide Default Settings
    • Platform-specific Settings
    • Streams using NumPy Arrays
    • Raw Streams
    • Miscellaneous
  • Version History
python-sounddevice
  • Docs »
  • Play and Record Sound with Python
  • Edit on GitHub

Play and Record Sound with Python¶

This Python module provides bindings for the PortAudio library and a few convenience functions to play and record NumPy arrays containing audio signals.

The sounddevice module is available for Linux, macOS and Windows.

Documentation:
https://python-sounddevice.readthedocs.io/
Source code repository and issue tracker:
https://github.com/spatialaudio/python-sounddevice/
License:
MIT – see the file LICENSE for details.

  • Installation
  • Usage
    • Playback
    • Recording
    • Simultaneous Playback and Recording
    • Device Selection
    • Callback Streams
    • Blocking Read/Write Streams
  • Example Programs
    • Play a Sound File
    • Play a Very Long Sound File
    • Play a Sine Signal
    • Input to Output Pass-Through
    • Plot Microphone Signal(s) in Real-Time
    • Real-Time Text-Mode Spectrogram
    • Recording with Arbitrary Duration
    • Using a stream in an asyncio coroutine
    • Creating an asyncio generator for audio blocks
  • Contributing
  • API Documentation
    • Convenience Functions using NumPy Arrays
    • Checking Available Hardware
    • Module-wide Default Settings
    • Platform-specific Settings
    • Streams using NumPy Arrays
    • Raw Streams
    • Miscellaneous
  • Version History

Index

Next

© Copyright 2020, Matthias Geier Revision 732f10d4.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: 0.3.15
Versions
latest
0.3.15
0.3.14
0.3.13
0.3.12
0.3.11
0.3.10
0.3.9
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.2
0.2.1
0.2.0
0.1.0
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.