feat: Add control for how message content is split for TTS generation reqs

This commit is contained in:
kiosion
2024-08-25 20:03:21 -04:00
parent f30428754f
commit 3967c34261
8 changed files with 277 additions and 157 deletions
+6
View File
@@ -1484,3 +1484,9 @@ AUDIO_TTS_VOICE = PersistentConfig(
"audio.tts.voice",
os.getenv("AUDIO_TTS_VOICE", "alloy"), # OpenAI default voice
)
AUDIO_TTS_SPLIT_ON = PersistentConfig(
"AUDIO_TTS_SPLIT_ON",
"audio.tts.split_on",
os.getenv("AUDIO_TTS_SPLIT_ON", "punctuation"),
)