Public Member Functions | |
def | __init__ |
def | request |
Public Attributes | |
URL | |
Static Public Attributes | |
string | DEFAULT_VOICE_FONT = 'show' |
list | EMOTION_LIST = ['heppiness', 'anger', 'sadness'] |
list | EMOTION_RANGE = [1, 2] |
list | EMOTION_SPEAKER = ['haruka', 'hikari', 'takeru', 'santa', 'bear'] |
list | LANGUAGES = ['ja'] |
list | PITCH_RANGE = [50, 200] |
list | SPEAKER_LIST = ['show', 'haruka', 'hikari', 'takeru', 'santa', 'bear', '*'] |
list | SPEED_RANGE = [50, 400] |
list | TEXT_RANGE = [0, 200] |
string | URL = "https://api.apigw.smt.docomo.ne.jp/voiceText/%s/textToSpeech?" |
string | VERSION = "v1" |
list | VOLUME_RANGE = [50, 200] |
Private Member Functions | |
def | _check_api_key |
def | _check_emotion |
def | _check_errors |
def | _check_pitch |
def | _check_speed |
def | _check_text |
def | _check_voice_font |
def | _check_volume |
def | _load_parameter |
Private Attributes | |
_emotion | |
_emotion_level | |
_key | |
_pitch | |
_speed | |
_volume |
SpeechSynthesisCient_VoiceText class
Definition at line 18 of file docomo_hoya.py.
def rospeex_core.ss.docomo_hoya.Client.__init__ | ( | self | ) |
init function @param args: parameter list for initialize @type args: list @param kwargs: parameter dictionary for initialize
Definition at line 35 of file docomo_hoya.py.
def rospeex_core.ss.docomo_hoya.Client._check_api_key | ( | self | ) | [private] |
check api key @raises ParameterException
Definition at line 155 of file docomo_hoya.py.
def rospeex_core.ss.docomo_hoya.Client._check_emotion | ( | self, | |
voice_font | |||
) | [private] |
check emotion and emotion_level @param voice_font: voice font @type voice_font: str @raises ParameterException
Definition at line 194 of file docomo_hoya.py.
def rospeex_core.ss.docomo_hoya.Client._check_errors | ( | self, | |
status_code, | |||
content | |||
) | [private] |
check server errors @param status_code: status code @type status_code: int @param content: response message @type content: str @raises InvalidRequestException @raises InvalidResponseException
Definition at line 258 of file docomo_hoya.py.
def rospeex_core.ss.docomo_hoya.Client._check_pitch | ( | self | ) | [private] |
check speed level @raises ParameterException
Definition at line 246 of file docomo_hoya.py.
def rospeex_core.ss.docomo_hoya.Client._check_speed | ( | self | ) | [private] |
check speed level @raises ParameterException
Definition at line 234 of file docomo_hoya.py.
def rospeex_core.ss.docomo_hoya.Client._check_text | ( | self, | |
text | |||
) | [private] |
check tts text @param text: text @type str @raises ParameterException
Definition at line 164 of file docomo_hoya.py.
def rospeex_core.ss.docomo_hoya.Client._check_voice_font | ( | self, | |
voice_font | |||
) | [private] |
check voice font @param voice_font: voice font @type voice_font: str @raises ParameterException
Definition at line 179 of file docomo_hoya.py.
def rospeex_core.ss.docomo_hoya.Client._check_volume | ( | self | ) | [private] |
check volume level @raises ParameterException
Definition at line 222 of file docomo_hoya.py.
def rospeex_core.ss.docomo_hoya.Client._load_parameter | ( | self | ) | [private] |
load parameter from rospy
Definition at line 49 of file docomo_hoya.py.
def rospeex_core.ss.docomo_hoya.Client.request | ( | self, | |
message, | |||
language = 'ja' , |
|||
voice_font = 'show' , |
|||
timeout = 10 |
|||
) |
Send speech synthesis request to server, and get speech synthesis result. @param message: message @type message: str @param language: speech synthesis language @type language: str @param voice_font: taraget voice font @type voice_font: str @param timeout: request timeout time (second) @type timeout: float @return: voice data (wav format binary) @rtype: str @raise SpeechSynthesisException:
Reimplemented from rospeex_core.ss.base.IClient.
Definition at line 66 of file docomo_hoya.py.
Definition at line 39 of file docomo_hoya.py.
Definition at line 39 of file docomo_hoya.py.
Definition at line 39 of file docomo_hoya.py.
Definition at line 39 of file docomo_hoya.py.
Definition at line 39 of file docomo_hoya.py.
Definition at line 39 of file docomo_hoya.py.
string rospeex_core::ss::docomo_hoya.Client::DEFAULT_VOICE_FONT = 'show' [static] |
Definition at line 33 of file docomo_hoya.py.
list rospeex_core::ss::docomo_hoya.Client::EMOTION_LIST = ['heppiness', 'anger', 'sadness'] [static] |
Definition at line 26 of file docomo_hoya.py.
list rospeex_core::ss::docomo_hoya.Client::EMOTION_RANGE = [1, 2] [static] |
Definition at line 28 of file docomo_hoya.py.
list rospeex_core::ss::docomo_hoya.Client::EMOTION_SPEAKER = ['haruka', 'hikari', 'takeru', 'santa', 'bear'] [static] |
Definition at line 27 of file docomo_hoya.py.
list rospeex_core::ss::docomo_hoya.Client::LANGUAGES = ['ja'] [static] |
Definition at line 20 of file docomo_hoya.py.
list rospeex_core::ss::docomo_hoya.Client::PITCH_RANGE = [50, 200] [static] |
Definition at line 30 of file docomo_hoya.py.
list rospeex_core::ss::docomo_hoya.Client::SPEAKER_LIST = ['show', 'haruka', 'hikari', 'takeru', 'santa', 'bear', '*'] [static] |
Definition at line 25 of file docomo_hoya.py.
list rospeex_core::ss::docomo_hoya.Client::SPEED_RANGE = [50, 400] [static] |
Definition at line 31 of file docomo_hoya.py.
list rospeex_core::ss::docomo_hoya.Client::TEXT_RANGE = [0, 200] [static] |
Definition at line 29 of file docomo_hoya.py.
string rospeex_core::ss::docomo_hoya.Client::URL = "https://api.apigw.smt.docomo.ne.jp/voiceText/%s/textToSpeech?" [static] |
Definition at line 24 of file docomo_hoya.py.
Definition at line 80 of file docomo_hoya.py.
string rospeex_core::ss::docomo_hoya.Client::VERSION = "v1" [static] |
Definition at line 23 of file docomo_hoya.py.
list rospeex_core::ss::docomo_hoya.Client::VOLUME_RANGE = [50, 200] [static] |
Definition at line 32 of file docomo_hoya.py.