Continuous Mode Speech Recognition Timing Out

Bugs will be moved here once resolved.

Post » Mon Jan 25, 2016 2:13 pm

Problem Description
Hi - I don't know whether this a feature or a bug but Speech Recognition in continuous mode stops working if the player doesn't say anything for a while (after they have previously been talking) despite the fact that the manual states it should continue until the page is closed. When it stops recognising speech in this scenario no error is passed to SpeechError so I'm unsure why it is stopping.

Attach a Capx

Description of Capx
Starts continuous mode speech recognition when the player hits start and reports whether speech is recognised and the content of SpeechError.

Steps to Reproduce Bug
  • Click on 'Start' to begin speech recognition
  • Say a bunch of stuff into the mic
  • Stay quiet for a while

Observed Result
Speech recognition stops after the player hasn't spoken for a while and no error is passed to SpeechError

Expected Result
Speech recognition continues until the page is closed

Affected Browsers
  • Chrome: YES
  • Internet Explorer: NOT APPLICABLE

Operating System and Service Pack
Windows 7 Home Premium SP1

Construct 2 Version ID
221 (64 bit)
Posts: 9
Reputation: 318

Post » Tue Feb 09, 2016 4:08 pm

I believe this is how the browsers intend for speech recognition to work, rather than it being a C2 bug. If you don't speak for a while the browser stops it with a "no-speech" error. I guess you could just start speech recognition again?
Scirra Founder
Posts: 25,188
Reputation: 200,307

Post » Wed Feb 10, 2016 4:00 pm

Thanks for the response Ashley - I thought it might be a browser issue.

The only thing is that no error is passed to SpeechError in the specific scenario of the player not speaking for while after having spoken previously. If you start speech recognition and say nothing at all 'no-speech' is indeed passed to SpeechError. However, if you start it, say something, then stay quiet, no error is passed even though it stops working. Unsure whether that's the browser not reporting it or C2 not picking it up.

Yeah, my workaround is to indicate in game that the speech recognition has stopped and prompt the player to reinitiate it. The only vaguely annoying thing about this is it causes Chrome to ask for access to the mic again which is a rather immersion breaking.
Posts: 9
Reputation: 318

Post » Sun Feb 21, 2016 9:23 pm

will it works as a mobile app??
Posts: 2
Reputation: 179

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests