create method

Future create(
  1. String modelPathOrName,
  2. String enrollmentJsonPathOrName, {
  3. Map<String, dynamic> options = const <String, dynamic>{},
})

Creates the native speaker verifier engine.

Implementation

Future<dynamic> create(
  String modelPathOrName,
  String enrollmentJsonPathOrName, {
  Map<String, dynamic> options = const <String, dynamic>{},
}) {
  return _speakerVerificationChannel.invokeMethod<dynamic>(
    'createSpeakerVerifier',
    {
      'engineId': engineId,
      'modelPathOrName': modelPathOrName,
      'enrollmentJsonPathOrName': enrollmentJsonPathOrName,
      'options': options,
    },
  );
}