diff --git a/software/source/server/services/tts/openai/tts.py b/software/source/server/services/tts/openai/tts.py index 23eb65b..a3759bb 100644 --- a/software/source/server/services/tts/openai/tts.py +++ b/software/source/server/services/tts/openai/tts.py @@ -14,7 +14,7 @@ class Tts: def tts(self, text): response = client.audio.speech.create( model="tts-1", - voice="alloy", + voice=os.getenv('OPENAI_VOICE_NAME', 'alloy'), input=text, response_format="opus" )