Go to the documentation of this file.00001
00002
00003 import socket
00004 from rospeex_core.exceptions import SpeechSynthesisException
00005
00006
00007 class SpeechSynthesisClient(object):
00008 """
00009 SpeechSynthesisClient class
00010 """
00011 def request(self, message, language='ja', voice_font='', timeout=socket._GLOBAL_DEFAULT_TIMEOUT):
00012 """
00013 Send speech synthesis request to server,
00014 and get speech synthesis result.
00015 @param message: message
00016 @type message: str
00017 @param language: speech synthesis language
00018 @type language: str
00019 @param voice_font: taraget voice font
00020 @type voice_font: str
00021 @param timeout: request timeout time (second)
00022 @type timeout: float
00023 @raise SpeechSynthesisException:
00024 """
00025 msg = '[%s] is not implemented.' % self.request.__name__
00026 raise SpeechSynthesisException(msg)
00027