Need help with audio_recorder?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

ZaraclaJ
159 Stars 114 Forks Other 61 Commits 31 Opened issues

Services available

!
?

Need anything else?

Contributors list

# 246,056
C
faceboo...
Flutter
Mobile
8 commits
# 17,465
Dart
Flutter
Ruby
Redux
3 commits
# 401,248
Flutter
Android
Mobile
audio-r...
2 commits
# 289,691
Dart
Flutter
pub
Android
2 commits
# 245,972
Flutter
Dart
macOS
reactjs
1 commit
# 320,317
HTML
roboroc...
Flutter
Android
1 commit
# 473,724
Flutter
Android
Mobile
audio-r...
1 commit
# 393,250
android...
Groovy
Android
Flutter
1 commit
# 469,911
Flutter
Android
Mobile
audio-r...
1 commit

Audio recorder

pub package Build Status Coverage Status

Record audio and store it locally

Usage

To use this plugin, add

audio_recorder
as a dependency in your pubspec.yaml file.

Android

Make sure you add the following permissions to your Android Manifest



iOS

Make sure you add the following key to Info.plist for iOS

NSMicrophoneUsageDescription
Record audio for playback

Example

// Import package
import 'package:audio_recorder/audio_recorder.dart';

// Check permissions before starting bool hasPermissions = await AudioRecorder.hasPermissions;

// Get the state of the recorder bool isRecording = await AudioRecorder.isRecording;

// Start recording await AudioRecorder.start(path: _controller.text, audioOutputFormat: AudioOutputFormat.AAC);

// Stop recording Recording recording = await AudioRecorder.stop(); print("Path : ${recording.path}, Format : ${recording.audioOutputFormat}, Duration : ${recording.duration}, Extension : ${recording.extension},");

Encoding format

For now, the plugin only use the AAC compression to encode audio. You can specify the extension of the output audio file in the file path that you give to the start method. The recognized extensions are : - .m4a - .mp4 - .aac

If the file path does not finish with these extensions, the ".m4a" extension is added by default.

Exceptions

The start method raise an exception if : - A file already exists at the given file path - The parent directory of the file path does not exist

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.