3 ms·
Wow great work. Makes me want to grab an Echo and start using this. I love Flask :) Do you know if Android or iOS can expose custom voice commands API like thi
by cdnsteve 10y ago
Wow great work. Makes me want to grab an Echo and start using this. I love Flask :)
Do you know if Android or iOS can expose custom voice commands API like this, without building an entire native app?
- johnwheeler 10y agoThank you Steve. I don't know much about Siri or Google Now voice activation APIs ("Hey Siri" and "OK Google"). Also (as you're probably aware), Google just came out with an Echo competitor called Google Home, which presumably operates on APIs like Echo's. I think the model itself is probably a generic one. For Echo, speech maps to actions executed on a server, so you can say: "Alexa, ask calculator what's two plus three" and from there, Alexa does the non-trivial work of determining that: 1. "calculator" is a skill (i.e. program) 2. "what's two plus three" maps to a function of the program 3. "two" and "three" are arguments of the function. The Alexa Skills Kit's job is to parse the speech, break it down into those elements, and pass it securely to your program using JSON over HTTPS. Flask-Ask provides natural mappings to corresponding Python constructs (programs, functions, parameters) through a decorator-based API.
- DasIch 10y agoiOS doesn't have an API for custom voice commands, even for native apps. Though there are rumors that they might do something like this, maybe they'll show something at WWDC.