Public Member Functions | |
def | __init__ |
def | request |
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.voicetext.jp/%s/tts" |
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 25 of file client_voicetext.py.
init function @param args: parameter list for initialize @type args: list @param kwargs: parameter dictionary for initialize
Definition at line 42 of file client_voicetext.py.
def rospeex_core.ss.client_voicetext.SpeechSynthesisClient_VoiceText._check_api_key | ( | self | ) | [private] |
check api key @raises ParameterException
Definition at line 148 of file client_voicetext.py.
def rospeex_core.ss.client_voicetext.SpeechSynthesisClient_VoiceText._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 187 of file client_voicetext.py.
def rospeex_core.ss.client_voicetext.SpeechSynthesisClient_VoiceText._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 249 of file client_voicetext.py.
def rospeex_core.ss.client_voicetext.SpeechSynthesisClient_VoiceText._check_pitch | ( | self | ) | [private] |
check speed level @raises ParameterException
Definition at line 236 of file client_voicetext.py.
def rospeex_core.ss.client_voicetext.SpeechSynthesisClient_VoiceText._check_speed | ( | self | ) | [private] |
check speed level @raises ParameterException
Definition at line 223 of file client_voicetext.py.
def rospeex_core.ss.client_voicetext.SpeechSynthesisClient_VoiceText._check_text | ( | self, | |
text | |||
) | [private] |
check tts text @param text: text @type str @raises ParameterException
Definition at line 158 of file client_voicetext.py.
def rospeex_core.ss.client_voicetext.SpeechSynthesisClient_VoiceText._check_voice_font | ( | self, | |
voice_font | |||
) | [private] |
check voice font @param voice_font: voice font @type voice_font: str @raises ParameterException
Definition at line 173 of file client_voicetext.py.
def rospeex_core.ss.client_voicetext.SpeechSynthesisClient_VoiceText._check_volume | ( | self | ) | [private] |
check volume level @raises ParameterException
Definition at line 210 of file client_voicetext.py.
def rospeex_core.ss.client_voicetext.SpeechSynthesisClient_VoiceText._load_parameter | ( | self | ) | [private] |
load parameter from rospy
Definition at line 57 of file client_voicetext.py.
def rospeex_core.ss.client_voicetext.SpeechSynthesisClient_VoiceText.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.client_base.SpeechSynthesisClient.
Definition at line 71 of file client_voicetext.py.
Definition at line 46 of file client_voicetext.py.
Definition at line 46 of file client_voicetext.py.
Definition at line 46 of file client_voicetext.py.
Definition at line 46 of file client_voicetext.py.
Definition at line 46 of file client_voicetext.py.
Definition at line 46 of file client_voicetext.py.
string rospeex_core::ss::client_voicetext.SpeechSynthesisClient_VoiceText::DEFAULT_VOICE_FONT = 'show' [static] |
Definition at line 40 of file client_voicetext.py.
list rospeex_core::ss::client_voicetext.SpeechSynthesisClient_VoiceText::EMOTION_LIST = ['heppiness', 'anger', 'sadness'] [static] |
Definition at line 33 of file client_voicetext.py.
list rospeex_core::ss::client_voicetext.SpeechSynthesisClient_VoiceText::EMOTION_RANGE = [1, 2] [static] |
Definition at line 35 of file client_voicetext.py.
list rospeex_core::ss::client_voicetext.SpeechSynthesisClient_VoiceText::EMOTION_SPEAKER = ['haruka', 'hikari', 'takeru', 'santa', 'bear'] [static] |
Definition at line 34 of file client_voicetext.py.
list rospeex_core::ss::client_voicetext.SpeechSynthesisClient_VoiceText::LANGUAGES = ['ja'] [static] |
Definition at line 27 of file client_voicetext.py.
list rospeex_core::ss::client_voicetext.SpeechSynthesisClient_VoiceText::PITCH_RANGE = [50, 200] [static] |
Definition at line 37 of file client_voicetext.py.
list rospeex_core::ss::client_voicetext.SpeechSynthesisClient_VoiceText::SPEAKER_LIST = ['show', 'haruka', 'hikari', 'takeru', 'santa', 'bear', '*'] [static] |
Definition at line 32 of file client_voicetext.py.
list rospeex_core::ss::client_voicetext.SpeechSynthesisClient_VoiceText::SPEED_RANGE = [50, 400] [static] |
Definition at line 38 of file client_voicetext.py.
list rospeex_core::ss::client_voicetext.SpeechSynthesisClient_VoiceText::TEXT_RANGE = [0, 200] [static] |
Definition at line 36 of file client_voicetext.py.
string rospeex_core::ss::client_voicetext.SpeechSynthesisClient_VoiceText::URL = "https://api.voicetext.jp/%s/tts" [static] |
Definition at line 31 of file client_voicetext.py.
string rospeex_core::ss::client_voicetext.SpeechSynthesisClient_VoiceText::VERSION = "v1" [static] |
Definition at line 30 of file client_voicetext.py.
list rospeex_core::ss::client_voicetext.SpeechSynthesisClient_VoiceText::VOLUME_RANGE = [50, 200] [static] |
Definition at line 39 of file client_voicetext.py.