|
|
|
@ -59,13 +59,16 @@ from urllib.parse import urlencode, quote # For URL creation
|
|
|
|
|
def tts(voice, input_text, speaker):
|
|
|
|
|
|
|
|
|
|
if speaker =="mono1":
|
|
|
|
|
volume_level = "amount:1.0"
|
|
|
|
|
volume_level = "amount:1.2"
|
|
|
|
|
stadium_level = "amount:00.0"
|
|
|
|
|
|
|
|
|
|
if speaker == "mono2":
|
|
|
|
|
volume_level = "amount:0.7"
|
|
|
|
|
stadium_level = "amount:00.0"
|
|
|
|
|
|
|
|
|
|
if speaker == "mono3":
|
|
|
|
|
volume_level = "amount:0.8"
|
|
|
|
|
volume_level = "amount:1.0"
|
|
|
|
|
stadium_level = "amount:85.0"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -75,6 +78,8 @@ def tts(voice, input_text, speaker):
|
|
|
|
|
"LOCALE":"en_GB",
|
|
|
|
|
"effect_VOLUME_selected":"on",
|
|
|
|
|
"effect_VOLUME_parameters":volume_level,
|
|
|
|
|
"effect_STADIUM_selected":"on",
|
|
|
|
|
"effect_STADIUM_parameters":stadium_level,
|
|
|
|
|
"VOICE": voice, # Voice informations (need to be compatible)
|
|
|
|
|
"OUTPUT_TYPE":"AUDIO",
|
|
|
|
|
"AUDIO":"WAVE", # Audio informations (need both)
|
|
|
|
|