Package com.sun.speech.freetts

Examples of com.sun.speech.freetts.VoiceManager


        System.out.println();
        System.out.println("Using voice: " + voiceName);

    /* The VoiceManager manages all the voices for FreeTTS.
    */
        VoiceManager voiceManager = VoiceManager.getInstance();
        Voice helloVoice = voiceManager.getVoice(voiceName);

        if (helloVoice == null) {
            System.err.println(
                    "Cannot find a voice named "
                            + voiceName + ".  Please specify a different voice.");
View Full Code Here


    private void createVoice()
            throws RippleException {
        String voiceName = "kevin";

        try {
            VoiceManager voiceManager = VoiceManager.getInstance();
            singleVoice = voiceManager.getVoice(voiceName);
        } catch (Throwable t) {
            throw new RippleException(t);
        }

        if (null == singleVoice) {
View Full Code Here

TOP

Related Classes of com.sun.speech.freetts.VoiceManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.