Recognizer constructor
Recognizer({
- required int id,
- required Model model,
- required int sampleRate,
- required MethodChannel channel,
- Pointer<
VoskRecognizer> ? recognizerPointer, - VoskLibrary? voskLibrary,
Use VoskFlutterPlugin.createRecognizer to create a Recognizer instance.
Implementation
Recognizer({
required this.id,
required this.model,
required this.sampleRate,
required final MethodChannel channel,
this.recognizerPointer,
final VoskLibrary? voskLibrary,
}) : _channel = channel,
_voskLibrary = voskLibrary;