FlutterAudioToolkitPlatform class abstract
The interface that platform-specific implementations of flutter_audio_toolkit must implement.
Platform implementations should extend this class rather than implement it as FlutterAudioToolkitPlatform
.
Extending this class (using extends
) ensures that the subclass will get the default
implementation, while platform implementations that implements
this interface
will be broken by newly added FlutterAudioToolkitPlatform methods.
- Inheritance
-
- Object
- PlatformInterface
- FlutterAudioToolkitPlatform
- Implementers
Constructors
- FlutterAudioToolkitPlatform.new()
- Constructs a FlutterAudioToolkitPlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
analyzeAudioNoise(
{required String inputPath, double sensitivityLevel = 0.5, ProgressCallback? onProgress}) → Future< NoiseDetectionResult> - Analyzes an audio file for noise detection and quality assessment
-
configureAudioSession(
{Map< String, dynamic> ? configuration}) → Future<bool> - Configures the audio session for optimal audio processing
-
convertAudio(
{required String inputPath, required String outputPath, required AudioFormat format, int bitRate = 128, int sampleRate = 44100, ProgressCallback? onProgress}) → Future< ConversionResult> - Converts an audio file to the specified format
-
downloadAudioFromUrl(
{required String url, required String localPath, ProgressCallback? onDownloadProgress}) → Future< String> - Downloads and processes audio from a network URL
-
extractWaveform(
{required String inputPath, int samplesPerSecond = 100, ProgressCallback? onProgress}) → Future< WaveformData> - Extracts waveform amplitude data from an audio file
-
getAudioInfo(
String inputPath) → Future< AudioInfo> - Gets comprehensive information about an audio file
-
getPlatformVersion(
) → Future< String?> - Gets the platform version string
-
isFormatSupported(
String inputPath) → Future< bool> - Checks if the given audio format is supported for processing
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
trimAudio(
{required String inputPath, required String outputPath, required int startTimeMs, required int endTimeMs, required AudioFormat format, int bitRate = 128, int sampleRate = 44100, ProgressCallback? onProgress}) → Future< ConversionResult> - Trims an audio file to the specified time range
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ FlutterAudioToolkitPlatform
-
The default instance of FlutterAudioToolkitPlatform to use.
getter/setter pair