python-sounddevice, version 0.4.4 Play and Record Sound with Python
next Installation

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 Very Long Sound File without Using NumPy
    • Play a Web Stream
    • 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
    • Reporting Problems
    • Development Installation
    • Building the Documentation
  • API Documentation
    • Convenience Functions using NumPy Arrays
    • Checking Available Hardware
    • Module-wide Default Settings
    • Platform-specific Settings
    • Streams using NumPy Arrays
    • Raw Streams
    • Miscellaneous
    • Expert Mode
  • Version History

Index

next Installation

Table of Contents

  • Installation
  • Usage
  • Example Programs
  • Contributing
  • API Documentation
  • Version History

  • General Index
Last updated on Nov 20, 2019. Created using Sphinx 4.3.2. Insipid Theme. Show Source (Github).