This is a flutter plugin for recording audio for Android and IOS. You can read the samples from the microphone and choose the desired sample rate.
This is a flutter plugin for recording audio for Android and IOS. You can read the samples from the microphone and choose the desired sample rate..
Getting Started #
This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Then update your
Info.plist with wanted permissions usage descriptions:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <!-- 🚨 Keep only the permissions used in your app 🚨 --> <key>NSMicrophoneUsageDescription</key> <string>Need microphone access for recording</string> <!-- … --> </dict> </plist>
Add all wanted permissions to your app
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.myawesomeapp"> <!-- 🚨 Keep only the permissions used in your app 🚨 --> <uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <!-- … --> </manifest>