audio_metadata_reader
1.8.1, released 5 weeks ago by an unverified publisher
Pure Dart metadata reader and writer for MP3, MP4, FLAC, OGG, Opus, WAV, AIFF, and APE files.
What it does
Reads and writes audio metadata such as titles, artists, albums, track numbers, and cover art across various audio formats using a pure Dart implementation.
AI-written summary of version 1.8.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to read or update ID3, Vorbis comments, or iTunes ILST tags in audio files
- You are building a local music player and need fast batch parsing of tracks
- You want a pure Dart solution without platform-specific audio library requirements for metadata
Skip it when
- You need to actually play or record audio files
- You are working with audio formats that are not supported by the library
Strengths
- Pure Dart implementation supporting multiple platforms (Android, iOS, Windows, macOS, Linux)
- Extremely fast performance for batch processing large music directories
- Supports both reading and writing metadata for several formats
Weaknesses
- Some formats (like OGG, Opus, AIFF) are read-only for metadata
- Fetching large embedded images can impact reading performance
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
import 'dart:io';
import 'package:audio_metadata_reader/audio_metadata_reader.dart';
void main() {
final track = File("Pieces.mp3");
final metadata = readMetadata(track, getImage: false);
print(metadata.title);
print(metadata.album);
}Alternatives
Packages that do the same job and could replace audio_metadata_reader.
- audioplayers
A Flutter plugin to play multiple audio files simultaneously
87Compare - spotify_sdk
Flutter plugin for Spotify App Remote SDK and Web Playback SDK integration.
86Compare - ffmpeg_kit_flutter_new_audio
Run FFmpeg and FFprobe commands from Dart with prebuilt audio codecs for multiple platforms.
79Compare - audio_waveforms
Generates and visualizes audio waveforms while recording or playing audio files in Flutter.
78Compare
Works with
Packages commonly used together with audio_metadata_reader: ones it builds on, ones built on it, and its own family.
- mimeaudio_metadata_reader depends on itUtilities to resolve MIME types from file names, magic bytes, and to parse multipart streams.
- intlaudio_metadata_reader depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- charsetaudio_metadata_reader depends on itCharset encoding and decoding library for various text encodings in Dart.