Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,15 +20,6 @@ import numpy as np
|
|
20 |
import wave
|
21 |
language_dict = tts_order_voice
|
22 |
|
23 |
-
async def text_to_speech_edge(text, language_code):
|
24 |
-
voice = language_dict[language_code]
|
25 |
-
communicate = edge_tts.Communicate(text, voice)
|
26 |
-
with tempfile.NamedTemporaryFile(delete=False, suffix=".mp3") as tmp_file:
|
27 |
-
tmp_path = tmp_file.name
|
28 |
-
|
29 |
-
await communicate.save(tmp_path)
|
30 |
-
|
31 |
-
return tmp_path
|
32 |
|
33 |
try:
|
34 |
import spaces
|
@@ -322,7 +313,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose")
|
|
322 |
|
323 |
Ilaria RVC made by [Ilaria](https://huggingface.co/TheStinger) suport her on [ko-fi](https://ko-fi.com/ilariaowo)
|
324 |
|
325 |
-
The modules made by [r3gm](https://huggingface.co/r3gm)
|
326 |
|
327 |
made with ❤️ by [mikus](https://github.com/cappuch) - made the ui!
|
328 |
|
|
|
20 |
import wave
|
21 |
language_dict = tts_order_voice
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
try:
|
25 |
import spaces
|
|
|
313 |
|
314 |
Ilaria RVC made by [Ilaria](https://huggingface.co/TheStinger) suport her on [ko-fi](https://ko-fi.com/ilariaowo)
|
315 |
|
316 |
+
The modules made by [r3gm](https://huggingface.co/r3gm)
|
317 |
|
318 |
made with ❤️ by [mikus](https://github.com/cappuch) - made the ui!
|
319 |
|