recorder 1.0.1 copy "recorder: ^1.0.1" to clipboard
recorder: ^1.0.1 copied to clipboard

A simple Flutter package for recording and playing audio.

example/recorder_example.dart

// ignore_for_file: unused_local_variable

import 'dart:io';

import 'package:recorder/recorder.dart';

void main() {
  Recorder(
    onSend: (data) {
      //split two parts duration and file
      final parts = data.split('|');
      final path = parts[0];
      final duration = parts[1];
      File audioFile = File(path);
      //send _handleAudioSend fun
      //await _handleAudioSend(audioFile, duration);
    },
    onStop: (data) {
      //split two parts duration and file
      final parts = data.split('|');
      final path = parts[0];
      final duration = parts[1];
      File audioFile = File(path);
      //send _handleAudioSend fun
      //await _handleAudioSend(audioFile, duration);
    },
  );
}
2
likes
0
points
75
downloads

Publisher

unverified uploader

Weekly Downloads

A simple Flutter package for recording and playing audio.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

audioplayers, flutter, path, path_provider, record

More

Packages that depend on recorder