- 💯 100% cross-platform
- 💯 100% pure dart
- 🙅♂️ 0 dependencies
- ✅ Uniform audio information for all file types
- ✅ No need for external tools like ffprobe
- ✅ mp3
- ✅ wav
- ✅ aac
- ✅ ogg
- ✅ flac
- ✅ opus
- 🚧 m4a
- 🔊 Track Duration
- 🔊 Sample Rate
- 🔊 Bit Rate
- 🔊 Bit Depth
- 🔊 Channel Count
- 🔊 Encoding
dart pub add audio_meta
import 'package:audio_meta/audio_meta.dart';import 'dart:io';
import 'package:audio_meta/audio_meta.dart';
final file = File('audio.mp3')
final bytes = Uint8List.fromList(f.readAsBytesSync());
final meta = AudioMeta(bytes);
print(meta.type); // AudioType.mp3
print(meta.sampleRate); // 44100
print(meta.bitRate); // 128000
print(meta.duration); // Duration(seconds: 180)An example project can be found in the example folder of the repository.
Nothing here yet!
Feel free to support me by working on open issues, or making a feature request / opening an issue.