add custom voices

This commit is contained in:
2026-05-24 00:44:39 -04:00
parent 833927c66e
commit 083b1fd43a
3 changed files with 166 additions and 12 deletions
+77
View File
@@ -101,6 +101,83 @@ TTS_VOICES_PATH: str = os.getenv("TTS_VOICES_PATH", "voices-v1.0.bin")
TTS_VOICE: str = os.getenv("TTS_VOICE", "af_sarah")
TTS_SPEED: float = float(os.getenv("TTS_SPEED", "1.0"))
# Available voices organized by category
VOICES_LIST: dict[str, dict[str, str | list[str]]] = {
"🇺🇸 👩": {
"language": "en-us",
"voices": [
"af_alloy",
"af_aoede",
"af_bella",
"af_heart",
"af_jessica",
"af_kore",
"af_nicole",
"af_nova",
"af_river",
"af_sarah",
"af_sky",
],
},
"🇺🇸 👨": {
"language": "en-us",
"voices": [
"am_adam",
"am_echo",
"am_eric",
"am_fenrir",
"am_liam",
"am_michael",
"am_onyx",
"am_puck",
],
},
"🇬🇧": {
"language": "en-gb",
"voices": [
"bf_alice",
"bf_emma",
"bf_isabella",
"bf_lily",
"bm_daniel",
"bm_fable",
"bm_george",
"bm_lewis",
],
},
"🇫🇷": {
"language": "fr-fr",
"voices": ["ff_siwis"],
},
"🇮🇹": {
"language": "it",
"voices": ["if_sara", "im_nicola"],
},
"🇯🇵": {
"language": "ja",
"voices": [
"jf_alpha",
"jf_gongitsune",
"jf_nezumi",
"jf_tebukuro",
"jm_kumo",
],
},
"🇨🇳": {
"language": "cmn",
"voices": [
"zf_xiaobei",
"zf_xiaoni",
"zf_xiaoxiao",
"zf_xiaoyi",
"zm_yunjian",
"zm_yunxi",
"zm_yunxia",
"zm_yunyang",
],
},
}
logger.info("CHAT_ENDPOINT set to %s", CHAT_ENDPOINT)
logger.info("COMPLETION_ENDPOINT set to %s", COMPLETION_ENDPOINT)
logger.info("IMAGE_GEN_ENDPOINT set to %s", IMAGE_GEN_ENDPOINT)