internal_audio_recorder 0.0.1 internal_audio_recorder: ^0.0.1 copied to clipboard
A new Flutter plugin for android that record internal audio and output it as PCM file.
Internal Audio Recorder Flutter Plugin #
Flutter plugin for capturing internal audio on Android devices.
Installation #
Add the following to your pubspec.yaml
file:
dependencies:
internal_audio_recorder: ^1.0.0
Usage #
import 'package:internal_audio_recorder/internal_audio_recorder.dart';
// Example usage void startRecording() async { String result = await InternalAudioRecorder.startCapturing( outputPath: "path/to/output/file", encoding: InternalAudioRecorder.ENCODING_PCM_16BIT, sampleRate: 44100, ); print(result); // Output: "Recording started" or an error message }
void stopRecording() { InternalAudioRecorder.stopCapturing(); print("Recording stopped"); }
API Reference InternalAudioRecorder.startCapturing Starts capturing internal audio.
Parameters outputPath (String): The path to the output file. encoding (int): The audio encoding format (e.g., InternalAudioRecorder.ENCODING_PCM_16BIT). sampleRate (int): The audio sample rate. Returns A String indicating the result of the operation.
InternalAudioRecorder.stopCapturing Stops the audio capturing process.