Synthesise Speech
POST/openai/v1/audio/speech
Synthesise speech from Bambara text.
Mirrors POST /v1/audio/speech, so client.audio.speech.create() works unchanged.
Parameters:
input: the text to synthesise.model:jifili-1(default).voice:moussa,sekouorseydou. OpenAI's voice names are accepted as aliases.jifili-1servesmoussaonly, and answers 400unsupported_voicefor the others.response_format:mp3(default),wav,pcm,opus,ulaw,alaw,l16_8000,l16_16000andfmp4(AAC in fragmented MP4).stream_format:audio(default) for raw bytes,sseforspeech.audio.deltaevents.
Djelia extension. Sampling is steered by djelia.temperature, djelia.top_p
and djelia.repetition_penalty; each one left out keeps the model's own default.
A synthesis that fails once it is under way ends the stream where it stopped, since the status line has already been sent.
Ignored: speed, instructions.
Request
Responses
- 200
- 400
- 401
- 402
- 404
- default
The synthesised audio in the requested response_format. stream_format="sse" returns speech.audio.delta events instead.
Invalid request
Invalid or missing API key
Insufficient balance
Unknown model or endpoint
Error