Skip to main content

A package for recording, reading, manipulating, playing and writing sound files

Project description

audiomath is a package for Python programmers who want to record, manipulate, visualize or play sound waveforms. It allows you to:

  • Represent sounds as numeric arrays via the third-party Python package numpy (required). The arrays are contained within high-level objects, allowing common operations to be performed with minimal coding—for example: slicing and concatenation in time, selection and stacking of channels, resampling, mixing, rescaling and modulation.

  • Plot the resulting waveforms, via the third-party Python package matplotlib (optional).

  • Read and write uncompressed .wav files (via the Python standard library).

  • Read other audio formats using the third-party AVbin library (binaries are included in the package, for a selection of platforms).

  • Record and play back sounds using the third-party PortAudio library (binaries are included in the package, for a selection of platforms).

  • Play sounds using the alternative PsychPortAudio back-end, from the (optional) psychtoolbox package, allowing very precise control of latency

  • Plug in other recording/playback back-ends with moderate development effort.

See https://audiomath.readthedocs.io for full documentation and installation instructions.

If you use audiomath in your work, please cite:

  • Hill NJ, Mooney SWJ & Prusky GT (2021). audiomath: a neuroscientist’s sound toolkit. Heliyon 7(2):e06236. https://doi.org/10.1016/j.heliyon.2021.e06236

    @article{hill2020audiomath,
        author  = {Hill, N. Jeremy  and  Mooney, Scott W. J.  and  Prusky, Glen T.},
        title   = {{audiomath}: a Neuroscientist's Sound Toolkit},
        journal = {Heliyon},
        volume  = {7},
        number  = {2},
        pages   = {e06236},
        month   = {February},
        year    = {2021},
        date    = {2021-02-10},
        doi     = {10.1016/j.heliyon.2021.e06236},
        url     = {https://doi.org/10.1016/j.heliyon.2021.e06236},
    }

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

audiomath-1.20.0-py2.py3-none-any.whl (18.4 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file audiomath-1.20.0-py2.py3-none-any.whl.

File metadata

  • Download URL: audiomath-1.20.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 18.4 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.3

File hashes

Hashes for audiomath-1.20.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 75b7379253b85cc37105d02faa515a65682b7f42fa66b08ee08f0ef6fdd2740b
MD5 2680213c5ae786f3e051723d1cc0ad6e
BLAKE2b-256 9d51a8f30c9d3843cabb04d926902a4488576b8a4eb8fa03ef7eb1608a3b80de

See more details on using hashes here.

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