flutter_lame
1.0.3, released 2 years ago by an unverified publisher
Flutter bindings to LAME MP3 encoder that builds the native library automatically.
What it does
Provides a LameMp3Encoder class to encode PCM audio data to MP3. The LAME source is bundled and compiled as part of the Flutter build, so no external binaries are required.
AI-written summary of version 1.0.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- Need to convert recorded or streamed PCM audio to MP3 for storage or upload
- Perform offline batch conversion of audio files to MP3
- Integrate MP3 encoding into a Flutter app without external dependencies
Skip it when
- Real‑time low‑latency streaming where encoder latency matters
- Applications that require other audio codecs besides MP3
Strengths
- No external native libraries required
- Cross‑platform support (Android, iOS, Windows, macOS, Linux)
- Simple imperative API
- Bundled LAME source ensures consistent build
Weaknesses
- Only supports MP3 encoding
- Limited to PCM input; no support for other audio formats
- Windows build issues reported in past releases
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
final encoder = LameMp3Encoder(sampleRate: 44100, numChannels: 2);
final mp3Frame = await encoder.encode(leftChannel: leftSamples, rightChannel: rightSamples);
final lastFrame = await encoder.flush();Alternatives
Packages that do the same job and could replace flutter_lame.
- flutter_callkeep
iOS CallKit and Android ConnectionService bindings for Flutter
50Compare
Works with
Packages commonly used together with flutter_lame: ones it builds on, ones built on it, and its own family.