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

This commit is contained in:
kiosion committed 2024-08-25 20:03:21 -04:00
1 parent f30428754f
commit 3967c34261
8 files changed
+277 -157

No files matched your search

+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"),
)