-
Notifications
You must be signed in to change notification settings - Fork 73
/
recobs.txt
30 lines (23 loc) · 1.07 KB
/
recobs.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.. _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.
* ``on_end()`` -- called when speech ends, either with a successful
recognition or in failure.
* ``on_post_recognition()`` -- called *after* all rule processing has
completed after a successful recognition.
.. 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.