User Guide (Version 1.18)

Text to Speech Cloud Gem (Using Amazon Polly)

You can use the Text-to-Speech (TTS) Cloud Gem to enhance your gameplay and workflows with synthesized speech. The Cloud Canvas Text-to-Speech (TTS) Cloud Gem uses Amazon Polly, which is a text-to-speech service that turns text into lifelike speech. Amazon Polly offers dozens of lifelike voices in a variety of languages. The service also creates lip synchronization from the text that you provide. You can import the generated audio and speech mark files into your dialogue system. Currently, the Text-to-Speech Gem supports playback of PCM (pulse-code modulation) files.

You can use the text-to-speech service in two ways:

  • You can prepackage speech content and include it with your game so that your clients can access it immediately.

  • Your clients can invoke the Amazon Polly service to provide text to speech while your game is running.

In the first approach, you prepare voices and dialogues that players require and store them on the client. This removes the need for the client to connect to the backend to generate and download lines that are known to be necessary. The trade-off is that the client must store the files locally.