Java text-to-speech Control

Hai Java Guys,
Anybody know how to convert text to speech using java api like direct text to speech control in VB.If any body know solution for this please let me know..thanks in advance...
with cheers
Basha

Yes, try the Java Speach API
http://java.sun.com/products/java-media/speech/
100% Implemenation here:
http://sourceforge.net/projects/freetts/
mike

Similar Messages

  • How to make a tts text-to-speech keyboard shortcut

    Hi,
    How do I make a tts text-to-speech keyboard shortcut
    to control the OSX "Speech" available as a contextual menu
    when you right-click selected text in Safari, TextEdit and other native apps
    *Speech > Start Speaking*
    *Speech > Stop Speaking*
    I can get this far:
    *System Preferences > Keyboard > Keyboard Shortcuts >*
    I have low-vision and need this on as many as possible or all text running on my computer.
    Less important: The "Speech" contextual menu is not available right-clicking text in Google Chrome. I could sure use it there too.
    THANKS!

    If you want it turned on permanently open Universal Access preferences, click on the Seeing tab, turn on VoiceOver. Click on the VoiceOver Application button for more configuration options.
    There's also a shortcut option for TTS in the Speech preferences.

  • Text-to-speech engine is not working

    when I want to use 'read out loud' in adobe reader and  foxit , I'm get no sound, I have similar problem in babylon that using TTS engine of OS.
    I'm using windows 8.1 64 bit.
    Do not get any error, but when play would have no sound.
    I previously didn't have any problem with these softwares.
    really need this functionality, please help me.
    Babylon support
    told me::
    Babylon uses a free text-to-speech engine that was developed by Microsoft and is part of Windows OS. please check with Microsoft support , why your text-to-speech engine is not working.

    Hi,
    If you go to the Start Screen, search for "Narrator" within All Apps and click it, what happens?
    In addition, please follow the steps below to check Speech Properties if there is anything wrong with it.
    Control Panel\Ease of Access\Speech Recognition\Advanced speech options
    Roger Lu
    TechNet Community Support

  • Is there a way to specify text-to-speech to dictate a specific line or..

    Hi guys,
    Is there a way to specify text-to-speech to dictate a specific line or page in a pdf file?
    In fact, it would be cool if text-to-speech highlighted each word that is being spoken through out the document during dictation and you could rewind, pause or fastforward the speech in real-time. Is this feature available? if not, can anyone recommend any other programs that can do this?
    thanx in advance

    Is there a way to specify text-to-speech to dictate a specific line or page in a pdf file?
    Yes!
    With fully modern Cocoa applications (like Safari, Preview, TextEdit, and Mail) you can select the line or page and then from the application menu > Services > Speech > Start Speaking Text
    You can also select and then Control-Click on the selection and then pick Speech > Start Speaking Text from the contextual menu. (Works with Safari, TextEdit, and Mail, but not Preview for PDF.)
    In fact, it would be cool if text-to-speech
    highlighted each word that is being spoken through
    out the document during dictation and you could
    rewind, pause or fastforward the speech in real-time.
    That would be cool. Are you looking for an interface enhancement, or would a talking book reader with these features be acceptable?
    Is this feature available?
    No, but you can get somewhat close to this ideal by using VoiceOver and checking Show Caption Panel.
    if not, can anyone recommend any other programs that can do this?
    I have had fair success with the Text Help Read & Write Aloud products.
    http://www.texthelp.com/rwm.asp?q1=products&q2=rwm
    eMac 1.42   Mac OS X (10.4.6)   I paid the going Windows price for a screen reader and got a free computer!

  • Can't hear text-to-speech through USB DSP headset

    MBP5,3 OSX10.7.1
    Using a noise canceling Plantronics USB headset (DSP-500), I've noticed that text-to-speech audio disappears (or is badly garbled) when  played through the headset. Interestingly, changing voices among several choices in the Speech preference pane determines whether the voice is completely absent, or badly garbled (very slow). Audio is fine via speakers or via earphone jack, but when played through USB I get nothing. Using CLI "say" command in terminal also hangs. As soon as USB jack is pulled, the command completes.
    I think it has something to do with the DSP in this particular headset (noise canceling) but I don't have a non-DSP headset handy to check this. Strange part is that this was not an issue with Snow Leopard.
    It would be nice to be able to use headset for this audio as I use it for everything else in a noisy environment. Can anyone verify that this is not a problem with other USB headsets before I resort to another purchase?

    Thank you. You're right, I didn't see the exact location you were describing: I went to Dictation & Speech
    I tried to change it again and it wouldn't let me change it back to control + v so left it as control + a.
    I did as you said (below), it spoke in Pages, so thank you.
    But then I went back to Dictation & Speech to make them the same:
    Tested in Pages... 'BEEP!' So I set it back to Control + A.
    So now Control+A speaks as it used to - able to start and stop speech - only cannot be used in iWork apps.
    And Control+S starts speaking in any app, but does not stop speaking unless I press Control+A. So...
    Thank you, I guess you solved my problem, but now I have two sets of combinations for speech.
    Control + A (Chrome, Finder, etc) start or stop speech
    Control + S (Any app) start speech
    I tried inputing 'Stop Speaking' in Shortcuts, but to no avail...

  • Text to speech converter

    Hello,
    I'm doing a project on text to speech converter using java and i'm very confused. What speech engine should i use? and how do i use it with java? i've downloaded javax package but when i run the sample codes hello world from Java speech api, it does work n i'm geting compiling errors saying tht package javax.speech does not exist.
    plz i badly need help to clear my confusion.
    thanks
    muskaan

    I would like to add a ability to my website http://www.artikelpedia.com whitch is in deutch language to be translated online from Germay to English. I have some pages now in english: http://www.artikelpedia.com/artikel/englisch/9/englisch5.php deutsch: http://www.artikelpedia.com/artikel/deutsch/27/deutsch2.php and franch: http://www.artikelpedia.com/artikel/kunst/2/kunst5.php
    but i wolud like to offer to my visitors ability to translate this pages from one language to another.
    For any sugestions about price and other facility of using java for thi please reply

  • I need a Text to Speech conversion program

    Hi everyone,
    I need a program for conversion of text to speech(TTS) in java. If you have this program or website address. please send me as much fast as possible

    Okay, I wrote this a looong time ago with intentions to only use as a joke (sorry if it is not well structured)...
    I turn the speakers up very loud in my cubicle and make my computer call out to other people in the office... "Help Help, someone help me... " or "Joe... why do you abuse me so?" you get the idea... hehe.. anyway, two Classes: Gui and SpeechModule. Enjoy, I have. : )
    GUI
    import javax.swing.JFrame;
    import javax.swing.JButton;
    import java.awt.BorderLayout;
    import oracle.jdeveloper.layout.XYLayout;
    import oracle.jdeveloper.layout.XYConstraints;
    import java.awt.Insets;
    import javax.swing.JTextField;
    import javax.swing.JTextArea;
    import javax.swing.JScrollPane;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.event.WindowListener;
    import java.awt.event.WindowEvent;
    public class Gui extends JFrame  {
         protected SpeechModule speechModule = new SpeechModule();
      JButton cmdSpeak = new JButton();
      XYLayout xYLayout1 = new XYLayout();
      JScrollPane jScrollPane1 = new JScrollPane();
      JTextArea txtWords = new JTextArea();
      JTextField txtPitch = new JTextField();
      JTextField txtShift = new JTextField();
      public Gui() {
        super("Java Speech"); 
        try {
          jbInit();
        } catch(Exception e) {
          e.printStackTrace();
      public static void main(String[] args) {
        Gui gui = new Gui();
        gui.show();
      private void jbInit() throws Exception {
        this.getContentPane().setLayout(xYLayout1);
        this.addWindowListener(new java.awt.event.WindowAdapter()
            public void windowClosing(WindowEvent e)
              this_windowClosing(e);
        cmdSpeak.setText("Speak");
        cmdSpeak.setActionCommand("cmdSpeak");
        cmdSpeak.setMargin(new Insets(0, 0, 0, 0));
        cmdSpeak.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              cmdSpeak_actionPerformed(e);
        xYLayout1.setWidth(454);
        xYLayout1.setHeight(327);
        txtWords.setText("Hello. Hello.  Testing  one  two  three.");
        txtWords.setSelectionEnd(1);
        txtPitch.setText("10");
        txtShift.setText("100");
        jScrollPane1.getViewport().add(txtWords, null);
        this.getContentPane().add(txtShift, new XYConstraints(40, 260, 55, 25));
        this.getContentPane().add(txtPitch, new XYConstraints(40, 220, 55, 25));
        this.getContentPane().add(jScrollPane1, new XYConstraints(50, 40, 360, 150));
        this.getContentPane().add(cmdSpeak, new XYConstraints(160, 230, 75, 25));
        this.setSize(600, 400);
      void cmdSpeak_actionPerformed(ActionEvent e) {
        System.out.println("pitch" + Float.valueOf(txtPitch.getText()).floatValue());
        System.out.println("pitchShift" + Float.valueOf(txtShift.getText()).floatValue());
        speechModule.setPitch( Float.valueOf(txtPitch.getText()).floatValue() );
        speechModule.setPitchShift( Float.valueOf(txtShift.getText()).floatValue() );
        speechModule.speak(txtWords.getText());
      private void this_windowClosing(WindowEvent e)  {
        System.exit(0);
    SpeechModule
    import com.sun.speech.freetts.Voice;
    import com.sun.speech.freetts.audio.JavaClipAudioPlayer;
    import com.sun.speech.freetts.en.us.CMULexicon;
    public class SpeechModule {
         public static Class voiceClass = null;
         static {
              try {
                   //voiceClass = Class.forName("CMUDiphoneVoice");
                   voiceClass = Class.forName("com.sun.speech.freetts.en.us.CMUDiphoneVoice");
              } catch (ClassNotFoundException cnfe) {
                   cnfe.printStackTrace();
         private Voice voice = null;
         public SpeechModule() {
              try {
                   this.voice = (Voice) voiceClass.newInstance();
          voice.setPitch(100);
          voice.setPitchShift(10000);
              } catch (InstantiationException ie) {
                   ie.printStackTrace();
              } catch (IllegalAccessException iae) {
                   iae.printStackTrace();
              voice.setLexicon(new CMULexicon());
              voice.setAudioPlayer(new JavaClipAudioPlayer());
              voice.load();
      public void setPitch(float n){
          voice.setPitch(n);
      public void setPitchShift(float n){
          voice.setPitchShift(n);
         public void speak(String value) {
              voice.speak(value);
    }

  • Tips for speaking text (text to speech)

    I have just added these notes to an OS X tips page that I created sveral years ago:
    Visually impaired users should find the built-in Text-to-speech technology of OS X useful. Go to System Preferences/ Speech/ Text to Speech. Tick the "Speak selected text.." box. Enter a keyboard shortcut (I use Control-F19 as the keys are diagonally opposite on my keybaord. You will need to select text for this to work. To select all text from a document press Command-A. Then press Control-F19 to start the computer speaking. Unfortunately Microsoft apps like Word (2004) do not have this speech capability. You will need to copy (Command-C) and paste (Command-V) the text into Text Edit before invoking Text to Speech. PDF documents in Preview and email in Mail work fine.
    The tips page is:
    http://users.tpg.com.au/aoaug/mac_osx.html
    Having a temporary patch over one eye I thought I should invoke this technology but found it difficult to locate some basic tips on the net. If you have some good links/tips please post them on this thread.

    It's a bug. I have submitted feedback on this point to Apple. I really hope they take notice, because the male voice is horrible.
    There is a workaround though - go to Settings/General/International/Region Format, and change the region to "Isle of Man".

  • Slow down text to speech voice

    I am using text to speech on Captivate 4.  Essentially, I love the text-to-speech feature; however, sometimes the voice is just too fast.  I do not want to add pointless punctuation because I use the same text for the Closed Captioning.  Does anyone know how to slow down the voice (Paul) so people actually can follow what he is saying.
    Thanks !!

    Adobe implemented VTML in Captivate 4, which is a mark up language for Text to Speech.
    It looks something like this (The color added for emphasis):
    Lorem ipsum dolor sit amet \pause, consectetur \speed=30 adipisicing elit \speed=50 \pause, sed do eiusmod tempor \speed=30 incididunt \pitch=20 ut
    The \pause, creates a half second pause and and a \pause. creates a full second pause
    The \speed= changes the speed for all the text that comes after the tag in that segment.  In this case I took it down to 30 and then brought it back up to 50 before the pause and then down again at the end.
    Thte \pitch= changes the pitch of the speech.  I made it very deep at the end.
    Here's a more in depth explanation of some of these tage, taken from the Adobe Captivate blog:
    The following commands allow the quality of the output voice to be  controlled by modifying its rhythm, intonation, volume and timbre. The  output speech is modified from the word following the command, up until  the end of the prompt.
    Speed Control: Allows the speaking rate to be modified, expressed in an abstract scale 0-100.
    \speed=<num>
    Example: 
    \speed=60 (Scale 0-100)
    \speed=60 This text is read at a faster speed.
    Pitch Control: allows the fundamental frequency (tone or pitch) to be modified, expressed in an abstract scale 0-100
    \pitch=<num>
    Example:
    \pitch=60 (Scale 0-100)
    \pitch=60 This text is read at a 60Hz frequency rating.
    Volume Control: allows the volume (loudness) to be modified, expressed in an abstract scale 0-100 or in decibels (dB).
    \volume=<num>
    Example:
    \volume=60 (Scale 0-100)
    \volume=60 This text will be read at a 60 decibel rating.
    Timbre Control: allows the voice timbre to be modified by a shift in frequency, expressed in an abstract scale 0-100.
    \timbre =<num>
    Example:
    \timbre=60 (Scale 0-100)
    \timbre=60 This text is read at a timbre value of 60.
    If you haven't installed the improved voice to text voices, get them off of the "Extras" folder on the Captivate install CD or download them here:
    http://www.adobe.com/cfusion/tdrc/index.cfm?product=captivate
    Look for the install links for windows and mac below the trial link.
    /Benjamin

  • Can I stop the slide audio (text to speech) when a quiz feedback caption with audio appears?

    Hi there, We use text to speech on all our slides, however there is a problem we have been unable to solve.  If we have audio on a quiz slide this continues to play when the feedback caption comes up.  This means that if a learner clicks the answer quickly they hear the slide text and the caption text on top of each other.  How can I stop the slide audio if the feedback caption appears.  We have tried advanced actions to "stop triggered audio" and experimented with invisible text captions that have the audio added but have not solved it so far.  Does anyone have any idea how to resolve this? Any help gratefully received, Many thanks Janet
    PS We are using Captivate 8 with the installed Text to Speech voices

    This is currently a common problem with audio in quiz slides of Captivate modules.
    The configuration options for interactive objects on quiz slides to not allow the same level of control for audio playback that you have with normal interactive objects on other slides.  (e.g. being able to stop other audio when something is clicked).
    The Stop Triggered Audio action is often misunderstood.  But as its name clearly indicates, it really only applies to stopping an audio clip that was TRIGGERED by another advanced action.  That doesn't apply to background audio, slide level audio, or object level audio.
    My suggestion is that you go back to your design and work out which of the two audio clips (the slide or the feedback audio) you can do without.  Maybe your learners don't need them quite as much as you think.

  • Text to speech on bluetooth not working with new update, why?

    Updated to ios7, now text to speech in car doesnt work? Why

    Hi,
    If you go to the Start Screen, search for "Narrator" within All Apps and click it, what happens?
    In addition, please follow the steps below to check Speech Properties if there is anything wrong with it.
    Control Panel\Ease of Access\Speech Recognition\Advanced speech options
    Roger Lu
    TechNet Community Support

  • Text to Speech Narration

    In my project, I have imported some Powerpoint slides and I
    am attempting to add a narration feature to them. From my reading,
    I gather I have about two options. The first is to use a text to
    speech engine to narrate each slide. Some of the questions I have
    concerning this are: -
    1) How would I be able to turn it off and on as required?
    2) How do I substitute a voice of my own choosing to do the
    narration instead of Microsoft Sam
    The second option involves importing WAV files and converting
    them to SWA format . My questions are: -
    1) How do I create WAV files in the first place from
    Powerpoint files or the existing authoware files I have created? Is
    there a program you can recommend to do that?
    2)What are dangers in using this approach?
    3) How do I turn the narration on and off as required.
    I would appreciate your help

    I've never integrated text-to-speech so not sure on your
    first
    questions. From past questions/answers here, I gather it's
    not a trivial
    thing to do. I'd imagine it wouldn't be difficult to turn
    on/off but
    perhaps a bit more difficult to choose the voice (though
    perhaps not in
    light of getting everything else setup). I'd search past
    posts in this
    forum and the AwareList
    http://ls.kuleuven.ac.be/cgi-bin/wa?A0=aware
    to look for similar questions.
    For the second part, you can record audio with any such tool
    you prefer.
    A decent free one is Audacity:
    http://audacity.sourceforge.net
    I'm pretty sure PPT has voice recording functionality, but
    I've never
    done it so not sure how to get the audio files out of PPT for
    importing
    into Authorware. I also don't know if you can control the
    recording
    settings in PPT, which could mean very large files, though if
    you
    convert them to SWA (once you get them out of PPT), that
    shouldn't
    matter so much.
    I always have our audio professionally recorded at 22khz,
    16bit, mono,
    then either import that directly into Authorware as is or
    convert it to
    SWA or MP3... You don't have to use SWA.
    I wouldn't say there are any dangers I know of...
    To turn it on and off, you can just setup a perpetual
    interaction that
    has a short audio file that will 'cut off' the current audio,
    then use
    the ActiveIf option in each audio icon to determine whether
    to play the
    file or not (via whatever setting/variable you set in that
    perpetual
    on/off interaction).
    It's not terribly complicated, though it may sound so!
    Erik
    Technovators wrote:
    > In my project, I have imported some Powerpoint slides
    and I am attempting to
    > add a narration feature to them. From my reading, I
    gather I have about two
    > options. The first is to use a text to speech engine to
    narrate each slide.
    > Some of the questions I have concerning this are: -
    > 1) How would I be able to turn it off and on as
    required?
    > 2) How do I substitute a voice of my own choosing to do
    the narration instead
    > of Microsoft Sam
    >
    > The second option involves importing WAV files and
    converting them to SWA
    > format . My questions are: -
    > 1) How do I create WAV files in the first place from
    Powerpoint files or the
    > existing authoware files I have created? Is there a
    program you can recommend
    > to do that?
    > 2)What are dangers in using this approach?
    > 3) How do I turn the narration on and off as required.
    >
    > I would appreciate your help
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/group/macromedia.authorware

  • Chinese text to speech

    dear all,
    I am trying to include a text to speech functionality to a java application, basically reading aloud some text.
    I have looked around and I can't figure out what I need to do. Also, I would like to include some of those 'natural' voices and I am not sure which of the many speech SDKs (IBM, FreeTTs, etc..) can do what I need.
    If anyone has had similar problem and could give me some hints on where to start..thanks a lot..

    This site may help:
    http://www.cjkware.com/products.htm

  • Issue in wrapping of text in TextEdit control

    Hi,
    I'm developing an occasionally connected application using NetWeaver Mobile 7.1. In one of the view, I use TextEdit control to display the address information where the address is a multiline text data. During testing of the application in the simulator, the wrapping of text in the TextEdit control is not working properly. The wrapping property of TextEdit control is set to "soft" but the text is not getting wrapped. Even I tried the other option "hard" wrapping but it throws some error while building of the application.
    Please suggest a solution to do wrapping of text using TextEdit control.
    Thanks in advance.
    Regards,
    DVR.

    Hi Nipun,
    The rows and cols properties are already set and also the data is multiline but the text is not wrapping.
    Say the properties of a TextEdit control rows is "4" and cols is "30" was set. The data is also a multiline text say each line has more than 30 characters. During wrapping of text with in TextEdit control the first row should have only 30 characters and rest should be wrapped off to the next row and so on.
    But during execution what happens is the text is not getting wrapped instead the first row itself has all the characters of first line of the text and second row has next line of text and so on. The text in a row can be scrolled through using horizontal scrollbar.
    My need is the horizontal scroll bar should not come and the text need to the wrapped off with number of cols specified.
    Regards,
    DVR

  • Text to Speech does not appear to be working in the new version of Pages

    I have tried several ways to get the text to speech feature to work with the new version of Pages, but haven't yet had success. I use that feature in editing my articles alot, so I guess I'll stick with Pages 09 for now.
    Anyone found a work around?

    Nope, working as intended.
    Pages 5 breaks accesibility completely.
    If you're visually-impaired DO NOT UPDATE.

Maybe you are looking for

  • Regarding user-exit for customer return order in sales order creation

    Hi, My problem is when sales order type ZRE(Customer return) is created with refrence to Invocie i have to check the quantity in the return order is less than the original invoice or not.If quantity in return order is greater than invoice quantity th

  • Template behaving strangely

    I'm making a site on a Mac with DW CS3 using a DW template into which I put a vertical spry menu. Yesterday, the spry menu css properties suddenly disappeared from the CSS window while I was working on a page, turning the menu into a column of raw te

  • How to turn off versions in Keynote??

    I use Keynote all the time in my work, and my files can be quite large--sometimes exceeding 1 gig in size.  To make a long story short, yesterday at the Apple Store, we discovered, after two Apple guys were tenacious enough to hang in there with me,

  • Extracting Error in 10g database for windows

    Friends, I downloaded the 10g database from http://download.oracle.com/otn/nt/oracle10g/10201/10201_database_win32.zip after downloading i tried to unzip it. It throwed me this error while unzipping ================ D:\Downloads\10201_database_win32.

  • AirPort Utility 6.0 DHCP client table?

    Hey there, I just started using the 6.0 version of the AirPort utility.  It's fancy with pictures and all . . . but . . . How do I get to a list of the DHCP clients?  It eludes me.  In the last version (5.6 I believe), I would select my main AirPort