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