Skip to main content

Platform independent interfacing of numpy arrays of floats with audio files and devices.

Project description

AudioIO

Platform independent interfacing of numpy arrays of floats with audio files and devices.

Documentation | API Reference

The AudioIO modules try to use whatever audio packages are installed on your system to achieve their tasks. AudioIO, however, adds own code for handling metadata and marker lists.

See installation for further instructions and recommendations on additional audio packages.

Features

  • Audio data are always numpy arrays of floats (np.float64) with values ranging between -1 and 1 ...
  • ... independent of how the data are stored in an audio file.
  • load_audio() function for loading a whole audio file.
  • Blockwise random-access loading of large audio files (class AudioLoader).
  • blocks() generator for iterating over blocks of data with optional overlap.
  • write_audio() function for writing data, metadata, and markers to an audio file.
  • Read metadata() as nested dictionaries of key-value pairs.
  • Read markers(), i.e. cue points with spans, labels, and descriptions.
  • Platform independent, synchronous (blocking) and asynchronous (non blocking) playback of numpy arrays via play().
  • Automatic resampling of data for playback to match supported sampling rates.
  • Detailed and platform specific installation instructions (pip, conda, Debian and RPM based Linux packages, homebrew for MacOS) for all supported audio packages (audiomodules).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

audioio-2.0.0.tar.gz (84.2 kB view hashes)

Uploaded Source

Built Distribution

audioio-2.0.0-py3-none-any.whl (74.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page