---
title: "Text To Speech Api"
method: POST
path: "/v1/sync-api/text-to-speech"
tags: ["SyncApi"]
---

# Text To Speech Api

`POST /v1/sync-api/text-to-speech`

## Request

- Base URL: `https://api.translate.video` (the document declares no server; this is the origin it was published from)
- URL: `https://api.translate.video/v1/sync-api/text-to-speech`
- Auth: HTTP bearer

## Headers

- `vitra-apitoken` string

## Request body

- CreateProcessLogDto
  - `processId` string: Process ID
  - `processName` string, required: Process Name
  - `processType` string, required: Process Type
  - `consumed` ConsumedUsageSummaryDto
    - `storage` number: video file size
    - `autoSubtitlingMinutes` number: Subtitle minutes
    - `videoTranslationMinutes` number: Video translation minutes
    - `exportVideoMinutes` number: Exported video minutes
    - `premiumVoiceMins` number: Premium Voice Minutes
    - `ttsWords` number: tts Words
    - `noOfCustomVoice` number: No. of custom voices
    - `services` object: Services
  - `sourceLanguage` string, required: Source Language
  - `targetLanguage` object, required: Target Language
  - `data` object: Details {URL: "file url", ...}
  - `uploadId` string: Id of uploaded file.
  - `status` string: Process status
  - `sourceType` string, required: Source content type
  - `fk_projectId` string: Project Id to tag the process.
  - `transcriptProcessId` string: Transcript Id for fetching data.
  - `fk_teamId` string: Team Id to tag the process.
  - `fk_userId` string: User Id to tag the process.
  - `fk_serverIP` string: Server IP to tag the process.
  - `fk_parentProcessId` string: Parent Process Id to tag the process.
  - `fromPreviousUpload` boolean: If previous upload is used to create new process
  - `priority` number, required: Priority
  - `source` string, required: Source of the process
  - `volume` number: Volume of data

## Response `201`

Speech Generated!

---

[API](https://skmtc.dev/translate/apis/translate-video-server.md) - [All operations](https://skmtc.dev/translate/apis/translate-video-server/llms.txt) - [OpenAPI document](https://skmtc.dev/translate/apis/translate-video-server/revisions/d99673eed87e?raw)
