Windows Phone8の音声コマンドにオプションのフレーズを含める方法があるかどうか知りたくありませんでした。私はこのようなものを意味します:
<Command Name="actoin">
<Example>he goes to school</Example>
<ListenFor> he goes to school [{with}] [{time}] </ListenFor>
<Feedback>ok!</Feedback>
<Navigate Target="MainPage.xaml"/>
</Command>
<PhraseList Label="with">
<Item>by bus</Item>
<Item>by tax</Item>
<Item>by his father</Item>
</PhraseList>
<PhraseList Label="time">
<Item>sometimes</Item>
<Item>always<Item>
</PhraseList>
実際に私が作りたいwith
とtime
、オプションおよびそれらの組み合わせごとに個別のコマンドを書いて避けます!
ありがとう
<ListenFor>
コマンドごとに複数の要素(最大10)を持つことができます。その方法でオプションを作成できます。
例えば:
<Command Name="action">
<Example>he goes to school</Example>
<ListenFor> he goes to school {with} {time} </ListenFor>
<ListenFor> he goes to school {time} </ListenFor>
<ListenFor> he goes to school {with} </ListenFor>
<ListenFor> he goes to school </ListenFor>
<Feedback>ok!</Feedback>
<Navigate Target="MainPage.xaml"/>
</Command>
<PhraseList Label="with">
<Item>by bus</Item>
<Item>by tax</Item>
<Item>by his father</Item>
</PhraseList>
<PhraseList Label="time">
<Item>sometimes</Item>
<Item>always<Item>
</PhraseList>
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加