Package edu.cmu.sphinx.frontend

Examples of edu.cmu.sphinx.frontend.Data


        WavWriter wavWriter = (WavWriter) cm.lookup("wavWriter");
        wavWriter.setOutFilePattern(outputFile);

        frontend.initialize();

        Data data = null;
        do {
            data = frontend.getData();
        } while (data != null);
    }
View Full Code Here


        dataBlocker.setPredecessor(this);

        List<Data> output = new ArrayList<Data>();

        while (true) {
            Data d = dataBlocker.getData();
            if (d instanceof DoubleData)
                output.add(d);
            if (d instanceof DataEndSignal)
                return output;
        }
View Full Code Here

     * @return the next available DoubleData melcepstrum, or Signal object, or null if no Data is available
     * @throws DataProcessingException if a data processing error occurred
     */
    @Override
    public Data getData() throws DataProcessingException {
        Data input = getPredecessor().getData(); // get the spectrum
        getTimer().start();
        if (input != null && input instanceof DoubleData) {
            input = process((DoubleData) input);
        }
        getTimer().stop();
View Full Code Here

        smoothWindow = ps.getInt(SMOOTH_WINDOW);
    }

    @Override
    public Data getData() throws DataProcessingException {
        Data inputData = getPredecessor().getData();
        int i;

        if (inputData instanceof DataStartSignal) {
            power = null;
            noise = null;
View Full Code Here

     * @throws DataProcessingException if there is a processing error
     */
    @Override
    public Data getData() throws DataProcessingException {

        Data input = getPredecessor().getData();

        getTimer().start();

        if ((input != null) && (input instanceof DoubleData)) {
            DoubleData data = (DoubleData) input;
View Full Code Here

     * @throws edu.cmu.sphinx.frontend.DataProcessingException
     *          if a data processor error occurs
     */
    @Override
    public Data getData() throws DataProcessingException {
        Data data = null;

        while (waitIfEmpty && featureBuffer.isEmpty()) {
            try {
                Thread.sleep(waitTime);
            } catch (InterruptedException e) {
View Full Code Here

     * @throws edu.cmu.sphinx.frontend.DataProcessingException
     *          if there is a data processing error
     */
    @Override
    public Data getData() throws DataProcessingException {
        Data input = getPredecessor().getData();

        for (DataListener l : listeners)
            l.processDataFrame(input);

        return input;
View Full Code Here

     * @throws DataProcessingException
     *             if a data processing error occurred
     */
    @Override
    public Data getData() throws DataProcessingException {
        Data data = getPredecessor().getData(); // get the cepstrum
        if (data != null && data instanceof DoubleData) {
            liftCepstrum((DoubleData) data);
        }
        return data;
    }
View Full Code Here

        classifier = (AbstractVoiceActivityDetector) ps.getComponent(PROP_CLASSIFIER);
    }

    @Override
    public Data getData() throws DataProcessingException {
        Data inputData = getPredecessor().getData();

        /* signal, reset smoother */
        if (!(inputData instanceof DoubleData)) {
            prevNoise = null;
            prevSignal = null;
View Full Code Here

     * @throws DataProcessingException if there is a data processing error
     */
    @Override
    public Data getData() throws DataProcessingException {

        Data input = getPredecessor().getData();

        getTimer().start();

        if (input != null) {
            if (input instanceof DoubleData) {
View Full Code Here

TOP

Related Classes of edu.cmu.sphinx.frontend.Data

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.