ex

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Committer:
TMBOY
Date:
Tue Jul 18 16:27:22 2017 +0800
Revision:
44:c1d8923072ba
?

Who changed what in which revision?

UserRevisionLine numberNew contents of line
TMBOY 44:c1d8923072ba 1 # SpeechRecognizer 语音识别
TMBOY 44:c1d8923072ba 2
TMBOY 44:c1d8923072ba 3 ## Table of Contents
TMBOY 44:c1d8923072ba 4
TMBOY 44:c1d8923072ba 5
TMBOY 44:c1d8923072ba 6 * [SpeechRecognizer 语音识别](#speechrecognizer-语音识别)
TMBOY 44:c1d8923072ba 7 * [Table of Contents](#table-of-contents)
TMBOY 44:c1d8923072ba 8 * [ExpectSpeech指令](#expectspeech指令)
TMBOY 44:c1d8923072ba 9 * [ExpectSpeechTimedOut事件](#expectspeechtimedout事件)
TMBOY 44:c1d8923072ba 10
TMBOY 44:c1d8923072ba 11
TMBOY 44:c1d8923072ba 12 ## ExpectSpeech指令
TMBOY 44:c1d8923072ba 13 需要客户端开始语音识别的时候,返回这个指令。
TMBOY 44:c1d8923072ba 14 其实是一个多轮的标识,标识播报结果完成后,需要用户马上说话,而不是进入等待唤醒的状态
TMBOY 44:c1d8923072ba 15 ```json
TMBOY 44:c1d8923072ba 16 {
TMBOY 44:c1d8923072ba 17 "header": {
TMBOY 44:c1d8923072ba 18 "namespace": "SpeechRecognizer",
TMBOY 44:c1d8923072ba 19 "name": "ExpectSpeech",
TMBOY 44:c1d8923072ba 20 },
TMBOY 44:c1d8923072ba 21 "payload": {
TMBOY 44:c1d8923072ba 22 }
TMBOY 44:c1d8923072ba 23 }
TMBOY 44:c1d8923072ba 24 ```
TMBOY 44:c1d8923072ba 25
TMBOY 44:c1d8923072ba 26
TMBOY 44:c1d8923072ba 27 ## ExpectSpeechTimedOut事件
TMBOY 44:c1d8923072ba 28
TMBOY 44:c1d8923072ba 29 客户端开始语音识别后,一段时间(默认8s)没有收到用户的语音,超时的事件
TMBOY 44:c1d8923072ba 30 ```json
TMBOY 44:c1d8923072ba 31 {
TMBOY 44:c1d8923072ba 32 "header": {
TMBOY 44:c1d8923072ba 33 "namespace": "SpeechRecognizer",
TMBOY 44:c1d8923072ba 34 "name": "ExpectSpeechTimedOut",
TMBOY 44:c1d8923072ba 35 },
TMBOY 44:c1d8923072ba 36 "payload": {
TMBOY 44:c1d8923072ba 37 }
TMBOY 44:c1d8923072ba 38 }
TMBOY 44:c1d8923072ba 39 ```