2017-08-09 2 views
2

私はエコードットのためのいくつかのスキルを構築しました。今、私はエコーショーのためのスキルを構築しようとしています。 directivesを入れて、どのように同じのためlambdaを使用するためにどこ私は得ていないのです、エコーショーのためのスキルを構築する

しかし、私はいくつかのドキュメントを介して行っています。どのドキュメントもラムダ関数と何をするべきか、何をslotsutterancesに入れるか教えてくれません。誰でも私にビデオを再生するための基本エコーショースキルを作成する方法を教えてもらえますか?ここで

は私が文書から得たサンプルのディレクティブです:

{ 
"version": "1.0", 
"sessionAttributes": null, 
"response": { 
    "outputSpeech": null, 
    "card": null, 
    "directives": [ 
    { 
     "type": "VideoApp.Launch", 
     "videoItem": 
     { 
      "source": "https://www.example.com/video/sample-video-1.mp4", 
      "metadata": { 
       "title": "Title for Sample Video", 
       "subtitle": "Secondary Title for Sample Video"    
      } 
     } 
    }  
    ], 
    "reprompt": null 
    } 
} 

答えて

0

私はエコーのショーのためにいくつかのスキルを構築しました。以下は、動作するサンプルのjson応答です。これは非常に重要です。shouldEndSession属性を含めないでください。

{ 
    "version": "1.1", 
    "sessionAttributes": {}, 
    "response": { 
     "reprompt": { 
      "outputSpeech": { 
       "type": "PlainText", 
       "text": "Hello? Are you still there?" 
      } 
     }, 
     "outputSpeech": null, 
     "card": null, 
     "directives": [ 
      { 
       "type": "VideoApp.Launch", 
       "videoItem": { 
        "source": "[url to video.mp4]", 
        "metadata": { 
         "title": "Title meta", 
         "subtitle": "Secondary Title for Sample Video" 
        } 
       } 
      } 
     ] 
    } 
} 
関連する問題