[b]Proof of Concept Apps and Utilities[/b] Description: This is a grab bag of application ideas I've been playing with. If you think any have commercial potential, talk to me. Otherwise treat it as sample code. There are also a number of utilities that might help with Echo development. URL: https://github.com/jjaquinta/EchoProofOfConcepts Contact Info: Contact me on the forum here, via GitHUB, or at
firstname.lastname@example.org Features: There is a "Generate BAF" command that will read an XML file of word permutations and output a BAF file that has all possible iterations of those words. There is a BaseServlet that extends SpeechletServlet and adds a few extra features. For example doGet is overridden such that it can return the current Intents file and Utterances file. Makes it handy to work with EchoSim. https://github.com/jjaquinta/EchoProofOfConcepts/blob/master/jo.echo.poc/src/jo/echo/util/BaseServlet.java
I think the UPS Tracking app has potential, you would just have to find a way to pass the tracking number to Echo (since reading out the tracking number each time you want an update would kind of defeat the purpose of the app). ninja edit: Just thought of a solution for that. Integrate the app with Slice. It pulls tracking numbers from your emails, then sends you notifications if/when their is an update to the tracking number
As currently written, you can dictate tracking numbers to the app, and it will remember them. You can then just ask for an update to what you are tracking. I need to get a physical Echo in my hands to see how well it deals with an 18 slot intent. But it works fine in the simulator. One trick was that since I'm not sure how well Echo deals with vocalizing letter (does it return B or bee?) it supports enunciating letters via Alpha-Bravo-Charlie call signs. Well, actually, it will take any word, and take the first letter of it. I figured that's the must usable for something like this.
That would be awesome. I only just got the loan of an Echo today. It's sitting on my desk staring at me telling me it can't connect to my wi-fi. But the source code is all there. You can run it for yourself if you like. I'm really unsure how well dictating 18 digit UPS codes are. If you look in the bottom of UPSTrackingLogic.java you can see a main() I used to test. There's a test tracking number in there which is always valid.
Cool. I just pushed up some changes to BaseServlet. It now puts a wrapper around your Speechlet class, and auto-logs the inputs to it and the outputs from it to a buffer you can view by browsing to the endpoint. I've found it really handy for debugging what's going on.
I've added a sample of creating a Java Lambda Function for use with Echo to the EchoProofOfConcept project on GitHub. I've exported the project and posted it as a release here:
https://github.com/jjaquinta/EchoProofOfConcepts/releases/tag/1.0.1 There's a readme with a step-by-step guide of what I did to get it to work. The published instructions don't work because of a bug in the AWS plugin for Eclipse. Also, they leave you to do all the parsing of the input and output by hand. My instructions cover the gap, and there's a helper class that uses the same parsing as in the Alexa Skills Tooklit. You can integrate existing speechlets in with no code changes.