Package org.axsl.speech

Examples of org.axsl.speech.SpeechServer


     */
    public Voice getVoice(final FoContext context) {
        /* Don't spend the memory to cache this value. First, it is not
         * 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());
        }
        return selectedVoice;
View Full Code Here


                logger, sessionConfig, fontServer, graphicServer, textServer);
        final AreaTreeFactory areaTreeFactory =
                FOraySpecific.makeAreaTreeFactory(logger);
        final LayoutFactory layoutFactory = FOraySpecific.makeLayoutFactory(
                logger);
        final SpeechServer speechServer = FOraySpecific.makeSpeechServer();
        final FOraySession session = new FOraySession(logger, sessionConfig,
                fontServer, hyphenServer, textServer, graphicServer,
                speechServer, foTreeServer, areaTreeFactory, layoutFactory);
        return session;
    }
View Full Code Here

TOP

Related Classes of org.axsl.speech.SpeechServer

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.