flutter_audio_recorder_v2

pub package

I just updated the Kotlin version

A flutter plugin for audio record.

Note: This plugin is still under development, and some APIs might not be available yet. Feedback welcome and Pull Requests are most welcome!

Preview

chengguo-audio-recorder

Support platform

  • x Android
  • x iOS

Installation

First, add chengguo_audio_recorder as a dependency in your pubspec.yaml file.

dependencies:
  chengguo_audio_recorder

On iOS you need to add a usage description to info.plist:

<key>NSMicrophoneUsageDescription</key>
<string>This sample uses the microphone to record your speech and convert it to text.</string>
<key>UIBackgroundModes</key>
<array>
	<string>audio</string>
</array>

Example

  1. Start record
var path = await AudioRecorder.startRecord();
  1. Stop record
await AudioRecorder.stopRecord();
  1. Determine whether the recording
var isRecording = await AudioRecorder.isRecording();

Error code

Error codeRemark
PERMISSION_DENIEDRequest permission is denied.
OPTIONS_ERROROptions error.

Libraries

audio_recorder
error_code