Speech Recognition Demo on Roku using Google STT API
This demo app showcases how to implement Speech Recognition on Roku OS 7.6 and above using Google Cloud Speech-to-Text API. Follow this step-by-step tutorial for more details.
How to enable the STT API
As with any Google Cloud API, the API has to be enabled on a project within the Google Cloud Console and all the API calls will be associated to that project.
Summarized steps:
- Create a project (or use an existing one) in the Cloud Console.
- Make sure that billing is enabled for your project.
- Enable the Speech-to-Text API.
- Create an API key.
Running the app
- Clone this repo
$ git clone https://github.com/acotilla91/Google-STT-Roku-Demo.git
- Open project.
- Go to the
SpeechRecognizer
component and replaceYOUR_API_KEY
with the actual API key that was obtained from the steps above. - Side-load the app.
- Press and hold the "OK" button to start dictation, release it once you're done.
- The spoken words should be displayed shortly after the "OK" button is released.