Package org.sodbeans.phonemic

Examples of org.sodbeans.phonemic.SpeechProcessor


                    // of greater priority, send off to the TTS engine.
                    // Otherwise, we ignore te request.

                    if (!block && (!speech.isSpeaking() ||
                            request.getPriority().compareTo(lastRequest.getPriority()) <= 0)) {
                        SpeechProcessor proc = request.getProcessor();
                        String textToSpeak = request.getText();

                        if (proc != null)
                            textToSpeak = proc.process();
                       
                        if (textToSpeak != null && !textToSpeak.trim().isEmpty() && speechEnabled)
                            speech.speak(textToSpeak, request.getPriority(), request.getType());

                        // We don't want to log CHARACTER requests.
View Full Code Here


    protected TextToSpeech getTextToSpeech() {
        return speech;
    }
   
    public void read() {
        SpeechProcessor proc = getRead();
        if (proc != null)
            if(TextToSpeechOptions.isScreenReading()) {
                speech.speak(proc);
            }
    }
View Full Code Here

        String windowName = "";
        Component component = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner();
        this.event.object = component;
        this.event.readType = ReadType.FOCUS;
        ComponentScreenReader reader = readers.instance(event);
        SpeechProcessor read = reader.getRead();
        componentName = read.process();

        // Supplement "gained focus" with "has focus."
        if (componentName.contains("gained focus")) {
            componentName = componentName.substring(0, componentName.lastIndexOf("gained focus"));
        }
View Full Code Here

TOP

Related Classes of org.sodbeans.phonemic.SpeechProcessor

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.