base.py
Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 
00003 import socket
00004 import abc
00005 
00006 
00007 __all__ = ['IClient']
00008 
00009 
00010 class IClient(object):
00011     """
00012     IClient class
00013     """
00014     __metaclass__ = abc.ABCMeta
00015 
00016     @abc.abstractmethod
00017     def request(
00018         self,
00019         message,
00020         language='ja',
00021         voice_font='',
00022         timeout=socket._GLOBAL_DEFAULT_TIMEOUT
00023     ):
00024         """
00025         Send speech synthesis request to server,
00026         and get speech synthesis result.
00027         @param message: message
00028         @type  message: str
00029         @param language: speech synthesis language
00030         @type  language: str
00031         @param voice_font: taraget voice font
00032         @type  voice_font: str
00033         @param timeout: request timeout time (second)
00034         @type  timeout: float
00035         @raise SpeechSynthesisException:
00036         """
00037         pass


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