Does the OpenAI class still handle Audio for STT with the update?

Before the update, if I wanted to use TTS, I would call:

import openai
transcript = openai.Audio.transcribe("whisper-1", audio_file)

This doesn’t work anymore and the udpated docs are using examples with curl. Is there still a way to use this with the OpenAI class? Would rather use that then requests.

I think you mean STT (Speech-to-text), since TTS is the new one. Check the updated Reference page. You can select your language from the drop down.

API Reference page:

I think you mean STT (Speech-to-text)

Thanks, I always do that. And thanks for the pointing that out, solves my problem nicely.