question

alitaso345 avatar image
alitaso345 asked

ExecuteCommandsディレクティブが開発者コンソールのテストでは実行されない

アレクサの開発者コンソールのテストページにて動作確認を行っています。 Alexa.Presentation.APL.ExecuteCommands にて SpeakItem や SetPage コマンドの実行を指定した際に、それらが実行できないためデバッグに苦労しております。 幸い実機では問題なく動作するため実機デバッグを行っていますが、開発者コンソールにて ExecuteCommandsディレクティブのテストを行う方法について助言いただきたいです。 以下のようなJSON出力を行うスキルとなっています。

```

{ "body": { "version": "1.0", "response": { "outputSpeech": { "type": "SSML", "ssml": "<speak>hello</speak>" }, "directives": [ { "type": "Alexa.Presentation.APL.RenderDocument", "token": "happy", "document": { "type": "APL", "version": "1.0", "theme": "dark", "import": { "name": "alexa-layouts", "version": "1.0.0" }, "resources": [], "styles": [], "mainTemplate": { "parameters": [ "payload" ], "items": [ { "when": "${viewport.shape == 'round'}", "type": "Container", "direction": "column", "width": "100vw", "height": "100vh", "alignItems": "center", "justifyContent": "center", "items": [ { "type": "ScrollView", "width": "70vw", "height": "70vh", "item": { "type": "Text", "id": "dreamTextComponent", "text": "${payload.data.properties.dreamContent}", "speech": "${payload.data.properties.dreamContentSpeech}" } } ] }, { "when": "${viewport.shape == 'rectangle'}", "type": "Container", "direction": "column", "width": "100vw", "height": "100vh", "alignItems": "center", "justifyContent": "center", "items": [ { "type": "ScrollView", "width": "100vw", "height": "100vh", "item": { "type": "Text", "id": "dreamTextComponent", "text": "${payload.data.properties.dreamContent}", "speech": "${payload.data.properties.dreamContentSpeech}" } } ] } ] } }, "datasources": { "data": { "type": "object", "objectId": "happy-system", "title": "みんな幸せみんなハッピーシステム", "entry": "船に乗る夢。祖父が危篤状態だと嘘をついて祖母を困らせた。同僚が波の景色を指で消しながら喜んでいた。", "properties": { "dreamSsml": "<speak>船に乗る夢。祖父が危篤状態だと嘘をついて祖母を困らせた。同僚が波の景色を指で消しながら喜んでいた。</speak>" }, "transformers": [ { "inputPath": "dreamSsml", "outputName": "dreamContentSpeech", "transformer": "ssmlToSpeech" }, { "inputPath": "dreamSsml", "outputName": "dreamContent", "transformer": "ssmlToText" } ] } } }, { "type": "Alexa.Presentation.APL.ExecuteCommands", "token": "happy", "commands": [ { "content": { "type": "SpeakItem", "componentId": "dreamTextComponent" } } ] } ], "shouldEndSession": true }, "sessionAttributes": {}, "userAgent": "ask-node/2.3.0 Node/v8.10.0" } }

```

alexa skills kitapl
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jason@Amazon avatar image
Jason@Amazon answered

ご投稿ありがとうございます。
現在これはテストコンソール上の不具合で、開発チームが修正しているところです。英語表記になりますが、詳細はこちらの投稿にも書いてあります。

10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.