STT/doc/DotNet-Examples.rst
2021-10-02 13:38:46 +02:00

30 lines
850 B
ReStructuredText

.NET API Usage example
======================
Examples are from `native_client/dotnet/STTConsole/Program.cs`.
Creating a model instance and loading model
-------------------------------------------
.. literalinclude:: ../native_client/dotnet/STTConsole/Program.cs
:language: csharp
:linenos:
:lineno-match:
:start-after: sphinx-doc: csharp_ref_model_start
:end-before: sphinx-doc: csharp_ref_model_stop
Transcribing audio with the loaded model
----------------------------------------
.. literalinclude:: ../native_client/dotnet/STTConsole/Program.cs
:language: csharp
:linenos:
:lineno-match:
:start-after: sphinx-doc: csharp_ref_inference_start
:end-before: sphinx-doc: csharp_ref_inference_stop
Full source code
----------------
See :download:`Full source code<../native_client/dotnet/STTConsole/Program.cs>`.