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

outdated

An audio_trimmer 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!

  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
21%
popularity

Publisher

unverified uploader

An audio_trimmer plugin.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on audio_trim