【转】google text-to-speech API及参考资料

先看两个示例,把下面两个url地址复制到你的浏览器的地址栏里,会得到一个mp3文件,然后播放你这个mp3文件。
http://translate.google.com/translate_tts?q=我爱人民
http://translate.google.com/translate_tts?tl=en&q=This seems not to work anymore

http://translate.google.com/translate_tts?q=苍茫大地,万里雪飘&tl=zh-CN
http://translate.google.com/translate_tts?q=i love the people&tl=en
http://translate.google.com/translate_tts?ie=UTF-8&q=%E6%88%91%E7%88%B1%E7%9A%84%E4%BA%BA&tl=zh-CN
http://translate.google.com/translate_tts?ie=UTF-8&q=i love the people&tl=en

说明:我使用的是IE,并且编码格式是UTF-8,如果指定了这些,则中文必须使用URL编码

下面还有些其他的参考资料,也是我从网上找到的,有兴趣的可以看看:
http://techcrunch.com/2009/12/14/the-unofficial-google-text-to-speech-api/
http://stackoverflow.com/questions/2080401/is-there-a-speech-to-text-api-by-google
http://weston.ruter.net/projects/google-tts/
http://ajaxian.com/archives/text-to-speech-via-html5-audio

文本到语音(TTS)的网页API的JavaScript :
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-December/024453.html


最近一个关于线程的Web API,用于语音识别与合成 :
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-December/thread.html#24281

 

posted on 2011-07-31 13:30  xuq  阅读(436)  评论(0编辑  收藏  举报

导航