Fix DS_EnableDecoderWithLM typo in Android bindings

Fixes #2643
This commit is contained in:
Alexandre Lissy 2020-01-09 11:20:51 +01:00
parent 2df62da147
commit d911ccb2b7
2 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ public class BasicTest {
@Test @Test
public void loadDeepSpeech_stt_withLM() { public void loadDeepSpeech_stt_withLM() {
DeepSpeechModel m = new DeepSpeechModel(modelFile, BEAM_WIDTH); DeepSpeechModel m = new DeepSpeechModel(modelFile, BEAM_WIDTH);
m.enableDecoderWihLM(lmFile, trieFile, LM_ALPHA, LM_BETA); m.enableDecoderWithLM(lmFile, trieFile, LM_ALPHA, LM_BETA);
String decoded = doSTT(m, false); String decoded = doSTT(m, false);
assertEquals("she had your dark suit in greasy wash water all year", decoded); assertEquals("she had your dark suit in greasy wash water all year", decoded);
@ -149,7 +149,7 @@ public class BasicTest {
@Test @Test
public void loadDeepSpeech_sttWithMetadata_withLM() { public void loadDeepSpeech_sttWithMetadata_withLM() {
DeepSpeechModel m = new DeepSpeechModel(modelFile, BEAM_WIDTH); DeepSpeechModel m = new DeepSpeechModel(modelFile, BEAM_WIDTH);
m.enableDecoderWihLM(lmFile, trieFile, LM_ALPHA, LM_BETA); m.enableDecoderWithLM(lmFile, trieFile, LM_ALPHA, LM_BETA);
String decoded = doSTT(m, true); String decoded = doSTT(m, true);
assertEquals("she had your dark suit in greasy wash water all year", decoded); assertEquals("she had your dark suit in greasy wash water all year", decoded);

View File

@ -56,7 +56,7 @@ public class DeepSpeechModel {
* *
* @return Zero on success, non-zero on failure (invalid arguments). * @return Zero on success, non-zero on failure (invalid arguments).
*/ */
public void enableDecoderWihLM(String lm, String trie, float lm_alpha, float lm_beta) { public void enableDecoderWithLM(String lm, String trie, float lm_alpha, float lm_beta) {
impl.EnableDecoderWithLM(this._msp, lm, trie, lm_alpha, lm_beta); impl.EnableDecoderWithLM(this._msp, lm, trie, lm_alpha, lm_beta);
} }