23 'voice[name]':
'cmu-slt-hsmm',
24 'input[type]':
'TEXT',
25 'input[locale]':
'en_US',
26 'input[content]':
'Hello World',
27 'output[format]':
'WAVE_FILE',
28 'output[type]':
'AUDIO' 32 super(FATTS, self).
__init__(lang, config,
'/say',
36 params = self.PARAMS.copy()
37 params[
'voice[name]'] = self.
voice 38 params[
'input[locale]'] = self.
lang 39 params[
'input[content]'] = sentence.encode(
'utf-8')
45 super(FATTSValidator, self).
__init__(tts)
53 resp = requests.get(self.tts.url +
"/info/version", verify=
False)
55 if content.get(
'product',
'').find(
'FA-TTS') < 0:
56 raise Exception(
'Invalid FA-TTS server.')
59 'FA-TTS server could not be verified. Check your connection ' 60 'to the server: ' + self.tts.url)
def build_request_params(self, sentence)
def __init__(self, lang, config)
def validate_connection(self)