diff --git a/openapi.yaml b/openapi.yaml index 68154fa8..cc87c3b1 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1150,10 +1150,11 @@ paths: --output speech.mp3 python: | from pathlib import Path - import openai + from openai import OpenAI + client = OpenAI() speech_file_path = Path(__file__).parent / "speech.mp3" - response = openai.audio.speech.create( + response = client.audio.speech.create( model="tts-1", voice="alloy", input="The quick brown fox jumped over the lazy dog."