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

A simple Flutter package for recording and playing audio.

example/recorder_example.dart

// ignore_for_file: unused_local_variable
// Copyright (c) 2025 Hussain Shah. All rights reserved.
// Use of this source code is governed by a MIT license in the LICENSE file.
// Recorder - A simple Flutter audio recording package.
// Provides start, pause, resume, and stop recording features.

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
160
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

A simple Flutter package for recording and playing audio.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

audioplayers, flutter, path, path_provider, record

More

Packages that depend on recorder