Java Expert for Text to Speech using FreeTTS
Budget: €30 – €250 EUR
I am in immediate need of a Java programmer to improve the voice of the open source library FreeTTS,
using the default voice (kevin) is too robotic, I am looking for a programmer that can set a custom voices, like Google TTS etc. where I can choose few from the proposal
I am attaching the default code, and the library to include
import com.sun.speech.freetts.Voice;
import com.sun.speech.freetts.VoiceManager;
public class TextToSpeech {
// kevin or kevin16
private static final String VOICENAME_kevin = "kevin16";
public static void main(String args[]) {
TalkResource("This is Tokyo. FLIGHT arrival and departure information. Alpha AT 0 7 2 4 Runway in use 3 1 transition");
}
public static void TalkResource(String sayText) {
System.setProperty("freetts.voices", "com.sun.speech.freetts.en.us.cmu_us_kal.KevinVoiceDirectory");
Voice voice;
VoiceManager voiceManager = VoiceManager.getInstance();
voice = voiceManager.getVoice(VOICENAME_kevin);
voice.allocate();
voice.speak(sayText);
}
}
I am looking for something with few high quality voice:
import com.sun.speech.freetts.Voice;
import com.sun.speech.freetts.VoiceManager;
public class CustomVoiceExample {
public static void main(String[] args) {
// Set the path to the custom voice data
String voicePath = "/path/to/custom/voice";
// Initialize VoiceManager
VoiceManager voiceManager = VoiceManager.getInstance();
// Load the custom voice
Voice customVoice = new Voice(voicePath, Voice.VOICETYPE_GENERAL);
// Register the custom voice with the VoiceManager
voiceManager.registerVoice(customVoice);
// Allocate the custom voice
customVoice.allocate();
// Set properties for the custom voice (if needed)
customVoice.setVolume(100);
customVoice.setRate(150);
// Speak using the custom voice
customVoice.speak("Hello, this is a sample text using the custom voice.");
// Deallocate the custom voice when done
customVoice.deallocate();
}
}
using the default voice (kevin) is too robotic, I am looking for a programmer that can set a custom voices, like Google TTS etc. where I can choose few from the proposal
I am attaching the default code, and the library to include
import com.sun.speech.freetts.Voice;
import com.sun.speech.freetts.VoiceManager;
public class TextToSpeech {
// kevin or kevin16
private static final String VOICENAME_kevin = "kevin16";
public static void main(String args[]) {
TalkResource("This is Tokyo. FLIGHT arrival and departure information. Alpha AT 0 7 2 4 Runway in use 3 1 transition");
}
public static void TalkResource(String sayText) {
System.setProperty("freetts.voices", "com.sun.speech.freetts.en.us.cmu_us_kal.KevinVoiceDirectory");
Voice voice;
VoiceManager voiceManager = VoiceManager.getInstance();
voice = voiceManager.getVoice(VOICENAME_kevin);
voice.allocate();
voice.speak(sayText);
}
}
I am looking for something with few high quality voice:
import com.sun.speech.freetts.Voice;
import com.sun.speech.freetts.VoiceManager;
public class CustomVoiceExample {
public static void main(String[] args) {
// Set the path to the custom voice data
String voicePath = "/path/to/custom/voice";
// Initialize VoiceManager
VoiceManager voiceManager = VoiceManager.getInstance();
// Load the custom voice
Voice customVoice = new Voice(voicePath, Voice.VOICETYPE_GENERAL);
// Register the custom voice with the VoiceManager
voiceManager.registerVoice(customVoice);
// Allocate the custom voice
customVoice.allocate();
// Set properties for the custom voice (if needed)
customVoice.setVolume(100);
customVoice.setRate(150);
// Speak using the custom voice
customVoice.speak("Hello, this is a sample text using the custom voice.");
// Deallocate the custom voice when done
customVoice.deallocate();
}
}