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);
}

Similar Messages

  • I am thinking of buying a iPad but my main desktop machine uses Windows 7 and MS Office.  How easy or difficult is it to transfer data files between the iPad and Windows?  Are there obvious problems or the need for some form of conversion programs?

    I am thinking of buying a iPad but my main desktop machine uses Windows 7 and MS Office.  How easy or difficult is it to transfer data files between the iPad and Windows?  Are there obvious problems or the need for some form of conversion programs?
    Many thanks for any advice.
    David

    You don't need conversion programs, iTunes can copy most of your content over to the iPad via the file sharing section, and some apps also support Dropbox, email attachments, transfer via your wifi network. There are a number of apps that you can get that support Microsoft office file (microsoft don't make an app versions of their software) e.g. from Apple there are Pages (word support), Numbers (excel) and Keynote (powerpoint), and from third-parties there are apps such as Documents To Go and QuickOffice HD

  • I need a text-based telnet/putty program

    Hi all,
    I need a telnet/putty text-based client for connecting to server ports. I don't like graphical putty because it doesn't save my configurations everytime it closes down, so I need something text-based/console-based that would make it all a whole lot easier for me to recall the last string entered.
    Any suggestions? Doesn't matter if it's not an archlinux package.

    Well... there's "putty"...
    ( # pacman -S putty )
    And then you can just use the "tools" without any frontends. I just use ssh (pacman -S openssh)...
    me@command;) wrote:# ssh user@host
    > enter password: ***
    host: # echo "hello host!"
    host: > hello host!
    but I guess it should be about the same with telnet... or not...
    http://wiki.archlinux.org/index.php/Telnet
    edit: Wait, after reading that again I don't get what your problem is any more - do you mean "telnet/ssh" instead of "telnet/putty"? What settings do you want to preserve / what do you want to automate? If you just don't want to enter a password for ssh every time, you could set up an ssh key.
    Last edited by whoops (2009-04-06 21:54:56)

  • Text to Speech conversion - Does anyone recommend any software?

    I am currently looking at a way to convert the written text in my captivate modules into spoken word without recording a voice over. Ive only just started digging into it and wondered if Captviate itself has a way of doing this, or if any kind of 3rd party applications plug into Captviate to do it? Im on mac if that helps.
    If neither of the above is possible, does anyone recommend any text to speech tools. I am really after something more along the lines of Siri etc rather than the old school more robotic sounding converters. I really am after something more natural and more believable as human.
    Any help would be greatly appreciated.
    Jay

    I have just discovered the in built content. The standard ones arent great so I have installed the Neospeech content. Ive just posted a problem I have encountered with those though. I would prefer an UK English male as its to represent a character I have created but I could settle with Paul if I cant find a better alternative.
    I had considered voicing it myself but I dont want the character to become me or vice versa as the content will be used in my organisation and people will associate him with me.

  • Text to speech conversion

    i am workign with oracle /dev and i want my text in field to be converted into speech. can i do this?
    i ev developed a queue managemnt systema nd i want teh token number and counter be spoken by the system when appear on teh screen. is it possible?
    please help
    regards
    zohra

    very helpful if you can send me the codeHow much you can able to pay for that?

  • Variant Conversion Program

    Hi,
    We are upgrading from 4.5B to ECC5.0 .
    I was just wondering if we need to run the variant conversion program after the upgrade. What's the program name?
    Thanks,
    Anuranjan

    I've used RSVARDOC before. If a program has changed so that the selection screen has different attributes that make the old variants unusable, this program will try to adjust the variants so that they works for the new screen.
    Don't run it for all programs. It will take a <b>long</b> time. I've run it as necessary for a single program when variants stop working.
    Rob

  • I need to reprogram the delete and enter key to the left side of a external keyboard for the ipad mini. don't need the caps/lock or ctrl key and due to an injury my daughter can only use her left hand to type. She is using a text to speech app to verbaliz

    I need to reprogram the delete and enter key to the left side of a external keyboard for the ipad mini. I don't need the caps/lock or ctrl key. Due to a brain injury my daughter can only use her left hand to type. She also uses a text to speech app to verbalize all of her needs since her speech isn't intelligible any longer either. And her vision was significantly affected also, so the keyboard has to be mounted about 6 inches from her face. So to reach across the keyboard with her left hand to the right side delete and enter button is physically difficult and causes typing errors, which cause people to not understand what shes trying to say.
    The best keyboard so far is the Zagg folio mini. I just had to make stickers to enlarge the letters on the key buttons.
    Does anyone know how I can reprogram these two keys? Or where I can buy a wireless mini keyboard for Ipad made for lefthanders with these two functions on the left side. I have searched for days and days. It's sooooo important to me that she be able to contribute her voice again. Imagine if you got in a car accident and couldn't speak clearly any longer, but understood everything still. Thanks for any help and suggestions you all take the time to share with me. I really appreciate the kindness of strangers to help me help my daughter.
    Sami's mom

    Sami\'s mom wrote:
    I need to reprogram the delete and enter key to the left side of a external keyboard for the ipad mini.
    You cannot.

  • How can I get my text to speech program NVDA to work on Adobe Digital Edition 2.0?

    Adobe Digital Edition 2.0 text to speech program NVDA is suppose to work. How can I get it to work?

    In short, no. iAS is a 2.2 servlet container. You would have to backport your application to version 2.2 of the servlet spec.

  • Need advice about text to speech

    It doesn't appear that the built in text to speech functionality will do what I need it to. The voice I need for a project is the popular Steven Hawking voice. I need to to be able to speak back a script that I've written and be able to record it in some sort of audio format that I can use on the internet.
    Does anybody have any advice?
    Thanks.

    Really? I don't have Snow Leopard yet, but under Leopard both Fred and Bruce (well more Fred) sound a lot like what I remember Steven Hawking sounds like. Maybe slow it down one tick below "normal."
    Have they removed those voices from SL?
    As for recording I think you could use SoundFlower and Audacity. Both are free -- not sure if either have been updated for SL yet....

  • Text to Speech programs

    I have a HP TouchSmart 520 and I have a two text to speech programs downloaded on my computer. However, I don't have sound on these programs. I did in the past before I did an update sometime ago. Can someone help me with this issue?

    Hello Gwenna,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that your two text to speech applications do not have audio and that they did, but after an update no longer  do. I would be happy to assist you, but first I would encourage you to post your product number for your computer. I am linking an HP Support document below that will show you how to find your product number. As well, if you could indicate which operating system you are using. And whether your operating system is 32-bit or 64-bit as with this and the product number I can provide you with accurate information.
    How Do I Find My Model Number or Product Number?
    Which Windows operating system am I running?
    Is the Windows Version on My Computer 32-bit or 64-bit?
    Please re-post with the requested information and I would be happy to provide you with assistance. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Text to Speech(mp3) conversion in flash

    Hi ,
    I want to convert text to Speech without using Google api.So that I can run the application offline.
    So is there a way to convert  text to Speech (mp3) and upload the converted mp3 file in a folder in flash as3.
    Thanks.

    I have found that Text-to-Speech works just fine in Yosemite's Preview application — without changing any standard settings. I added additional voices, and it works equally well with these too. You should not expect Text-to-Speech functionality with text that is incorporated into a graphic though.
    Both Edit > Speech  > Start Speaking, and after enabling in Text-to-Speech Preferences, Speak selected text when the key is pressed (option+Esc).

  • Suggestion for IDoc creation and conversion program

    Hi Experts,
    I want to send the data from SAP to Non-SAP System. The Non-SAP System needs the text file with delimiter.
    So which way is better to send the data.
    Via a IDOc with ALE      OR
          Just download the file by the program and send it to Non-SAP System.
    Please suggest me, which option is best and cheapest and need the advantage and disadvantage for both the ways. And also how many hours will took to implement each scenarios.
    As per my knowledge, The Idoc with ALE will took 3 Days to build the setup and prepare the IDoc and Conversion program will took 1.5 days to prepare the file.
    Note:There are maximum 8 fields needs to send to the Non-SAP System from SAP. So not much information.
    Thanks in Advance,
    Warm Regards,
    Vijay

    Hi Gangisetty,
    For less no. of fields transfer there is no need at all to go with ALE.
    If there is some Standard Master Data to be transfered then IDOC comes very handy.
    But if requirement is to fetch data from different tables and some formatting before sending to Legacy System then you should go with conversion Report which will fetch all required data, format or manipulate as per requirement and then using outbound control it can send the flat file Common Shared FTP folder.
    Using Conversion Report which will required less development time and you can schedule it as per bussiness requirement.
    Using ALE-IDoc may consume some time as you need to create Partner Profile, Logical System etc and it might be required to have PI(XI) as middleware for some internal formatting etc.
    Though, Both ways are possible it's upto your call which way to go.
    As per info given by you i would suggest to by Conversion Report Method.
    Regards,
    Vivek

  • Text to voice conversion

    hi
    i need a codings for text to voice conversion in java
    please help me.

    Thank you for the 8th exciting version of this question.
    http://java.sun.com/products/java-media/speech/

  • Add-ons Manager / Extensions / Text-to-Speech doesn't work

    I use Natural Reader, a text-to-speech program.
    It won't let me highlight the text in Firefox Add-ons, so Natural Reader can read it to me.
    Some pages like snopes and enviroreporter . . . I have found that I need to disable javascript in order to make the text highlightable . . . you go into about:config . . . and double-click to disable: javascript.enabled
    So, I was looking into this, and found the NoScript plugin that has javascript disabled by default, and all other scripts on a page - this looks good for added security, so I will use it . . .
    But now I see this in Add-ons, where I can't highlight the text. Any idea what's going on? Thx.

    RightToClick . . . I don't see this in my Add-ons bar, or when I right click a page
    . . . the description for an Add-on is still unhighlightable . . . even if I right-click it with this Add-on . . . should I be able to highlight it? Or does it have some other way to make itself un-copyable, besides javascript?

  • I need help finding a workable web program that is not CSS based.  I tried IWeb and it just won't work for me.  Way too limiting.  I've been using a 12 year old copy of Macromedia Dreamweaver, but the new Dreamweaver is CSS

    Been building web pages for nearly 20 years, starting with GoLive.  Went to Dreamweaver about 12 years ago, the Macromedia version.  Tried going to iWeb when it came with a new Mac, but found it way too limiting with it's CSS template base.   Unknowlingly, I then bought a new copy of Dreamweaver.   Ooops, Adobe had bought Macromedia and Dreamweaver, too, is now CSS based, which for my money makes it useless to anyone who likes simplicity.   Now I find that even iWeb has been discontinued.  I was told yesterday that Apple doesn't have a web program any more.   At 12 years old, I just don't think it's practical to try to load my old Macromedia Dreamweaver into the new Mountain Lion (I'm getting a new Mac), though it is running, barely, in Snow Leopard.
    I need to find a web builder program that will permit simple construction of educational pages, nothing fancy, nothing artistic, just create a page, give it a color, type or drag in text, insert a table, insert pix in the table blocks, add text under the pix... done!    I should note that I am not looking to build traffic.  I teach simple things for free and people who want to learn those things (antique sewing machine repair, quilting, building longbows) find me.
    I've downloaded trial versions of half a dozen or so programs and looked at maybe 20 more, but all are either CSS based and drive me insane with requirments for constantly making rules and template models, and/or require that you base your web presence in their server.   Also, many will not work with pages built in other programs.  I maintian a volume of over 1000 web pages, many requiring regular updating, and they have been with the same server for more than 15 years.  I'm not about to change.
    So, anybody know a simple, old fashioned web builder that's happpy on a Mac platform?
    Captain Dick

    Although not supported anymore, iWeb does still function using Mountain Lion...
    http://www.iwebformusicians.com/iWeb/mountain-lion.html
    ... and you can purchase it from Amazon.
    Start with a blank page using the Black or WHite template.
    All modern websites use CSS and there are thousands of free templates to be had if you want to use a code entry style application. You will need to go this route if you want to create a site that is viewable on mobile devices although you can create an iPhone version using iWeb...
    http://www.iwebformusicians.com/iWeb/Mobile-iWeb.html
    Search this forum for numerous topics about iWeb alternatives.

Maybe you are looking for

  • Problem with File CC filecontent conversion

    Hi, all iam doing file content conversion scenarion . following this blog /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2 file->file in my CC adapter type: sender Transport

  • Form is not displayed in form manager

    hi, i am trying to create a simple workflow, and created a form in acrobat 8 designer. i saved it as .xdp. i created a category and added my form into this category through the admin ui. after log in into form manager i see the category, but my form

  • How to expand 'Move to' list shown in Bridge

    How is the list of folders/drives in 'Move to' shown when I right-click on an image? Is it possible to modify this list to show my most-recently used folder? Thanks!

  • Managing Apps in the cloud?

    I can see many Apps in the Itunes Store. I have hidden the ones that I don;t use. There is a download option as well. WHat am I supposed to do with these apps? Download them, hide them?, I can't seem to arrange my screens any longer.

  • AP1121 can'T join WLC 2504

    Hi there, It's me again... same devices which making trouble. I have an allready configured WLC 2504 running in the network. Every LAP i add to the network joins imidiatly to the Controller. But not the AP1121G AP. It fails the Handshake everytime an