Add OPENAI_VOICE_NAME env variable
I kept the default to `alloy`
This commit is contained in:
parent
f9cc6bb665
commit
6bfec56bb9
|
@ -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"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue