convertAudio method

  1. @override
Future<ConversionResult> convertAudio({
  1. required String inputPath,
  2. required String outputPath,
  3. required AudioFormat format,
  4. int bitRate = 128,
  5. int sampleRate = 44100,
  6. ProgressCallback? onProgress,
})
override

Converts an audio file to the specified format

Implementation

@override
Future<ConversionResult> convertAudio({
  required String inputPath,
  required String outputPath,
  required AudioFormat format,
  int bitRate = 128,
  int sampleRate = 44100,
  ProgressCallback? onProgress,
}) async {
  throw UnsupportedError(
    'Audio conversion is not supported on web platform. '
    'Browser security and API limitations prevent direct audio format conversion. '
    'Consider using server-side conversion or native platforms for this feature.',
  );
}