I'm trying to pull audio off of an input stream for a quick prototype. I'm brand new to Sphinx and I'm having trouble finding a good example of how this is done. So far I've modified the wavfile example to begin using StreamDataSource from 1.0-BETA2. However I need help in creating a propertysheet to feed the StreamDataSource. I see the StreamDataSource has defaults but I'd like to modify these settings at runtime. can somebody help?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I got that much already. What I was really asking about was the newPropertySheet method. How do I go about creating one of these things so that I can customize the properties of the input audio at runtime? Does anyone have a good examples?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to pull audio off of an input stream for a quick prototype. I'm brand new to Sphinx and I'm having trouble finding a good example of how this is done. So far I've modified the wavfile example to begin using StreamDataSource from 1.0-BETA2. However I need help in creating a propertysheet to feed the StreamDataSource. I see the StreamDataSource has defaults but I'd like to modify these settings at runtime. can somebody help?
I got that much already. What I was really asking about was the newPropertySheet method. How do I go about creating one of these things so that I can customize the properties of the input audio at runtime? Does anyone have a good examples?
> Does anyone have a good examples?
Did you have a chance to look into sources? Almost everything there is configurable:
public class EnergyPlotter implements Configurable {
}
That's all what you need. Javadoc also have more or less precise description:
http://cmusphinx.sourceforge.net/sphinx4/javadoc/edu/cmu/sphinx/util/props/Configurable.html
Isn't
setInputStream(InputStream inputStream, String streamName)
the method you want? It can be any input stream you like.