Amazon Polly Synthesis Tasks API

The Synthesis Tasks API from Amazon Polly — 2 operation(s) for synthesis tasks.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Speech & Voice AE-110.30

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/synthesisTasks/{TaskId} Check a speech synthesis task · Get Speech Synthesis Task #
Ask an LLM
“Has my speech synthesis task finished?”
“Where is the audio file from a completed speech task?”
Tell an agent
Get speech synthesis task {TaskId}.
Check the status of task {TaskId}.
GET /v1/synthesisTasks List speech synthesis tasks · List Speech Synthesis Tasks #
Ask an LLM
“Which speech tasks have I started?”
“Can I list only the speech tasks that are still in progress?”
Tell an agent
List my speech synthesis tasks.
List speech tasks with status {Status}.
POST /v1/synthesisTasks Start a speech synthesis task · Start Speech Synthesis Task #
Ask an LLM
“How do I turn text into speech and save the audio to S3?”
“Can I get speech marks along with the audio?”
Tell an agent
Start speech synthesis of {Text} with voice {VoiceId} in {OutputFormat} to bucket {OutputS3BucketName}.
Synthesize {Text} in {LanguageCode} as {VoiceId}, format {OutputFormat}, bucket {OutputS3BucketName}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-polly:amazon-polly-synthesis-tasks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-polly-synthesis-tasks-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Polly Synthesis Tasks API
  version: '2016-06-10'
  description: Generated from AWS's published Smithy model for Amazon Polly. 3 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://polly.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /v1/synthesisTasks/{TaskId}:
    get:
      operationId: GetSpeechSynthesisTask
      summary: Get Speech Synthesis Task
      description: Retrieves a specific SpeechSynthesisTask object based on its TaskID. This object contains information about
        the given speech synthesis task, including the status of the task, and a link to the S3 bucket containing the output
        of the task.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetSpeechSynthesisTaskOutput'
        '400':
          description: InvalidTaskIdException; SynthesisTaskNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidTaskIdException'
        '500':
          description: ServiceFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceFailureException'
      parameters:
      - name: TaskId
        in: path
        required: true
        schema:
          type: string
        description: The Amazon Polly generated identifier for a speech synthesis task.
      tags:
      - Synthesis Tasks
  /v1/synthesisTasks:
    get:
      operationId: ListSpeechSynthesisTasks
      summary: List Speech Synthesis Tasks
      description: Returns a list of SpeechSynthesisTask objects ordered by their creation date. This operation can filter
        the tasks by their status, for example, allowing users to list only tasks that are completed.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListSpeechSynthesisTasksOutput'
        '400':
          description: InvalidNextTokenException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidNextTokenException'
        '500':
          description: ServiceFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceFailureException'
      parameters:
      - name: MaxResults
        in: query
        schema:
          type: integer
        description: Maximum number of speech synthesis tasks returned in a List operation.
      - name: NextToken
        in: query
        schema:
          type: string
        description: The pagination token to use in the next request to continue the listing of speech synthesis tasks.
      - name: Status
        in: query
        schema:
          type: string
          enum:
          - scheduled
          - inProgress
          - completed
          - failed
        description: Status of the speech synthesis tasks returned in a List operation
      tags:
      - Synthesis Tasks
    post:
      operationId: StartSpeechSynthesisTask
      summary: Start Speech Synthesis Task
      description: Allows the creation of an asynchronous synthesis task, by starting a new SpeechSynthesisTask. This operation
        requires all the standard information needed for speech synthesis, plus the name of an Amazon S3 bucket for the service
        to store the output of the synthesis task and two optional parameters (OutputS3KeyPrefix and SnsTopicArn). Once the
        synthesis task is created, this operation will return a SpeechSynthesisTask object, which will include an identifier
        of this task as well as the current status. The SpeechSynthesisTask object is available for 72 hours after starting
        the asynchronous synthesis task.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StartSpeechSynthesisTaskOutput'
        '400':
          description: EngineNotSupportedException; InvalidS3BucketException; InvalidS3KeyException; InvalidSampleRateException;
            InvalidSnsTopicArnException; InvalidSsmlException; LanguageNotSupportedException; MarksNotSupportedForFormatException;
            SsmlMarksNotSupportedForTextTypeException; TextLengthExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EngineNotSupportedException'
        '404':
          description: LexiconNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LexiconNotFoundException'
        '500':
          description: ServiceFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceFailureException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                Engine:
                  type: string
                  enum:
                  - standard
                  - neural
                  - long-form
                  - generative
                  description: Specifies the engine (standard, neural, long-form or generative) for Amazon Polly to use when
                    processing input text for speech synthesis. Using a voice that is not supported for the engine selected
                    will result in an error.
                LanguageCode:
                  type: string
                  enum:
                  - arb
                  - cmn-CN
                  - cy-GB
                  - da-DK
                  - de-DE
                  - en-AU
                  - en-GB
                  - en-GB-WLS
                  - en-IN
                  - en-US
                  - es-ES
                  - es-MX
                  - es-US
                  - fr-CA
                  - fr-FR
                  - is-IS
                  - it-IT
                  - ja-JP
                  - hi-IN
                  - ko-KR
                  - nb-NO
                  - nl-NL
                  - pl-PL
                  - pt-BR
                  - pt-PT
                  - ro-RO
                  - ru-RU
                  - sv-SE
                  - tr-TR
                  - en-NZ
                  - en-ZA
                  - ca-ES
                  - de-AT
                  - yue-CN
                  - ar-AE
                  - fi-FI
                  - en-IE
                  - nl-BE
                  - fr-BE
                  - cs-CZ
                  - de-CH
                  - en-SG
                  description: Optional language code for the Speech Synthesis request. This is only necessary if using a
                    bilingual voice, such as Aditi, which can be used for either Indian English (en-IN) or Hindi (hi-IN).
                    If a bilingual voice is used and no language code is specified, Amazon Polly uses the default language
                    of the bilingual voice. The default language for any voice is the one returned by the DescribeVoices operation
                    for the LanguageCode parameter. For example, if no language code is specified, Aditi will use Indian English
                    rather than Hindi.
                LexiconNames:
                  type: array
                  items:
                    type: string
                  description: List of one or more pronunciation lexicon names you want the service to apply during synthesis.
                    Lexicons are applied only if the language of the lexicon is the same as the language of the voice.
                OutputFormat:
                  type: string
                  enum:
                  - json
                  - mp3
                  - ogg_opus
                  - ogg_vorbis
                  - pcm
                  - mulaw
                  - alaw
                  description: The format in which the returned output will be encoded. For audio stream, this will be mp3,
                    ogg_vorbis, ogg_opus, mu-law, a-law, or pcm. For speech marks, this will be json.
                OutputS3BucketName:
                  type: string
                  description: Amazon S3 bucket name to which the output file will be saved.
                OutputS3KeyPrefix:
                  type: string
                  description: The Amazon S3 key prefix for the output speech file.
                SampleRate:
                  type: string
                  description: The audio frequency specified in Hz. The valid values for mp3 and ogg_vorbis are "8000", "16000",
                    "22050", and "24000". The default value for standard voices is "22050". The default value for neural voices
                    is "24000". The default value for long-form voices is "24000". The default value for generative voices
                    is "24000". Valid values for pcm are "8000" and "16000" The default value is "16000". Valid value for
                    ogg_opus is "48000". Valid value for mu-law and a-law is "8000".
                SnsTopicArn:
                  type: string
                  description: ARN for the SNS topic optionally used for providing status notification for a speech synthesis
                    task.
                SpeechMarkTypes:
                  type: array
                  items:
                    type: string
                    enum:
                    - sentence
                    - ssml
                    - viseme
                    - word
                  description: The type of speech marks returned for the input text.
                Text:
                  type: string
                  description: The input text to synthesize. If you specify ssml as the TextType, follow the SSML format for
                    the input text.
                TextType:
                  type: string
                  enum:
                  - ssml
                  - text
                  description: Specifies whether the input text is plain text or SSML. The default value is plain text.
                VoiceId:
                  type: string
                  enum:
                  - Aditi
                  - Amy
                  - Astrid
                  - Bianca
                  - Brian
                  - Camila
                  - Carla
                  - Carmen
                  - Celine
                  - Chantal
                  - Conchita
                  - Cristiano
                  - Dora
                  - Emma
                  - Enrique
                  - Ewa
                  - Filiz
                  - Gabrielle
                  - Geraint
                  - Giorgio
                  - Gwyneth
                  - Hans
                  - Ines
                  - Ivy
                  - Jacek
                  - Jan
                  - Joanna
                  - Joey
                  - Justin
                  - Karl
                  - Kendra
                  - Kevin
                  - Kimberly
                  - Lea
                  - Liv
                  - Lotte
                  - Lucia
                  - Lupe
                  - Mads
                  - Maja
                  - Marlene
                  - Mathieu
                  - Matthew
                  - Maxim
                  - Mia
                  - Miguel
                  - Mizuki
                  - Naja
                  - Nicole
                  - Olivia
                  - Penelope
                  - Raveena
                  - Ricardo
                  - Ruben
                  - Russell
                  - Salli
                  - Seoyeon
                  - Takumi
                  - Tatyana
                  - Vicki
                  - Vitoria
                  - Zeina
                  - Zhiyu
                  - Aria
                  - Ayanda
                  - Arlet
                  - Hannah
                  - Arthur
                  - Daniel
                  - Liam
                  - Pedro
                  - Kajal
                  - Hiujin
                  - Laura
                  - Elin
                  - Ida
                  - Suvi
                  - Ola
                  - Hala
                  - Andres
                  - Sergio
                  - Remi
                  - Adriano
                  - Thiago
                  - Ruth
                  - Stephen
                  - Kazuha
                  - Tomoko
                  - Niamh
                  - Sofie
                  - Lisa
                  - Isabelle
                  - Zayd
                  - Danielle
                  - Gregory
                  - Burcu
                  - Jitka
                  - Sabrina
                  - Jasmine
                  - Jihye
                  - Ambre
                  - Beatrice
                  - Florian
                  - Lennart
                  - Lorenzo
                  - Tiffany
                  - Arjun
                  - Carlos
                  - Carolina
                  - Curtis
                  - Hyunduk
                  - Kenneth
                  - Kiara
                  - Leo
                  - Nate
                  - Tina
                  description: Voice ID to use for the synthesis.
              required:
              - OutputFormat
              - OutputS3BucketName
              - Text
              - VoiceId
      tags:
      - Synthesis Tasks
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: polly
  schemas:
    EngineNotSupportedException:
      type: object
      properties:
        message:
          type: string
    GetSpeechSynthesisTaskOutput:
      type: object
      properties:
        SynthesisTask:
          $ref: '#/components/schemas/SynthesisTask'
    InvalidNextTokenException:
      type: object
      properties:
        message:
          type: string
    InvalidTaskIdException:
      type: object
      properties:
        message:
          type: string
    LexiconNotFoundException:
      type: object
      properties:
        message:
          type: string
    ListSpeechSynthesisTasksOutput:
      type: object
      properties:
        NextToken:
          type: string
          description: An opaque pagination token returned from the previous List operation in this request. If present, this
            indicates where to continue the listing.
        SynthesisTasks:
          type: array
          items:
            $ref: '#/components/schemas/SynthesisTask'
          description: List of SynthesisTask objects that provides information from the specified task in the list request,
            including output format, creation time, task status, and so on.
    ServiceFailureException:
      type: object
      properties:
        message:
          type: string
    StartSpeechSynthesisTaskOutput:
      type: object
      properties:
        SynthesisTask:
          $ref: '#/components/schemas/SynthesisTask'
    SynthesisTask:
      type: object
      properties:
        Engine:
          type: string
          enum:
          - standard
          - neural
          - long-form
          - generative
          description: Specifies the engine (standard, neural, long-form or generative) for Amazon Polly to use when processing
            input text for speech synthesis. Using a voice that is not supported for the engine selected will result in an
            error.
        TaskId:
          type: string
          description: The Amazon Polly generated identifier for a speech synthesis task.
        TaskStatus:
          type: string
          enum:
          - scheduled
          - inProgress
          - completed
          - failed
          description: Current status of the individual speech synthesis task.
        TaskStatusReason:
          type: string
          description: Reason for the current status of a specific speech synthesis task, including errors if the task has
            failed.
        OutputUri:
          type: string
          description: Pathway for the output speech file.
        CreationTime:
          type: string
          format: date-time
          description: Timestamp for the time the synthesis task was started.
        RequestCharacters:
          type: integer
          description: Number of billable characters synthesized.
        SnsTopicArn:
          type: string
          description: ARN for the SNS topic optionally used for providing status notification for a speech synthesis task.
        LexiconNames:
          type: array
          items:
            type: string
          description: List of one or more pronunciation lexicon names you want the service to apply during synthesis. Lexicons
            are applied only if the language of the lexicon is the same as the language of the voice.
        OutputFormat:
          type: string
          enum:
          - json
          - mp3
          - ogg_opus
          - ogg_vorbis
          - pcm
          - mulaw
          - alaw
          description: The format in which the returned output will be encoded. For audio stream, this will be mp3, ogg_vorbis,
            ogg_opus, mu-law, a-law, or pcm. For speech marks, this will be json.
        SampleRate:
          type: string
          description: The audio frequency specified in Hz. The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050",
            and "24000". The default value for standard voices is "22050". The default value for neural voices is "24000".
            The default value for long-form voices is "24000". The default value for generative voices is "24000". Valid values
            for pcm are "8000" and "16000" The default value is "16000". Valid value for ogg_opus is "48000". Valid value
            for mu-law and a-law is "8000".
        SpeechMarkTypes:
          type: array
          items:
            type: string
            enum:
            - sentence
            - ssml
            - viseme
            - word
          description: The type of speech marks returned for the input text.
        TextType:
          type: string
          enum:
          - ssml
          - text
          description: Specifies whether the input text is plain text or SSML. The default value is plain text.
        VoiceId:
          type: string
          enum:
          - Aditi
          - Amy
          - Astrid
          - Bianca
          - Brian
          - Camila
          - Carla
          - Carmen
          - Celine
          - Chantal
          - Conchita
          - Cristiano
          - Dora
          - Emma
          - Enrique
          - Ewa
          - Filiz
          - Gabrielle
          - Geraint
          - Giorgio
          - Gwyneth
          - Hans
          - Ines
          - Ivy
          - Jacek
          - Jan
          - Joanna
          - Joey
          - Justin
          - Karl
          - Kendra
          - Kevin
          - Kimberly
          - Lea
          - Liv
          - Lotte
          - Lucia
          - Lupe
          - Mads
          - Maja
          - Marlene
          - Mathieu
          - Matthew
          - Maxim
          - Mia
          - Miguel
          - Mizuki
          - Naja
          - Nicole
          - Olivia
          - Penelope
          - Raveena
          - Ricardo
          - Ruben
          - Russell
          - Salli
          - Seoyeon
          - Takumi
          - Tatyana
          - Vicki
          - Vitoria
          - Zeina
          - Zhiyu
          - Aria
          - Ayanda
          - Arlet
          - Hannah
          - Arthur
          - Daniel
          - Liam
          - Pedro
          - Kajal
          - Hiujin
          - Laura
          - Elin
          - Ida
          - Suvi
          - Ola
          - Hala
          - Andres
          - Sergio
          - Remi
          - Adriano
          - Thiago
          - Ruth
          - Stephen
          - Kazuha
          - Tomoko
          - Niamh
          - Sofie
          - Lisa
          - Isabelle
          - Zayd
          - Danielle
          - Gregory
          - Burcu
          - Jitka
          - Sabrina
          - Jasmine
          - Jihye
          - Ambre
          - Beatrice
          - Florian
          - Lennart
          - Lorenzo
          - Tiffany
          - Arjun
          - Carlos
          - Carolina
          - Curtis
          - Hyunduk
          - Kenneth
          - Kiara
          - Leo
          - Nate
          - Tina
          description: Voice ID to use for the synthesis.
        LanguageCode:
          type: string
          enum:
          - arb
          - cmn-CN
          - cy-GB
          - da-DK
          - de-DE
          - en-AU
          - en-GB
          - en-GB-WLS
          - en-IN
          - en-US
          - es-ES
          - es-MX
          - es-US
          - fr-CA
          - fr-FR
          - is-IS
          - it-IT
          - ja-JP
          - hi-IN
          - ko-KR
          - nb-NO
          - nl-NL
          - pl-PL
          - pt-BR
          - pt-PT
          - ro-RO
          - ru-RU
          - sv-SE
          - tr-TR
          - en-NZ
          - en-ZA
          - ca-ES
          - de-AT
          - yue-CN
          - ar-AE
          - fi-FI
          - en-IE
          - nl-BE
          - fr-BE
          - cs-CZ
          - de-CH
          - en-SG
          description: Optional language code for a synthesis task. This is only necessary if using a bilingual voice, such
            as Aditi, which can be used for either Indian English (en-IN) or Hindi (hi-IN). If a bilingual voice is used and
            no language code is specified, Amazon Polly uses the default language of the bilingual voice. The default language
            for any voice is the one returned by the DescribeVoices operation for the LanguageCode parameter. For example,
            if no language code is specified, Aditi will use Indian English rather than Hindi.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/polly/service/2016-06-10/polly-2016-06-10.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)