Merge pull request #128 from koganei/patch-1
Fix for Issue #104 - Add OPENAI_VOICE_NAME env variable
This commit is contained in:
commit
31ac7f9cc7
|
@ -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