forked from coqui-ai/STT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes coqui-ai#2338
- Loading branch information
Alexandre Lissy
committed
Oct 4, 2019
1 parent
9ce8c24
commit d1936c6
Showing
9 changed files
with
180 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
C API Usage example | ||
=================== | ||
|
||
Creating a model instance and loading model | ||
------------------------------------------- | ||
|
||
.. literalinclude:: ../native_client/client.cc | ||
:language: c | ||
:linenos: | ||
:lines: 369-395 | ||
|
||
Performing inference | ||
-------------------- | ||
|
||
.. literalinclude:: ../native_client/client.cc | ||
:language: c | ||
:linenos: | ||
:lines: 55-106 | ||
|
||
Full source code | ||
---------------- | ||
|
||
See :download:`Full source code<../native_client/client.cc>`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.Net API contributed examples | ||
============================= | ||
|
||
DeepSpeechWPF | ||
------------- | ||
|
||
This examples demonstrates using the .Net Framework DeepSpeech NuGet to build | ||
a graphical Windows application using DeepSpeech | ||
|
||
.. literalinclude:: ../examples/net_framework/DeepSpeechWPF/MainWindow.xaml.cs | ||
:language: csharp | ||
:linenos: | ||
|
||
Full source code available under `examples/net_framework/DeepSpeechWPF/`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Java API Usage example | ||
====================== | ||
|
||
Creating a model instance and loading model | ||
------------------------------------------- | ||
|
||
.. literalinclude:: ../native_client/java/app/src/main/java/org/mozilla/deepspeech/DeepSpeechActivity.java | ||
:language: java | ||
:linenos: | ||
:lines: 55 | ||
|
||
Performing inference | ||
-------------------- | ||
|
||
.. literalinclude:: ../native_client/java/app/src/main/java/org/mozilla/deepspeech/DeepSpeechActivity.java | ||
:language: java | ||
:linenos: | ||
:lines: 103 | ||
|
||
Full source code | ||
---------------- | ||
|
||
See :download:`Full source code<../native_client/java/app/src/main/java/org/mozilla/deepspeech/DeepSpeechActivity.java>`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
JavaScript API Usage example | ||
============================= | ||
|
||
Creating a model instance and loading model | ||
------------------------------------------- | ||
|
||
.. literalinclude:: ../native_client/javascript/client.js | ||
:language: javascript | ||
:linenos: | ||
:lines: 102-112 | ||
|
||
Performing inference | ||
-------------------- | ||
|
||
.. literalinclude:: ../native_client/javascript/client.js | ||
:language: javascript | ||
:linenos: | ||
:lines: 120-124 | ||
|
||
Full source code | ||
---------------- | ||
|
||
See :download:`Full source code<../native_client/javascript/client.js>`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
JavaScript contributed examples | ||
=============================== | ||
|
||
NodeJS WAV | ||
---------- | ||
|
||
This example demonstrates a very basic usage of the NodeJS API | ||
|
||
.. literalinclude:: ../examples/nodejs_wav/index.js | ||
:language: javascript | ||
:linenos: | ||
|
||
Full source code available under `../examples/nodejs_wav/`. | ||
|
||
FFMPEG VAD Streaming | ||
-------------------- | ||
|
||
This example demonstrates using the Streaming API with ffmpeg to perform some | ||
Voice-Activity-Detection. | ||
|
||
.. literalinclude:: ../examples/ffmpeg_vad_streaming/index.js | ||
:language: javascript | ||
:linenos: | ||
|
||
Full source code available under `../examples/ffmpeg_vad_streaming/`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Python API Usage example | ||
======================== | ||
|
||
Creating a model instance and loading model | ||
------------------------------------------- | ||
|
||
.. literalinclude:: ../native_client/python/client.py | ||
:language: python | ||
:linenos: | ||
:lines: 80, 87 | ||
|
||
Performing inference | ||
-------------------- | ||
|
||
.. literalinclude:: ../native_client/python/client.py | ||
:language: python | ||
:linenos: | ||
:lines: 104-107 | ||
|
||
Full source code | ||
---------------- | ||
|
||
See :download:`Full source code<../native_client/python/client.py>`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Python contributed examples | ||
=========================== | ||
|
||
Mic VAD Streaming | ||
----------------- | ||
|
||
This example demonstrates getting audio from microphone, running | ||
Voice-Activity-Detection and then outputting text. | ||
|
||
.. literalinclude:: ../examples/mic_vad_streaming/mic_vad_streaming.py | ||
:language: python | ||
:linenos: | ||
|
||
Full source code available under `../examples/mic_vad_streaming/`. | ||
|
||
VAD Transcriber | ||
--------------- | ||
|
||
This example demonstrates VAD-based transcription with both console and | ||
graphical interface. | ||
|
||
.. literalinclude:: ../examples/vad_transcriber/wavTranscriber.py | ||
:language: python | ||
:linenos: | ||
|
||
Full source code available under `../examples/vad_transcriber/wavTranscriber.py`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ semver==2.8.1 | |
sphinx==2.2.0 | ||
sphinx-js==2.8 | ||
sphinx-rtd-theme==0.4.3 | ||
pygments==2.4.2 |