Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2009
    Posts
    1
    Rep Power
    0

    Default Help with Java Speech API (Synthesizer)

    I am new to Speech in Java. Ive made a simple program that can speak using JSAPI. (from cloudgarden). But on listening to the sound quality, Im not very satisfied. The "Mike" or "Mary" voice in Windows Control Pannel sounds much better.

    Now on using the statements,
    EngineList list=Central.availableSynthesizers(null);
    System.out.println(list);
    I am able to see a whole list of various voices on my system.

    [com.cloudgarden.speech.CGSynthesizerModeDesc@4a65e 0 [ engineName=Microsoft, modeName=Microsoft SAPI4, Locale=en_US, running=null ]
    -->com.cloudgarden.speech.CGVoice@1e0cf70 [ name="Brutus, SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_MALE, style=Brutus ]
    -->com.cloudgarden.speech.CGVoice@52fe85 [ name="Mary, SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_FEMALE, style=Mary ]
    -->com.cloudgarden.speech.CGVoice@c40c80 [ name="Mary (for Telephone), SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_FEMALE, style=Mary (for Telephone) ]
    -->com.cloudgarden.speech.CGVoice@110d81b [ name="Freddy, SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_MALE, style=Freddy ]
    -->com.cloudgarden.speech.CGVoice@dbe178 [ name="Mike, SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_MALE, style=Mike ]
    -->com.cloudgarden.speech.CGVoice@1af9e22 [ name="Mike (for Telephone), SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_MALE, style=Mike (for Telephone) ]
    -->com.cloudgarden.speech.CGVoice@b6ece5 [ name="Sam, SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_MALE, style=Sam ]
    -->com.cloudgarden.speech.CGVoice@17ace8d [ name="Female Whisper, SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_FEMALE, style=Female Whisper ]
    -->com.cloudgarden.speech.CGVoice@18eb9e6 [ name="Mary in Space, SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_FEMALE, style=Mary in Space ]
    -->com.cloudgarden.speech.CGVoice@14ed9ff [ name="Mary in Hall, SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_FEMALE, style=Mary in Hall ]
    -->com.cloudgarden.speech.CGVoice@1ca318a [ name="Mary in Stadium, SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_FEMALE, style=Mary in Stadium ]
    -->com.cloudgarden.speech.CGVoice@17a8913 [ name="RoboSoft Six, SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_FEMALE, style=RoboSoft Six ]
    -->com.cloudgarden.speech.CGVoice@1bd747e [ name="RoboSoft Five, SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_FEMALE, style=RoboSoft Five ]
    -->com.cloudgarden.speech.CGVoice@12b3374 [ name="RoboSoft Four, SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_FEMALE, style=RoboSoft Four ]
    -->com.cloudgarden.speech.CGVoice@13f3789 [ name="Male Whisper, SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_MALE, style=Male Whisper ]
    -->com.cloudgarden.speech.CGVoice@1571886 [ name="RoboSoft One, SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_MALE, style=RoboSoft One ]
    -->com.cloudgarden.speech.CGVoice@1c184f4 [ name="RoboSoft Two, SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_MALE, style=RoboSoft Two ]
    -->com.cloudgarden.speech.CGVoice@1ffbd68 [ name="RoboSoft Three, SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_MALE, style=RoboSoft Three ]
    -->com.cloudgarden.speech.CGVoice@ec16a4 [ name="Mike in Hall, SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_MALE, style=Mike in Hall ]
    -->com.cloudgarden.speech.CGVoice@1c29ab2 [ name="Mike in Stadium, SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_MALE, style=Mike in Stadium ]
    -->com.cloudgarden.speech.CGVoice@13a328f [ name="Mike in Space, SAPI4, Microsoft", AGE_MIDDLE_ADULT, GENDER_MALE, style=Mike in Space ]
    , com.cloudgarden.speech.CGSynthesizerModeDesc@66575 3 [ engineName=Microsoft, modeName=Microsoft SAPI5, Locale=en_US, running=null ]
    -->com.cloudgarden.speech.CGVoice@1cd8669 [ name="Microsoft Sam, SAPI5, Microsoft", AGE_MIDDLE_ADULT, GENDER_MALE, style=Microsoft Sam ]
    ]


    How do I use those voices in my program?
    What statements do I use to select the voice I want to from the above list?

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,755
    Rep Power
    19

Similar Threads

  1. speech.properties
    By Parneel in forum Advanced Java
    Replies: 1
    Last Post: 12-30-2012, 02:24 PM
  2. Speech Recognition In Java
    By hackernewbie in forum Advanced Java
    Replies: 6
    Last Post: 01-18-2010, 11:06 PM
  3. Java Speech Processing
    By redvirus in forum CLDC and MIDP
    Replies: 2
    Last Post: 10-03-2009, 12:16 AM
  4. Capture speech and convert it to text in a textbox
    By Cyber Dragon in forum Advanced Java
    Replies: 1
    Last Post: 04-25-2009, 04:55 PM
  5. Java Speech Recognizer
    By Lynx09 in forum Advanced Java
    Replies: 0
    Last Post: 03-30-2009, 08:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •