Package edu.cmu.sphinx.util.props

Examples of edu.cmu.sphinx.util.props.ConfigurationManager.lookup()


        cm = new ConfigurationManager(configURL);
        setProperty(cm, "keepAllTokens", "true");
        setProperty(cm, "trigramModel", "location", lm.toString());

        recognizer = cm.lookup("recognizer");
        recognizer.allocate();
        dataSource = cm.lookup(StreamDataSource.class);
        dataSource.setInputStream(getAudioInputStream(audioFileURL));
        Lattice allLattice = new Lattice(recognizer.recognize());
View Full Code Here


        setProperty(cm, "keepAllTokens", "true");
        setProperty(cm, "trigramModel", "location", lm.toString());

        recognizer = cm.lookup("recognizer");
        recognizer.allocate();
        dataSource = cm.lookup(StreamDataSource.class);
        dataSource.setInputStream(getAudioInputStream(audioFileURL));
        Lattice allLattice = new Lattice(recognizer.recognize());

        assertTrue(lattice.isEquivalent(allLattice));
    }
View Full Code Here

        Map<String, Object> props = new HashMap<String, Object>();
        cm.addConfigurable(DummyProcessor.class, "dummyA");
        props.put(DummyFrontEnd.DATA_PROCS, Arrays.asList("dummyA, dummyB"));
        cm.addConfigurable(DummyFrontEnd.class, "dfe", props);

        cm.lookup("dfe");
    }

}
View Full Code Here

                url = HelloDigits.class.getResource("hellodigits.config.xml");
            }

            ConfigurationManager cm = new ConfigurationManager(url);

            Recognizer recognizer = (Recognizer) cm.lookup("recognizer");
            Microphone microphone = (Microphone) cm.lookup("microphone");

   
      /* allocate the resource necessary for the recognizer */
            recognizer.allocate();
View Full Code Here

            }

            ConfigurationManager cm = new ConfigurationManager(url);

            Recognizer recognizer = (Recognizer) cm.lookup("recognizer");
            Microphone microphone = (Microphone) cm.lookup("microphone");

   
      /* allocate the resource necessary for the recognizer */
            recognizer.allocate();
   
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.