【问题标题】:How to stop Pepper Robot talking in the middle of sentence如何阻止胡椒机器人在句子中间说话
【发布时间】:2017-05-24 11:25:15
【问题描述】:

我想播放幻灯片,胡椒会在上面阅读。

u: (say) I am pepper $slide=1 I can do this and that $slide=2 i have many functions $slide3=1 like this and that

当我按住 Pepper 头部传感器 1 秒钟时,我想取消它。

这怎么可能? 我将展示幻灯片,如果用户触摸机器人的头部,我希望用户能够在中间停止它。

【问题讨论】:

    标签: robot pepper


    【解决方案1】:

    你可以做两件事:

    1. 停止 ALTextToSpeech 的发言:您可以使用 ALTextToSpeech.stopAll() 取消功能 ALTextToSpeech.say("phrase") em> 。 ALTextToSpeech doc

    2. 停止你的话题:你的辣椒说一个话题对话,你可以通过使用 ALDialog.deactivateTopic("name_topic") 去激活话题来停止它. ALDialog doc

    比如你的题目是这样的:

    topic: ~ExampleDialog() language: enu u: (say) I am pepper $slide=1 I can do this and that $slide=2 i have many functions $slide3=1 like this and that

    当用户触摸机器人的头部时,您调用函数ALDialog.deactivateTopic(ExampleDialog) 并取消它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-12-22
      • 1970-01-01
      • 2012-08-13
      • 1970-01-01
      • 1970-01-01
      • 2014-10-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多