Results 1 to 20 of 27
Thread: Problem with mbrola.base
- 01-14-2011, 06:50 AM #1
- 01-14-2011, 09:18 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
I never got those mbrola voices operational either; I simply use the freeTTS own voice "kevin16" and I skip the entire JSAPI and use their own API:
Does this help you a bit?Java Code:import com.sun.speech.freetts.Voice; import com.sun.speech.freetts.VoiceManager; public class T { private static final String VOICENAME= "kevin16"; public static void main(String[] args) { Voice voice; VoiceManager voiceManager = VoiceManager.getInstance(); voice = voiceManager.getVoice(VOICENAME); voice.allocate(); voice.speak("hello world"); } }
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 01-15-2011, 08:26 AM #3
Still facing Problems
first of all I thank you ...
your code works but only (Hello world ) is spoken by this
if I want to listen "You are my Friend" in following manner
Java Code:import com.sun.speech.freetts.Voice; import com.sun.speech.freetts.VoiceManager; public class HelloWorld { private static final String VOICENAME= "kevin16"; public static void main(String[] args) { Voice voice; VoiceManager voiceManager = VoiceManager.getInstance(); voice = voiceManager.getVoice(VOICENAME); voice.allocate(); voice.speak("You are my Friend"); } }
it does not speak that but only "Hello world".
please help me in this case also.
- 01-15-2011, 08:32 AM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
- 01-15-2011, 12:44 PM #5
yes it works
I have no words to explain how much Im Happy today...
Thank you very much this worked in JBuilder 6 the code is working very well
- 01-15-2011, 01:28 PM #6
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
- 01-16-2011, 04:44 AM #7
About changing Age of voice
Hi Dear !
I want to change the age of voice. kindly if you give me some code hint . I need your help in this case also
- 01-16-2011, 07:15 AM #8
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
I don't know how to change the age of the voice; a voice has the following methods:
The initial values for those four parameters are 1.0 (volume at its loudest level), 100.0 (frequency of the voice) 150.0 (rate of words per minute) and 1.0 (stretch of the word in its duration. Maybe if you play a bit with those values you can change the 'age' of the voice. Otherwise you have to find yourself another voice instead of "kevin16".Java Code:public void setVolume(float v) public void setPitch(float p) public void setRate(float s) public void setStretch(float s) public float getVolume() public float getPitch() public float getRate() public float getStretch()
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 06-06-2011, 08:45 AM #9
Member
- Join Date
- Jun 2011
- Posts
- 6
- Rep Power
- 0
Thankyou soooo much!!!
after so much of searching finally it speaks!!!!
.gif)
although, it still displays system property mbrola.base is undefined.is there anyway i can remove that?
- 06-06-2011, 08:49 AM #10
Member
- Join Date
- Jun 2011
- Posts
- 6
- Rep Power
- 0
found out
i hadn't remove the mbrola.jar fro my directory,so it showd that warning.now working fine :)
- 06-06-2011, 09:08 AM #11
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
- 06-06-2011, 09:14 AM #12
Member
- Join Date
- Jun 2011
- Posts
- 6
- Rep Power
- 0
im not using mbrola
i just removed that warning that came:mbrola property not set.
i used ur method!
- 06-06-2011, 09:37 AM #13
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
That's not a summary; what files did you download? How and where did you install them? Was there any programming needed? If so, please show the stuff. I know, acting like a teacher/instructor isn't easy and boring but what you have given us now doesn't help much ;-)
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 06-06-2011, 09:50 AM #14
Member
- Join Date
- Jun 2011
- Posts
- 6
- Rep Power
- 0
here's something i found though
- 06-06-2011, 09:52 AM #15
Member
- Join Date
- Jun 2011
- Posts
- 6
- Rep Power
- 0
once again,
I DID NOT DO ANYTHING NEW!!!!i jus used your code here!!!it worked.but it gave a warning : mbrola voices cannot be used.so i removed the mbrola.jar from the directory where this t.java is stored.i'm not using mbrola.
- 06-06-2011, 10:24 AM #16
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
When people rob a bank they get a penalty; when banks rob people they get a bonus.
- 06-06-2011, 12:14 PM #17
Member
- Join Date
- Jun 2011
- Posts
- 6
- Rep Power
- 0
ya,none of the sites i browsed were useful
anyway thankyou for the code above, had been searchin for a long time for some way to convert text to speech,my whole project depends on this.
Last edited by techstudent; 06-06-2011 at 12:21 PM.
- 06-06-2011, 01:28 PM #18
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
I really don't know what I have done wrong w.r.t. freeTTS and mbrola but I can't get those voices operational; I never have read anything from anybody having success with those two either. FreeTTS by itself works fine though and (some of) the mbrola package also works (sort of) but those two don't seem to like eachother.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 10-13-2011, 08:16 PM #19
Senior Member
- Join Date
- Apr 2010
- Location
- Dhaka,Bangladesh
- Posts
- 178
- Rep Power
- 0
Re: Problem with mbrola.base
Problem Solved
Last edited by UJJAL DHAR; 10-13-2011 at 09:10 PM.
Don't Forget to try yourself before asking others help.....
Press REP, if you find their advices/solutions effective.
- 10-13-2011, 09:07 PM #20
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
FreeTTS MBROLA problem
By Fillis52 in forum New To JavaReplies: 1Last Post: 01-16-2011, 04:48 AM -
Getting problem inserting data in data base
By anupama in forum New To JavaReplies: 4Last Post: 12-15-2010, 10:03 PM -
Base Conversion
By javaman1 in forum New To JavaReplies: 6Last Post: 12-10-2010, 07:32 PM -
Java with Data Base
By Nerijus in forum New To JavaReplies: 9Last Post: 05-21-2010, 11:54 AM -
[SOLVED] Base conversions
By rlzyoner in forum New To JavaReplies: 3Last Post: 12-10-2008, 12:40 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks