Public Member Functions | |
def | __init__ |
def | request |
Static Public Attributes | |
string | FORMAT = 'x-wav' |
list | LANGUAGES = ['ja', 'en', 'zh', 'ko'] |
string | URL = 'http://rospeex.ucri.jgn-x.jp/nauth_json/jsServices/VoiceTraSS' |
dictionary | VOICEFONT_DICT |
Private Member Functions | |
def | _check_decorded_data |
def | _check_voice_font |
def | _request_tts |
SpeechSynthesisCient_NICT class
Definition at line 25 of file ss/client_nict.py.
initialize function
Definition at line 37 of file ss/client_nict.py.
def rospeex_core.ss.client_nict.SpeechSynthesisClient_NICT._check_decorded_data | ( | self, | |
decorded_data | |||
) | [private] |
@param decorded_data: @type decorded_data: @return: True to success / False to failture @rtype: bool @raise InvalidResponseException:
Definition at line 99 of file ss/client_nict.py.
def rospeex_core.ss.client_nict.SpeechSynthesisClient_NICT._check_voice_font | ( | self, | |
voice_font, | |||
language | |||
) | [private] |
check voice font @param voice_font: @type voice_font: @param language: @type language: @raise ParameterException
Definition at line 83 of file ss/client_nict.py.
def rospeex_core.ss.client_nict.SpeechSynthesisClient_NICT._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.
Definition at line 133 of file ss/client_nict.py.
def rospeex_core.ss.client_nict.SpeechSynthesisClient_NICT.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.client_base.SpeechSynthesisClient.
Definition at line 42 of file ss/client_nict.py.
string rospeex_core::ss::client_nict.SpeechSynthesisClient_NICT::FORMAT = 'x-wav' [static] |
Definition at line 28 of file ss/client_nict.py.
list rospeex_core::ss::client_nict.SpeechSynthesisClient_NICT::LANGUAGES = ['ja', 'en', 'zh', 'ko'] [static] |
Definition at line 29 of file ss/client_nict.py.
string rospeex_core::ss::client_nict.SpeechSynthesisClient_NICT::URL = 'http://rospeex.ucri.jgn-x.jp/nauth_json/jsServices/VoiceTraSS' [static] |
Definition at line 27 of file ss/client_nict.py.
dictionary rospeex_core::ss::client_nict.SpeechSynthesisClient_NICT::VOICEFONT_DICT [static] |
{ 'ja': ['F128', 'F117', '*'], 'en': ['EF007', '*'], 'zh': ['CJF101', '*'], 'ko': ['KF001', '*'] }
Definition at line 30 of file ss/client_nict.py.