SHARE
TWEET

Untitled

a guest Sep 21st, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top