Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
rospeex_core.ss.voicetext.Client Class Reference
Inheritance diagram for rospeex_core.ss.voicetext.Client:
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 21 of file 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 38 of file voicetext.py.


Member Function Documentation

check api key
@raises ParameterException

Definition at line 156 of file voicetext.py.

def rospeex_core.ss.voicetext.Client._check_emotion (   self,
  voice_font 
) [private]
check emotion and emotion_level
@param voice_font: voice font
@type voice_font: str
@raises ParameterException

Definition at line 195 of file voicetext.py.

def rospeex_core.ss.voicetext.Client._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 254 of file voicetext.py.

check speed level
@raises ParameterException

Definition at line 242 of file voicetext.py.

check speed level
@raises ParameterException

Definition at line 230 of file voicetext.py.

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

Definition at line 165 of file voicetext.py.

def rospeex_core.ss.voicetext.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 180 of file voicetext.py.

check volume level
@raises ParameterException

Definition at line 218 of file voicetext.py.

load parameter from rospy 

Definition at line 52 of file voicetext.py.

def rospeex_core.ss.voicetext.Client.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.base.IClient.

Definition at line 69 of file voicetext.py.


Member Data Documentation

Definition at line 42 of file voicetext.py.

Definition at line 42 of file voicetext.py.

Definition at line 42 of file voicetext.py.

Definition at line 42 of file voicetext.py.

Definition at line 42 of file voicetext.py.

Definition at line 42 of file voicetext.py.

Definition at line 36 of file voicetext.py.

list rospeex_core::ss::voicetext.Client::EMOTION_LIST = ['heppiness', 'anger', 'sadness'] [static]

Definition at line 29 of file voicetext.py.

Definition at line 31 of file voicetext.py.

list rospeex_core::ss::voicetext.Client::EMOTION_SPEAKER = ['haruka', 'hikari', 'takeru', 'santa', 'bear'] [static]

Definition at line 30 of file voicetext.py.

Definition at line 23 of file voicetext.py.

Definition at line 33 of file voicetext.py.

list rospeex_core::ss::voicetext.Client::SPEAKER_LIST = ['show', 'haruka', 'hikari', 'takeru', 'santa', 'bear', '*'] [static]

Definition at line 28 of file voicetext.py.

Definition at line 34 of file voicetext.py.

Definition at line 32 of file voicetext.py.

string rospeex_core::ss::voicetext.Client::URL = "https://api.voicetext.jp/%s/tts" [static]

Definition at line 27 of file voicetext.py.

Definition at line 26 of file voicetext.py.

Definition at line 35 of file voicetext.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