Package org.sodbeans.phonemic

Examples of org.sodbeans.phonemic.SpeechProcessor.process()


                            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


        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
Copyright © 2018 www.massapi.com. 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.