Results 1 to 7 of 7
Thread: Pls help!!
- 02-03-2011, 08:37 AM #1
Member
- Join Date
- Feb 2011
- Posts
- 21
- Rep Power
- 0
Pls help!!
Hi,
my application is to convert text to voice. if i open one text file, it should read the text file in audio speech form. please give me java code for doing this.i need to open a text file which has a audioclip for it and when i press for example the word "hi" it should play the sound.i dont know how to add a audioclip on my program pls help me.
am using freetts to convert text to speech. i followed the instructions given in the following site
IRC Text to Speech with Java - O'Reilly Media
i compiled it and i didnt get any error.
but when i run it gets struck and i couldnt run it from tat on. and am not clear wat is IRC server. i run this in command prompt. should i use any other? in this,,,
java -classpath .;./lib/pircbot.jar;./lib/freetts.jar
SpeechBot irc.freenode.net #irchacks wat is the #irchacks. should i use the same thing while running it? please help me am trying this for long days am not getting. thanks.
- 02-03-2011, 08:55 AM #2
Senior Member
- Join Date
- Dec 2008
- Location
- Kolkata
- Posts
- 280
- Rep Power
- 5
I don't think IRC has got anything to do with text to speech conversion. Java Speech API deals with this. Personally I haven't worked on this, but the following links might help you
Java Speech API Frequently Asked Questions
Code Samples
FreeTTS 1.2 - A speech synthesizer written entirely in the Java(TM) programming languageSwastik
- 02-04-2011, 04:40 AM #3
Member
- Join Date
- Feb 2011
- Posts
- 21
- Rep Power
- 0
Tts
ok thanks.. is there any other way to call audio file for text file. for eg, if i open the text file it should cal the corresponding audio file which is stored already and it shuld read that text file. how to do this pl help me..:(
- 02-04-2011, 06:58 AM #4
Senior Member
- Join Date
- Dec 2008
- Location
- Kolkata
- Posts
- 280
- Rep Power
- 5
Do you mean there would two files stored, one text and another audio. Once the text file is opened, the corresponding audio file is opened and played?
Swastik
- 02-04-2011, 07:00 AM #5
Member
- Join Date
- Feb 2011
- Posts
- 21
- Rep Power
- 0
Tts
ya you are right..tat is wat i need..help me..
- 02-04-2011, 07:12 AM #6
Senior Member
- Join Date
- Dec 2008
- Location
- Kolkata
- Posts
- 280
- Rep Power
- 5
May be you could do something like this.
1. Maintain a map the text file name is the key, audio file name is the value.
2. Prompt the user to select the text file using filechooser dialog.
3. Match the selected file name with the key in map, fetch the value i.e. the audio file name
4. Play the audio file.Swastik
- 02-04-2011, 07:16 AM #7
Member
- Join Date
- Feb 2011
- Posts
- 21
- Rep Power
- 0


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks