Speechbase

Generate conversation with timestamps

Synthesizes a multi-turn conversation and returns a JSON envelope with base64 audio and word-level timestamps mapped back to each originating turn.

POST
/v1/audio/conversation/with-timestamps

Synthesizes a multi-turn conversation and returns a JSON envelope with base64 audio and word-level timestamps mapped back to each originating turn.

Authorization

bearerAuth
AuthorizationBearer <token>

API key

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/json

curl -X POST "https://example.com/v1/audio/conversation/with-timestamps" \  -H "Authorization: Bearer $SPEECHBASE_API_KEY" \  -H "Content-Type: application/json" \  -d '{  "turns": [    {      "mode": "inline",      "model": "string",      "voice": "string",      "text": "string"    }  ]}'
{
  "audio": "string",
  "mediaType": "string",
  "warnings": [
    "string"
  ],
  "timestamps": [
    {
      "text": "string",
      "start": 0,
      "end": 0,
      "turnIndex": 0
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string"
}
{
  "error": {
    "code": "content_moderation_blocked",
    "message": "string",
    "reason": {
      "type": "error_fail_closed"
    }
  }
}