• 1
  • 42
  • 43
  • 44(current)
  • 45
  • 46
  • 176
Release Kanzi: Amazon Alexa skill for Kodi
There's not really anything you can do to speed it up. But how slow is it? If you post the log for a long request, I can tell you if there's a problem or if it's normal.
Reply
Ok I'll do that.

The delay can be 10-15 seconds, possibly more sometimes and in honesty I'm not sure why as the film names are that complex (not that I know if that would even effect things). For example Disneys Frozen took quite a while (but I didn't time it)

That's a log from Alexa skill still yes? Do you need a log from a voice request or is a text test the same ?

I've run the procedure that extracts the names of ALL shows and ALL movies so I assumed that might assist in knowing what movie/show is.

I guess the size of the library isn't the main reason as some films or tv shows play faster than others



Sent from my iPhone
Reply
(2016-12-13, 20:41)jouster Wrote: The delay can be 10-15 seconds, possibly more sometimes and in honesty I'm not sure why as the film names are that complex (not that I know if that would even effect things). For example Disneys Frozen took quite a while (but I didn't time it)

I've run the procedure that extracts the names of ALL shows and ALL movies so I assumed that might assist in knowing what movie/show is.

It does help, yes. You did actually add them to the custom slots when you were setting up the skill, yes?

The other thing that can take some time is the skill requests the entire list of movies on which to find a match. So, there's some time in Kodi spent compiling that list, and then some time transmitting it to the skill.

I have a decent-sized library and nothing takes more than half a second or so. Still, your library is quite a bit larger than mine, so I may use you as a guinea pig for benchmarking the potential bottlenecks if you don't mind...

(2016-12-13, 20:41)jouster Wrote: That's a log from Alexa skill still yes?

Yes, the logs on cloudwatch for your Lambda deployment.

(2016-12-13, 20:41)jouster Wrote: Do you need a log from a voice request or is a text test the same ?

Should be the same from my perspective.

(2016-12-13, 20:41)jouster Wrote: I guess the size of the library isn't the main reason as some films or tv shows play faster than others

Size of the library does matter, but we're talking tens of milliseconds, not seconds, so something is probably wrong in your case.
Reply
Ok sounds great. I'll get you a log shortly. Would you like them emailed to you

I extracted all add ons, movies (6011) and shows (460) so they are all their for sure.

I timed a movie a short while ago and it took 45 seconds to start playing.

That whole time the Echo dot was spinning so I knew it was doing something

Ironically the tv shows are almost instant, I'm guessing this is normally because I'm asking for specific episodes or latest episodes and they are indexed very simply

Having had a quickly look through some of the logs I can definitely see there are some issues. So ready to send them over whenever you are ready.


Sent from my iPhone
Reply
Just PM me here please
Reply
(2016-12-13, 23:49)jingai Wrote: Just PM me here please

I have sent you one of the larger logs from cloud watch...Happy to create any others on an "as and when needed basis"

Thanks again
Reply
I'm sorry if this has been answered but I searched the thread and couldn't find anything. I got everything working using AWS but I have two kodi devices at my house, each one with a different webserver port. How would I go about controlling my second kodi device? Obviously the .env file will have to be different so it reflects the other kodi webserver port number but would I have to create a whole new aws lambda function?
Reply
Yes, at this time, you create a separate instance of the skill for each Kodi installation you want to control.
Reply
I may have done something wrong but ran through it a couple more times to double check, confusing me a bit now.

I can get alexa to navigate, check for new tv shows, use addons etc. But whenever i ask alexa to play a movie, a specific TV show or unseen episodes i get the same generic response below. I have tried this on the dev website test function, and with voice commands on my dot.

I know my library is being read as the number of episodes etc are correct, currently using the latest intents and utterances from github. And the code I re uploaded to a new amazon app last week.

Examples requests
Ask kodi to play random movie
Ask kodi to play movie tron
Ask kodi to play next episode of Arrow
Ask kodi to play Season 2 Episode one of Supergirl


