I am new to the HTML5 Web Audio API and to Google Cloud Speech API. I am trying to build speech-recognition into an AngularJS application so the user can perform a search using speech-to-text instead of typing into a search with the keyboard.
The intent is to use getUserMedia() to capture and stream audio from the client to the Google Cloud Speech API, and asynchronously recieve back results.
Google offers a set of client libraries that allow you to stream from server-side platforms like C#, Node and Java to their API but I can't find an example showing how I can do either of the following:
- Stream audio from AngularJS directly to Google Cloud Speech API
- Stream audio from AngularJS to a custom API that relays the feed to Google Cloud Speech API using a client library
Has anyone found a way to stream audio from an AngularJS/HTML5 client to an API like the Google Cloud Speech API?