Upload folder using huggingface_hub
Browse files- tts_gradio.py +5 -5
tts_gradio.py
CHANGED
@@ -216,11 +216,11 @@ def microsoft(text, name, style="Neural"):
|
|
216 |
"</voice>"
|
217 |
"</speak>")
|
218 |
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
return "Success", "sss"
|
225 |
|
226 |
if __name__ == '__main__':
|
|
|
216 |
"</voice>"
|
217 |
"</speak>")
|
218 |
|
219 |
+
response = requests.post(
|
220 |
+
'https://japaneast.tts.speech.microsoft.com/cognitiveservices/v1',
|
221 |
+
headers=headers,
|
222 |
+
data=data,
|
223 |
+
)
|
224 |
return "Success", "sss"
|
225 |
|
226 |
if __name__ == '__main__':
|