Package edu.cmu.sphinx.frontend.util

Examples of edu.cmu.sphinx.frontend.util.StreamCepstrumSource


            if (dataSource instanceof StreamDataSource) {
                ((StreamDataSource) dataSource).setInputStream(is);
            } else if (dataSource instanceof StreamCepstrumSource) {
                boolean isBigEndian = Utilities
                        .isCepstraFileBigEndian(filename);
                StreamCepstrumSource cepstrumSource =
                        (StreamCepstrumSource) dataSource;
                cepstrumSource.setInputStream(is, isBigEndian);
                // TODO: christophe: should use an interface there !!
            } else if (dataSource instanceof StreamHTKCepstrum) {
                StreamHTKCepstrum cepstrumSource =
                        (StreamHTKCepstrum) dataSource;
                cepstrumSource.setInputStream(is);
            }
        }
    }
View Full Code Here


                ((StreamDataSource)
                 dataSource).setInputStream(utt.getInputStream());
            } else if (dataSource instanceof StreamCepstrumSource) {
                boolean isBigEndian = Utilities
                        .isCepstraFileBigEndian(utt.getName());
                StreamCepstrumSource cepstrumSource =
                        (StreamCepstrumSource) dataSource;
                cepstrumSource.setInputStream(utt.getInputStream(), isBigEndian);
            }
        }
    }
View Full Code Here

TOP

Related Classes of edu.cmu.sphinx.frontend.util.StreamCepstrumSource

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.