audiocutter 0.0.9

audiocutter #

A plugin to cut audio files. You pass in a path to a file, start and end 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 #

  1. Take a look at the requirements and any gotchas for your platform at the flutter_ffmpeg package page. There can be some stumbling blocks getting it working on iOS. (Works on my machine ¯\_(ツ)_/¯)

  2. Import and cut!

    import 'package:audiocutter/audiocutter.dart';

    {...}

    var start = 15.0;
    var end = 25.5;
    var path = 'path/to/audio/file.mp3';

    // Get path to cut file and do whatever you want with it.
    var outputFilePath = await AudioCutter.cutAudio(path, start, end);

0.0.9 #

  • Minor cleanup

0.0.8 #

  • Add fix to allow passing filenames with spaces

0.0.7 #

  • AndroidX fixes

0.0.6 #

  • Hot fixes to actually enable this plugin being published with ffmpeg
  • Reduce quality of cut audio to optimize storage and streaming

0.0.5 #

  • Require and use ffmpeg to clip audio.

0.0.4 #

  • I have no idea what I'm doing.

0.0.3 #

  • Update path provider dependency.

0.0.2 #

  • Implements a class with a static method to cut audio.

0.0.1 #

  • Just the default flutter --template=plugin to start.

example/README.md

audiocutter_example #

Demonstrates how to use the audiocutter plugin.

Getting Started #

  1. Import and cut!
    import 'package:audiocutter/audiocutter.dart';

    {...}

    var start = 15.0;
    var end = 25.5;
    var path = 'path/to/audio/file.mp3';

    // Get path to cut file and do whatever you want with it.
    var outputFilePath = await AudioCutter.cutAudio(path, start, end);

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  audiocutter: ^0.0.9

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:audiocutter/audiocutter.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
57
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
77
Learn more about scoring.

We analyzed this package on Aug 21, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19
  • Flutter: 1.7.8+hotfix.4

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Maintenance suggestions

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
flutter_ffmpeg ^0.2.7 0.2.7
path_provider ^1.1.2 1.2.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8