{
  "openapi": "3.0.1",
  "info": {
    "title": "Text to Speech: PDF, DOCX → MP3 + Subtitles, Ukrainian +22 More",
    "description": "Natural neural voices licensed for commercial use: text, PDF and Word files to MP3/WAV/OGG with SRT/VTT subtitles. 37 voices in 23 languages incl. 3 Ukrainian voices (rare on the market), English, German, Spanish. No API key, no per-character fees.",
    "version": "0.1",
    "x-build-id": "YoXOvz4aUu32Asu2k"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ai_admin~text-to-speech/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ai_admin-text-to-speech",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/ai_admin~text-to-speech/runs": {
      "post": {
        "operationId": "runs-sync-ai_admin-text-to-speech",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/ai_admin~text-to-speech/run-sync": {
      "post": {
        "operationId": "run-sync-ai_admin-text-to-speech",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "title": "Text",
            "type": "string",
            "description": "Text to read aloud. Blank lines separate paragraphs (a longer pause).",
            "default": "Hello! This is a natural-sounding neural voice. It can read articles, documents and books aloud, and it creates subtitles too."
          },
          "sources": {
            "title": "Document URLs (optional)",
            "type": "array",
            "description": "Links to TXT, Markdown, HTML, PDF (with a text layer) or DOCX files; each becomes one audio file. Files in your own Apify key-value store work too: set the store's access to \"Anyone with ID can read\" and use https://api.apify.com/v2/key-value-stores/<store ID>/records/<key>.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "voice": {
            "title": "Voice",
            "enum": [
              "uk_UA-mykyta-high",
              "uk_UA-tetiana-high",
              "uk_UA-oleksa-high",
              "en_US-ljspeech-high",
              "en_US-john-medium",
              "en_US-kristin-medium",
              "en_US-bryce-medium",
              "en_US-norman-medium",
              "en_US-joe-medium",
              "en_GB-cori-high",
              "en_GB-alba-medium",
              "de_DE-thorsten-high",
              "de_DE-kerstin-low",
              "fr_FR-siwis-medium",
              "fr_FR-gilles-low",
              "es_ES-davefx-medium",
              "es_MX-claude-high",
              "it_IT-serena-high",
              "pl_PL-gosia-medium",
              "pl_PL-darkman-medium",
              "pt_BR-faber-medium",
              "nl_NL-pim-medium",
              "cs_CZ-jirka-medium",
              "ru_RU-denis-medium",
              "ru_RU-dmitri-medium",
              "ro_RO-mihai-medium",
              "fi_FI-harri-medium",
              "hu_HU-anna-medium",
              "sk_SK-lili-medium",
              "sv_SE-nst-medium",
              "da_DK-talesyntese-medium",
              "el_GR-rapunzelina-medium",
              "lv_LV-aivars-medium",
              "sl_SI-artur-medium",
              "zh_CN-chaowen-medium",
              "fa_IR-amir-medium",
              "vi_VN-vais1000-medium"
            ],
            "type": "string",
            "description": "Pick a voice in the language of your text. \"high\" voices sound most natural and cost more per minute (see Pricing); \"medium\"/\"low\" voices are fast and cheap.",
            "default": "en_US-john-medium"
          },
          "speed": {
            "title": "Speed",
            "minimum": 0.5,
            "maximum": 2,
            "type": "number",
            "description": "0.5 = slow, 1 = the voice's own pace, 1.12 = default (smoother, fewer hesitations), 1.5 = fast.",
            "default": 1.12
          },
          "style": {
            "title": "Delivery",
            "enum": [
              "auto",
              "lively",
              "standard"
            ],
            "type": "string",
            "description": "\"Lively\" varies intonation and rhythm more, \"Standard\" is even and calm. \"Auto\" picks Lively for Ukrainian voices (rated best by ear) and Standard for other languages.",
            "default": "auto"
          },
          "format": {
            "title": "Audio format",
            "enum": [
              "mp3",
              "wav",
              "ogg"
            ],
            "type": "string",
            "description": "MP3 plays everywhere; WAV for editing; OGG Opus is smallest.",
            "default": "mp3"
          },
          "subtitles": {
            "title": "Subtitles",
            "type": "boolean",
            "description": "Also return SRT and VTT files with a cue per sentence (free).",
            "default": true
          },
          "maxCharactersPerItem": {
            "title": "Max characters per item",
            "minimum": 100,
            "maximum": 1000000,
            "type": "integer",
            "description": "Longer texts are cut (the result shows truncated: true). About 750–900 characters = 1 minute of speech.",
            "default": 200000
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}