Talestreamer makes your Google Action sound great by replacing Google’s default voice with rich, multilayered audio that incorporates synthesized speech, human voices, and foreground and background music and sound effects. This document describes how you can start using Talestreamer for your Google Action.
Want to watch this instead of reading about it? Try our video.
If you are using the Actions on Google SDK and Google Cloud Functions or Firebase Functions (other options), it just takes 4 steps:
- Depend on the Talestreamer SDK.
- Sign up for Talestreamer.
- Get your Talestreamer API key from the Talestreamer dashboard.
- Add Talestreamer to your Google Action.
As soon as you’re done, your Google Action will use Talestreamer’s default style. Now you can make your Google Action sound awesome using Talestreamer.
1. Depend on the Talestreamer SDK
In the directory that contains your Google Action’s source code, run this:
$ npm install –save talestreamer
You should see something like this:
added 28 packages in 4.308s
2. Sign up for Talestreamer
Sign up for Talestreamer. You get a free trial, with no credit card required. Check out Talestreamer pricing for details.
3. Get your Talestreamer API key from the Talestreamer dashboard
- Visit the API tab on the Talestreamer Dashboard
- Click “Create Key”
- Copy your API key.
4. Add Talestreamer to your Google Action
Include the following snippet at the top of the file that defines your Cloud Function handler (usually
index.js), using your API key created above:
After creating an ActionsSdkApp or DialogflowApp object, pass it to Talestreamer. For example:
Other Integration Options
Otherwise, you can call the Talestreamer REST API from your Google Action.
Once you’re done integrating Talestreamer with Actions on Google, you can start making your Google Action sound more awesome.