TTS servlet 1.2


    It is a Java servlet lets you concatenate sound files and streams the final file right to the user. The idea is very simple - for many applications you can create speech (sound file) from the pre-build fragments. E.g. your application informs users about some code (sequence of digits). You can use separate voice files for the digits from 0 to 9 and concatenate them into one sequence. TTS servlet does exactly this. You can provide a list of wav files and servlet will concatenate them into one file.

How to use it:

a) copy ttsPackage.jar into WEB-INF/lib directory

b) describe TTS servlet in your web.xml file:


    <servlet>
     <servlet-name>TTSServlet</servlet-name>
     <servlet-class>com.jsos.tts.TTSServlet</servlet-class>
    </servlet>

c) describe a mapping for this servlet:


   <servlet-mapping>
    <servlet-name>TTSServlet</servlet-name>
    <url-pattern>/servlet/TTSServlet</url-pattern>
   </servlet-mapping>

    the usage is:

    http://your_host/servlet/TTSServlet?list_of_wav_files

List of file here is just commas separated list of concatenated files. E.g.:


 /servlet/TTSServlet?nine.wav,one.wav,one.wav

Alternatively, you can describe your list of files as an initial parameter for this servlet. Parameter's name is list:


    <servlet>
     <servlet-name>TTSServlet</servlet-name>
     <servlet-class>com.jsos.tts.TTSServlet</servlet-class>
     <init-param>
      <param-name>list</param-name>
      <param-value>list_of_wav_files</param-value>
     </init-param>
    </servlet>

and use servlet in this form:


 /servlet/TTSServlet

For JSP integration check out also TTS taglib from Coldtags suite.

    For downloading:  ttsPackage.jar   

  © Coldbeans     Comments?

See also JSOS - the largest collection of servlets and filters.

Also in JSOS: