Skip to main content

audio2numpy

Build Status

Description

audio2numpy load an audio file and directly ouputs the audio data as a numpy array and its sampling rate. Supports .wav, .aiff via python's standard library, and .mp3 via ffmpeg.

Installation

Using pip:

pip install audio2numpy

FFmpeg for decoding mp3

audio2numpy requires ffmpeg to decode mp3 files. You would need to install ffmpeg in order to have mp3 support.

macOS

homebrew install ffmpeg

Linux

sudo apt-get install ffmpeg

Check here for other installation methods for different Linux distributions.

Windows

Usage

from audio2numpy import open_audio
fp = "./examples/word.mp3"  # change to the correct path to your file accordingly
signal, sampling_rate = open_audio(fp)

Version History

0.1.2 (20.08.2019)

Add instructions to install ffmpeg if load mp3 failed with ffmpeg backend not available.

0.1.1 (14.08.2019)

Initial release.

Release files for audio2numpy 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for audio2numpy 0.1.2
File Size Uploaded
audio2numpy-0.1.2.tar.gz 352.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for audio2numpy 0.1.2
File Interpreter ABI Platform
audio2numpy-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 362.3 kB

Release files / audio2numpy-0.1.2.tar.gz

Download URL audio2numpy-0.1.2.tar.gz
Size 352.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e0cbe2679c312ea86508758614299fac16b318bcb812da3221253d78613d00bb
BLAKE2b-256 checksum
How to use checksums
b55c694a5887e20f472c7fa230795053c7d73319e03db3ff3aa87749e3d87b1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2

Release files / audio2numpy-0.1.2-py3-none-any.whl

Download URL audio2numpy-0.1.2-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40e8e9364086879fa31561dc1948a5981a07c09486010dba2399b25a1bc6c844
BLAKE2b-256 checksum
How to use checksums
a2c6b056256f9aa7c25b051fde1c4249a83f9e331cb84b8de409cc0886a11ba5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page