Skip to content
pubscout

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.

$ flutter pub add audio_metadata_reader
Source repository

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.

Works with

Packages commonly used together with audio_metadata_reader: ones it builds on, ones built on it, and its own family.