Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. import com.sun.speech.freetts.Voice;
  2. import com.sun.speech.freetts.VoiceManager;
  3.  
  4. public class Main {
  5. public static void main(String[] args) {
  6. System.out.println();
  7. System.out.println("------Voice Demonstration-------");
  8.  
  9. VoiceManager vm = VoiceManager.getInstance();
  10. Voice voice = vm.getVoice("kevin16");
  11. voice.allocate();
  12.  
  13. System.out.println("Name: " + voice.getName());
  14. System.out.println("Description: " + voice.getDescription());
  15. System.out.println("Organization: " + voice.getOrganization());
  16. System.out.println("Age: " + voice.getAge());
  17. System.out.println("Gender: " + voice.getGender());
  18. System.out.println("Rate: " + voice.getRate());
  19. System.out.println("Pitch: " + voice.getPitch());
  20. System.out.println("Style: " + voice.getStyle());
  21. System.out.println();
  22. }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement