Skip to main content

Get accurate audio metadata from any audio file. Supports MP3, FLAC, WAV, OGG and more.

Project description

Audio Metadata Extractor

This script extracts metadata from audio files using pydub and mutagen libraries with customised and fine-tuned outputs.

Installation

To use this script, you need to have Python installed on your system. You can install the required dependencies using pip:

pip install pydub mutagen

Usage

from audiodata import metadata

file_path = "path/to/audio.extension"
length_seconds, metadata = metadata.get_audio_metadata(file_path)

print(f"Audio Length: {length_seconds} seconds")
print("Metadata: \n" + metadata)

Sample Output

Example:
----------------
Audio Length: 26.006 seconds
Metadata: 
tracknumber: 9, title: Komplexe Zahl, album: Funktionentheorie, artist: Engelbert Niehaus

Support

If you find this script helpful, please do consider supporting the developer at GitHub Sponsors

License

This project is licensed under the MIT License. See the LICENSE file for details.

Issues

Have any suggestions for imptovement ? Open an issue here - "https://github.com/Shreyan1/WhisperMe-Audio-Transcriber/issues"

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

audiodata-1.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

audiodata-1.1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file audiodata-1.1.1.tar.gz.

File metadata

  • Download URL: audiodata-1.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for audiodata-1.1.1.tar.gz
Algorithm Hash digest
SHA256 af04f673bf43c2bd5ddb97a69ca8ef88aa32e884c23a475f659454f0474f6bc6
MD5 9276b5a181e0212af8e31fc99a086dc8
BLAKE2b-256 0edb64df8f4addbd431136284eb28da901826ac1a21757baf3ac576fc4a8e2e7

See more details on using hashes here.

File details

Details for the file audiodata-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: audiodata-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for audiodata-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf7fb7431cdcbfbfcca58516b3d72339ded351a3ae4a97bec2c5081021ee35db
MD5 d22eb6286ac87afca2bf8ecbca1260f4
BLAKE2b-256 c9e17729dcdd59cbfa4e82520eb0db2d094d1f83539a46e55068143ce55de129

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page