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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for audiofile-1.5.1.tar.gz
Algorithm Hash digest
SHA256 2a300a6c48841be2ac706437e30bd59babe116a68fa1788209a7d3be42251b47
MD5 5af3a953c3431a5a6dac43627a3a0cc4
BLAKE2b-256 f5a20eef4548cfa95982f372074feb0409082d8a76af8c98f73a89be8adfdcfd

See more details on using hashes here.

Provenance

The following attestation bundles were made for audiofile-1.5.1.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.5.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for audiofile-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4282f5d8301c244723695c57b608c94e4051e5fb8529f8b8bc3ee048c044468
MD5 609d0cf6bc77aa2ccede6fdab4f0708e
BLAKE2b-256 835d5decc1abb5b587b6224a17992d4b27b870b8640d7b5af31f03f87c3b187b

See more details on using hashes here.

Provenance

The following attestation bundles were made for audiofile-1.5.1-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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page