I am trying to figure out how to hook a Java Media Framework DataSource (in particular, one from a RTPManager) into Sphinx. Sphinx has a frontend that supports OutputDataStreams, but this doesn't seem compatible with the JMF DataSources and Streams.
Ideas? Hints?
Richard
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think an appropriate thing to do here might be to wrap the JMF DataSource in a edu/cmu/sphinx/frontend/util/StreamDataSource.java, taking care to make sure the endianness, signedness, and sample rate are in line with what Sphinx4 needs (i.e., you may need to do some conversion and/or switch acoustic models).
Will
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to figure out how to hook a Java Media Framework DataSource (in particular, one from a RTPManager) into Sphinx. Sphinx has a frontend that supports OutputDataStreams, but this doesn't seem compatible with the JMF DataSources and Streams.
Ideas? Hints?
Richard
Hi Richard:
I think an appropriate thing to do here might be to wrap the JMF DataSource in a edu/cmu/sphinx/frontend/util/StreamDataSource.java, taking care to make sure the endianness, signedness, and sample rate are in line with what Sphinx4 needs (i.e., you may need to do some conversion and/or switch acoustic models).
Will