Skip to content
pubscout

audio_converter_native

1.0.5, released 6 months ago by celestinolopes.tech

A Flutter package for native audio conversion using Platform Channels on Android and iOS.

$ flutter pub add audio_converter_native
Source repository

What it does

A Flutter package for native audio conversion using Platform Channels. It supports conversion across multiple audio formats like WAV, AAC, MP3, M4A, and OGG on Android and iOS without external dependencies.

AI-written summary of version 1.0.5, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need native audio conversion or extraction between formats on Android and iOS.
  • You want to avoid heavy external dependencies like FFmpeg Kit.
  • You need basic audio operations such as trimming, applying fades, and extracting audio from video.

Skip it when

  • You require true audio codec transcoding rather than file caching and format handling.
  • You need support for desktop or web platforms.

Strengths

  • Cross-platform support for Android and iOS via Platform Channels.
  • No external heavy dependencies.
  • Provides helper methods for trimming, fading, and extracting audio from video.

Weaknesses

  • Does not perform true format transcoding; it primarily copies files and manages metadata/durations.
  • Limited to Android and iOS platforms.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1

No additional setup required for Android or iOS. The package handles everything automatically.

final result = await AudioConverterService.instance.convertToWAV(
  inputPath: '/path/to/input.aac',
  sampleRate: 44100,
  channels: 2,
);

if (result.success) {
  print('Conversion successful: ${result.outputPath}');
}

Alternatives

Packages that do the same job and could replace audio_converter_native.

  • just_audio

    Pick just_audio if you need feature-rich audio playback with streaming capabilities.

  • audioplayers

    Pick audioplayers for simpler cross-platform audio playback tasks.

Works with

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