Subclass of AbstractHMIServer that creates a HMI client for
KaldiGstApp
Definition at line 19 of file hmi_server_kaldi_client.py.
◆ __init__()
def speech_recognition.hmi_server_kaldi_client.HMIServerKaldiClient.__init__ |
( |
|
self | ) |
|
Class constructor that initializes the parent AbstractHMIServer class
and gets parameters from ROS parameter server
Definition at line 24 of file hmi_server_kaldi_client.py.
◆ _determine_answer()
def speech_recognition.hmi_server_kaldi_client.HMIServerKaldiClient._determine_answer |
( |
|
self, |
|
|
|
description, |
|
|
|
grammar, |
|
|
|
target, |
|
|
|
is_preempt_requested |
|
) |
| |
|
private |
Method override to start speech recognition upon receiving a query
from the HMI server
:param description: (str) description of the HMI request
:param grammar: (str) grammar that should be used
:param target: (str) target that should be obtained from the grammar
:param is_preempt_requested: (callable) checks whether a preempt is requested by the hmi client
Definition at line 50 of file hmi_server_kaldi_client.py.
◆ _on_message()
def speech_recognition.hmi_server_kaldi_client.HMIServerKaldiClient._on_message |
( |
|
self, |
|
|
|
bus, |
|
|
|
message |
|
) |
| |
|
private |
Callback for gstreamer pipeline bus message. Sets the gstreamer pipeline state to NULL and sets the
kaldi app to None
:param bus:
:param message:
Definition at line 78 of file hmi_server_kaldi_client.py.
◆ _kaldi_app
speech_recognition.hmi_server_kaldi_client.HMIServerKaldiClient._kaldi_app |
|
private |
◆ model_path
speech_recognition.hmi_server_kaldi_client.HMIServerKaldiClient.model_path |
The documentation for this class was generated from the following file: