audio_trim 0.0.6 copy "audio_trim: ^0.0.6" to clipboard
audio_trim: ^0.0.6 copied to clipboard

An audio_trim plugin.

audio_trim #

A plugin to cut audio files. You pass in a path to a file, start_time and end_time times and the plugin will do the rest. For now, it automatically will reduce the quality quite a bit to ensure optimal file size for storage/streaming.

Getting Started #

Import and cut using audio_trim to cut audio without using ffmpeg library!

AudioTrimmer audioTrimmer;

TrimState trimState;

double start_timer_in_double = 0.0;

double end_timer_in_double = 10.0;

@override
void initState() {
  super.initState();
    initCutter();
}

void initCutter() {
  audioTrimmer = AudioTrimmer();

  audioTrimmer.setCompletionHandler(() {
    setState(() {
      trimState = TrimState.complete;
    });
  });
}
  
//Cut audio using 
audioTrimmer.cut('path', start_timer_in_double, end_timer_in_double);
1
likes
30
pub points
21%
popularity

Publisher

unverified uploader

An audio_trim plugin.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on audio_trim