mirror of
https://github.com/mozilla/DeepSpeech.git
synced 2025-10-26 11:19:39 +00:00
24 lines
530 B
ReStructuredText
24 lines
530 B
ReStructuredText
JavaScript API Usage example
|
|
=============================
|
|
|
|
Creating a model instance and loading model
|
|
-------------------------------------------
|
|
|
|
.. literalinclude:: ../native_client/javascript/client.ts
|
|
:language: javascript
|
|
:linenos:
|
|
:lines: 49,54
|
|
|
|
Performing inference
|
|
--------------------
|
|
|
|
.. literalinclude:: ../native_client/javascript/client.ts
|
|
:language: javascript
|
|
:linenos:
|
|
:lines: 114,118
|
|
|
|
Full source code
|
|
----------------
|
|
|
|
See :download:`Full source code<../native_client/javascript/client.ts>`.
|