Package org.axsl.speech

Examples of org.axsl.speech.Voice


            final FoValue keyword = this.convertValueToFoValue(value());
            if (keyword == FoValue.INHERIT) {
                return getValueNoInstance(context, fobj);
            }

            final Voice voice = fobj.getVoice(context);
            switch (keyword) {
            case X_LOW: {
                return voice.pitchExtraLow();
            }
            case LOW: {
                return voice.pitchLow();
            }
            case MEDIUM: {
                return voice.pitchMedium();
            }
            case HIGH: {
                return voice.pitchHigh();
            }
            case X_HIGH: {
                return voice.pitchExtraHigh();
            }
            default: {
                throw this.unexpectedRetrieval();
            }
            }
View Full Code Here


            final FObj fobj) {
        final FObj parent = fobj.effectiveParent(context);
        if (parent != null) {
            return parent.traitPitch(context);
        }
        final Voice voice = fobj.getVoice(context);
        return voice.pitchMedium();
    }
View Full Code Here

         * generally used right now. Second, it is (for now anyway) relatively
         * inexpensive to compute. */
        final SpeechServer speechServer = this.getSpeechServer();
        final String[] familyList = this.getPropertyList().getVoiceFamily(this,
                context);
        Voice selectedVoice = null;
        try {
            selectedVoice = speechServer.selectVoiceXsl(familyList);
        } catch (final SpeechException e) {
            this.getLogger().error("Error creating Voice.\n"
                    + this.getContextMessage());
View Full Code Here

TOP

Related Classes of org.axsl.speech.Voice

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.