Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
rospeex_ss.SpeechSynthesis Class Reference

List of all members.

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

Detailed Description

SpeechSynthesis class 

Definition at line 26 of file rospeex_ss.py.


Constructor & Destructor Documentation

init function 

Definition at line 33 of file rospeex_ss.py.


Member Function Documentation

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.

node main function 

Definition at line 165 of file rospeex_ss.py.


Member Data Documentation

Definition at line 33 of file rospeex_ss.py.

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.

Definition at line 29 of file rospeex_ss.py.

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.


The documentation for this class was generated from the following file:


rospeex_core
Author(s): Komei Sugiura
autogenerated on Wed Aug 26 2015 16:10:30