我有一个自定义技能,它支持像Give me some information about <something>
. 响应是长文本(大约 5 句话)。我想将此响应分解为多个 alexa 响应。如何才能做到这一点?
澄清我所说的多个部分的意思。目前是这样的。
Me: give me some information on Nutrino
Alexa: A neutrino is a fermion that interacts only via the weak subatomic force and gravity. The mass of the neutrino is much smaller than that of the other known elementary particles.....
我想要的是,
Me: give me some information on Nutrino
Alexa: A neutrino is a fermion that interacts only via the weak subatomic force and gravity.
Alexa: The mass of the neutrino is much smaller than that of the other known elementary particles.....
我查看了渐进式响应,但在我假设的这种情况下,它涉及的复杂性比所需的要多得多。另外,我查看了ssml,它也没有任何此类功能。
注意:我不想在讲话中出现停顿,这可以通过break
标签来实现,而是两条实际独立的消息。这背后的动机是,我想在我的回复之后问一个像“你需要更多信息”这样的问题,并且不应该与包含信息的消息在同一条消息中。
我正在使用当前的this.emit
功能nodejs-sdk
进行响应。