Public Member Functions | |
def | __init__ |
def | request |
Static Public Attributes | |
string | FORMAT = 'x-wav' |
list | LANGUAGES = ['ja', 'en', 'zh', 'ko', 'id', 'my', 'th', 'vi'] |
string | URL = 'http://rospeex.nict.go.jp/nauth_json/jsServices/VoiceTraSS' |
dictionary | VOICEFONT_DICT |
Private Member Functions | |
def | _check_decorded_data |
def | _check_voice_font |
def | _request_tts |
def rospeex_core.ss.nict.Client.__init__ | ( | self | ) |
def rospeex_core.ss.nict.Client._check_decorded_data | ( | self, | |
decorded_data | |||
) | [private] |
def rospeex_core.ss.nict.Client._check_voice_font | ( | self, | |
voice_font, | |||
language | |||
) | [private] |
def rospeex_core.ss.nict.Client._request_tts | ( | self, | |
message, | |||
language, | |||
voice_font, | |||
timeout | |||
) | [private] |
request tts to NICT server @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 InvalidRequestException: send invalid request. @raise InvalidResponseException: server error. @raise RequestTimeoutException: timeout error.
def rospeex_core.ss.nict.Client.request | ( | self, | |
message, | |||
language = 'ja' , |
|||
voice_font = '*' , |
|||
timeout = socket._GLOBAL_DEFAULT_TIMEOUT |
|||
) |
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 InvalidResponseException: @raise InvalidRequestException: send invalid request. @raise InvalidResponseException: server error. @raise RequestTimeoutException: timeout error.
Reimplemented from rospeex_core.ss.base.IClient.
string rospeex_core::ss::nict.Client::FORMAT = 'x-wav' [static] |
list rospeex_core::ss::nict.Client::LANGUAGES = ['ja', 'en', 'zh', 'ko', 'id', 'my', 'th', 'vi'] [static] |
string rospeex_core::ss::nict.Client::URL = 'http://rospeex.nict.go.jp/nauth_json/jsServices/VoiceTraSS' [static] |
dictionary rospeex_core::ss::nict.Client::VOICEFONT_DICT [static] |