Skip to main content

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, sekou or seydou. OpenAI's voice names are accepted as aliases. jifili-1 serves moussa only, and answers 400 unsupported_voice for the others.
  • response_format: mp3 (default), wav, pcm, opus, ulaw, alaw, l16_8000, l16_16000 and fmp4 (AAC in fragmented MP4).
  • stream_format: audio (default) for raw bytes, sse for speech.audio.delta events.

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​

The synthesised audio in the requested response_format. stream_format="sse" returns speech.audio.delta events instead.