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

List of all members.

Public Member Functions

def __init__
def request

Static Public Attributes

string DEFAULT_VOICE_FONT = 'nozomi'
list LANGUAGES = ['ja']
list SPEAKER_LIST = ['nozomi','seiji','akari','anzu','hiroshi','kaho','koutarou','maki','nanako','osamu','sumire', '*']
list TEXT_RANGE = [0, 200]
string URL = "https://api.apigw.smt.docomo.ne.jp/aiTalk/%s/textToSpeech"
string VERSION = "v1"

Private Member Functions

def _check_api_key
def _check_errors
def _check_text
def _check_voice_font
def _create_wav_buffer
def _load_parameter

Private Attributes

 _audiofileformat
 _key
 _powerrate
 _speakerid
 _speechrate
 _ssml_text
 _voicetype

Detailed Description

SpeechSynthesisCient_docomo_aitalk class 

Definition at line 23 of file docomo_aitalk.py.


Constructor & Destructor Documentation

init function
@param args: parameter list for initialize
@type args: list
@param kwargs: parameter dictionary for initialize

Definition at line 36 of file docomo_aitalk.py.


Member Function Documentation

check api key
@raises ParameterException

Definition at line 149 of file docomo_aitalk.py.

def rospeex_core.ss.docomo_aitalk.Client._check_errors (   self,
  status_code 
) [private]
check server errors
@param status_code: status code
@type  status_code: int
@raises InvalidRequestException
@raises InvalidResponseException

Definition at line 188 of file docomo_aitalk.py.

def rospeex_core.ss.docomo_aitalk.Client._check_text (   self,
  text 
) [private]
check tts text
@param text: text
@type str
@raises ParameterException

Definition at line 158 of file docomo_aitalk.py.

def rospeex_core.ss.docomo_aitalk.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 173 of file docomo_aitalk.py.

def rospeex_core.ss.docomo_aitalk.Client._create_wav_buffer (   self,
  content 
) [private]
create wave buffer
@param content: binary data
@type  content: str
@raises WaveConvertException

Definition at line 240 of file docomo_aitalk.py.

load parameter from rospy 

Definition at line 50 of file docomo_aitalk.py.

def rospeex_core.ss.docomo_aitalk.Client.request (   self,
  message,
  language = 'ja',
  voice_font = 'nozomi',
  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 58 of file docomo_aitalk.py.


Member Data Documentation

Definition at line 40 of file docomo_aitalk.py.

Definition at line 40 of file docomo_aitalk.py.

Definition at line 40 of file docomo_aitalk.py.

Definition at line 40 of file docomo_aitalk.py.

Definition at line 40 of file docomo_aitalk.py.

Definition at line 72 of file docomo_aitalk.py.

Definition at line 40 of file docomo_aitalk.py.

Definition at line 34 of file docomo_aitalk.py.

Definition at line 25 of file docomo_aitalk.py.

list rospeex_core::ss::docomo_aitalk.Client::SPEAKER_LIST = ['nozomi','seiji','akari','anzu','hiroshi','kaho','koutarou','maki','nanako','osamu','sumire', '*'] [static]

Definition at line 31 of file docomo_aitalk.py.

Definition at line 32 of file docomo_aitalk.py.

string rospeex_core::ss::docomo_aitalk.Client::URL = "https://api.apigw.smt.docomo.ne.jp/aiTalk/%s/textToSpeech" [static]

Definition at line 29 of file docomo_aitalk.py.

Definition at line 28 of file docomo_aitalk.py.


The documentation for this class was generated from the following file:


rospeex_core
Author(s): Komei Sugiura
autogenerated on Thu Jun 6 2019 18:53:10