# fluttertpc_record_mp3 **Repository Path**: openharmony-sig/fluttertpc_record_mp3 ## Basic Information - **Project Name**: fluttertpc_record_mp3 - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2024-11-11 - **Last Updated**: 2025-05-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 🚨 **重要提示 | IMPORTANT** > > **⚠️ 此代码仓已归档。新地址请访问 [fluttertpc_record_mp3](https://gitcode.com/openharmony-sig/fluttertpc_record_mp3)。| ⚠️ This repository has been archived. For the new address, please visit [fluttertpc_record_mp3](https://gitcode.com/openharmony-sig/fluttertpc_record_mp3).** > --- > # Record Mp3 [![pub package](https://img.shields.io/pub/v/record_mp3.svg)](https://pub.dartlang.org/packages/record_mp3) ##### Record an MP3 using the platform native API ## 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 <2.0.0 dependencies: record_mp3: ^2.1.0 ``` ``` Flutter >=2.0.0 nullsafety dependencies: record_mp3: git: url:git://github.com/fluttercandies/flutter_record_mp3 dependencies: record_mp3: ^3.0.0 ``` ## Usage ### iOS Make sure you add the following key to Info.plist for iOS ``` NSMicrophoneUsageDescription xxxxxx ``` ### 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(); ```