Skip to content

Commit

Permalink
Merge pull request OpenInterpreter#128 from koganei/patch-1
Browse files Browse the repository at this point in the history
Fix for Issue OpenInterpreter#104 - Add OPENAI_VOICE_NAME env variable
  • Loading branch information
KillianLucas authored Mar 24, 2024
2 parents 3d7de87 + 6bfec56 commit 31ac7f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/source/server/services/tts/openai/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self, config):
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"
)
Expand Down

0 comments on commit 31ac7f9

Please sign in to comment.