Kodi Community Forum
Release Kanzi: Amazon Alexa skill for Kodi - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: Release Kanzi: Amazon Alexa skill for Kodi (/showthread.php?tid=254502)



RE: Amazon Echo skill for Kodi - bill_orange - 2017-02-08

(2017-02-08, 20:33)jingai Wrote: Yes, you're missing that there are two different save buttons. The one at the bottom of the page is to save the skill itself, while the one underneath the slot item list is to save the Slot. Edit each list one at a time and use the latter to save the slots, then save the skill with the bottom button.

Yea, that's the puzzling thing. I am using the save button you indicate and I still get the error from the other slot(s). Seems totally wrong.

One other thing, I noticed day before yesterday when I got this thing working the first time that you can not save the Skills page using IE11 The save ball rotates forever. I switched to FireFox and all was well. Chrome seems fine too.


RE: Amazon Echo skill for Kodi - jingai - 2017-02-08

It shouldn't have let you save it in the first place, which is probably the problem.. you might have to either contact Amazon about it (same for the IE11 issue), or start over, I'm afraid.


RE: Amazon Echo skill for Kodi - bill_orange - 2017-02-08

(2017-02-08, 20:50)jingai Wrote: It shouldn't have let you save it in the first place, which is probably the problem.. you might have to either contact Amazon about it (same for the IE11 issue), or start over, I'm afraid.


I deleted and started over with a list of albums and song about 60 items long and free of symbols other than - and / .

Eject still does not work in any of the forms currently in utterances. I added "dismiss" and "dismiss media". They both work fine. I could not think of a better synonym for eject than dismiss. My wife suggested regurgitate but I gave that a pass.

I suggest adding a warning about using IE11 with the Amazon site to the GitHub instruction. Chrome and FireFox are okay. I did not test Edge.


RE: Amazon Echo skill for Kodi - mreedy - 2017-02-09

I recently tried adding the kodi skill to Alexa and I am having problems with it working. I followed all the steps from the guide
http://www.howtogeek.com/249336/how-to-control-your-kodi-media-center-with-an-amazon-echo/

I was able to navigate all the way through the guide until step 5. I created a developer account and added the trigger. I entered the name of the skill and completed all the items list on the left (skill information, interaction model, configuration, test, publishing information, and privacy policy). The SSL certification was not listed on my account. I do not know why it is not showing up or how to get it. I believe this is causing my issue. When I ask the device to play [tv show] [season] [episode] it just searches amazon prime video. What am I doing wrong and is the SSL certification page my problem??

Note: I am an amateur so please bare with me.

Thanks!


RE: Amazon Echo skill for Kodi - bill_orange - 2017-02-09

I am an amateur also, so I may not have a definitive answer for you.

I don't remember needing a an SSL certificate. I deployed to the Lambda site which ask me for an ARN number, but no certificates. Are you using Amazon Lambda to host?

Perhaps a screenshot would help.


RE: Amazon Echo skill for Kodi - jingai - 2017-02-09

(2017-02-09, 02:35)mreedy Wrote: When I ask the device to play [tv show] [season] [episode] it just searches amazon prime video.

How exactly are you invoking the skill? What are you saying to Alexa?


Amazon Echo skill for Kodi - digiltd - 2017-02-09

(2017-02-08, 18:02)jingai Wrote: @digiltd, though that doesn't explain why "eject media" doesn't work. Also, have you tried full-stops with capital letters and no spaces?

Though I'd have a hard time believing Alexa can't work out that a word in all caps is an acronym..

edit: Looked it up instead of being lazy like I'd planned.. lol.. the docs say the way we had it is right:

Quote:For better recognition, acronyms and other phrases involving spoken letters should either be all caps (“HD”) or separated by periods (“h.d.”). Using lowercase for initialisms may lead to unreliable recognition since the spoken form may not correctly be detected.

As noted on GitHub that extract is talking about slot data not sample utterances. But ignoring that, the sample utterances currently on the master branch have the acronyms in lowercase with no periods or spaces i.e. cd and dvd.


RE: Amazon Echo skill for Kodi - jingai - 2017-02-09

(2017-02-09, 04:09)digiltd Wrote:
(2017-02-08, 18:02)jingai Wrote: @digiltd, though that doesn't explain why "eject media" doesn't work. Also, have you tried full-stops with capital letters and no spaces?

Though I'd have a hard time believing Alexa can't work out that a word in all caps is an acronym..

edit: Looked it up instead of being lazy like I'd planned.. lol.. the docs say the way we had it is right:

Quote:For better recognition, acronyms and other phrases involving spoken letters should either be all caps (“HD”) or separated by periods (“h.d.”). Using lowercase for initialisms may lead to unreliable recognition since the spoken form may not correctly be detected.

As noted on GitHub that extract is talking about slot data not sample utterances. But ignoring that, the sample utterances currently on the master branch have the acronyms in lowercase with no periods or spaces i.e. cd and dvd.

Aye, I just read the wrong spot.. but even when done correctly, Alexa still doesn't seem to want to pass it to the skill reliably. I can get CD and bluray to work, but none of the others here.


RE: Amazon Echo skill for Kodi - bill_orange - 2017-02-09

(2017-02-09, 04:15)jingai Wrote:
(2017-02-09, 04:09)digiltd Wrote:
(2017-02-08, 18:02)jingai Wrote: @digiltd, though that doesn't explain why "eject media" doesn't work. Also, have you tried full-stops with capital letters and no spaces?

Though I'd have a hard time believing Alexa can't work out that a word in all caps is an acronym..

