Skip to main content

Fast reading of all kind of audio files

Project description

Test status code coverage audiofile's documentation audiofile's supported Python versions audiofile's MIT license

The Python package audiofile handles all kind of audio files with a focus on reading speed.

It can read and request information on channels, duration, number of samples and sampling rate for all files that are supported by ffmpeg, sox, and mediainfo. In addition, it can write WAV, FLAC, MP3, and OGG files.

Have a look at the installation and usage instructions as a starting point.

Code example for reading a file:

import audiofile

signal, sampling_rate = audiofile.read("signal.wav")

Under the hood it uses soundfile to read the audio files, converting non-supported formats first to WAV files. The same approach is applied when requesting duration for formats that need to be decoded to ensure that duration and number of samples match.

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

audiofile-1.6.0.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

audiofile-1.6.0-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file audiofile-1.6.0.tar.gz.

File metadata

  • Download URL: audiofile-1.6.0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for audiofile-1.6.0.tar.gz
Algorithm Hash digest
SHA256 1ab33a79b4c49ea7b83c919888417657874b299990fb54c302d78123e4cae7df
MD5 87827d6a5b06baa98d74f786e01f1193
BLAKE2b-256 501757d9e6bb0cc0005c6402cf350b9c4d0c3eb107533a31700cf35972a0a981

See more details on using hashes here.

Provenance

The following attestation bundles were made for audiofile-1.6.0.tar.gz:

Publisher: publish.yml on audeering/audiofile

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file audiofile-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: audiofile-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for audiofile-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 217633dce9bde0081fa63ab327c88933e4c9d8e95ff0fa4bdbad5bd46f71c39c
MD5 ca86a20a5ce4e734f9f0c5906728b70e
BLAKE2b-256 450d3a30e3ad2a9b2c25d0ba70f5c19fd1b09182800a510dbc607c169bf47beb

See more details on using hashes here.

Provenance

The following attestation bundles were made for audiofile-1.6.0-py3-none-any.whl:

Publisher: publish.yml on audeering/audiofile

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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