Name | audiofile JSON |
Version |
1.5.0
JSON |
| download |
home_page | None |
Summary | Fast reading of all kind of audio files |
upload_time | 2024-07-26 14:32:29 |
maintainer | None |
docs_url | None |
author | None |
requires_python | None |
license | MIT License Copyright (c) 2018-present audEERING GmbH and Contributors Author: Hagen Wierstorf Johannes Wagner Christian Geng Contributors: Fabian-Robert Stöter (code for benchmarks) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
audio
tools
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
=========
audiofile
=========
|tests| |coverage| |docs| |python-versions| |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:
.. code-block:: python
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.
.. _ffmpeg: https://www.ffmpeg.org/
.. _installation: https://audeering.github.io/audiofile/installation.html
.. _mediainfo: https://mediaarea.net/en/MediaInfo/
.. _usage: https://audeering.github.io/audiofile/usage.html
.. _reading speed: https://audeering.github.io/audiofile/benchmark.html
.. _sox: http://sox.sourceforge.net/
.. _virtualenv: https://virtualenv.pypa.io/
.. _soundfile: https://python-soundfile.readthedocs.io/
.. |tests| image:: https://github.com/audeering/audiofile/workflows/Test/badge.svg
:target: https://github.com/audeering/audiofile/actions?query=workflow%3ATest
:alt: Test status
.. |coverage| image:: https://codecov.io/gh/audeering/audiofile/branch/main/graph/badge.svg?token=LVF0621BKR
:target: https://codecov.io/gh/audeering/audiofile/
:alt: code coverage
.. |docs| image:: https://img.shields.io/pypi/v/audiofile?label=docs
:target: https://audeering.github.io/audiofile/
:alt: audiofile's documentation
.. |python-versions| image:: https://img.shields.io/pypi/pyversions/audiofile.svg
:target: https://pypi.org/project/audiofile/
:alt: audiofile's supported Python versions
.. |license| image:: https://img.shields.io/badge/license-MIT-green.svg
:target: https://github.com/audeering/audiofile/blob/main/LICENSE
:alt: audiofile's MIT license
Raw data
{
"_id": null,
"home_page": null,
"name": "audiofile",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "audio, tools",
"author": null,
"author_email": "Hagen Wierstorf <hwierstorf@audeering.com>, Johannes Wagner <jwagner@audeering.com>, Christian Geng <cgeng@audeering.com>",
"download_url": "https://files.pythonhosted.org/packages/18/bc/d650b31056f9de78df6408839cdcac900a318607aed7c8bb48e7fb0ebd79/audiofile-1.5.0.tar.gz",
"platform": null,
"description": "=========\naudiofile\n=========\n\n|tests| |coverage| |docs| |python-versions| |license|\n\nThe Python package **audiofile** handles all kind of audio files\nwith a focus on `reading speed`_.\n\nIt can read and request information\non channels, duration, number of samples and sampling rate\nfor all files that are supported by\nffmpeg_,\nsox_,\nand mediainfo_.\nIn addition,\nit can write WAV, FLAC, MP3, and OGG files.\n\nHave a look at the installation_ and usage_ instructions as a starting point.\n\nCode example for reading a file:\n\n.. code-block:: python\n\n import audiofile\n\n signal, sampling_rate = audiofile.read(\"signal.wav\")\n\nUnder the hood it uses soundfile_ to read the audio files,\nconverting non-supported formats first to WAV files.\nThe same approach is applied\nwhen requesting duration for formats that need to be decoded\nto ensure that duration and number of samples match.\n\n\n.. _ffmpeg: https://www.ffmpeg.org/\n.. _installation: https://audeering.github.io/audiofile/installation.html\n.. _mediainfo: https://mediaarea.net/en/MediaInfo/\n.. _usage: https://audeering.github.io/audiofile/usage.html\n.. _reading speed: https://audeering.github.io/audiofile/benchmark.html\n.. _sox: http://sox.sourceforge.net/\n.. _virtualenv: https://virtualenv.pypa.io/\n.. _soundfile: https://python-soundfile.readthedocs.io/\n\n.. |tests| image:: https://github.com/audeering/audiofile/workflows/Test/badge.svg\n :target: https://github.com/audeering/audiofile/actions?query=workflow%3ATest\n :alt: Test status\n.. |coverage| image:: https://codecov.io/gh/audeering/audiofile/branch/main/graph/badge.svg?token=LVF0621BKR\n :target: https://codecov.io/gh/audeering/audiofile/\n :alt: code coverage\n.. |docs| image:: https://img.shields.io/pypi/v/audiofile?label=docs\n \u00a0 \u00a0:target: https://audeering.github.io/audiofile/\n \u00a0 \u00a0:alt: audiofile's documentation\n.. |python-versions| image:: https://img.shields.io/pypi/pyversions/audiofile.svg\n :target: https://pypi.org/project/audiofile/\n :alt: audiofile's supported Python versions\n.. |license| image:: https://img.shields.io/badge/license-MIT-green.svg\n :target: https://github.com/audeering/audiofile/blob/main/LICENSE\n :alt: audiofile's MIT license\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2018-present audEERING GmbH and Contributors Author: Hagen Wierstorf Johannes Wagner Christian Geng Contributors: Fabian-Robert St\u00f6ter (code for benchmarks) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "Fast reading of all kind of audio files",
"version": "1.5.0",
"project_urls": {
"documentation": "https://audeering.github.io/audiofile/",
"repository": "https://github.com/audeering/audiofile/"
},
"split_keywords": [
"audio",
" tools"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "89769cc485c575e771daeb84586b294424aa6b102297a7727071dc753dae0daa",
"md5": "5e3075de2cb55ca65ba258c2d9b74be5",
"sha256": "79bf2f651ec48c886eabb16b184d6e15398153dce997a0d63784ab80318df31c"
},
"downloads": -1,
"filename": "audiofile-1.5.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5e3075de2cb55ca65ba258c2d9b74be5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 1134524,
"upload_time": "2024-07-26T14:32:27",
"upload_time_iso_8601": "2024-07-26T14:32:27.023280Z",
"url": "https://files.pythonhosted.org/packages/89/76/9cc485c575e771daeb84586b294424aa6b102297a7727071dc753dae0daa/audiofile-1.5.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "18bcd650b31056f9de78df6408839cdcac900a318607aed7c8bb48e7fb0ebd79",
"md5": "dcb49fa92d686bf1f4e99935708f429d",
"sha256": "50392d22b2dea2040be1e3b2404bb5190d524a40b00a91c0f547905d7f61e5f2"
},
"downloads": -1,
"filename": "audiofile-1.5.0.tar.gz",
"has_sig": false,
"md5_digest": "dcb49fa92d686bf1f4e99935708f429d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 1129078,
"upload_time": "2024-07-26T14:32:29",
"upload_time_iso_8601": "2024-07-26T14:32:29.091696Z",
"url": "https://files.pythonhosted.org/packages/18/bc/d650b31056f9de78df6408839cdcac900a318607aed7c8bb48e7fb0ebd79/audiofile-1.5.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-26 14:32:29",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "audeering",
"github_project": "audiofile",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "audiofile"
}