I am facing a rather annoying problem: For a customer project I need to have some sort of "end of speech"-detection utilizing HTML5/JavaScript (customer specification). So I did some research and thought "well, let´s try the SpeechRecognition API" and it´s "onspeechend"-Event. This works like charm on my machine but not in the Application itself. During my research I found, that the WebView you use within your Apps is actually not the Systems default browser.
The userAgent of the default browser returns me
Mozilla/5.0 (Linux; Android 6.0.1; SM-G900F Build/MMB29M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/54.0.2840.68 Mobile Safari/537.36
however, the WebView-userAgent return
Mozilla/5.0 (Linux; Android 6.0.1; SAMSUNG SM-G900F Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/4.0 Chrome/44.0.2403.133 Mobile Safari/537.36
The disturbing part is, that the SpeechRecognition-API is available in the default browser, but not in the WebView-instance. Anyone an idea how to fix/work around this?
Or any ideas, how to detect the end of speech. Unfortunately, using the SpeechRecognition-Intent is NOT an option. I would like to do it that way, but as mentioned, the customer insists on doing this with HTML5/JavaScript.