{
"version": "1.0",
"response": {
"outputSpeech": {
"type": "PlainText",
"text": "You can ask me whether there are any new shows, to play a movie, tv show, or artist, or control playback of media."
},
"card": {
"content": "You can ask me whether there are any new shows, to play a movie, tv show, or artist, or control playback of media.",
"title": "Help",
"type": "Simple"
},
"shouldEndSession": true
},
"sessionAttributes": {}
}
Reply
I'm not sure. Those commands are all working here. You'd need to check the skill logs.
Reply
(2016-12-15, 00:56)SmiddyJR Wrote: I may have done something wrong but ran through it a couple more times to double check, confusing me a bit now.

I can get alexa to navigate, check for new tv shows, use addons etc. But whenever i ask alexa to play a movie, a specific TV show or unseen episodes i get the same generic response below. I have tried this on the dev website test function, and with voice commands on my dot.

I know my library is being read as the number of episodes etc are correct, currently using the latest intents and utterances from github. And the code I re uploaded to a new amazon app last week.

Examples requests
Ask kodi to play random movie
Ask kodi to play movie tron
Ask kodi to play next episode of Arrow
Ask kodi to play Season 2 Episode one of Supergirl

Hi, new user here, I am chiming in as I have been using the skill for a couple of weeks, but today I had to redownload and redeploy the Lambda function, and am experiencing the same issue.
I believe it has to be something in one of the latest commits, in fact I redownloaded and redeployed commit a1711df from Dec. 1st, which I believe was the one I was using, and the episodes were correctly playing again.

I haven't had the time yet to test the subsequent commits to pinpoint the issue, though.

Additionally I have a question, as I am not sure where to look exactly.
Sometimes, when I try to play some files that might cause the request to the jsonRPC API to be returned even after 40/50 seconds I noticed that, it looks like the request is retried, thus trying to start the file again 2 or 3 times.
I am looking in the code to find where such retries or timeouts are setup, as it does not seem to come from Lambda, which I have setup with a timeout of 5 minutes, but I am not able to find where.
Can you point me in the correct direction?

Thanks
Reply
(2016-12-15, 03:18)nomc2 Wrote: I believe it has to be something in one of the latest commits, in fact I redownloaded and redeployed commit a1711df from Dec. 1st, which I believe was the one I was using, and the episodes were correctly playing again.

I haven't had the time yet to test the subsequent commits to pinpoint the issue, though.

Forget this, I noticed the intents where changed and I did not update them, will try again tomorrow Smile

Still, the thing about the multiple requests remains Big Grin

Thanks
Reply
It shouldn't retry actually. I'm not sure why it'd be doing that for you. Can you show me logs (skill and Kodi in debug mode) when this occurs?

And yes, always remember to update the Intents and Utterances in the skill when updating the code. One or both almost always changes when we add anything to the skill.
Reply
So I checked the kodi debug logs, and I'm getting no Jsonrpc requests for the play media.
I can see the navigation and database query ones making it here OK.
How can I access the logs for alexa?
I can see on the app that alexa hears me correctly. But the cards just show the help message. And I can see invocations and durations on cloud watch with no errors
Reply
@SmiddyJR, the logs I'm referring to are the logs for the skill deployment. I think you're using AWS, so you'd check the logs on cloudwatch.

But are you certain the intents and utterances match the code you've deployed? You said before, "currently using the latest intents and utterances from github. And the code I re uploaded to a new amazon app last week," which indicates to me that you deployed code from a week ago but are using intents and utterances from a more recent revision? If so, you can't do this -- you need to update the intents and utterances from the version of the code that you're deploying.
Reply
  • 1
  • 42
  • 43
  • 44(current)
  • 45
  • 46
  • 176

Logout Mark Read Team Forum Stats Members Help
Kanzi: Amazon Alexa skill for Kodi15