Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.sun.speech.freetts.Voice;
- import com.sun.speech.freetts.VoiceManager;
- public class Main {
- public static void main(String[] args) {
- System.out.println();
- System.out.println("------Voice Demonstration-------");
- VoiceManager vm = VoiceManager.getInstance();
- Voice voice = vm.getVoice("kevin16");
- voice.allocate();
- System.out.println("Name: " + voice.getName());
- System.out.println("Description: " + voice.getDescription());
- System.out.println("Organization: " + voice.getOrganization());
- System.out.println("Age: " + voice.getAge());
- System.out.println("Gender: " + voice.getGender());
- System.out.println("Rate: " + voice.getRate());
- System.out.println("Pitch: " + voice.getPitch());
- System.out.println("Style: " + voice.getStyle());
- System.out.println();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement