Questions tagged [freetts]

an open source speech synthesis system, an implementation of Sun's Java Speech API (Wikipedia)

75 questions
1
vote
1 answer

How to get TTS (Text To Speech) working in java netbeans?

I am trying to get a TTS working in netbeans for java. I have unzipped the JSAPI files and added the following jars to the library cmu_us_kal.jar cmulex.jar en_us.jar freetts.jar cmulex.jar jsapi.jar When I run the follow code: package…
user1870404
  • 31
  • 1
  • 4
0
votes
1 answer

What libraries does FreeTTS need to output mp3s?

I'm trying to deploy a java web app which uses FreeTTS to generate mp3s. As per the directions on the project website, I've copied across a whole load of libraries. When it didn't work, I tried others and played around with the directory each was…
Tom Wright
  • 11,278
  • 15
  • 74
  • 148
0
votes
0 answers

Java FreeTTS: The package com.sun.speech is not accessible

I tried to make a tts code but i faild at the very beginning. The .jars are downloaded and in my lib, but i can`t import them into my code. it only shows: "The package com.sun.speech is not accessible" Did that happen to anyone else and does anyone…
sams
  • 1
0
votes
0 answers

Getting error "Unable to load Voice Directory" to automate Voice Search

I am using freetts library to automate the voice search. But my speakUtil.java is failing and giving error : "FAILED CONFIGURATION: @BeforeClass setup java.lang.Error: Unable to load voice directory. java.lang.ClassNotFoundException:…
suresh
  • 1
  • 2
0
votes
0 answers

I am automating a voice search, but I am getting error the Voice directory not found

I am automating a Voice Search functionality using selenium and FreeTTS. I have set everything up, but when I run, I get error: java.lang.Error: Unable to load voice directory. java.lang.ClassNotFoundException:…
Azpect
  • 43
  • 6
0
votes
1 answer

FreeTTS Portability Issue

I'm writing an application that makes use of Java's speech API and FreeTTS. The application works fine when I run it from the Netbeans IDE, but when I try to run it from a jar file on my local machine or on other machines, I get the following…
InsaneOstrich
  • 119
  • 5
  • 13
0
votes
1 answer

Java Sample with Freetts is not Working After Upgrade Eclipse and Java

I wanted to upgrade my eclipse version to the latest and it require me to upgrade also the java version. After upgrade(java 15/eclipse 12-2020) I've notice that simple code that I had with freetts is not working with the new configuration. I still…
Liron C
  • 171
  • 1
  • 12
0
votes
1 answer

Exception in thread "main" java.lang.ClassCastException: class com.sun.speech.freetts.en.us.cmu_time_awb.AlanVoiceDirectory

I am trying to develop a program that converts text to speech using freetts in java. I had already added all the required jar files and also build path. import com.sun.speech.freetts.Voice; import com.sun.speech.freetts.VoiceManager; public class…
user14600219
0
votes
0 answers

Need help in passing converted text to voice from servelet to jsp page

I want my servlet page to retrieve the information provided in textarea of jsp page and convert that text into voice and return to the jsp page. This piece of code is giving me this error org.apache.catalina.core.StandardWrapperValve invokeSEVERE:…
CodeOctal
  • 1
  • 3
0
votes
0 answers

How to fix error 'classcastexception' with using Freetts

I just want to use Freetts testing with this code but i got an error: ClassCastException: class com.sun.speech.freetts.en.us.cmu_us_kal.KevinVoiceDirectory cannot be cast to class com.sun.speech.freetts.VoiceDirectory …
jayee
  • 1
0
votes
0 answers

Java Web Start - Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException

I have a java application that runs perfectly fine on netbeans and as a stand-alone, but gives an error when I run it using JNLP. Following is a part of the log: Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException at…
0
votes
3 answers

FreeTTS, Java, Linux: Workaround for "LINE UNAVAILABLE: Format is ..."

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…
Ondra Žižka
  • 43,948
  • 41
  • 217
  • 277
0
votes
1 answer

FreeTTS java.lang.NullPointerException

I am trying to make a text to speech program, but I always get this: Exception in thread "main" java.lang.NullPointerException at FreeTTS.main(FreeTTS.java:7) Here is my code: import com.sun.speech.freetts.Voice; import…
Napkin
  • 1
  • 3
0
votes
3 answers

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

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 =…
user481404
  • 21
  • 1
  • 2
  • 4
0
votes
0 answers

Why does my FreeTTS code not work

I wanted to convert text in a JTextArea into voice but I seem to keep getting an error at the same line. Voice voice; VoiceManager vm = VoiceManager.getInstance(); voice = vm.getVoice(VOICENAME); voice.allocate(); try{ …
T Lin
  • 25
  • 9