It is a Java servlet lets you deal with TTS API from Ericsson Labs. Servlets presents a Java wrapper for Text-to-Speech API. It lets you convert text to some mp3 file and stream it to the user. The text-to-speech enabler provides you with the opportunity to develop speech enabled applications. Ericsson Labs provides the speech synthesis engine which can translate text to audio data. Servlet lets you cache generated audio, so locally saved files will serve the subsequent requests. How to use it: a) copy ttsPackage.jar into WEB-INF/lib directory b) describe TTS servlet in your web.xml file. You have to provide the following initial parameters: key - describes your development key from Ericsson Labs
<servlet> <servlet-name>ELTTSServlet</servlet-name> <servlet-class>com.jsos.ericsson.TTSServlet</servlet-class> <init-param> <param-name>key</param-name> <param-value>your_development_key</param-value> </init-param> </servlet> c) describe a mapping for this servlet: <servlet-mapping> <servlet-name>ELTTSServlet</servlet-name> <url-pattern>/servlet/TTS</url-pattern> </servlet-mapping> And now you can use it. Servlet accepts one request parameter: t - describes a text for converting to audio. For example: http://your_host/servlet/TTS?t=Hello+Java For downloading: elTTSPackage.jar See also JSOS - the largest collection of servlets and filters.
|
Also in JSOS:
|