Learn make record mp3 application using Flutter
record voice, any call phone, and audio from application
Record an MP3 using the platform native API
Record and transcribe any calls on the iPhone - both outgoing & incoming calls. Perfect for phone interviews and meetings.
Simply record your audio and download an MP3 at no cost.
Depend on it
Add this to your package's pubspec.yaml file:
Flutter <= 1.19.x
dependencies:
record_mp3: ^1.0.1
Flutter >=1.12.x
dependencies:
record_mp3: ^2.1.0
Usage
iOS
Make sure you add the following key to Info.plist for iOS
<key>NSMicrophoneUsageDescription</key>
<string>xxxxxx</string>
Example
import 'package:record_mp3/record_mp3.dart';
//start record
RecordMp3.instance.start(recordFilePath, (type) {
// record fail callback
});
//pause record
RecordMp3.instance.pause();
//resume record
RecordMp3.instance.resume();
//complete record and export a record file
RecordMp3.instance.stop();