runPreprocessors method

Future<List<int>> runPreprocessors(
  1. List<int> audioData
)

Run all preprocessors on audio data.

Implementation

Future<List<int>> runPreprocessors(List<int> audioData) async {
  var data = audioData;
  for (final plugin in _preprocessors) {
    data = await plugin.preprocess(data);
  }
  return data;
}