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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for audiofile-1.5.0.tar.gz
Algorithm Hash digest
SHA256 50392d22b2dea2040be1e3b2404bb5190d524a40b00a91c0f547905d7f61e5f2
MD5 dcb49fa92d686bf1f4e99935708f429d
BLAKE2b-256 18bcd650b31056f9de78df6408839cdcac900a318607aed7c8bb48e7fb0ebd79

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for audiofile-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79bf2f651ec48c886eabb16b184d6e15398153dce997a0d63784ab80318df31c
MD5 5e3075de2cb55ca65ba258c2d9b74be5
BLAKE2b-256 89769cc485c575e771daeb84586b294424aa6b102297a7727071dc753dae0daa

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