1. 程式人生 > >訊飛語音命令詞離線識別,離線聽寫demo修改

訊飛語音命令詞離線識別,離線聽寫demo修改

#BNF+IAT 1.0 UTF-8;
!grammar test;
!slot <cmdleft>; 
!slot <cmdright>;
!slot <cmdfront>;
!slot <cmdback>;
!slot <cmdstop>;
!slot <cmdbegin>;
!slot <cmdpause>;
!slot <cmdrestart>;
!slot <optsend>;
!slot <optcancel>;


!start <mainaction>;
<mainaction>:<cmdactionleft>|<cmdactionright>|<cmdactionfront>|<cmdactionback>|
<cmd1>|<cmd2>|<cmd3>|<cmd4>|<smsaction2>|<smsaction3>;
<cmdactionleft>:<cmdleft>;
<cmdactionright>:<cmdright>;
<cmdactionfront>:<cmdfront>;
<cmdactionback>:<cmdback>;
<cmd1>:<cmdstop>;
<cmd2>:<cmdbegin>;
<cmd3>:<cmdpause>;
<cmd4>:<cmdrestart>;


<smsaction2>:<optsend>;
<smsaction3>:<optcancel>;


<cmdleft>:左轉;
<cmdright>:右轉;
<cmdfront>:前進;
<cmdback>:後退;
<cmdstop>:停止;
<cmdbegin>:開始;
<cmdpause>:暫停;
<cmdrestart>:再來一遍;


<optsend>:確定|確認|傳送|接受|傳送簡訊|簡訊傳送|左轉;
<optcancel>:取消|不傳送|別傳送|取消傳送|取消傳送簡訊;