Java API Usage example¶
Examples are from native_client/java/app/src/main/java/ai/coqui/sttexampleapp/STTActivity.java.
Creating a model instance and loading model¶
53 54 | this._m = new STTModel(tfliteModel);
this._m.setBeamWidth(BEAM_WIDTH);
|
Transcribing audio with the loaded model¶
104 | String decoded = this._m.stt(shorts, shorts.length);
|
Full source code¶
See Full source code
.