getFinalResult method
Returns speech recognition result. Same as result, but doesn't wait for silence. You usually call it in the end of the stream to get final bits of audio. It flushes the feature pipeline, so all remaining audio chunks got processed.
Implementation
Future<String> getFinalResult() {
if (_voskLibrary != null) {
final result = _voskLibrary.vosk_recognizer_final_result(
recognizerPointer!,
);
return Future.value(result.toDartString());
}
return _invokeRecognizerMethod<String>(
'getFinalResult',
).then((final value) => value ?? '{}');
}