Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,20 @@ public SphinxConfig() {
}


/**
* Initializes the configuration by setting the language model, acoustic model, and dictionary model.
*
* @param MPi the ModelProvider used to retrieve the models
* @return true if the models are successfully initialized, false otherwise
* @throws NullPointerException if MPi is null
* @throws ModelNotFoundException if the default models are not found
*
* Example usage:
* <pre>{@code
* ModelProvider modelProvider = new ModelProvider();
* boolean isInitialized = initConfig(modelProvider);
* }</pre>
*/
protected boolean initConfig(ModelProvider MPi) {
this.MPi=MPi;
lmodel=new LanguageModel();
Expand Down