Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config c = new Config();
- c.setString("-hmm", "/sdcard/edu.cmu.pocketsphinx/hmm/voxforge_de_sphinx.cd_cont_3000");
- c.setString("-dict", "/sdcard/edu.cmu.pocketsphinx/lm/my_cmds/commands.dic");
- c.setString("-jsgf", "/sdcard/edu.cmu.pocketsphinx/lm/my_cmds/commands.gram");
- c.setString("-rawlogdir", "/sdcard/edu.cmu.pocketsphinx");
- c.setFloat("-samprate", 16000.0);
- c.setInt("-maxhmmpf", 2000);
- c.setInt("-maxwpf", 10);
- c.setInt("-pl_window", 2);
- c.setBoolean("-backtrace", true);
- c.setBoolean("-bestpath", false);
- this.ps = new Decoder(c);
- this.audio = null;
- this.audioq = new LinkedBlockingQueue<short[]>();
- this.use_partials = false;
- this.mailbox = Event.NONE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement