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, 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.3.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

audiofile-1.3.1-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: audiofile-1.3.1.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for audiofile-1.3.1.tar.gz
Algorithm Hash digest
SHA256 72eb4efe1df9394442fcc6476bf2b17a0823a3ee01c624cccdd1adbc52f03f17
MD5 c77958a93ce165d6fe1f28df668c9043
BLAKE2b-256 ef8b3e9e7cd844c932af790bb01639f653bab9a52477028295aede8317a4e064

See more details on using hashes here.

File details

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

File metadata

  • Download URL: audiofile-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for audiofile-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2867307c5ed807f447d8d5262265dde50426b9fc434d05e2897ed7b3005304f2
MD5 6fd9649f65a8513d9ac63fb3899e4644
BLAKE2b-256 d3123342e0fd87f8eded0b76c4b93df01ed8acb34e965f5ca5ba4b5815aee2c4

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