Agent.Commands.Add("SAYTIME", "What Time Is It Now", "What Time Is It Now" )中 "What Time Is It Now" 是它的語(yǔ)音表示,但是必須要完全讀出這幾個(gè)單詞才可以識(shí)別嗎?如果要是問(wèn)時(shí)間的話,我可以說(shuō) What Time , Tell me the time 或者直接只說(shuō) time ,但是如何讓程序識(shí)別這些話為統(tǒng)一目的呢? 可以這樣寫(xiě):[(What|Tell me the)] Time [is it] [Now] [please] ,熟悉一點(diǎn)正則的讀者應(yīng)該不難理解,[] 表示可選項(xiàng), () 規(guī)定范圍, | 表示邏輯或