Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1006993 // makeSphinxConfig

JavaX fragment (include)

lib 1004789 // sphinx core
lib 1004793 // sphinx data

import edu.cmu.sphinx.api.Configuration;

static Configuration makeSphinxConfig() ctex {
  new Configuration configuration;
  configuration.setAcousticModelPath("resource:/edu/cmu/sphinx/models/en-us/en-us");
  configuration.setDictionaryPath("resource:/edu/cmu/sphinx/models/en-us/cmudict-en-us.dict");
  configuration.setLanguageModelPath("resource:/edu/cmu/sphinx/models/en-us/en-us.lm.bin");
  ret configuration;
}

Author comment

Began life as a copy of #1004800

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006993
Snippet name: makeSphinxConfig
Eternal ID of this version: #1006993/1
Text MD5: 7219e074f06dbde10257349e3db58437
Author: stefan
Category: javax / speech
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-24 14:42:11
Source code size: 486 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 436 / 505
Referenced in: [show references]