chengguo_audio_recorder 0.0.1+1 copy "chengguo_audio_recorder: ^0.0.1+1" to clipboard
chengguo_audio_recorder: ^0.0.1+1 copied to clipboard

discontinued

A flutter plugin for audio record.

flutter_audio_recorder #

pub package

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 #

  • Android
  • 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 code Remark
PERMISSION_DENIED Request permission is denied.
OPTIONS_ERROR Options error.