Speech

Complete the open turn, streaming audio as it is generated

Same request as /v1/converse; the response is a text/event-stream: one meta event, audio chunk events as audio is generated (pcm_b64 = base64 raw 16-bit LE PCM at sample_rate), then exactly one end (reply text, audio_seconds, usage, meta) or error. First audio arrives after one ~80 ms frame instead of after the whole clip; closing the connection aborts generation.

post/v1/converse/stream

Request body

modelstring nullable

Public model id (see GET /v1/models). Omit/null for the default model.

Example request

{
  "model": "kalpa-tts-beta-v0.1"
}

Response

Server-sent event stream: meta, audio chunks, then end or error.

Changes

Changed in 2 of the 4 revisions of this API.32

    • removed the request property /

      request-property-removed

    • removed the request property /

      request-property-removed

    • removed the request property /

      request-property-removed

    • the request property default value 512 was removed

      request-property-default-value-removed

    • request property / list-of-types was widened by adding types null to media type application/json

      request-property-list-of-types-widened