Skip to content
HALOWERK

Media and Speech Processing

audio / speech

Text to speech API, OpenAI-compatible: POST /v1/audio/speech with model, input and voice (alloy, ash, coral, echo, fable, nova, onyx, sage, shimmer and more) returns the speech audio bytes, MP3 by default or opus, aac, flac, wav, pcm, like OpenAI tts-1. Convert text to speech with natural Deepgram Aura-2 voices, speed 0.25-4.0, up to 4096 characters. 0.02 USDC per started 250 characters; swap the base URL of any OpenAI audio speech client.

POST https://medien.halowerk.com/v1/audio/speech

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
modelstringNoAccepted for OpenAI compatibility (tts-1, tts-1-hd, gpt-4o-mini-tts). All map to Deepgram Aura-2; the voice decides the provider model.
inputstringYesThe text to generate audio for. At most 4096 characters.
voicestringNoOpenAI voice name (alloy, ash, ballad, coral, echo, fable, nova, onyx, sage, shimmer, verse, marin, cedar) or a Deepgram voice such as aura-2-thalia-en or aura-2-agathe-fr.
response_formatstringNoAudio format. pcm is raw 24 kHz 16-bit little-endian mono without header, like OpenAI.
speednumberNoPlayback speed 0.25-4.0, pitch preserved (ffmpeg atempo).
instructionsstringNoAccepted for compatibility with gpt-4o-mini-tts clients; not applied.
stream_formatstringNoAccepted for compatibility; only complete audio is returned.
Show full input schema
{
  "type": "object",
  "required": [
    "input"
  ],
  "additionalProperties": false,
  "properties": {
    "model": {
      "type": "string",
      "maxLength": 64,
      "default": "tts-1",
      "description": "Accepted for OpenAI compatibility (tts-1, tts-1-hd, gpt-4o-mini-tts). All map to Deepgram Aura-2; the voice decides the provider model."
    },
    "input": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4096,
      "description": "The text to generate audio for. At most 4096 characters."
    },
    "voice": {
      "type": "string",
      "minLength": 1,
      "maxLength": 60,
      "default": "alloy",
      "description": "OpenAI voice name (alloy, ash, ballad, coral, echo, fable, nova, onyx, sage, shimmer, verse, marin, cedar) or a Deepgram voice such as aura-2-thalia-en or aura-2-agathe-fr."
    },
    "response_format": {
      "type": "string",
      "enum": [
        "mp3",
        "opus",
        "aac",
        "flac",
        "wav",
        "pcm"
      ],
      "default": "mp3",
      "description": "Audio format. pcm is raw 24 kHz 16-bit little-endian mono without header, like OpenAI."
    },
    "speed": {
      "type": "number",
      "minimum": 0.25,
      "maximum": 4,
      "default": 1,
      "description": "Playback speed 0.25-4.0, pitch preserved (ffmpeg atempo)."
    },
    "instructions": {
      "type": "string",
      "maxLength": 4096,
      "description": "Accepted for compatibility with gpt-4o-mini-tts clients; not applied."
    },
    "stream_format": {
      "type": "string",
      "enum": [
        "audio"
      ],
      "description": "Accepted for compatibility; only complete audio is returned."
    }
  }
}

Open original schema

Published input example

{
  "model": "tts-1",
  "input": "Your order has shipped and will arrive on Thursday.",
  "voice": "alloy",
  "response_format": "mp3"
}

Result & documentation

Show published result schema
{
  "$ref": "https://medien.halowerk.com/v1/audio/speech/schema#/outputSchema"
}

Open published result example

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub →