如何保持语音输出、后续问题和渲染内容独立?
How to keep spoken output, followup question, and rendered content independent?
我正在尝试呈现结果视图,其中有 1) 语音输出; 2) 该输出的不同文本摘要;和 3) 语音跟进提示。
我希望在口头输出之后说出后续提示(显然)。但我不希望它或语音输出呈现到屏幕上。
我尝试了以下结果视图:
result-view {
match: myStructure (this)
message ("#{value (this.spokenResponse)}")
render {
layout-match (this.spokenResponseSummary) {
mode (Details)
}
}
followup {
prompt {
dialog (Would you like to hear more?)
on-confirm {
message ("#{value (this.details)}")
}
on-deny {
message (Okay.)
}
}
}
conversation-drivers {
conversation-driver {
template ("More Details")
}
}
}
这会呈现 spokenResponseSummary - 很好!
但它还会在屏幕顶部显示 spokenResponse + followup 提示,在下方显示 spokenResponseSummary。
如何不显示 spokenResponse + 跟进提示。 (理想情况下,如何在屏幕顶部的位置显示一些任意文本?)
您可以使用 speech
键让 Bixby 读取与显示内容不同的对话框。
result-view {
match: MyModel(this)
message {
template ("I am shown.") {
speech ("I am read out loud.")
}
}
... your content here ...
}
https://bixbydevelopers.com/dev/docs/reference/type/template.speech
更多细节在这里:
我正在尝试呈现结果视图,其中有 1) 语音输出; 2) 该输出的不同文本摘要;和 3) 语音跟进提示。
我希望在口头输出之后说出后续提示(显然)。但我不希望它或语音输出呈现到屏幕上。
我尝试了以下结果视图:
result-view {
match: myStructure (this)
message ("#{value (this.spokenResponse)}")
render {
layout-match (this.spokenResponseSummary) {
mode (Details)
}
}
followup {
prompt {
dialog (Would you like to hear more?)
on-confirm {
message ("#{value (this.details)}")
}
on-deny {
message (Okay.)
}
}
}
conversation-drivers {
conversation-driver {
template ("More Details")
}
}
}
这会呈现 spokenResponseSummary - 很好!
但它还会在屏幕顶部显示 spokenResponse + followup 提示,在下方显示 spokenResponseSummary。
如何不显示 spokenResponse + 跟进提示。 (理想情况下,如何在屏幕顶部的位置显示一些任意文本?)
您可以使用 speech
键让 Bixby 读取与显示内容不同的对话框。
result-view {
match: MyModel(this)
message {
template ("I am shown.") {
speech ("I am read out loud.")
}
}
... your content here ...
}
https://bixbydevelopers.com/dev/docs/reference/type/template.speech
更多细节在这里: