Public Member Functions | |
def | __init__ |
def | join |
def | run |
Private Member Functions | |
def | _create_client |
def | _load_parameters |
def | _publish_streaming_result |
def | _streaming_callback |
def | _streaming_config |
def | _sync_callback |
def | _update_user_dictionary |
Private Attributes | |
_google_api_key | |
_microsoft_api_key | |
_publisher | |
_sr_config_service | |
_stream_client | |
_stream_client_lock | |
_stream_engine | |
_stream_id | |
_stream_language | |
_user_request_dict | |
Static Private Attributes | |
string | _MY_NODE_NAME = 'rospeex_sr' |
string | _REQUEST_TOPIC_NAME = 'sr_req' |
string | _RESPONSE_TOPIC_NAME = 'sr_res' |
string | _SPI_CONFIG_SERVICE_NAME = 'spi_config' |
string | _STREAM_TOPIC_NAME = 'spi_stream' |
SpeechRecognition class
Definition at line 23 of file sr/node.py.
def rospeex_core.sr.node.SpeechRecognition.__init__ | ( | self | ) |
init
Definition at line 32 of file sr/node.py.
def rospeex_core.sr.node.SpeechRecognition._create_client | ( | self, | |
engine, | |||
language | |||
) | [private] |
create client @param engine: @param language:
Definition at line 168 of file sr/node.py.
def rospeex_core.sr.node.SpeechRecognition._load_parameters | ( | self | ) | [private] |
load paramters from roscore
Definition at line 49 of file sr/node.py.
def rospeex_core.sr.node.SpeechRecognition._publish_streaming_result | ( | self, | |
text | |||
) | [private] |
publish streaming result data @param text: send text @type text: str
Definition at line 54 of file sr/node.py.
def rospeex_core.sr.node.SpeechRecognition._streaming_callback | ( | self, | |
request | |||
) | [private] |
Definition at line 95 of file sr/node.py.
def rospeex_core.sr.node.SpeechRecognition._streaming_config | ( | self, | |
request | |||
) | [private] |
Definition at line 104 of file sr/node.py.
def rospeex_core.sr.node.SpeechRecognition._sync_callback | ( | self, | |
request | |||
) | [private] |
callback function for sr_req topic @param request: topic data @type request: str
Definition at line 123 of file sr/node.py.
def rospeex_core.sr.node.SpeechRecognition._update_user_dictionary | ( | self, | |
header | |||
) | [private] |
renew user request dictionary @param header: request header @type header: str
Definition at line 69 of file sr/node.py.
def rospeex_core.sr.node.SpeechRecognition.join | ( | self, | |
timeout = None |
|||
) |
Definition at line 226 of file sr/node.py.
def rospeex_core.sr.node.SpeechRecognition.run | ( | self | ) |
run rospeex sr node
Definition at line 184 of file sr/node.py.
Definition at line 32 of file sr/node.py.
Definition at line 32 of file sr/node.py.
string rospeex_core::sr::node.SpeechRecognition::_MY_NODE_NAME = 'rospeex_sr' [static, private] |
Definition at line 26 of file sr/node.py.
Definition at line 32 of file sr/node.py.
string rospeex_core::sr::node.SpeechRecognition::_REQUEST_TOPIC_NAME = 'sr_req' [static, private] |
Definition at line 27 of file sr/node.py.
string rospeex_core::sr::node.SpeechRecognition::_RESPONSE_TOPIC_NAME = 'sr_res' [static, private] |
Definition at line 28 of file sr/node.py.
string rospeex_core::sr::node.SpeechRecognition::_SPI_CONFIG_SERVICE_NAME = 'spi_config' [static, private] |
Definition at line 29 of file sr/node.py.
Definition at line 32 of file sr/node.py.
Definition at line 32 of file sr/node.py.
Definition at line 32 of file sr/node.py.
Definition at line 32 of file sr/node.py.
Definition at line 32 of file sr/node.py.
Definition at line 32 of file sr/node.py.
string rospeex_core::sr::node.SpeechRecognition::_STREAM_TOPIC_NAME = 'spi_stream' [static, private] |
Definition at line 30 of file sr/node.py.
Definition at line 32 of file sr/node.py.