internal_audio_recorder 0.1.6 copy "internal_audio_recorder: ^0.1.6" to clipboard
internal_audio_recorder: ^0.1.6 copied to clipboard

PlatformAndroid

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';

  // Start recording
  void startRecording() async { 
  String result = await
  InternalAudioRecorder.startCapturing(outputPath: "path/to/output/file", encoding:
  InternalAudioRecorder.encodingPCM16BIT, sampleRate:44100,);
  print(result); 
}

// stop recording
InternalAudioRecorder.stopCapturing(); 

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
140
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

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on internal_audio_recorder