{ "info": { "author": "Jiajun Yang", "author_email": "thejyang@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Multimedia :: Sound/Audio", "Topic :: Multimedia :: Sound/Audio :: Conversion" ], "description": "# audio2numpy\n[![Build Status](https://travis-ci.com/wiccy46/audio2numpy.svg?branch=master)](https://travis-ci.com/wiccy46/audio2numpy)\n\n## Description\n\naudio2numpy 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.\n\n## Installation\n\nUsing pip:\n\n pip install audio2numpy\n\n## FFmpeg for decoding mp3\naudio2numpy requires ffmpeg to decode mp3 files. You would need to install ffmpeg in order to have mp3 support. \n\n### macOS\n homebrew install ffmpeg\n\n### Linux\n sudo apt-get install ffmpeg\n[Check here](https://www.ostechnix.com/install-ffmpeg-linux/) for other installation methods for different Linux distributions. \n\n### Windows\n- Download the latest distribution from https://ffmpeg.zeranoe.com/builds/\n- Unzip the folder, preferably to `C:\\`\n- Append the FFmpeg binary folder (e.g. `C:\\ffmpeg\\bin`) to the PATH system variable ([How do I set or change the PATH system variable?](https://www.java.com/en/download/help/path.xml))\n\n## Usage\n\n from audio2numpy import open_audio\n fp = \"./examples/word.mp3\" # change to the correct path to your file accordingly\n signal, sampling_rate = open_audio(fp)\n\n## Version History\n\n**0.1.2 (20.08.2019)**\n\nAdd instructions to install ffmpeg if load mp3 failed with ffmpeg backend not available. \n\n**0.1.1 (14.08.2019)**\n\nInitial release.\n\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/wiccy46/audio2numpy", "keywords": "audio, audio reader", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "audio2numpy", "package_url": "https://pypi.org/project/audio2numpy/", "platform": "", "project_url": "https://pypi.org/project/audio2numpy/", "project_urls": { "Homepage": "https://github.com/wiccy46/audio2numpy" }, "release_url": "https://pypi.org/project/audio2numpy/0.1.2/", "requires_dist": [ "numpy", "ffmpeg" ], "requires_python": "", "summary": "Load audio file to numpy array", "version": "0.1.2" }, "last_serial": 5709662, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "3a15c18376b2e595e61744347b6da448", "sha256": "cffce5822979d480e21f3d65fbeadd6d7a2d671ea529d409e3a1eb92f2a8568a" }, "downloads": -1, "filename": "audio2numpy-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3a15c18376b2e595e61744347b6da448", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9643, "upload_time": "2019-08-14T21:13:46", "url": "https://files.pythonhosted.org/packages/27/04/bf34cde7df27f6c86146ad1534feac28e997a1c214243f133b1e3602f122/audio2numpy-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7cd020f6ea1d8ece886d7883864f9f98", "sha256": "cdb1b0c2a3ee34995701c94b8f892d144a01987c34aff8cde6b94883a98dea62" }, "downloads": -1, "filename": "audio2numpy-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7cd020f6ea1d8ece886d7883864f9f98", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 350262, "upload_time": "2019-08-14T21:13:49", "url": "https://files.pythonhosted.org/packages/99/45/d8e61aa2c145c8202224d271dfabf576ed4e7cc43f79cb603c428d1156b4/audio2numpy-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "17f14cd55b96ee512e48b4dd2a884ac7", "sha256": "40e8e9364086879fa31561dc1948a5981a07c09486010dba2399b25a1bc6c844" }, "downloads": -1, "filename": "audio2numpy-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "17f14cd55b96ee512e48b4dd2a884ac7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10248, "upload_time": "2019-08-21T13:14:49", "url": "https://files.pythonhosted.org/packages/a2/c6/b056256f9aa7c25b051fde1c4249a83f9e331cb84b8de409cc0886a11ba5/audio2numpy-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9af1fc84407cc1504c3e56722e13d75b", "sha256": "e0cbe2679c312ea86508758614299fac16b318bcb812da3221253d78613d00bb" }, "downloads": -1, "filename": "audio2numpy-0.1.2.tar.gz", "has_sig": false, "md5_digest": "9af1fc84407cc1504c3e56722e13d75b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 352015, "upload_time": "2019-08-21T13:14:51", "url": "https://files.pythonhosted.org/packages/b5/5c/694a5887e20f472c7fa230795053c7d73319e03db3ff3aa87749e3d87b1a/audio2numpy-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "17f14cd55b96ee512e48b4dd2a884ac7", "sha256": "40e8e9364086879fa31561dc1948a5981a07c09486010dba2399b25a1bc6c844" }, "downloads": -1, "filename": "audio2numpy-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "17f14cd55b96ee512e48b4dd2a884ac7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10248, "upload_time": "2019-08-21T13:14:49", "url": "https://files.pythonhosted.org/packages/a2/c6/b056256f9aa7c25b051fde1c4249a83f9e331cb84b8de409cc0886a11ba5/audio2numpy-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9af1fc84407cc1504c3e56722e13d75b", "sha256": "e0cbe2679c312ea86508758614299fac16b318bcb812da3221253d78613d00bb" }, "downloads": -1, "filename": "audio2numpy-0.1.2.tar.gz", "has_sig": false, "md5_digest": "9af1fc84407cc1504c3e56722e13d75b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 352015, "upload_time": "2019-08-21T13:14:51", "url": "https://files.pythonhosted.org/packages/b5/5c/694a5887e20f472c7fa230795053c7d73319e03db3ff3aa87749e3d87b1a/audio2numpy-0.1.2.tar.gz" } ] }