Merge pull request #128 from koganei/patch-1

Fix for Issue #104 - Add OPENAI_VOICE_NAME env variable
This commit is contained in:
killian 2024-03-23 22:16:29 -07:00 committed by GitHub
commit 31ac7f9cc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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"
)