30 lines
974 B
ReStructuredText
30 lines
974 B
ReStructuredText
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
|
|
-------------------------------------------
|
|
|
|
.. literalinclude:: ../native_client/java/app/src/main/java/ai/coqui/sttexampleapp/STTActivity.java
|
|
:language: java
|
|
:linenos:
|
|
:lineno-match:
|
|
:start-after: sphinx-doc: java_ref_model_start
|
|
:end-before: sphinx-doc: java_ref_model_stop
|
|
|
|
Transcribing audio with the loaded model
|
|
----------------------------------------
|
|
|
|
.. literalinclude:: ../native_client/java/app/src/main/java/ai/coqui/sttexampleapp/STTActivity.java
|
|
:language: java
|
|
:linenos:
|
|
:lineno-match:
|
|
:start-after: sphinx-doc: java_ref_inference_start
|
|
:end-before: sphinx-doc: java_ref_inference_stop
|
|
|
|
Full source code
|
|
----------------
|
|
|
|
See :download:`Full source code<../native_client/java/app/src/main/java/ai/coqui/sttexampleapp/STTActivity.java>`.
|