> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dreamto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate speech: Task callback

> When the task was created with `callBackUrl`, DreamTo sends this `POST` there once the task succeeds or fails (once, with `data.callbackType` always `complete`). On success `code` is `200` and `data.data` is the result; on failure `code` is the failure code and `msg` the reason. Verify the sender with `X-DreamTo-Signature` and answer with any `2xx`.



## OpenAPI

````yaml /openapi/en/suno-speech.json webhook sunoTaskCompleted
openapi: 3.1.0
info:
  description: >-
    Create spoken audio with tone, rhythm, emotion and optional background
    music: simple mode takes one line describing the scene, advanced mode takes
    the script to speak plus tone, variety, vocal gender and background music;
    each request makes two clips.
  title: Suno Generate speech
  version: v1
servers:
  - url: https://api.dreamto.ai
security:
  - bearerAuth: []
tags:
  - name: Suno Generate speech
paths: {}
components:
  securitySchemes:
    bearerAuth:
      description: >-
        API Key created in the DreamTo console, sent as `Authorization: Bearer
        <API Key>`.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.