I'm working with the HTML 5 speech input API and I want to let the server know which answers it can expect to be returned from the speech input. Is there a way to set a list of possible inputs?
相关问题
- Can we recover audio from MFCC coefficients?
- Speech recognition not working well
- Web speech API grammar
- Speech Recognition on Unity Game Engine
- ImportError: No module named SpeechRecognition
相关文章
- HTML5 control
- How to embed Google Speech to Text API in Python p
- Error Domain=kAFAssistantErrorDomain Code=209 “(nu
- portaudio.h: No such file or directory
- How to simultaneously read audio samples while rec
- Android: Arabic speech recognition - offline
- UWP speech recognition failure requires restart wi
- How to Auto stop speech recognition if user stop s
I assume your a talking about the Speech Input API Specification as defined by the W3C. According to this specification grammars are supported, which is the method used by speech recognition systems to restrict possible inputs. Look for the section titled "Speech recognition grammars". The problem will be how well it is supported in the particular browser that is being used, which is the case for an HTML 5 specific function since it is not a completed standard yet. Chrome seems to be the most up to date with the standard. Checkout this blog post from the Chrome team on implementing the Speech Input API.
In Google Chrome you can not use grammars yet, overall they decided to use free-form recognition only. Relevant question is Grammar in Google speech API.
Grammars are supported in Firefox Web Speech API, but the feature is experimental.
If your browser supports HTML5 audio, you might want to try to recognize words from your grammar using Pocketsphinx.js library, it provides javascript-based recognizer which should be very good for grammars.