This is a useful project to test the screen of Echo Show
Put the bucket policy for public access.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadForGetBucketObjets",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::{your bucket name}/*"
}
]
}
Copy all media files includes in media
to the bucket.
Verify you can access the image from the browser.
- Create lambda function in us-east-1(or eu-west-1) region.
- Copy
src/lambda_function.py
into lambda source.
fill Environment variables
key | value |
---|---|
MEDIA_BUCKET | your public bucket |
REGION | For us-east-1 set "s3". For other regions set "s3-{region>}. example: set s3-eu-west-1 if you using EU (Ireland) region." |
- Chose "yes" at "Skill Information > Global Feilds > Render Template and Video App".
- Copy
model/intentSchema.json
into "Interaction Model > Intent Schema". - Copy
modle/SampleUtterances.txt
into "Interaction Model > Sample Utterances".
Say Alexa, ask <invocation name>
to test. Answer yes, to check the next template.
Or Invoke the template directly with following utterance.
- Alexa, ask <invocation name> body template number 1
- Alexa, ask <invocation name> body template number 2
- Alexa, ask <invocation name> body template number 3
- Alexa, ask <invocation name> body template number 6
- Alexa, ask <invocation name> list template number 1
- Alexa, ask <invocation name> list template number 2
- Alexa, ask <invocation name> video
- Alexa, ask <invocation name> action sample