Esempio n. 1
0
    def welcome(self):

        card = TextCard('看图猜成语')
        card.setTitle('看图猜成语引导')
        card.addCueWords("我想猜成语")
        card.addCueWords("开始猜成语")
        card.addCueWords("开始看图猜成语")
        card.setContent("欢迎使用看图猜成语", "说出开始猜成语即可开始", "想出答案以后说出“我认为答案是......”或“答案是”")
        return {
            'card': card
        }
Esempio n. 2
0
    def intentRequest(self):
        self.ask('deviceName')

        card = TextCard('您要查找什么智能设备呢? 比如"查找我的空调"')
        card.addCueWords("百度")
        card.addCueWords("百度")
        card.addCueWords("百度")
        card.setAnchor("http://www.baidu.com", "百度")
        return {
            'card': card,
            'outputSpeech': '<speak>您要查找什么智能设备呢? 比如"查找我的空调"</speak>'
        }