Merge pull request #2644 from lissyx/android-binding-typo

Fix DS_EnableDecoderWithLM typo in Android bindings
This commit is contained in:
lissyx 2020-01-13 16:31:27 +01:00 committed by GitHub
commit 1752d6d03f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ public class BasicTest {
@Test
public void loadDeepSpeech_stt_withLM() {
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);
assertEquals("she had your dark suit in greasy wash water all year", decoded);
@ -149,7 +149,7 @@ public class BasicTest {
@Test
public void loadDeepSpeech_sttWithMetadata_withLM() {
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);
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).
*/
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);
}