Showing posts with label Google. Show all posts
Showing posts with label Google. Show all posts

2012-01-18

Embedding text-to-speech into HTML5 games

I admit that the title is a bit misleading, but it better describes the aim of my article. This write-up offers one solution with code snippets to the problem of embedding Google's TTS service into a HTML5 page.

The unofficial Google TTS "API" lets you turn text to speech in well over 20 languages. It is a part of Google Translate, and works with text less than 100 characters long. So - how can you technically make use of this service to provide a better user experience?