Spaces:
Sleeping
Sleeping
chore: Humelo 목소리 업데이트 요청
#1
by
itsowavy
- opened
tts.py
CHANGED
|
@@ -216,7 +216,7 @@ model_mapping = {
|
|
| 216 |
# Humelo DIVE TTS (한국어 특화)
|
| 217 |
"humelo-sia": {
|
| 218 |
"provider": "humelo",
|
| 219 |
-
"voice": "
|
| 220 |
"emotion": "neutral",
|
| 221 |
},
|
| 222 |
# Typecast TTS v3.0 (한국어 특화) - 새 보이스
|
|
@@ -400,7 +400,7 @@ def predict_supertone_tts(text: str, model: str = "sona_speech_1") -> str:
|
|
| 400 |
return f.name
|
| 401 |
|
| 402 |
|
| 403 |
-
def predict_humelo_tts(text: str, voice: str = "
|
| 404 |
"""Humelo DIVE TTS API 호출"""
|
| 405 |
api_key = HUMELO_API_KEY
|
| 406 |
if not api_key:
|
|
@@ -613,7 +613,7 @@ def predict_tts(text: str, model: str) -> str:
|
|
| 613 |
elif provider == "humelo":
|
| 614 |
audio_path = predict_humelo_tts(
|
| 615 |
text,
|
| 616 |
-
config.get("voice", "
|
| 617 |
config.get("emotion", "neutral"),
|
| 618 |
)
|
| 619 |
# Humelo might return MP3 or WAV, check extension
|
|
|
|
| 216 |
# Humelo DIVE TTS (한국어 특화)
|
| 217 |
"humelo-sia": {
|
| 218 |
"provider": "humelo",
|
| 219 |
+
"voice": "나나",
|
| 220 |
"emotion": "neutral",
|
| 221 |
},
|
| 222 |
# Typecast TTS v3.0 (한국어 특화) - 새 보이스
|
|
|
|
| 400 |
return f.name
|
| 401 |
|
| 402 |
|
| 403 |
+
def predict_humelo_tts(text: str, voice: str = "나나", emotion: str = "neutral") -> str:
|
| 404 |
"""Humelo DIVE TTS API 호출"""
|
| 405 |
api_key = HUMELO_API_KEY
|
| 406 |
if not api_key:
|
|
|
|
| 613 |
elif provider == "humelo":
|
| 614 |
audio_path = predict_humelo_tts(
|
| 615 |
text,
|
| 616 |
+
config.get("voice", "나나"),
|
| 617 |
config.get("emotion", "neutral"),
|
| 618 |
)
|
| 619 |
# Humelo might return MP3 or WAV, check extension
|