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) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
RE: Amazon Echo skill for Kodi - newoski - 2016-10-31 To the Emby users how fast does Alexa process your commands? Pause and stop are fast, but play movie commands seem to take a few seconds to process... (I'm using AWS) Sent from my HTC6535LVW RE: Amazon Echo skill for Kodi - fonzie - 2016-10-31 I don't have anything to compare it to, but it seems acceptable to me considering the disk need to spin up on my unRAID. I'm happy with it. Sent from my HTC 10 RE: Amazon Echo skill for Kodi - newoski - 2016-10-31 (2016-10-31, 21:52)fonzie Wrote: I don't have anything to compare it to, but it seems acceptable to me considering the disk need to spin up on my unRAID. I'm happy with it.How many seconds does it take to process for you? I'm on Unraid as well. Takes about 3-5 seconds Sent from my HTC6535LVW RE: Amazon Echo skill for Kodi - newoski - 2016-10-31 (2016-10-31, 22:03)newoski Wrote:I wonder if library size plays a roll. Going to experiment tonight(2016-10-31, 21:52)fonzie Wrote: I don't have anything to compare it to, but it seems acceptable to me considering the disk need to spin up on my unRAID. I'm happy with it.How many seconds does it take to process for you? I'm on Unraid as well. Takes about 3-5 seconds Sent from my HTC6535LVW RE: Amazon Echo skill for Kodi - newoski - 2016-10-31 (2016-10-31, 22:05)newoski Wrote:(2016-10-31, 22:03)newoski Wrote:I wonder if library size plays a roll. Going to experiment tonight(2016-10-31, 21:52)fonzie Wrote: I don't have anything to compare it to, but it seems acceptable to me considering the disk need to spin up on my unRAID. I'm happy with it.How many seconds does it take to process for you? I'm on Unraid as well. Takes about 3-5 seconds Yup, that's definitely it. Either library size or Unraid. I believe it would be the library size, but I have no plans to copy tons of files to local media to test. RE: Amazon Echo skill for Kodi - nawo69 - 2016-10-31 (2016-10-31, 13:55)jingai Wrote: I assume it's Jarvis then, so it could potentially be a bug in a) Jarvis, b) the SPMC fork, or c) the Android port. After all this it is working perfectly today so not sure what was up yesterday RE: Amazon Echo skill for Kodi - jingai - 2016-10-31 I do know that Amazon's certificate expired yesterday and went some period before it was renewed. I don't know how that would cause your particular symptoms exactly, but perhaps it's related. RE: Amazon Echo skill for Kodi - newoski - 2016-11-01 Is there anything that can be done to speed up how fast Alexa processes commands with a large library? Is this a current limitation in the coding or is it simply how fast Alexa can process data? RE: Amazon Echo skill for Kodi - jingai - 2016-11-01 (2016-11-01, 15:22)newoski Wrote: Is there anything that can be done to speed up how fast Alexa processes commands with a large library? Is this a current limitation in the coding or is it simply how fast Alexa can process data? Faster hardware, LAN/WAN connection, etc? My server is an i7-4770K with media on a soft (Linux) RAID6. I have ~9000 shows, ~2000 movies, ~1500 music videos, and ~25000 songs. My library is in MySQL and the client machine (Kodi) is a 2011 Mac mini connected over gigabit ethernet. My WAN connection is 150mb/10mb cable. My queries take ~150ms to complete. Total round trip (Echo -> Amazon -> Kodi) I've never seen above about 500ms, with most being in the 300ms range. edit: two more points I forgot to mention.. the MySQL library is on an SSD (Samsung 850 Pro) and I am self-hosting the skill. RE: Amazon Echo skill for Kodi - newoski - 2016-11-01 (2016-11-01, 15:27)jingai Wrote:(2016-11-01, 15:22)newoski Wrote: Is there anything that can be done to speed up how fast Alexa processes commands with a large library? Is this a current limitation in the coding or is it simply how fast Alexa can process data? Interesting... I'm using Emby for my database. I'm hardwired with Cat6 for the entire setup. My cache drive is a Samsung 850 Pro. My CPU is an Intel® Xeon® CPU E3-1276 v3 @ 3.60GHz Where are you self hosting? On your local server or elsewhere? Your library is much bigger, so I am hoping this is a problem I can solve... Where can I look at the time it takes for the data roundtrip? RE: Amazon Echo skill for Kodi - jingai - 2016-11-01 (2016-11-01, 15:45)newoski Wrote:(2016-11-01, 15:27)jingai Wrote:(2016-11-01, 15:22)newoski Wrote: Is there anything that can be done to speed up how fast Alexa processes commands with a large library? Is this a current limitation in the coding or is it simply how fast Alexa can process data? Hosting the skill on my own server (Apache2+mod_wsgi). I haven't ever used Emby, but just a quick glance at their site suggests to me that it shouldn't cause any speed issues. My understanding is that it syncs the libraries, so you're effectively using Kodi's built-in library when browsing/making requests. You should check the logs on the server where you host the skill to see where the bottleneck is. Just look at the timestamps on each line from startup to shutdown and it should be obvious what's taking the most time. If you have trouble figuring it out, feel free to post the log here, but make sure to scrub out IPs/passwords. RE: Amazon Echo skill for Kodi - newoski - 2016-11-01 (2016-11-01, 15:49)jingai Wrote:(2016-11-01, 15:45)newoski Wrote:(2016-11-01, 15:27)jingai Wrote: Faster hardware, LAN/WAN connection, etc? I'm using AWS Lambda for hosting... not sure I can look at logs there RE: Amazon Echo skill for Kodi - nawo69 - 2016-11-01 (2016-11-01, 15:57)newoski Wrote: I'm using AWS Lambda for hosting... not sure I can look at logs there Should be able to see your logs at https://console.aws.amazon.com/cloudwatch/ RE: Amazon Echo skill for Kodi - newoski - 2016-11-01 (2016-11-01, 16:17)nawo69 Wrote:(2016-11-01, 15:57)newoski Wrote: I'm using AWS Lambda for hosting... not sure I can look at logs there Here's what I'm seeing: 15:09:35 START RequestId: xxxxxxxxxxxxxxx Version: $LATEST 15:09:35 lambda_handler: applicationId=amzn1.ask.skill.xxxxxxxxxxxxxxx 15:09:35 on_session_started: requestId=amzn1.echo-api.request.xxxxxxxxxxxxxxx , sessionId=amzn1.echo-api.session.xxxxxxxxxxxxxxx 15:09:35 on_intent: requestId=amzn1.echo-api.request.xxxxxxxxxxxxxxx , sessionId=amzn1.echo-api.session.xxxxxxxxxxxxxxx 15:09:35 Requested intent: PlayMovie 15:09:35 Playing the movie the dark knight 15:09:35 Sending request to xxxxxx.xxxxx.xxx:#### 15:09:46 the dark knight 15:09:46 Sending request to xxxxxx.xxxxxx.xxx:#### 15:09:46 Sending request to xxxxxx.xxxxxx.xxx:#### 15:09:47 END RequestId: xxxxxxxxxxxxxxx 15:09:47 REPORT RequestId: xxxxxxxxxxxxxxx Duration: 11602.53 ms Billed Duration: 11700 ms Memory Size: 128 MB Max Memory Used: 21 MB ------- From that, it looks like the lag is really introduced coming back from Amazon to my Kodi box via DDNS. Any suggestions? RE: Amazon Echo skill for Kodi - jingai - 2016-11-01 The JSON call, VideoLibrary.GetMovies, is taking somewhere between 10 and 11 *seconds*. I couldn't tell you why, but that is how long it took Kodi to process and return the data. Do you have a really, really slow uplink...? You might put Kodi into debug mode, try the request again, and then examine the Kodi log to see if it's actually spending 10 seconds getting the list of movies, or if it's the act of sending the results that's the issue. |