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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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