Microsoft Speech Recognition: wildcard blank content

这一生的挚爱 提交于 2020-01-15 08:11:45

问题


In my Speech Engine I activate / desactivate multiple grammars.

In a special step I'd like to run a Grammar with ONLY to capture Audio of next given sentence according to engine's properties.

But to start/stop matching something, I assume engine needs "words". So I don't know how to do it ?

(Underlaying explanation: my application convert all garbage audio to text using google speech API because dictation is too bad and no available on Kinect)


回答1:


Well, actually, no, the SR engine only needs to know that the incoming audio is "speech-like" (usually determined by the spectral characteristics of the audio). In particular, you could use the AudioPosition property and the SpeechDetected and RecognitionRejected events to send all rejected audio to the google speech API.

So your workflow would look like this:

  1. Ask question of user.
  2. Enable appropriate grammars.
  3. Wait for recognition or recognition rejected.
  4. If recognition, process accordingly
  5. If recognition rejected, collect retained audio & send to google speech API.


来源:https://stackoverflow.com/questions/21303742/microsoft-speech-recognition-wildcard-blank-content

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!