Skip to content

Instantly share code, notes, and snippets.

@jkelvie
Created December 6, 2019 18:14
Show Gist options
  • Save jkelvie/d3dd74b9102f5f5fe47af763c3c8d901 to your computer and use it in GitHub Desktop.
Save jkelvie/d3dd74b9102f5f5fe47af763c3c8d901 to your computer and use it in GitHub Desktop.
{
"streamURL": null,
"raw": {
"messageBody": {
"directives": [
{
"namespace": "SpeechRecognizer",
"payload": {},
"name": "StopCapture"
},
{
"namespace": "Alexa.Presentation.APL",
"payload": {
"packages": null,
"supportedViewports": [
{
"maxWidth": 480,
"minHeight": 480,
"maxHeight": 480,
"minWidth": 480,
"shape": "ROUND",
"mode": "HUB"
},
{
"maxWidth": 1024,
"minHeight": 600,
"maxHeight": 600,
"minWidth": 1024,
"shape": "RECTANGLE",
"mode": "HUB"
},
{
"maxWidth": 1280,
"minHeight": 800,
"maxHeight": 800,
"minWidth": 1280,
"shape": "RECTANGLE",
"mode": "HUB"
},
{
"maxWidth": 960,
"minHeight": 540,
"maxHeight": 540,
"minWidth": 960,
"shape": "RECTANGLE",
"mode": "TV"
},
{
"maxWidth": 960,
"minHeight": 480,
"maxHeight": 480,
"minWidth": 960,
"shape": "RECTANGLE",
"mode": "HUB"
}
],
"document": {
"styles": {},
"commands": {},
"settings": {},
"layouts": {},
"mainTemplate": {
"items": [
{
"when": "${@viewportProfile != @hubRoundSmall}",
"height": "100%",
"type": "Container",
"width": "100%",
"items": [
{
"backgroundImageSource": "${payload.assets.backgroundURL}",
"type": "AlexaBackground"
},
{
"items": [
{
"width": "90vw",
"autoplay": true,
"type": "Video",
"source": "${payload.assets.video}",
"height": "85vh"
}
],
"type": "Container",
"paddingTop": "3vh",
"alignItems": "center"
}
]
},
{
"when": "${@viewportProfile == @hubRoundSmall}",
"height": "100%",
"type": "Container",
"width": "100%",
"items": [
{
"backgroundImageSource": "${payload.assets.backgroundURL}",
"type": "AlexaBackground"
},
{
"startText": "${payload.text.start}",
"middleText": "${payload.text.middle}",
"type": "cakeWalkText",
"endText": "${payload.text.end}"
}
]
}
],
"parameters": [
"payload"
]
},
"theme": "dark",
"version": "1.1",
"graphics": {},
"import": [
{
"version": "1.1.0",
"name": "alexa-layouts"
},
{
"source": "https://raw.githubusercontent.com/alexa/skill-sample-nodejs-first-apl-skill/master/modules/code/module4/documents/my-cakewalk-apl-package.json",
"version": "1.0",
"name": "my-cakewalk-apl-package"
}
],
"type": "APL",
"onMount": [],
"resources": []
},
"datasources": {
"text": {
"middle": "From,",
"type": "object",
"end": "Alexa <3",
"start": "Happy Birthday!"
},
"assets": {
"backgroundURL": "https://amzn1-ask-skill-0ca810cb-f511-buildsnapshotbucket-1j6xq5ij8qud4.s3.amazonaws.com/Media/confetti_1280x800.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAWVFU7MROJ4DP3QOH%2F20191206%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191206T181242Z&X-Amz-Expires=60&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEDIaCXVzLWVhc3QtMSJHMEUCIQDvvZrxBterexEke9LZGv9k3ATiSJ0xpcP0ye6ujkmqWAIgfRf9xv123uwmJ1jHTluuAEsIJX%2FfoVIudPbq%2FGgY6qMq4wEIexAAGgw0NTc3OTM1NjE2OTIiDDQcw2m1H5Et4mWS6irAAUU4wiISUmWBNMiukrnuEzBNffXJva0Oe02w6v29Jz6Dx5lCzp4Sq45f7gd3W8OASJmGNa9NYYyoXnwmZAcmlwQmU4zFzEb%2BbHPjBzk8RA79yzgnzckW6aTiJ%2B7Wkro%2FENOsGKtiXW8bQIc97%2BNkHTzrJ5HaNVsvc3c6hXPXeKQhGD5UWhNlscHRDDAXTjg0nApjiXqt9HCjfmxlz%2FhJZZiq0zRMDSBkasxnL256%2FqLkHwBWmXEgXeMn%2B9iWO8QKeDC0r6rvBTrgAUsXmalXgwc6HfYb%2FdgG%2FsCkcWGibJRTGJcWIyt9nVBsas7UBO72%2BkLRzxfdTHee%2BPQs8UWwBGKAlqHEDBY75gqHVOd2rGx6yl%2FX1NpDib2VuKFndkcQb0Sx2P0DKCAosTjZoXEK7vAHB1%2FhHvg3NfzyVAQhL3jsVQ40tP9Ai%2BGV9OM%2Bo%2BEJ3p1LWpsGku8ZS7XdNWnN3HVHkBRozUh%2BcjwQq8iMtnxWuGEsECoeECusqJcOQ%2BN6BE5AezsE8ZBtWJI%2BC4Tp8%2FrzAO5Ajib%2FopUvaCT4qXXjqAT7D9T%2B%2Fv1%2B&X-Amz-Signature=e7fad9c6bd5319b2705674372cd410bd5df5e43ca86943c9a590070c30f52900&X-Amz-SignedHeaders=host",
"video": "https://public-pics-muoio.s3.amazonaws.com/video/Amazon_Cake.mp4"
}
},
"presentationToken": "amzn1.as-tt.v1.ThirdPartySdkSpeechlet#TID#amzn1.ask.skill.0ca810cb-f511-480b-978f-59132676fb20::"
},
"name": "RenderDocument"
},
{
"namespace": "SpeechSynthesizer",
"payload": {
"url": "cid:ValidatedSpeakDirective_amzn1.ask.skill.0ca810cb-f511-480b-978f-59132676fb20_f5707dea-76bb-401a-a746-4503fca5263d_VoiceInitiated_2133841275",
"token": "amzn1.as-ct.v1.ThirdPartySdkSpeechlet#ACRI#ValidatedSpeakDirective_amzn1.ask.skill.0ca810cb-f511-480b-978f-59132676fb20_f5707dea-76bb-401a-a746-4503fca5263d_VoiceInitiated",
"format": "AUDIO_MPEG"
},
"name": "Speak"
}
]
}
},
"sessionTimeout": 0,
"transcriptAudioURL": null,
"debug": {
"transcriptAudioDuration": 6.0879375,
"processingDuration": 5.678555965423584,
"rawTranscript": "welcome back it looks like there are 125 days until your 45th birthday"
},
"message": "open cakewalk",
"transcript": "welcome back it looks like there are 125 days until your 45th birthday",
"display": null,
"card": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment