reab5555 commited on
Commit
2b2b2ad
·
verified ·
1 Parent(s): 07ab0e3

Update ai_config.py

Browse files
Files changed (1) hide show
  1. ai_config.py +1 -1
ai_config.py CHANGED
@@ -28,7 +28,7 @@ client = OpenAI(api_key=openai_api_key)
28
  def convert_text_to_speech(text, output):
29
  try:
30
  # Convert the final text to speech
31
- response = client.audio.speech.create(model="tts-1-hd", voice="alloy", input=text, speed=1.15)
32
 
33
  if isinstance(output, BytesIO):
34
  # If output is a BytesIO object, write directly to it
 
28
  def convert_text_to_speech(text, output):
29
  try:
30
  # Convert the final text to speech
31
+ response = client.audio.speech.create(model="tts-1-hd", voice="alloy", input=text, speed=1)
32
 
33
  if isinstance(output, BytesIO):
34
  # If output is a BytesIO object, write directly to it