openai-python icon indicating copy to clipboard operation
openai-python copied to clipboard

Missing `client.audio.speech`?

Open Manouchehri opened this issue 3 years ago • 8 comments

The example at https://platform.openai.com/docs/guides/text-to-speech/quick-start doesn't work. Not sure if you forgot to push an update to this repo?

dave@mbp openai-test-1 % python3 main.py
Traceback (most recent call last):
  File "/Users/dave/Work/openai-test-1/main.py", line 10, in <module>
    response = client.audio.speech.create(
               ^^^^^^^^^^^^^^^^^^^
AttributeError: 'Audio' object has no attribute 'speech'

Manouchehri avatar Nov 06 '23 18:11 Manouchehri

My bad, I misread 1 PM PST as 1 PM EST.

Manouchehri avatar Nov 06 '23 18:11 Manouchehri

What do you mean? Is there a roadmap when we can expect the latest version? In the keynote they just said: Now ;-)

TimoKorinth avatar Nov 06 '23 19:11 TimoKorinth

image

New releases will be rolling out after 1 PM PST.

Manouchehri avatar Nov 06 '23 19:11 Manouchehri

Oh, ok! Thanks ;-)

TimoKorinth avatar Nov 06 '23 19:11 TimoKorinth

Oh my god, we have to wait plenty 20 minutes...I can't wait to hear tts-1-hd.

tn493 avatar Nov 06 '23 20:11 tn493

No, you can use it right now: pip3 install git+https://github.com/openai/openai-python.git@main ;-)

TimoKorinth avatar Nov 06 '23 20:11 TimoKorinth

And it's awesome! Even with other languages.

TimoKorinth avatar Nov 06 '23 20:11 TimoKorinth

Thanks very much bro!

tn493 avatar Nov 06 '23 20:11 tn493