getResult method
Returns speech recognition result. If alternatives enabled it returns result with alternatives, see setMaxAlternatives. If word times enabled returns word time, see also setWords.
Implementation
Future<String> getResult() {
if (_voskLibrary != null) {
final result = _voskLibrary.vosk_recognizer_result(recognizerPointer!);
return Future.value(result.toDartString());
}
return _invokeRecognizerMethod<String>(
'getResult',
).then((final value) => value ?? '{}');
}