freetts

Using FreeTTS in a web application

依然范特西╮ 提交于 2020-01-16 00:45:13
问题 I'm building a web application using HTML and JSP. One of the functionality which provided is converting some texts to speech. In netbeans, I created a Java project, this project contains a Java applet offers the speech task, this applet uses FreeTTS (external JAR file), and it works fine. So after building this project, I added its JAR to the web project, for embedding the applet within the web. Now, the problem the applet doesn't work from the website, but it works standalone. Please I need

Freetts is not working with external speakers

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-04 11:05:41
问题 I have used Freetts.jar file in my java application that announces the token number. My application is working perfectly in my laptop but is not working in my desktop that has an external speaker. I get a null pointer exception. NOTE: I use Windows 7 in both my computers. The Below Code is the Sample Format I used. package tsapp; import java.util.Locale; import javax.speech.Central; import javax.speech.synthesis.Synthesizer; import javax.speech.synthesis.SynthesizerModeDesc; import javax

Freetts is not working with external speakers

ⅰ亾dé卋堺 提交于 2020-01-04 11:05:06
问题 I have used Freetts.jar file in my java application that announces the token number. My application is working perfectly in my laptop but is not working in my desktop that has an external speaker. I get a null pointer exception. NOTE: I use Windows 7 in both my computers. The Below Code is the Sample Format I used. package tsapp; import java.util.Locale; import javax.speech.Central; import javax.speech.synthesis.Synthesizer; import javax.speech.synthesis.SynthesizerModeDesc; import javax

Java FreeTTS missing Voice

对着背影说爱祢 提交于 2020-01-01 06:13:22
问题 I wrote a small program, which should simply do a text-to-speach in Java. My Class looks like this: import com.sun.speech.freetts.Voice; import com.sun.speech.freetts.VoiceManager; public class TalkResource { private static final String VOICENAME_kevin = "kevin16"; private final String text; // string to speech public TalkResource(String text) { this.text = text; } public void speak() { Voice voice; VoiceManager voiceManager = VoiceManager.getInstance(); voice = voiceManager.getVoice

FreeTTS no audio linux ubuntu - no errors

时光总嘲笑我的痴心妄想 提交于 2019-12-18 13:14:10
问题 I am running Ubuntu 10.10 using Java 6 and can not get FreeTTS to output any audio. I have tried it now on 3 different computers and even asked a buddy of mine to try it on his Ubuntu PC and he had the same problem. There is absolutly no errors that are displayed, after getting the MBROLA i no longer even get the warning about No MBROLA voices detected. blah blah blah.. Using the same computer I ran a virtual box and started Windows XP, i was actually able to get audio when running the

freetts - text to speech setting mbrola voice com.sun.speech.freetts.ProcessException: Processing Utterance:

浪子不回头ぞ 提交于 2019-12-13 23:09:03
问题 Working with ubuntu linux version Almost done with freetts setting with mbrola voices us1, us2 and us3, but finally getting exceptions. When i run the below command, i could hear kevin's voice of sun microsystems. $ java -Dmbrola.base="/home/amphisoft4/Downloads/mbrola" -jar bin/FreeTTSHelloWorld.jar All voices available: alan (time domain) kevin (general domain) kevin16 (general domain) mbrola_us1 (general domain) mbrola_us2 (general domain) mbrola_us3 (general domain But if i specify mbrola

FreeTTS unable to find any voice

家住魔仙堡 提交于 2019-12-12 09:18:39
问题 I am trying to use FreeTTS, here is the code: import com.sun.speech.freetts.Voice; import com.sun.speech.freetts.VoiceManager; public class FreeTTSVoice { public static final String VOICE_ALAN = "alan"; public static final String VOICE_KEVIN = "kevin"; public static final String VOICE_KEVIN16 = "kevin16"; private Voice voice; public FreeTTSVoice(String voiceName) { VoiceManager voiceManager = VoiceManager.getInstance(); voice = voiceManager.getVoice(voiceName); if (voice == null) { System.err

Troubleshooting “System property mbrola.base is undefined. Will not use MBROLA voices” when converting text to speech using FreeTTS

落花浮王杯 提交于 2019-12-12 03:55:51
问题 import com.sun.speech.freetts.*; import java.util.*; public class Demofreetts { private String speaktext; public void doSpeak(String speak, String voice) { speaktext = speak; try { VoiceManager voiceManager = VoiceManager.getInstance(); Voice voices = voiceManager.getVoice(voice); Voice sp = null; if(voices != null) sp = voices; else System.out.println("No Voice Available"); sp.allocate(); sp.speak(speaktext); sp.deallocate(); } catch(Exception e) { e.printStackTrace(); } } public static void

FreeTTS, Java, Linux: Workaround for “LINE UNAVAILABLE: Format is …”

好久不见. 提交于 2019-12-10 11:54:38
问题 When I run FreeTTS examples, I get this error: LINE UNAVAILABLE: Format is pcm_signed 16000.0 Hz 16 bits 1 channel big endian In this post, Freetts problem in Java someone claims it's a known Linux/Java sound bug and has a workaround, linking to http://forums.sun.com/thread.jspa?threadID=5189363 . But this link does not work anymore since Oracle screwed it. Archive.org seems not to have this page archived. Does anyone have the workaround / patch for FreeTTS? Thanks, Ondra 回答1: Linux's ALSA is

FreeTTS - java.lang.ClassNotFoundException: javax.speech.EngineCentral

点点圈 提交于 2019-12-08 07:39:21
问题 I have a problem, and I know this might similiar to the ones that are online, but I have followed every instruction I have found online and I am still getting this problem. Basically I am making a GUI with a Virtual Keyboard, and whatever the user types, I want the user to be able to click a button and I want a speech synthesis to convert the text-to-speech. I have looked online and found that the easiest and most common open software used was freeTSS. I have installed freeTSS and followed