Public Member Functions | |
| def | __init__ |
| def | run |
Static Public Attributes | |
| string | MY_NODE_NAME = 'rospeex_ss' |
| string | REQUEST_TOPIC_NAME = 'ss_req' |
| string | RESPONSE_TOPIC_NAME = 'ss_res' |
| string | STATE_TOPIC_NAME = 'ss_state' |
Private Member Functions | |
| def | _callback_func |
| def | _play_data |
| def | _publish_state |
| def | _save_data |
| def | _update_user_dictionary |
Private Attributes | |
| _pub_res | |
| _pub_state | |
| _user_request_dict | |
SpeechSynthesis class
Definition at line 26 of file rospeex_ss.py.
| def rospeex_ss.SpeechSynthesis.__init__ | ( | self | ) |
init function
Definition at line 33 of file rospeex_ss.py.
| def rospeex_ss.SpeechSynthesis._callback_func | ( | self, | |
| request | |||
| ) | [private] |
callback functioin for ss_req topic @param request: request data @param request: str
Definition at line 119 of file rospeex_ss.py.
| def rospeex_ss.SpeechSynthesis._play_data | ( | self, | |
| response | |||
| ) | [private] |
play audio data @param response: audio data @type response: str
Definition at line 63 of file rospeex_ss.py.
| def rospeex_ss.SpeechSynthesis._publish_state | ( | self, | |
| header, | |||
| state | |||
| ) | [private] |
publish state topic @param header: speech synthesis header @type header: str @param state: audio state @type state: bool
Definition at line 105 of file rospeex_ss.py.
| def rospeex_ss.SpeechSynthesis._save_data | ( | cls, | |
| file_name, | |||
| data | |||
| ) | [private] |
save data to target file @param file_name: target file @type file_name: str @param data: audio data @type data: str
Definition at line 94 of file rospeex_ss.py.
| def rospeex_ss.SpeechSynthesis._update_user_dictionary | ( | self, | |
| header | |||
| ) | [private] |
renew user request dictionary @param header: request header @type header: str
Definition at line 40 of file rospeex_ss.py.
| def rospeex_ss.SpeechSynthesis.run | ( | self | ) |
node main function
Definition at line 165 of file rospeex_ss.py.
rospeex_ss.SpeechSynthesis::_pub_res [private] |
Definition at line 33 of file rospeex_ss.py.
rospeex_ss.SpeechSynthesis::_pub_state [private] |
Definition at line 33 of file rospeex_ss.py.
Definition at line 33 of file rospeex_ss.py.
string rospeex_ss.SpeechSynthesis::MY_NODE_NAME = 'rospeex_ss' [static] |
Definition at line 28 of file rospeex_ss.py.
string rospeex_ss.SpeechSynthesis::REQUEST_TOPIC_NAME = 'ss_req' [static] |
Definition at line 29 of file rospeex_ss.py.
string rospeex_ss.SpeechSynthesis::RESPONSE_TOPIC_NAME = 'ss_res' [static] |
Definition at line 30 of file rospeex_ss.py.
string rospeex_ss.SpeechSynthesis::STATE_TOPIC_NAME = 'ss_state' [static] |
Definition at line 31 of file rospeex_ss.py.