开发者

Getting text-to-speech working and connecting it to java

开发者 https://www.devze.com 2023-02-17 11:25 出处:网络
Ok so I have an artificial intelligence system running on my M开发者_运维技巧ac through terminal, on localhost with java. I want to make my ai speak without flash. There is an HTML tag that could be e

Ok so I have an artificial intelligence system running on my M开发者_运维技巧ac through terminal, on localhost with java. I want to make my ai speak without flash. There is an HTML tag that could be easily plugged into a tts script, but I don't want to output an mp3 file, I want to output an audio tag with autoplay and hidden so that it seems every time you get a response from the ai, it will speak too.


Google translate TTS implemented as a servlet would solve this problem, I think. See this implementation. That is of course if you don't mind installing Tomcat or equivalent.

The problem is, until when will Google Translate TTS be free?


Do you know about the JavaSpeech API and, for example, the FreeTTS implementation?

0

精彩评论

暂无评论...
验证码 换一张
取 消