extractAudio method

Future<String> extractAudio(
  1. int textureId, {
  2. required String outputPath,
  3. int sampleRate = 16000,
})

Extracts the audio of the loaded composition to outputPath as an m4a file (AAC), keeping the composition's trims, speeds and gaps.

Returns the absolute path of the generated file. sampleRate is a contract hint for speech recognition; the current native implementations preserve the source sample rate.

Implementation

Future<String> extractAudio(
  int textureId, {
  required String outputPath,
  int sampleRate = 16000,
}) {
  throw UnimplementedError('extractAudio() has not been implemented.');
}