Re:Wit.ai (YC W14) Wants To Be The Twilio For Natural Language
by mrmch on Monday March 17, 2014 @05:15PM
(#7418149)
Their documentation has a pretty clear endpoint for sending raw audio: https://wit.ai/docs/api#toc_9
Re:Wit.ai (YC W14) Wants To Be The Twilio For Natural Language
by dangrossman on Monday March 17, 2014 @05:24PM
(#7418200)
Thanks, don't know how I missed the links at the top of the page. I only checked each category on the left nav of the docs page.
Re:Wit.ai (YC W14) Wants To Be The Twilio For Natural Language
by blandinw on Monday March 17, 2014 @05:29PM
(#7418232)
The docs were outdated indeed, we fixed this, thanks!
That's disappointing since the only problem I ran into with doing home automation via a web application was the speech-to-text, not processing commands once they were in text. A list of regular expressions works quite well for that.
The HTML5 Speech Recognition API in Chrome kinda sucks. It does speech to text well, but reliably keeping the API listening for speech at all has been challenging. Even a bunch of code basically checking "has the webkitSpeechRecognition object borked itself yet? recreate it and restart listening" every two seconds doesn't work reliably.
I'd love a JavaScript API that can listen to the microphone, determine if anything has been spoken (versus silence or background noise), and when something that may be speech is detected, send it to another API endpoint that converts it to text.
Edit: They do take audio input, woo :) Thanks for the correction. https://wit.ai/docs/api#toc_9