1 package com.sun.speech.freetts.en.us.%VOICENAME%;
3 import com.sun.speech.freetts.en.us.CMUDiphoneVoice;
4 import com.sun.speech.freetts.en.us.CMULexicon;
5 import com.sun.speech.freetts.VoiceDirectory;
6 import com.sun.speech.freetts.Voice;
7 import com.sun.speech.freetts.Gender;
8 import com.sun.speech.freetts.Age;
9 import java.util.Locale;
13 * This voice directory provides a US/English Diphone voice imported
17 public class %CLASSNAME% extends VoiceDirectory {
19 * Gets the voices provided by this voice.
21 * @return an array of new Voice instances
23 public Voice[] getVoices() {
24 // default to the generic lexicon
25 CMULexicon lexicon = new CMULexicon("cmulex");
27 // Change voice properties here
28 Voice voice = new CMUDiphoneVoice("%NAME%",
29 Gender.%GENDER%, Age.%AGE%, "%DESCRIPTION%",
30 Locale.US, "%DOMAIN%", "%ORGANIZATION%",
32 this.getClass().getResource("%VOICENAME%.bin"));
34 Voice[] voices = {voice};
39 * Print out information about this voice jarfile.
41 public static void main(String[] args) {
42 System.out.println((new %CLASSNAME%()).toString());