edit: Looked it up instead of being lazy like I'd planned.. lol.. the docs say the way we had it is right:

As noted on GitHub that extract is talking about slot data not sample utterances. But ignoring that, the sample utterances currently on the master branch have the acronyms in lowercase with no periods or spaces i.e. cd and dvd.

Aye, I just read the wrong spot.. but even when done correctly, Alexa still doesn't seem to want to pass it to the skill reliably. I can get CD and bluray to work, but none of the others here.

This may be a red herring but I had all of the utterance options eject, eject cd, eject dvd etc. work fine just once when I completed the screen on the Amazon site where it says "you can start testing your skill". There were about 3 screens left to go to complete the process. After I was all done and off the Amazon site eject stopped working. Right now none of the options work for me including eject CD.


RE: Amazon Echo skill for Kodi - mreedy - 2017-02-09

(2017-02-09, 04:09)jingai Wrote:
(2017-02-09, 02:35)mreedy Wrote: When I ask the device to play [tv show] [season] [episode] it just searches amazon prime video.

How exactly are you invoking the skill? What are you saying to Alexa?

Alexa, Play Kodi seinfeld season 1 episode 1


RE: Amazon Echo skill for Kodi - mreedy - 2017-02-09

(2017-02-09, 03:35)bill_orange Wrote: I am an amateur also, so I may not have a definitive answer for you.

I don't remember needing a an SSL certificate. I deployed to the Lambda site which ask me for an ARN number, but no certificates. Are you using Amazon Lambda to host?

Perhaps a screenshot would help.

On the guide it said there would be a tab on the left for SSL number

[img]https://www.dropbox.com/s/t8ayh3u1qbu4kzo/Untitled.png?dl=0


RE: Amazon Echo skill for Kodi - mreedy - 2017-02-09

How do I get an image to post on the forum?


RE: Amazon Echo skill for Kodi - deboyd - 2017-02-09

Can someone please help? When I enter the line: C:\Python27\Scripts\lambda-deploy.exe deploy into my command prompt, I am given this error response:




C:\Users\Daniel\Desktop\Amazon Echo\kodi-alexa-master (1)>C:\Python27\Scripts\lambda-deploy.exe deploy
2017-02-08 22:39:09:INFO:botocore.credentials: Found credentials in shared credentials file: ~/.aws/credentials
[b]2017-02-08 22:39:09:ERROR:lambda_deploy: Missing AWS Role
2017-02-08 22:39:09:ERROR:lambda_deploy: Invalid arguments]
Usage: lambda-deploy [options] action [args]

Action is one of the following:

deploy: Deploys lambdas to AWS
list: Lists already deployed lambdas

Options:
-h, --help show this help message and exit
-d DIRECTORY, --directory=DIRECTORY
directory to look for lambdas in. Can be configured
via environment variable LAMBDA_DIRECTORY as well.
-e ENV_FILE, --env-file=ENV_FILE
load environment variables from this file. They should
be given as VARIABLE = VALUE, one per line. Defaults
to .env. Can be configured via environment variable
LAMBDA_ENV_FILE as well.
-E ENV_VARS, --environment-variable=ENV_VARS
load this environment variable into a .env file to be
provided to your lambda jobs. Can be loaded easily
using a library like Yaep. Can be provided multiple
times to copy multiple environment variables. Can be
configured via environment variable LAMBDA_ENV_VARS as
well.
-r ROLE, --role=ROLE The ARN role that your Lambda job should assume when
accessing other AWS services. This is required. Can be
configured via environment variable LAMBDA_ROLE as
well.
-n NAME, --name=NAME The name of the Lambda to use on AWS. Defaults to the
name of the directory. Can be configured via
environment variable LAMBDA_NAME as well.
-l LOGGING_LEVEL, --logging-level=LOGGING_LEVEL
The specific logging level to use. These correspond to
standard Python logging module levels - CRITICAL,
ERROR, WARNING, INFO, DEBUG or NOTSET. Note that you
can just use the -v/--verbose option as shorthand for
-l DEBUG. If both are given, this takes precedence.
Can be set via the LAMBDA_LOGGING_LEVEL environment
variable.
-v, --verbose enable verbose logging
-V, --version display version information and exit


C:\Users\Daniel\Desktop\Amazon Echo\kodi-alexa-master (1)>


RE: Amazon Echo skill for Kodi - digiltd - 2017-02-09

@bill_orange @jingai I have been unable to get it working either using voice because Alexa doesn't understand when I say "eject", she always interprets it as "check".

ask kodi to be checked c. d.
ask kodi to check the cd
ask kodi to check to see
ask kodi to check the rain
ask kodi to check

Works fine in the Service Simulator when I type it in. I keep marking the cards with "no" when asked if she did what you expected her to do. I also tried changing the Sample Utterances to "e-ject" and "e. ject" just to see if that made a difference, but still no joy. She always things I am saying "check", does she correctly hear "eject" on your devices?

Though I am starting question the value in spending any more time to get this particular function working (I don't personally have a disc drive or any discs to put in it). I assume if someone is ejecting a disc they are going to have to physically take it out of the drawer/slot of the PC running Kodi (because you wouldn't leave the disc sticking out). If they are already at the machine, just press the eject button Smile


RE: Amazon Echo skill for Kodi - digiltd - 2017-02-09

@deboyd you haven't set up your .env file correctly. Make sure you read the README. This thread is the best resource as most questions (including yours) have already been asked and answered. There is a search function if you don't want to browse all 67+ pages Smile

Where are you reading that you should use:
Code:
lambda-deploy.exe deploy
?


This forum uses Lukasz Tkacz MyBB addons.