.. _cpp-examples-speech-based-reaction:

Speech based reaction
=====================

:ref:`\<\< return to C++ examples<cpp-examples>`

Overview
--------

**ALSpeechBasedReaction** example module shows how to react to a specific voice
command using speech recognition.

This module can be **remote or local**.

Downloads
---------

Whole module
++++++++++++

:download:`speechbasedreaction.zip <../speechbasedreaction.zip>`

Header: alspeechbasedreaction.h
+++++++++++++++++++++++++++++++

:download:`alspeechbasedreaction.h <alspeechbasedreaction.h>`

.. literalinclude:: alspeechbasedreaction.h
   :language: cpp

Source: alspeechbasedreaction.cpp
+++++++++++++++++++++++++++++++++

:download:`alspeechbasedreaction.cpp <alspeechbasedreaction.cpp>`

.. literalinclude:: alspeechbasedreaction.cpp
   :language: cpp

Main: main.cpp
++++++++++++++

:download:`speechbasedreactionmain.cpp <main.cpp>`

.. literalinclude:: main.cpp
   :language: cpp

CMakeLists.txt
++++++++++++++

:download:`CMakeLists.txt <CMakeLists.txt>`

.. literalinclude:: CMakeLists.txt
   :language: cmake
