bixby如何读取未显示的文字?
How can bixby read text that is not displayed?
我想要一个与显示内容不同的 bixby 结果视图读取文本。
我看到我可以创建一个对话框并将其与结果匹配,或者我也可以将它放在结果视图的消息字段中。这两个选项都允许您指定一个 "template",它有一个 speech key option,但我无法让它工作以查看语音键的实际作用。这可能是我正在寻找的,但我找不到任何语法示例,通常它会抱怨缺少值。
显示文本与口述文本是否可能不同?即使此功能不是语音键的用途,你们能否解释并举例说明语音键的用法,这样我才能理解下一步?
Is this possible to have different displayed vs spoken text?
是的,这正是语音键选项的用途。你运行遇到什么麻烦了?
这是一个示例用例。
content {
template ("This is the displayed text.") {
speech ("This is the text that Bixby will read.")
}
}
I see that I can create a dialog and match it to the results, or I can also put it in the message field of a result-view.
这两种方式都是合法的,但请注意,覆盖 message
字段中为 result-view
生成的对话框要困难得多。
相反,如果您使用普通 dialog
文件(例如 dialog (Result)
),您可以编写不同的 match patterns 以针对不同情况创建不同的对话框。
我想要一个与显示内容不同的 bixby 结果视图读取文本。
我看到我可以创建一个对话框并将其与结果匹配,或者我也可以将它放在结果视图的消息字段中。这两个选项都允许您指定一个 "template",它有一个 speech key option,但我无法让它工作以查看语音键的实际作用。这可能是我正在寻找的,但我找不到任何语法示例,通常它会抱怨缺少值。
显示文本与口述文本是否可能不同?即使此功能不是语音键的用途,你们能否解释并举例说明语音键的用法,这样我才能理解下一步?
Is this possible to have different displayed vs spoken text?
是的,这正是语音键选项的用途。你运行遇到什么麻烦了?
这是一个示例用例。
content {
template ("This is the displayed text.") {
speech ("This is the text that Bixby will read.")
}
}
I see that I can create a dialog and match it to the results, or I can also put it in the message field of a result-view.
这两种方式都是合法的,但请注意,覆盖 message
字段中为 result-view
生成的对话框要困难得多。
相反,如果您使用普通 dialog
文件(例如 dialog (Result)
),您可以编写不同的 match patterns 以针对不同情况创建不同的对话框。