FF: Speech reco comments.

This commit is contained in:
Enrico Ros
2024-09-17 01:56:15 -07:00
parent 6c405c3807
commit 0b1a914015
@@ -134,7 +134,9 @@ export const useSpeechRecognition = (onResultCallback: SpeechResultCallback, sof
// configure the instance
_api.lang = preferredLanguageRef.current;
_api.interimResults = Is.Desktop && softStopTimeoutRef.current > 0;
_api.interimResults =
Is.Desktop // verified on Chrome desktop, and Safari desktop
&& softStopTimeoutRef.current > 0; // only if we perform the stopping on the client side
_api.maxAlternatives = 1;
_api.continuous = true;