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

# /stream

Send up to 1000 characters and stream back audio data in 0.3 seconds. The is the endpoint to use for the fastest response.

# 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": {
    "/stream": {
      "post": {
        "summary": "/stream",
        "description": "Send up to 1000 characters and stream back audio data in 0.3 seconds. The is the endpoint to use for the fastest response.",
        "operationId": "stream",
        "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 1000 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"
                  },
                  "Codec": {
                    "type": "string",
                    "description": "libmp3lame, pcm_mulaw, pcm_s16le",
                    "default": "libmp3lame"
                  },
                  "Temperature": {
                    "type": "number",
                    "description": "0.1 to 0.8",
                    "default": 0.25,
                    "format": "float"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": "MP3 audio data"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "65ba1daa32beaf00785d937e:65ba1f93ff4da7003a7ce130"
}
```