Results 1 to 1 of 1
Thread: Speech in Web Application
- 06-23-2010, 11:27 AM #1
Member
- Join Date
- Mar 2009
- Posts
- 15
- Rep Power
- 0
Speech in Web Application
Hi all, (Sorry for my goofy English)
I am developing a web project using java, struts2 and sql. I want to add speech in some of my web pages. When the user selects some content and click speech action, the selected text should be read loudly.
I have used jsapi, freetts but the application reads well in local system, but it never supports the clients system, i want to change the voice too.. i have even tried with mbrola voices , but i am getting errors.
if using mbrola voices how to configure in the web app ?
This is my code
Java Code:import com.sun.speech.freetts.Voice; import com.sun.speech.freetts.VoiceManager; public class Speech { private VoiceManager voiceManager; private Voice voice; private String voiceName; public void TTS(String words) { try { if (getVoice() == null) { System.err.println( "Cannot find a voice named " + getVoiceName() + ". Please specify a different voice."); } else { getVoice().allocate(); getVoice().speak(words); // Clean up and leave. getVoice().deallocate(); } } catch (Exception e) { e.printStackTrace(); // TODO: handle exception } } public void setVoiceManager(VoiceManager voiceManager) { this.voiceManager = voiceManager; } public VoiceManager getVoiceManager() { return voiceManager; } public void setVoice(Voice voice) { this.voice = voice; } public Voice getVoice() { return voice; } public void setVoiceName(String voiceName) { this.voiceName = voiceName; } public String getVoiceName() { return voiceName; } }
Is there any java plugins or other website plugins to use the speech system in my web pages
How to solve this probs ?
your help is highly appreciated
thanks
Vinoop
Similar Threads
-
speech.properties
By Parneel in forum Advanced JavaReplies: 1Last Post: 12-30-2012, 02:24 PM -
speech to text concersion
By ak88 in forum Advanced JavaReplies: 1Last Post: 03-09-2010, 08:57 AM -
Speech Recognition In Java
By hackernewbie in forum Advanced JavaReplies: 6Last Post: 01-18-2010, 11:06 PM -
Java Speech Processing
By redvirus in forum CLDC and MIDPReplies: 2Last Post: 10-03-2009, 12:16 AM -
Java Speech Recognizer
By Lynx09 in forum Advanced JavaReplies: 0Last Post: 03-30-2009, 08:10 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks