Public Member Functions | Static Public Attributes | Private Member Functions
rospeex_core.ss.client_nict.SpeechSynthesisClient_NICT Class Reference
Inheritance diagram for rospeex_core.ss.client_nict.SpeechSynthesisClient_NICT:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

SpeechSynthesisCient_NICT class 

Definition at line 25 of file ss/client_nict.py.


Constructor & Destructor Documentation

initialize function 

Definition at line 37 of file ss/client_nict.py.


Member Function Documentation

@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.


Member Data Documentation

Definition at line 28 of file ss/client_nict.py.

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.

Initial value:
{
        'ja': ['F128', 'F117', '*'],
        'en': ['EF007', '*'],
        'zh': ['CJF101', '*'],
        'ko': ['KF001', '*']
    }

Definition at line 30 of file ss/client_nict.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