internal_audio_recorder 0.1.3 copy "internal_audio_recorder: ^0.1.3" to clipboard
internal_audio_recorder: ^0.1.3 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.encodingPCM16BIT, 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.

2
likes
0
points
29
downloads

Publisher

unverified uploader

Weekly Downloads

A new Flutter plugin for android that record internal audio and output it as PCM file.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on internal_audio_recorder