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 - katsiris - 2017-02-05 Woohoo! I finally got Alexa working by going back down to Python 2.7 and re-deploying! Thanks all for your hard work on this, it is really excellent in action! Has anyone seen the announcement for Alexa on Plex? They have a pretty nice implementation with suggestion logic (by genre? start a new show? Watch the next episode of x?) that would be fun to implement. Would that all be done in utterances? RE: Amazon Echo skill for Kodi - bill_orange - 2017-02-05 (2017-02-05, 20:57)katsiris Wrote: Woohoo! I finally got Alexa working by going back down to Python 2.7 and re-deploying! Thanks all for your hard work on this, it is really excellent in action! Has anyone seen the announcement for Alexa on Plex? They have a pretty nice implementation with suggestion logic (by genre? start a new show? Watch the next episode of x?) that would be fun to implement. Would that all be done in utterances? After seeing the announcement for Alex on Plex, I tried it. I was not impressed. Here are the pros and cons: Pros; Excellent speech recognition. Good set of utterances. Large user base and wide acceptance. Good documentation. Cons: Appallingly slow. I loaded the server on a PI3 and it ran like molasses. In two hours it had not scanned in all the "A"s in my library. Kodi scans the whole library in 45 min. They want money. You need a paid subscription for the client on the Raspberry Pi 3 to be fully functional. There are lots of restrictions unless you send money. Speech integration only works on certain clients. It will not work on my Samsung TV. In summary, It took me the better part of a morning to get all the permissions issues resolved on the server so the library could start scanning. Then I discovered that without sending money the PI client would not work with speech integration, The TV client would not support Alexa at all. By dinner, I could stream most of the "A"s to my phone! I uninstalled it and gave up. I did learn a bit about Linux permissions, however. RE: Amazon Echo skill for Kodi - Farquea - 2017-02-06 May be a stupid question but once I have this all up and running (I do) am I ok to uninstall Python and delete the Kodi-Alexa-Master file from my computers, there's no link now needed between these or will be at any point, thinknig updates etc? RE: Amazon Echo skill for Kodi - jingai - 2017-02-06 (2017-02-06, 08:16)Farquea Wrote: May be a stupid question but once I have this all up and running (I do) am I ok to uninstall Python and delete the Kodi-Alexa-Master file from my computers, there's no link now needed between these or will be at any point, thinknig updates etc? For updates you will need to keep these things around. RE: Amazon Echo skill for Kodi - bill_orange - 2017-02-08 Is the Eject function not fully implemented? I doesn't seem to work. If I say " Alexa, ask kodi media to eject", I get the same beep as I would get if I said " Alexa, ask kodi media to feed the cat". In wsgi.py, I changed the answer = " " for this function to answer = "I don't see one. Maybe one is hiding under my stubby little legs" to see if the line was uttered. The line is never uttered. I also tried commenting out kodi.SystemEjectMedia() in case it was crashing inside the function call. No effect. So, I'm confused. I just don't know enough yet to figure this out. RE: Amazon Echo skill for Kodi - jingai - 2017-02-08 @bill_orange, sometimes Amazon will intercept certain things at their whim... I just tried, and "Alexa, ask Kodi to eject CD" worked. DVD and media did not, but there's not a whole lot we can do about it if Amazon won't even pass it to the skill. RE: Amazon Echo skill for Kodi - bill_orange - 2017-02-08 (2017-02-08, 03:03)jingai Wrote: @bill_orange, sometimes Amazon will intercept certain things at their whim... I will try it with the eject CD. How odd. How could Amazon pass one and not the other? RE: Amazon Echo skill for Kodi - jingai - 2017-02-08 Because they reserve certain keywords/phrases, apparently, but they don't disclose that to us.. nor do they tell us what magic is required to bypass it, if any. RE: Amazon Echo skill for Kodi - bill_orange - 2017-02-08 No Luck with "eject CD" here. After I upload to Lamda does it take time for the new version to propagate? If so, I will try it again in the morning. RE: Amazon Echo skill for Kodi - digiltd - 2017-02-08 (2017-02-08, 03:17)bill_orange Wrote: No Luck with "eject CD" here. After I upload to Lamda does it take time for the new version to propagate? If so, I will try it again in the morning. No, it should be available a few seconds after it has been uploaded. Try replacing the sample utterances for EjectMedia with these: Code: EjectMedia eject According to the docs you need to include full-stops (periods) after letter abbreviations. Though even with that change I couldn't get it to work, Alexa is always hearing "check the cd", "check media" instead of "eject". Quickly saying "check" and "eject" repeatedly to yourself reveals how similar those two words actually sound. But as I don't actually have a disc drive I will let you have a test and feedback what you discover You could always try adding your own utterances e.g. "remove the c. d." or "open the disc drawer". Though "eject" is the most obvious choice and we should try to get it working. RE: Amazon Echo skill for Kodi - jingai - 2017-02-08 @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. RE: Amazon Echo skill for Kodi - bill_orange - 2017-02-08 (2017-02-08, 14:26)digiltd Wrote:(2017-02-08, 03:17)bill_orange Wrote: No Luck with "eject CD" here. After I upload to Lamda does it take time for the new version to propagate? If so, I will try it again in the morning. I am at an impasse in editing the skill. Any attempt to save results in: Error: Antonin Dvorak: Symphony No.9, "From The New World"/Carnival Overture contains invalid characters. Values for a custom slot type cannot contain double quotation marks. If I correct the error and try to save again it picks another song or album and will not save or let me save an edit. I don't want to delete the skill and start again. Suggestions? RE: Amazon Echo skill for Kodi - jingai - 2017-02-08 Remove the quotes in your slot items. The slot generator will eventually do this for you, but for now, just do it by hand. RE: Amazon Echo skill for Kodi - bill_orange - 2017-02-08 (2017-02-08, 20:06)jingai Wrote: Remove the quotes in your slot items. The slot generator will eventually do this for you, but for now, just do it by hand. I wish I could do it by hand, but there are "" in both MUSICSONGS and MUSICALBUMS and it won't let me fix and save the first because there are still "" in the second. Tha's what's preventing me from saving. It looks like a catch 22 unless I am missing something. RE: Amazon Echo skill for Kodi - jingai - 2017-02-08 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. |