1 package com.sun.speech.freetts.en.us.%FV_VOICENAME%;
3 import com.sun.speech.freetts.en.us.CMULexicon;
4 import com.sun.speech.freetts.VoiceDirectory;
5 import com.sun.speech.freetts.Voice;
6 import com.sun.speech.freetts.Gender;
7 import com.sun.speech.freetts.Age;
8 import java.util.Locale;
12 * This voice directory provides a US/English Cluster Unit voice imported
16 public class ArcticVoiceDirectory extends VoiceDirectory {
18 * Gets the voices provided by this voice.
20 * @return an array of new Voice instances
22 public Voice[] getVoices() {
23 // default to the generic lexicon
24 // (a more specific lexicon may increase performance)
25 CMULexicon lexicon = new CMULexicon("cmudict04");
27 // Change voice properties here
28 Voice voice = new ArcticVoice(
32 "CMU ARCTIC Cluster Unit Voice",
37 this.getClass().getResource("%FV_VOICENAME%.txt"));
39 Voice[] voices = {voice};
44 * Print out information about this voice jarfile.
46 public static void main(String[] args) {
47 System.out.println((new ArcticVoiceDirectory()).toString());