Zum Inhalt
HALOWERK

Medienwerk

tts dialogue

Takes a script of up to 200 lines (together up to 12,000 characters), each with a speaker role and text, and returns one audio file: every role gets its own voice — assigned automatically from the voices of the chosen language, or set per role — and lines are separated by a pause you choose. Returned with the file are the start and end time of every line and an SRT, so the dialogue can be shown along. Languages: English, German, Spanish, French, Italian, Dutch, Japanese. Speech by Deepgram.

POST https://medien.halowerk.com/v1/tts-dialogue

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
linesarrayJa
languagestringJa
voicesobjectNeinOptional voice per role, e.g. {"Anna": "aura-2-aurelia-de"}.
pause_secondsnumberNein
output_formatstringNein
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "lines",
    "language"
  ],
  "additionalProperties": false,
  "properties": {
    "lines": {
      "type": "array",
      "minItems": 1,
      "maxItems": 200,
      "items": {
        "type": "object",
        "required": [
          "speaker",
          "text"
        ],
        "additionalProperties": false,
        "properties": {
          "speaker": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1500
          }
        }
      }
    },
    "language": {
      "type": "string",
      "enum": [
        "en",
        "de",
        "es",
        "fr",
        "it",
        "nl",
        "ja"
      ]
    },
    "voices": {
      "type": "object",
      "maxProperties": 8,
      "additionalProperties": {
        "type": "string",
        "maxLength": 60
      },
      "description": "Optional voice per role, e.g. {\"Anna\": \"aura-2-aurelia-de\"}."
    },
    "pause_seconds": {
      "type": "number",
      "minimum": 0,
      "maximum": 3,
      "default": 0.5
    },
    "output_format": {
      "type": "string",
      "enum": [
        "mp3",
        "opus",
        "wav"
      ],
      "default": "mp3"
    }
  }
}

Originalschema öffnen

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →