---
agentTools:
  projectIndex: https://unrealspeech.readme.io/llms.txt
---

# /synthesisTasks

Send up to 500,000 characters and immediately receive a TaskId. GET TaskId to check the status. Optimized for cost savings and longer requests.

> 🤖 Processing Details
>
> * On average, 800 characters result in 1 minute of audio. In other words, 500,000 characters will result in approximately 10 hours of audio.
> * On average, it takes 1 second per 800 characters. In other words, 500,000 characters will take approximately 10 minutes.

> 💬 Text Parameter Notes
>
> * If you POST a string, it'll return a single `OutputUri`.
> * If you POST a list of strings, `OutputUri` will be a list of MP3 URLs.
> * For longer texts, we recommend sending a list of strings. This way, instead of waiting for the entire task to be completed to access audio, you can start accessing the first audios in the list. i.e., `-.mp3`

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Text-to-Speech API v7",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.v7.unrealspeech.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer",
        "x-default": ""
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/synthesisTasks": {
      "post": {
        "summary": "/synthesisTasks",
        "description": "Send up to 500,000 characters and immediately receive a TaskId. GET TaskId to check the status. Optimized for cost savings and longer requests.",
        "operationId": "synthesistasks",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "Text",
                  "VoiceId"
                ],
                "properties": {
                  "Text": {
                    "type": "string",
                    "description": "This is the text to be synthesized to audio. Up to 500,000 characters.",
                    "default": "This is a test"
                  },
                  "VoiceId": {
                    "type": "string",
                    "description": "Scarlett, Dan, Liv, Will, Amy",
                    "default": "Scarlett"
                  },
                  "Bitrate": {
                    "type": "string",
                    "description": "320k, 256k, 192k, ...",
                    "default": "192k"
                  },
                  "Speed": {
                    "type": "string",
                    "description": "-1.0 to 1.0",
                    "default": "0"
                  },
                  "Pitch": {
                    "type": "string",
                    "description": "0.5 to 1.5",
                    "default": "1"
                  },
                  "TimestampType": {
                    "type": "string",
                    "description": "word or sentence",
                    "default": "sentence"
                  },
                  "CallbackUrl": {
                    "type": "string",
                    "description": "A callback URL to POST TaskId and TaskStatus"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"SynthesisTask\": {\n    \"CreationTime\": \"2024-01-31T06:52:54.43Z\",\n    \"OutputUri\": \"https://unreal-expire-in-90-days.s3-us-west-2.amazonaws.com/46ff7a17-0.mp3\",\n    \"RequestCharacters\": 14,\n    \"TaskId\": \"46ff7a17\",\n    \"TaskStatus\": \"scheduled\",\n    \"TimestampsUri\": \"https://unreal-expire-in-90-days.s3-us-west-2.amazonaws.com/46ff7a17-0.json\",\n    \"VoiceId\": \"Scarlett\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "SynthesisTask": {
                      "type": "object",
                      "properties": {
                        "CreationTime": {
                          "type": "string",
                          "example": "2024-01-31T06:52:54.43Z"
                        },
                        "OutputUri": {
                          "type": "string",
                          "example": "https://unreal-expire-in-90-days.s3-us-west-2.amazonaws.com/46ff7a17-0.mp3"
                        },
                        "RequestCharacters": {
                          "type": "integer",
                          "example": 14,
                          "default": 0
                        },
                        "TaskId": {
                          "type": "string",
                          "example": "46ff7a17"
                        },
                        "TaskStatus": {
                          "type": "string",
                          "example": "scheduled"
                        },
                        "TimestampsUri": {
                          "type": "string",
                          "example": "https://unreal-expire-in-90-days.s3-us-west-2.amazonaws.com/46ff7a17-0.json"
                        },
                        "VoiceId": {
                          "type": "string",
                          "example": "Scarlett"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "65ba1daa32beaf00785d937e:65ba4008c9da050023e2dc88"
}
```