1

我正在我的 Windows Phone 8 应用程序上实现语音命令,我有许多使用短语列表的命令。

为了获得更好的用户体验,我对它们中的每一个都使用了全部命令,例如以下命令。

<Command Name="OpenCategory">
  <Example>open category chores</Example>
  <ListenFor>[and] open category {CategoryName}</ListenFor>
  <ListenFor>[and] show [me] category {CategoryName}</ListenFor>
  <ListenFor>[and] display category {CategoryName}</ListenFor>
  <Feedback>Opening {CategoryName}...</Feedback>
  <Navigate Target="/Views/CategoryTasksView.xaml" />
</Command>

<Command Name="OpenCategoryUnknown">
  <Example>open category chores</Example>
  <ListenFor>[and] open category {*}</ListenFor>
  <ListenFor>[and] show [me] category {*}</ListenFor>
  <ListenFor>[and] display category {*}</ListenFor>
  <Feedback>Couldn't find that category...</Feedback>
  <Navigate Target="/Views/CategoryListView.xaml" />
</Command>

然而,“我能说什么?” UI 最终会出现重复的示例,并且遵循此模式的五个命令确实会破坏示例 UI。

有没有办法让某些命令现在显示示例?

4

0 回答 0