And that’s it. This will generate an MP3 file which you can download and play. You may want to create a small HTML form to convert text to speech. All you need is to copy following code and create a HTML file in your machine. And run it using any browser.Code language: HTML, XML (xml)http://translate.google.com/translate_tts?q=Hello+World
<form method="get" action="http://translate.google.com/translate_tts">
<textarea name="q"></textarea>
<input type="submit" value="Text-To-Speech"></input>
</form>
Code language: HTML, XML (xml)
Currently, This “Unofficial” API is limited to 100 characters only. Also I am not till when google will support this API. Source: Ajaxian Java URL Encoder/Decoder Example - In this tutorial we will see how to URL encode/decode…
Show Multiple Examples in OpenAPI - OpenAPI (aka Swagger) Specifications has become a defecto standard…
Local WordPress using Docker - Running a local WordPress development environment is crucial for testing…
1. JWT Token Overview JSON Web Token (JWT) is an open standard defines a compact…
GraphQL Subscription provides a great way of building real-time API. In this tutorial we will…
1. Overview Spring Boot Webflux DynamoDB Integration tests - In this tutorial we will see…
View Comments
Here is a basic bookmarklet to use the same..
javascript:(function(){q=document.getSelection().toString();if(q){q = q.replace(/\W+/g, '+');q = q.replace(/(^\+|\+$)/g, '');location.href='http://translate.google.com/translate_tts?q='+q;};})()
There is probably a mistake. "Text-To-Speech" has no attribute assigned. Or is it intentional?
Great tip though.
Already removed...
@Cydork - Thanks for the bookmarklet. :)
@matto - Thanks for pointing out the typo. I have updated the code.
@Luciano - The API is still working for me. I am able to get the mp3.
Ultimate one.................
Simple but very helpful :)
I get ja 404 error :-(
Thank you, API is working fine ., it is helpful
Does it support other language, such as Chinese?
I have created a PHP class wrapper with features such as unlimited characters (google limits to 100). The class also includes methods to include javascript and play characters in real time without any visable player.
Based on:
* Jquery
- Jplayer
- Hotkey
* Googles TTS API
Check it out @ pkj's developer blog:
http://pkj.no/content/googles-tts-api-power-php
Also available to download.