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

outdated

An audio_trim plugin.

audio_trimmer_example #

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
0
pub points
20%
popularity

Publisher

unverified uploader

An audio_trim plugin.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on audio_trim