Text to speech
Our own shape, and the one to use when you want the whole utterance as a file rather than a stream — it answers a complete wav once the synthesis has finished, which also means it can promise the synthesis SUCCEEDED before it bills for it.
Billed per character; the reply carries X-Chars-Billed and X-Cost-Paise, so what it cost does not need a second request. Write Hindi in Devanagari — code-mixed English words in Latin script are fine (“आपका OTP है…”), whole English sentences come out accented.
Authorizations
Body
OpenAI's audio/speech shape; fields an OpenAI SDK sends that this API does not use (instructions) are ignored.
Optional. The input's language, where its script cannot tell: Marathi (mr) is written in Devanagari like Hindi. Marathi text is recognised by its words, and sending mr makes it certain (hi keeps a line Hindi). Every other language is read from its script, and a language the script contradicts is ignored. One of hi, en, gu, mr, bn, ta, te, kn, ml, pa, od, a region allowed (mr-IN), or the language's English name (Marathi); anything else is ignored.
Another name for input.
Response
Audio/wav