cmusphinx / sphinx4

Pure Java speech recognition library
cmusphinx.sourceforge.net
Other
1.41k stars 586 forks source link

FeatureFileDumper doesn't rethrow exceptions #17

Open davidmoten opened 9 years ago

davidmoten commented 9 years ago

Why are expections not being wrapped in a RuntimeException and being rethrown?

public FeatureFileDumper(ConfigurationManager cm, String frontEndName)
            throws IOException {
        try {
            frontEnd = (FrontEnd) cm.lookup(frontEndName);
            audioSource = (StreamDataSource) cm.lookup("streamDataSource");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
davidmoten commented 9 years ago

the method getAllFeatures needs the same treatment