Java API Usage example¶
Examples are from native_client/java/app/src/main/java/org/mozilla/deepspeech/DeepSpeechActivity.java.
Creating a model instance and loading model¶
53 54 | this._m = new DeepSpeechModel(tfliteModel);
this._m.setBeamWidth(BEAM_WIDTH);
|
Performing inference¶
104 | String decoded = this._m.stt(shorts, shorts.length);
|
Full source code¶
See Full source code
.