Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,6 @@ from pathlib import Path
|
|
13 |
from pydub.silence import detect_nonsilent
|
14 |
from pydub import AudioSegment
|
15 |
|
16 |
-
flagpermanent = False
|
17 |
default_voice_short= ""
|
18 |
|
19 |
def strip_silence(audio: AudioSegment, silence_thresh=-40, min_silence_len=100, silence_padding_ms=100):
|
@@ -82,8 +81,8 @@ async def generate_audio_with_voice_prefix(text_segment, default_voice, rate, pi
|
|
82 |
"1C": ("en-GB-MaisieNeural", 0, 0),
|
83 |
"1V": ("vi-VN-HoaiMyNeural", 0, 0),
|
84 |
"2V": ("vi-VN-NamMinhNeural", 0, 0),
|
85 |
-
"3V": ("de-DE-SeraphinaMultilingualNeural",
|
86 |
-
"4V": ("ko-KR-HyunsuMultilingualNeural",
|
87 |
}
|
88 |
if default_voice_short == "":
|
89 |
current_voice_full = default_voice
|
|
|
13 |
from pydub.silence import detect_nonsilent
|
14 |
from pydub import AudioSegment
|
15 |
|
|
|
16 |
default_voice_short= ""
|
17 |
|
18 |
def strip_silence(audio: AudioSegment, silence_thresh=-40, min_silence_len=100, silence_padding_ms=100):
|
|
|
81 |
"1C": ("en-GB-MaisieNeural", 0, 0),
|
82 |
"1V": ("vi-VN-HoaiMyNeural", 0, 0),
|
83 |
"2V": ("vi-VN-NamMinhNeural", 0, 0),
|
84 |
+
"3V": ("de-DE-SeraphinaMultilingualNeural", 0, 0),
|
85 |
+
"4V": ("ko-KR-HyunsuMultilingualNeural", 0, 0),
|
86 |
}
|
87 |
if default_voice_short == "":
|
88 |
current_voice_full = default_voice
|