-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing documentation on recognition observers
Re: #77.
- Loading branch information
Showing
4 changed files
with
77 additions
and
2 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 |
---|---|---|
|
@@ -13,6 +13,7 @@ object model. | |
rules | ||
elements | ||
context | ||
recobs | ||
|
||
|
||
Grammars | ||
|
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 @@ | ||
.. _Recobs: | ||
|
||
Recognition observers | ||
============================================================================ | ||
|
||
This section describes classes and functions for observing Dragonfly's | ||
recognition state events: | ||
|
||
* ``on_begin()`` -- called when speech start is detected. | ||
* ``on_recognition()`` -- called when speech successfully decoded to a | ||
grammar rule or to dictation. This is called *before* grammar rule | ||
processing (i.e. ``Rule.process_recognition()``). | ||
* ``on_failure()`` -- called when speech failed to decode to a grammar rule | ||
or to dictation. | ||
|
||
.. automodule:: dragonfly.grammar.recobs | ||
:members: | ||
|
||
.. automodule:: dragonfly.grammar.recobs_callbacks | ||
:members: | ||
|
||
Doctest usage examples | ||
---------------------------------------------------------------------------- | ||
|
||
See Dragonfly's :ref:`doctests for recognition observers<Recobs Doc Tests>` | ||
for some usage examples. |
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