【问题标题】:Alexa: Can we access the actual voice input by the user inside the lambda function?Alexa:我们可以在 lambda 函数中访问用户的实际语音输入吗?
【发布时间】:2019-01-11 02:16:48
【问题描述】:

是否可以访问用户说出的文本(从语音转换而来)?某处是否有开关,如果启用,文本会发送到技能?

【问题讨论】:

    标签: aws-lambda alexa alexa-skills-kit alexa-voice-service


    【解决方案1】:

    不,我们不会获得完整的用户输入。

    但是,我们可以使用slots 捕获部分用户语音。有不同的插槽类型,您应该查看的是AMAZON.SearchQuery

    AMAZON.SearchQuery 槽类型可让您捕获构成搜索查询的难以预测的输入。

    {
      "intents": [
        {
          "name": "SearchIntent",
          "slots": [
            {
              "name": "Query",
              "type": "AMAZON.SearchQuery"
            },
            {
              "name": "CityList",
              "type": "AMAZON.US_CITY"
            }
          ],
          "samples": [
            "search for {Query} near me",
            "find out {Query}",
            "search for {Query}",
            "give me details about {CityList}"
          ]
        }
      ]
    }
    

    更多关于AMAZON.SearchQueryhere

    AMAZON.LITERAL 槽,它传递槽值的已识别单词而没有转换。但是,不推荐。您不能在使用对话模型配置的技能中使用AMAZON.LITERAL

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-09-27
      • 1970-01-01
      • 2023-01-24
      • 2015-04-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多