Page 1 of 2 12 LastLast
Results 1 to 20 of 27
  1. #1
    Join Date
    Jul 2010
    Location
    Jamshoro, Satabo Khairpur Mirs
    Posts
    21
    Rep Power
    0

    Default Problem with mbrola.base

    while running hellow world example of JSAPI Im facing the message (System property "mbrola.base" is undefined. Will not use MBROLA voices.
    ) in result no voice is heard please solve this for me

    thanx......

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,015
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by arshadalisoomro View Post
    while running hellow world example of JSAPI Im facing the message (System property "mbrola.base" is undefined. Will not use MBROLA voices.
    ) in result no voice is heard please solve this for me
    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:

    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");
    	}
    }
    Does this help you a bit?

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    Join Date
    Jul 2010
    Location
    Jamshoro, Satabo Khairpur Mirs
    Posts
    21
    Rep Power
    0

    Exclamation 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.

  4. #4
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,015
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by arshadalisoomro View Post
    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

    [ ... ]

    it does not speak that but only "Hello world".
    please help me in this case also.
    Are you sure you recompiled your code? It works fine for me.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    Join Date
    Jul 2010
    Location
    Jamshoro, Satabo Khairpur Mirs
    Posts
    21
    Rep Power
    0

    Smile 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

  6. #6
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,015
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by arshadalisoomro View Post
    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
    Good; you're welcome; you forgot to recompile it, right? If you ever manage to get those mbrola voices up and running, please let us know about it.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  7. #7
    Join Date
    Jul 2010
    Location
    Jamshoro, Satabo Khairpur Mirs
    Posts
    21
    Rep Power
    0

    Question 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

  8. #8
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,015
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by arshadalisoomro View Post
    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
    I don't know how to change the age of the voice; a voice has the following methods:

    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()
    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".

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  9. #9
    techstudent is offline Member
    Join Date
    Jun 2011
    Posts
    6
    Rep Power
    0

    Default Thankyou soooo much!!!

    after so much of searching finally it speaks!!!!

    although, it still displays system property mbrola.base is undefined.is there anyway i can remove that?

  10. #10
    techstudent is offline Member
    Join Date
    Jun 2011
    Posts
    6
    Rep Power
    0

    Default found out

    i hadn't remove the mbrola.jar fro my directory,so it showd that warning.now working fine :)

  11. #11
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,015
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by techstudent View Post
    after so much of searching finally it speaks!!!!
    Care to write a summary (i.e. a step by step instruction) how to get those darn mbrola voices operational? The readers, the forum (and I ;-) would be grateful.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  12. #12
    techstudent is offline Member
    Join Date
    Jun 2011
    Posts
    6
    Rep Power
    0

    Default im not using mbrola

    i just removed that warning that came:mbrola property not set.
    i used ur method!

  13. #13
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,015
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by techstudent View Post
    i just removed that warning that came:mbrola property not set.
    i used ur method!
    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,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  14. #14
    techstudent is offline Member
    Join Date
    Jun 2011
    Posts
    6
    Rep Power
    0

    Default here's something i found though


  15. #15
    techstudent is offline Member
    Join Date
    Jun 2011
    Posts
    6
    Rep Power
    0

    Default

    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.

  16. #16
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,015
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by techstudent View Post
    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.
    My misunderstanding, sorry about that; I thought you were using those mbrola voices with freetts. I can only use freetts's own voices but for the sake of my sanity I can't get those mbrola voices to do anything. I muffled away that warnng too ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  17. #17
    techstudent is offline Member
    Join Date
    Jun 2011
    Posts
    6
    Rep Power
    0

    Default

    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.

  18. #18
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,015
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by techstudent View Post
    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.
    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,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  19. #19
    UJJAL DHAR is offline Senior Member
    Join Date
    Apr 2010
    Location
    Dhaka,Bangladesh
    Posts
    180
    Rep Power
    0

    Default 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.

  20. #20
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,015
    Blog Entries
    7
    Rep Power
    20

    Default Re: Problem with mbrola.base

    Quote Originally Posted by UJJAL DHAR View Post
    Where is the problem?
    An incorrect installation of the freetts.jar file? A classpath problem? All that I know is that the code I posted works.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Page 1 of 2 12 LastLast

Similar Threads

  1. FreeTTS MBROLA problem
    By Fillis52 in forum New To Java
    Replies: 1
    Last Post: 01-16-2011, 04:48 AM
  2. Getting problem inserting data in data base
    By anupama in forum New To Java
    Replies: 4
    Last Post: 12-15-2010, 10:03 PM
  3. Base Conversion
    By javaman1 in forum New To Java
    Replies: 6
    Last Post: 12-10-2010, 07:32 PM
  4. Java with Data Base
    By Nerijus in forum New To Java
    Replies: 9
    Last Post: 05-21-2010, 11:54 AM
  5. [SOLVED] Base conversions
    By rlzyoner in forum New To Java
    Replies: 3
    Last Post: 12-10-2008, 12:40 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
  •