Package edu.cmu.sphinx.frontend.endpoint

Examples of edu.cmu.sphinx.frontend.endpoint.SpeechStartSignal


        bufferProc.processDataFrame(new DataStartSignal(16000, true));

        for (DoubleData doubleData : RandomDataProcessor.createFeatVectors(5, 16000, 0, 39, 10))
            bufferProc.processDataFrame(doubleData);

        bufferProc.processDataFrame(new SpeechStartSignal());
        for (DoubleData doubleData : RandomDataProcessor.createFeatVectors(3, 16000, 1000, 39, 10))
            bufferProc.processDataFrame(doubleData);

        bufferProc.processDataFrame(new SpeechEndSignal());
        for (DoubleData doubleData : RandomDataProcessor.createFeatVectors(5, 16000, 2000, 39, 10))
View Full Code Here


        int sampleRate = 1000;

        input.add(new DataStartSignal(sampleRate));

        input.addAll(createFeatVectors(1, sampleRate, 0, 10, 10)); // create one second of data sampled with 1kHz
        input.add(new SpeechStartSignal(-1));
        input.addAll(createFeatVectors(0.5, sampleRate, 0, 10, 10));
        input.add(new SpeechEndSignal(-1));
        input.addAll(createFeatVectors(1, sampleRate, 0, 10, 10));

        input.add(new DataEndSignal(0));
View Full Code Here

        input.add(new DataStartSignal(sampleRate));

        input.addAll(createFeatVectors(0.1, sampleRate, 0, 10, 10)); // create one second of data sampled with 1kHz

        input.add(new SpeechStartSignal(-1));
        input.addAll(createFeatVectors(0.1, sampleRate, 0, 10, 10));
        input.add(new SpeechEndSignal(-1));

        input.addAll(createFeatVectors(0.1, sampleRate, 0, 10, 10));

        input.add(new SpeechStartSignal(-1));
        input.addAll(createFeatVectors(0.1, sampleRate, 0, 10, 10));
        input.add(new SpeechEndSignal(-1));

        input.addAll(createFeatVectors(0.1, sampleRate, 0, 10, 10));
View Full Code Here

        input.add(new DataStartSignal(sampleRate));
        input.add(new DataEndSignal(sampleRate));

        // process a segment which contains a speech segment which is empty
        input.add(new DataStartSignal(sampleRate));
        input.add(new SpeechStartSignal(-1));
        input.add(new SpeechEndSignal(-1));
        input.add(new DataEndSignal(sampleRate));

        // process a segment which contains a speech segment which is empty but has some non-speech data around it
        input.add(new DataStartSignal(sampleRate));
        input.addAll(createFeatVectors(1, sampleRate, 0, 10, 10)); // create one second of data sampled with 1kHz
        input.add(new SpeechStartSignal(-1));
        input.add(new SpeechEndSignal(-1));
        input.addAll(createFeatVectors(1, sampleRate, 0, 10, 10)); // create one second of data sampled with 1kHz
        input.add(new DataEndSignal(sampleRate));

        // and now a some real segments
        input.add(new DataStartSignal(sampleRate));
        input.add(new SpeechStartSignal(-1));
        input.addAll(createFeatVectors(0.1, sampleRate, 0, 10, 10));
        input.add(new SpeechEndSignal(-1));
        input.add(new DataEndSignal(sampleRate));

View Full Code Here

TOP

Related Classes of edu.cmu.sphinx.frontend.endpoint.SpeechStartSignal

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.