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

List of all members.

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

Detailed Description

SpeechSynthesisCient_VoiceText class 

Definition at line 25 of file client_voicetext.py.


Constructor & Destructor Documentation

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.


Member Function Documentation

check api key
@raises ParameterException

Definition at line 148 of file client_voicetext.py.

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.

check speed level
@raises ParameterException

Definition at line 236 of file client_voicetext.py.

check speed level
@raises ParameterException

Definition at line 223 of file client_voicetext.py.

check tts text
@param text: text
@type str
@raises ParameterException

Definition at line 158 of file client_voicetext.py.

check voice font
@param voice_font: voice font
@type voice_font: str
@raises ParameterException

Definition at line 173 of file client_voicetext.py.

check volume level
@raises ParameterException

Definition at line 210 of file client_voicetext.py.

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.


Member Data Documentation

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.

Definition at line 40 of file client_voicetext.py.

Definition at line 33 of file client_voicetext.py.

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.

Definition at line 27 of file client_voicetext.py.

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.

Definition at line 38 of file client_voicetext.py.

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.

Definition at line 30 of file client_voicetext.py.

Definition at line 39 of file client_voicetext.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