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.1.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.1-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for audiofile-1.6.1.tar.gz
Algorithm Hash digest
SHA256 6d941d216c16e3ead2fe3b80d8b7e349f0f11f2b727ed5acd0123831edd46b41
MD5 3006e71cacb2cc3e42285c4de0f9474a
BLAKE2b-256 113a8c16c340c7b5000ab8f78636eec28f1982b8502f6226709d714cf0f82117

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: audiofile-1.6.1-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for audiofile-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c50e5afa49b50c4f6101cb7c74c8016c7ae691c2de214b22b84f0d5f8b2cb76
MD5 2aac1e9b16e4db47e7849a0da4536134
BLAKE2b-256 808e601e50ace82cd3bbb1f320c788c2324ad30e94906416002f4cc8b45d6f1a

See more details on using hashes here.

Provenance

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