{
  "version":"2.0",
  "metadata":{
    "apiVersion":"2016-06-10",
    "endpointPrefix":"polly",
    "protocol":"rest-json",
    "protocolSettings":{"h2":"eventstream"},
    "protocols":["rest-json"],
    "serviceFullName":"Amazon Polly",
    "serviceId":"Polly",
    "signatureVersion":"v4",
    "uid":"polly-2016-06-10",
    "auth":["aws.auth#sigv4"]
  },
  "operations":{
    "DeleteLexicon":{
      "name":"DeleteLexicon",
      "http":{
        "method":"DELETE",
        "requestUri":"/v1/lexicons/{LexiconName}",
        "responseCode":200
      },
      "input":{"shape":"DeleteLexiconInput"},
      "output":{"shape":"DeleteLexiconOutput"},
      "errors":[
        {"shape":"LexiconNotFoundException"},
        {"shape":"ServiceFailureException"}
      ],
      "documentation":"<p>Deletes the specified pronunciation lexicon stored in an Amazon Web Services Region. A lexicon which has been deleted is not available for speech synthesis, nor is it possible to retrieve it using either the <code>GetLexicon</code> or <code>ListLexicon</code> APIs.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html\">Managing Lexicons</a>.</p>"
    },
    "DescribeVoices":{
      "name":"DescribeVoices",
      "http":{
        "method":"GET",
        "requestUri":"/v1/voices",
        "responseCode":200
      },
      "input":{"shape":"DescribeVoicesInput"},
      "output":{"shape":"DescribeVoicesOutput"},
      "errors":[
        {"shape":"InvalidNextTokenException"},
        {"shape":"ServiceFailureException"}
      ],
      "documentation":"<p>Returns the list of voices that are available for use when requesting speech synthesis. Each voice speaks a specified language, is either male or female, and is identified by an ID, which is the ASCII version of the voice name. </p> <p>When synthesizing speech ( <code>SynthesizeSpeech</code> ), you provide the voice ID for the voice you want from the list of voices returned by <code>DescribeVoices</code>.</p> <p>For example, you want your news reader application to read news in a specific language, but giving a user the option to choose the voice. Using the <code>DescribeVoices</code> operation you can provide the user with a list of available voices to select from.</p> <p> You can optionally specify a language code to filter the available voices. For example, if you specify <code>en-US</code>, the operation returns a list of all available US English voices. </p> <p>This operation requires permissions to perform the <code>polly:DescribeVoices</code> action.</p>"
    },
    "GetLexicon":{
      "name":"GetLexicon",
      "http":{
        "method":"GET",
        "requestUri":"/v1/lexicons/{LexiconName}",
        "responseCode":200
      },
      "input":{"shape":"GetLexiconInput"},
      "output":{"shape":"GetLexiconOutput"},
      "errors":[
        {"shape":"LexiconNotFoundException"},
        {"shape":"ServiceFailureException"}
      ],
      "documentation":"<p>Returns the content of the specified pronunciation lexicon stored in an Amazon Web Services Region. For more information, see <a href=\"https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html\">Managing Lexicons</a>.</p>"
    },
    "GetSpeechSynthesisTask":{
      "name":"GetSpeechSynthesisTask",
      "http":{
        "method":"GET",
        "requestUri":"/v1/synthesisTasks/{TaskId}",
        "responseCode":200
      },
      "input":{"shape":"GetSpeechSynthesisTaskInput"},
      "output":{"shape":"GetSpeechSynthesisTaskOutput"},
      "errors":[
        {"shape":"InvalidTaskIdException"},
        {"shape":"ServiceFailureException"},
        {"shape":"SynthesisTaskNotFoundException"}
      ],
      "documentation":"<p>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.</p>"
    },
    "ListLexicons":{
      "name":"ListLexicons",
      "http":{
        "method":"GET",
        "requestUri":"/v1/lexicons",
        "responseCode":200
      },
      "input":{"shape":"ListLexiconsInput"},
      "output":{"shape":"ListLexiconsOutput"},
      "errors":[
        {"shape":"InvalidNextTokenException"},
        {"shape":"ServiceFailureException"}
      ],
      "documentation":"<p>Returns a list of pronunciation lexicons stored in an Amazon Web Services Region. For more information, see <a href=\"https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html\">Managing Lexicons</a>.</p>"
    },
    "ListSpeechSynthesisTasks":{
      "name":"ListSpeechSynthesisTasks",
      "http":{
        "method":"GET",
        "requestUri":"/v1/synthesisTasks",
        "responseCode":200
      },
      "input":{"shape":"ListSpeechSynthesisTasksInput"},
      "output":{"shape":"ListSpeechSynthesisTasksOutput"},
      "errors":[
        {"shape":"InvalidNextTokenException"},
        {"shape":"ServiceFailureException"}
      ],
      "documentation":"<p>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.</p>"
    },
    "PutLexicon":{
      "name":"PutLexicon",
      "http":{
        "method":"PUT",
        "requestUri":"/v1/lexicons/{LexiconName}",
        "responseCode":200
      },
      "input":{"shape":"PutLexiconInput"},
      "output":{"shape":"PutLexiconOutput"},
      "errors":[
        {"shape":"InvalidLexiconException"},
        {"shape":"UnsupportedPlsAlphabetException"},
        {"shape":"UnsupportedPlsLanguageException"},
        {"shape":"LexiconSizeExceededException"},
        {"shape":"MaxLexemeLengthExceededException"},
        {"shape":"MaxLexiconsNumberExceededException"},
        {"shape":"ServiceFailureException"}
      ],
      "documentation":"<p>Stores a pronunciation lexicon in an Amazon Web Services Region. If a lexicon with the same name already exists in the region, it is overwritten by the new lexicon. Lexicon operations have eventual consistency, therefore, it might take some time before the lexicon is available to the SynthesizeSpeech operation.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html\">Managing Lexicons</a>.</p>"
    },
    "StartSpeechSynthesisStream":{
      "name":"StartSpeechSynthesisStream",
      "http":{
        "method":"POST",
        "requestUri":"/v1/synthesisStream"
      },
      "input":{"shape":"StartSpeechSynthesisStreamInput"},
      "output":{"shape":"StartSpeechSynthesisStreamOutput"},
      "errors":[
        {"shape":"ValidationException"},
        {"shape":"ServiceQuotaExceededException"},
        {"shape":"ServiceFailureException"},
        {"shape":"ThrottlingException"}
      ],
      "documentation":"<p>Synthesizes UTF-8 input, plain text, or SSML over a bidirectional streaming connection. Specify synthesis parameters in HTTP/2 headers, send text incrementally as events on the input stream, and receive synthesized audio as it becomes available.</p> <p>This operation serves as a bidirectional counterpart to <code>SynthesizeSpeech</code>:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/polly/latest/API/API_SynthesizeSpeech.html\">SynthesizeSpeech</a> </p> </li> </ul>"
    },
    "StartSpeechSynthesisTask":{
      "name":"StartSpeechSynthesisTask",
      "http":{
        "method":"POST",
        "requestUri":"/v1/synthesisTasks",
        "responseCode":200
      },
      "input":{"shape":"StartSpeechSynthesisTaskInput"},
      "output":{"shape":"StartSpeechSynthesisTaskOutput"},
      "errors":[
        {"shape":"TextLengthExceededException"},
        {"shape":"InvalidS3BucketException"},
        {"shape":"InvalidS3KeyException"},
        {"shape":"InvalidSampleRateException"},
        {"shape":"InvalidSnsTopicArnException"},
        {"shape":"InvalidSsmlException"},
        {"shape":"EngineNotSupportedException"},
        {"shape":"LexiconNotFoundException"},
        {"shape":"ServiceFailureException"},
        {"shape":"MarksNotSupportedForFormatException"},
        {"shape":"SsmlMarksNotSupportedForTextTypeException"},
        {"shape":"LanguageNotSupportedException"}
      ],
      "documentation":"<p>Allows the creation of an asynchronous synthesis task, by starting a new <code>SpeechSynthesisTask</code>. 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 (<code>OutputS3KeyPrefix</code> and <code>SnsTopicArn</code>). Once the synthesis task is created, this operation will return a <code>SpeechSynthesisTask</code> object, which will include an identifier of this task as well as the current status. The <code>SpeechSynthesisTask</code> object is available for 72 hours after starting the asynchronous synthesis task.</p>"
    },
    "SynthesizeSpeech":{
      "name":"SynthesizeSpeech",
      "http":{
        "method":"POST",
        "requestUri":"/v1/speech",
        "responseCode":200
      },
      "input":{"shape":"SynthesizeSpeechInput"},
      "output":{"shape":"SynthesizeSpeechOutput"},
      "errors":[
        {"shape":"TextLengthExceededException"},
        {"shape":"InvalidSampleRateException"},
        {"shape":"InvalidSsmlException"},
        {"shape":"LexiconNotFoundException"},
        {"shape":"ServiceFailureException"},
        {"shape":"MarksNotSupportedForFormatException"},
        {"shape":"SsmlMarksNotSupportedForTextTypeException"},
        {"shape":"LanguageNotSupportedException"},
        {"shape":"EngineNotSupportedException"}
      ],
      "documentation":"<p>Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes. SSML input must be valid, well-formed SSML. Some alphabets might not be available with all the voices (for example, Cyrillic might not be read at all by English voices) unless phoneme mapping is used. For more information, see <a href=\"https://docs.aws.amazon.com/polly/latest/dg/how-text-to-speech-works.html\">How it Works</a>.</p>"
    }
  },
  "shapes":{
    "Alphabet":{"type":"string"},
    "AudioChunk":{"type":"blob"},
    "AudioEvent":{
      "type":"structure",
      "members":{
        "AudioChunk":{
          "shape":"AudioChunk",
          "documentation":"<p>A chunk of synthesized audio data encoded in the format specified by the <code>OutputFormat</code> parameter.</p>",
          "eventpayload":true
        }
      },
      "documentation":"<p>Contains a chunk of synthesized audio data.</p>",
      "event":true
    },
    "AudioStream":{
      "type":"blob",
      "streaming":true
    },
    "AvailabilityErrorMessage":{"type":"string"},
    "CloseStreamEvent":{
      "type":"structure",
      "members":{},
      "documentation":"<p>Indicates the end of the input stream. After sending this event, the input stream will be closed and all audio will be returned.</p>",
      "event":true
    },
    "ContentType":{"type":"string"},
    "CoralAvailabilityThrottledResource":{"type":"string"},
    "CoralAvailabilityThrottlingReason":{"type":"string"},
    "DateTime":{"type":"timestamp"},
    "DeleteLexiconInput":{
      "type":"structure",
      "required":["Name"],
      "members":{
        "Name":{
          "shape":"LexiconName",
          "documentation":"<p>The name of the lexicon to delete. Must be an existing lexicon in the region.</p>",
          "location":"uri",
          "locationName":"LexiconName"
        }
      }
    },
    "DeleteLexiconOutput":{
      "type":"structure",
      "members":{}
    },
    "DescribeVoicesInput":{
      "type":"structure",
      "members":{
        "Engine":{
          "shape":"Engine",
          "documentation":"<p>Specifies the engine (<code>standard</code>, <code>neural</code>, <code>long-form</code> or <code>generative</code>) used by Amazon Polly when processing input text for speech synthesis. </p>",
          "location":"querystring",
          "locationName":"Engine"
        },
        "LanguageCode":{
          "shape":"LanguageCode",
          "documentation":"<p> The language identification tag (ISO 639 code for the language name-ISO 3166 country code) for filtering the list of voices returned. If you don't specify this optional parameter, all available voices are returned. </p>",
          "location":"querystring",
          "locationName":"LanguageCode"
        },
        "IncludeAdditionalLanguageCodes":{
          "shape":"IncludeAdditionalLanguageCodes",
          "documentation":"<p>Boolean value indicating whether to return any bilingual voices that use the specified language as an additional language. For instance, if you request all languages that use US English (es-US), and there is an Italian voice that speaks both Italian (it-IT) and US English, that voice will be included if you specify <code>yes</code> but not if you specify <code>no</code>.</p>",
          "location":"querystring",
          "locationName":"IncludeAdditionalLanguageCodes"
        },
        "NextToken":{
          "shape":"NextToken",
          "documentation":"<p>An opaque pagination token returned from the previous <code>DescribeVoices</code> operation. If present, this indicates where to continue the listing.</p>",
          "location":"querystring",
          "locationName":"NextToken"
        }
      }
    },
    "DescribeVoicesOutput":{
      "type":"structure",
      "members":{
        "Voices":{
          "shape":"VoiceList",
          "documentation":"<p>A list of voices with their properties.</p>"
        },
        "NextToken":{
          "shape":"NextToken",
          "documentation":"<p>The pagination token to use in the next request to continue the listing of voices. <code>NextToken</code> is returned only if the response is truncated.</p>"
        }
      }
    },
    "Engine":{
      "type":"string",
      "enum":[
        "standard",
        "neural",
        "long-form",
        "generative"
      ]
    },
    "EngineList":{
      "type":"list",
      "member":{"shape":"Engine"}
    },
    "EngineNotSupportedException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>This engine is not compatible with the voice that you have designated. Choose a new voice that is compatible with the engine or change the engine and restart the operation.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "ErrorMessage":{"type":"string"},
    "FlushStreamConfiguration":{
      "type":"structure",
      "members":{
        "Force":{
          "shape":"Force",
          "documentation":"<p>Specifies whether to force the synthesis engine to immediately write buffered audio data to the output stream.</p>"
        }
      },
      "documentation":"<p>Configuration that controls when synthesized audio data is sent on the output stream.</p>"
    },
    "Force":{"type":"boolean"},
    "Gender":{
      "type":"string",
      "enum":[
        "Female",
        "Male"
      ]
    },
    "GetLexiconInput":{
      "type":"structure",
      "required":["Name"],
      "members":{
        "Name":{
          "shape":"LexiconName",
          "documentation":"<p>Name of the lexicon.</p>",
          "location":"uri",
          "locationName":"LexiconName"
        }
      }
    },
    "GetLexiconOutput":{
      "type":"structure",
      "members":{
        "Lexicon":{
          "shape":"Lexicon",
          "documentation":"<p>Lexicon object that provides name and the string content of the lexicon. </p>"
        },
        "LexiconAttributes":{
          "shape":"LexiconAttributes",
          "documentation":"<p>Metadata of the lexicon, including phonetic alphabetic used, language code, lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon in bytes.</p>"
        }
      }
    },
    "GetSpeechSynthesisTaskInput":{
      "type":"structure",
      "required":["TaskId"],
      "members":{
        "TaskId":{
          "shape":"TaskId",
          "documentation":"<p>The Amazon Polly generated identifier for a speech synthesis task.</p>",
          "location":"uri",
          "locationName":"TaskId"
        }
      }
    },
    "GetSpeechSynthesisTaskOutput":{
      "type":"structure",
      "members":{
        "SynthesisTask":{
          "shape":"SynthesisTask",
          "documentation":"<p>SynthesisTask object that provides information from the requested task, including output format, creation time, task status, and so on.</p>"
        }
      }
    },
    "IncludeAdditionalLanguageCodes":{"type":"boolean"},
    "InvalidLexiconException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>Amazon Polly can't find the specified lexicon. Verify that the lexicon's name is spelled correctly, and then try again.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "InvalidNextTokenException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The NextToken is invalid. Verify that it's spelled correctly, and then try again.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "InvalidS3BucketException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The provided Amazon S3 bucket name is invalid. Please check your input with S3 bucket naming requirements and try again.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "InvalidS3KeyException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The provided Amazon S3 key prefix is invalid. Please provide a valid S3 object key name.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "InvalidSampleRateException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The specified sample rate is not valid.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "InvalidSnsTopicArnException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The provided SNS topic ARN is invalid. Please provide a valid SNS topic ARN and try again.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "InvalidSsmlException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The SSML you provided is invalid. Verify the SSML syntax, spelling of tags and values, and then try again.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "InvalidTaskIdException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The provided Task ID is not valid. Please provide a valid Task ID and try again.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "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"
      ]
    },
    "LanguageCodeList":{
      "type":"list",
      "member":{"shape":"LanguageCode"}
    },
    "LanguageName":{"type":"string"},
    "LanguageNotSupportedException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The language specified is not currently supported by Amazon Polly in this capacity.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "LastModified":{"type":"timestamp"},
    "LexemesCount":{"type":"integer"},
    "Lexicon":{
      "type":"structure",
      "members":{
        "Content":{
          "shape":"LexiconContent",
          "documentation":"<p>Lexicon content in string format. The content of a lexicon must be in PLS format.</p>"
        },
        "Name":{
          "shape":"LexiconName",
          "documentation":"<p>Name of the lexicon.</p>"
        }
      },
      "documentation":"<p>Provides lexicon name and lexicon content in string format. For more information, see <a href=\"https://www.w3.org/TR/pronunciation-lexicon/\">Pronunciation Lexicon Specification (PLS) Version 1.0</a>.</p>"
    },
    "LexiconArn":{"type":"string"},
    "LexiconAttributes":{
      "type":"structure",
      "members":{
        "Alphabet":{
          "shape":"Alphabet",
          "documentation":"<p>Phonetic alphabet used in the lexicon. Valid values are <code>ipa</code> and <code>x-sampa</code>.</p>"
        },
        "LanguageCode":{
          "shape":"LanguageCode",
          "documentation":"<p>Language code that the lexicon applies to. A lexicon with a language code such as \"en\" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.</p>"
        },
        "LastModified":{
          "shape":"LastModified",
          "documentation":"<p>Date lexicon was last modified (a timestamp value).</p>"
        },
        "LexiconArn":{
          "shape":"LexiconArn",
          "documentation":"<p>Amazon Resource Name (ARN) of the lexicon.</p>"
        },
        "LexemesCount":{
          "shape":"LexemesCount",
          "documentation":"<p>Number of lexemes in the lexicon.</p>"
        },
        "Size":{
          "shape":"Size",
          "documentation":"<p>Total size of the lexicon, in characters.</p>"
        }
      },
      "documentation":"<p>Contains metadata describing the lexicon such as the number of lexemes, language code, and so on. For more information, see <a href=\"https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html\">Managing Lexicons</a>.</p>"
    },
    "LexiconContent":{
      "type":"string",
      "sensitive":true
    },
    "LexiconDescription":{
      "type":"structure",
      "members":{
        "Name":{
          "shape":"LexiconName",
          "documentation":"<p>Name of the lexicon.</p>"
        },
        "Attributes":{
          "shape":"LexiconAttributes",
          "documentation":"<p>Provides lexicon metadata.</p>"
        }
      },
      "documentation":"<p>Describes the content of the lexicon.</p>"
    },
    "LexiconDescriptionList":{
      "type":"list",
      "member":{"shape":"LexiconDescription"}
    },
    "LexiconName":{
      "type":"string",
      "pattern":"[0-9A-Za-z]{1,20}"
    },
    "LexiconNameList":{
      "type":"list",
      "member":{"shape":"LexiconName"},
      "max":5
    },
    "LexiconNotFoundException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>Amazon Polly can't find the specified lexicon. This could be caused by a lexicon that is missing, its name is misspelled or specifying a lexicon that is in a different region.</p> <p>Verify that the lexicon exists, is in the region (see <a>ListLexicons</a>) and that you spelled its name is spelled correctly. Then try again.</p>",
      "error":{"httpStatusCode":404},
      "exception":true
    },
    "LexiconSizeExceededException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The maximum size of the specified lexicon would be exceeded by this operation.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "ListLexiconsInput":{
      "type":"structure",
      "members":{
        "NextToken":{
          "shape":"NextToken",
          "documentation":"<p>An opaque pagination token returned from previous <code>ListLexicons</code> operation. If present, indicates where to continue the list of lexicons.</p>",
          "location":"querystring",
          "locationName":"NextToken"
        }
      }
    },
    "ListLexiconsOutput":{
      "type":"structure",
      "members":{
        "Lexicons":{
          "shape":"LexiconDescriptionList",
          "documentation":"<p>A list of lexicon names and attributes.</p>"
        },
        "NextToken":{
          "shape":"NextToken",
          "documentation":"<p>The pagination token to use in the next request to continue the listing of lexicons. <code>NextToken</code> is returned only if the response is truncated.</p>"
        }
      }
    },
    "ListSpeechSynthesisTasksInput":{
      "type":"structure",
      "members":{
        "MaxResults":{
          "shape":"MaxResults",
          "documentation":"<p>Maximum number of speech synthesis tasks returned in a List operation.</p>",
          "location":"querystring",
          "locationName":"MaxResults"
        },
        "NextToken":{
          "shape":"NextToken",
          "documentation":"<p>The pagination token to use in the next request to continue the listing of speech synthesis tasks. </p>",
          "location":"querystring",
          "locationName":"NextToken"
        },
        "Status":{
          "shape":"TaskStatus",
          "documentation":"<p>Status of the speech synthesis tasks returned in a List operation</p>",
          "location":"querystring",
          "locationName":"Status"
        }
      }
    },
    "ListSpeechSynthesisTasksOutput":{
      "type":"structure",
      "members":{
        "NextToken":{
          "shape":"NextToken",
          "documentation":"<p>An opaque pagination token returned from the previous List operation in this request. If present, this indicates where to continue the listing.</p>"
        },
        "SynthesisTasks":{
          "shape":"SynthesisTasks",
          "documentation":"<p>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.</p>"
        }
      }
    },
    "MarksNotSupportedForFormatException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>Speech marks are not supported for the <code>OutputFormat</code> selected. Speech marks are only available for content in <code>json</code> format.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "MaxLexemeLengthExceededException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The maximum size of the lexeme would be exceeded by this operation.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "MaxLexiconsNumberExceededException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The maximum number of lexicons would be exceeded by this operation.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "MaxResults":{
      "type":"integer",
      "max":100,
      "min":1
    },
    "NextToken":{
      "type":"string",
      "max":4096,
      "min":0
    },
    "OutputFormat":{
      "type":"string",
      "enum":[
        "json",
        "mp3",
        "ogg_opus",
        "ogg_vorbis",
        "pcm",
        "mulaw",
        "alaw"
      ]
    },
    "OutputS3BucketName":{
      "type":"string",
      "pattern":"^[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]$"
    },
    "OutputS3KeyPrefix":{
      "type":"string",
      "pattern":"^[0-9a-zA-Z\\/\\!\\-_\\.\\*\\'\\(\\):;\\$@=+\\,\\?&]{0,800}$"
    },
    "OutputUri":{"type":"string"},
    "PutLexiconInput":{
      "type":"structure",
      "required":[
        "Name",
        "Content"
      ],
      "members":{
        "Name":{
          "shape":"LexiconName",
          "documentation":"<p>Name of the lexicon. The name must follow the regular express format [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up to 20 characters long. </p>",
          "location":"uri",
          "locationName":"LexiconName"
        },
        "Content":{
          "shape":"LexiconContent",
          "documentation":"<p>Content of the PLS lexicon as string data.</p>"
        }
      }
    },
    "PutLexiconOutput":{
      "type":"structure",
      "members":{}
    },
    "QuotaCode":{
      "type":"string",
      "enum":[
        "input-stream-inbound-event-timeout",
        "input-stream-timeout"
      ]
    },
    "RequestCharacters":{"type":"integer"},
    "SampleRate":{"type":"string"},
    "ServiceCode":{
      "type":"string",
      "enum":["polly"]
    },
    "ServiceFailureException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>An unknown condition has caused a service failure.</p>",
      "error":{"httpStatusCode":500},
      "exception":true,
      "fault":true
    },
    "ServiceQuotaExceededException":{
      "type":"structure",
      "required":[
        "message",
        "quotaCode",
        "serviceCode"
      ],
      "members":{
        "message":{"shape":"ErrorMessage"},
        "quotaCode":{
          "shape":"QuotaCode",
          "documentation":"<p>The quota code identifying the specific quota.</p>"
        },
        "serviceCode":{
          "shape":"ServiceCode",
          "documentation":"<p>The service code identifying the originating service.</p>"
        }
      },
      "documentation":"<p>The request would cause a service quota to be exceeded.</p>",
      "error":{"httpStatusCode":402},
      "exception":true
    },
    "Size":{"type":"integer"},
    "SnsTopicArn":{
      "type":"string",
      "pattern":"^arn:aws(-(cn|iso(-b)?|us-gov))?:sns:[a-z0-9_-]{1,50}:\\d{12}:[a-zA-Z0-9_-]{1,251}([a-zA-Z0-9_-]{0,5}|\\.fifo)$"
    },
    "SpeechMarkType":{
      "type":"string",
      "enum":[
        "sentence",
        "ssml",
        "viseme",
        "word"
      ]
    },
    "SpeechMarkTypeList":{
      "type":"list",
      "member":{"shape":"SpeechMarkType"},
      "max":4
    },
    "SsmlMarksNotSupportedForTextTypeException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>SSML speech marks are not supported for plain text-type input.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "StartSpeechSynthesisStreamActionStream":{
      "type":"structure",
      "members":{
        "TextEvent":{
          "shape":"TextEvent",
          "documentation":"<p>A text event containing content to be synthesized.</p>"
        },
        "CloseStreamEvent":{
          "shape":"CloseStreamEvent",
          "documentation":"<p>An event indicating the end of the input stream.</p>"
        }
      },
      "documentation":"<p>Inbound event stream for sending input and control events to manage bidirectional speech synthesis.</p>",
      "eventstream":true
    },
    "StartSpeechSynthesisStreamEventStream":{
      "type":"structure",
      "members":{
        "AudioEvent":{
          "shape":"AudioEvent",
          "documentation":"<p>An audio event containing synthesized speech.</p>"
        },
        "StreamClosedEvent":{
          "shape":"StreamClosedEvent",
          "documentation":"<p>An event, with summary information, indicating the stream has closed.</p>"
        },
        "ValidationException":{
          "shape":"ValidationException",
          "documentation":"<p>An exception indicating the input failed validation.</p>"
        },
        "ServiceQuotaExceededException":{
          "shape":"ServiceQuotaExceededException",
          "documentation":"<p>An exception indicating a service quota would be exceeded.</p>"
        },
        "ServiceFailureException":{"shape":"ServiceFailureException"},
        "ThrottlingException":{
          "shape":"ThrottlingException",
          "documentation":"<p>An exception indicating the request was throttled.</p>"
        }
      },
      "documentation":"<p>Outbound event stream that contains synthesized audio data and stream status events.</p>",
      "eventstream":true
    },
    "StartSpeechSynthesisStreamInput":{
      "type":"structure",
      "required":[
        "Engine",
        "OutputFormat",
        "VoiceId"
      ],
      "members":{
        "Engine":{
          "shape":"Engine",
          "documentation":"<p>Specifies the engine for Amazon Polly to use when processing input text for speech synthesis. Currently, only the <code>generative</code> engine is supported. If you specify a voice that the selected engine doesn't support, Amazon Polly returns an error.</p>",
          "location":"header",
          "locationName":"x-amzn-Engine"
        },
        "LanguageCode":{
          "shape":"LanguageCode",
          "documentation":"<p>An optional parameter that sets the language code for the speech synthesis request. Specify this parameter only when using a bilingual voice. If a bilingual voice is used and no language code is specified, Amazon Polly uses the default language of the bilingual voice.</p>",
          "location":"header",
          "locationName":"x-amzn-LanguageCode"
        },
        "LexiconNames":{
          "shape":"LexiconNameList",
          "documentation":"<p>The names of one or more pronunciation lexicons for the service to apply during synthesis. Amazon Polly applies lexicons only when the lexicon language matches the voice language.</p>",
          "location":"header",
          "locationName":"x-amzn-LexiconNames"
        },
        "OutputFormat":{
          "shape":"OutputFormat",
          "documentation":"<p>The audio format for the synthesized speech. Currently, Amazon Polly does not support JSON speech marks.</p>",
          "location":"header",
          "locationName":"x-amzn-OutputFormat"
        },
        "SampleRate":{
          "shape":"SampleRate",
          "documentation":"<p>The audio frequency, specified in Hz.</p>",
          "location":"header",
          "locationName":"x-amzn-SampleRate"
        },
        "VoiceId":{
          "shape":"VoiceId",
          "documentation":"<p>The voice to use in synthesis. To get a list of available voice IDs, use the <a href=\"https://docs.aws.amazon.com/polly/latest/API/API_DescribeVoices.html\">DescribeVoices</a> operation.</p>",
          "location":"header",
          "locationName":"x-amzn-VoiceId"
        },
        "ActionStream":{
          "shape":"StartSpeechSynthesisStreamActionStream",
          "documentation":"<p>The input event stream that contains text events and stream control events.</p>"
        }
      },
      "payload":"ActionStream"
    },
    "StartSpeechSynthesisStreamOutput":{
      "type":"structure",
      "members":{
        "EventStream":{
          "shape":"StartSpeechSynthesisStreamEventStream",
          "documentation":"<p>The output event stream that contains synthesized audio events and stream status events.</p>"
        }
      },
      "payload":"EventStream"
    },
    "StartSpeechSynthesisTaskInput":{
      "type":"structure",
      "required":[
        "OutputFormat",
        "OutputS3BucketName",
        "Text",
        "VoiceId"
      ],
      "members":{
        "Engine":{
          "shape":"Engine",
          "documentation":"<p>Specifies the engine (<code>standard</code>, <code>neural</code>, <code>long-form</code> or <code>generative</code>) 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.</p>"
        },
        "LanguageCode":{
          "shape":"LanguageCode",
          "documentation":"<p>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). </p> <p>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 <a href=\"https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html\">DescribeVoices</a> operation for the <code>LanguageCode</code> parameter. For example, if no language code is specified, Aditi will use Indian English rather than Hindi.</p>"
        },
        "LexiconNames":{
          "shape":"LexiconNameList",
          "documentation":"<p>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. </p>"
        },
        "OutputFormat":{
          "shape":"OutputFormat",
          "documentation":"<p>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. </p>"
        },
        "OutputS3BucketName":{
          "shape":"OutputS3BucketName",
          "documentation":"<p>Amazon S3 bucket name to which the output file will be saved.</p>"
        },
        "OutputS3KeyPrefix":{
          "shape":"OutputS3KeyPrefix",
          "documentation":"<p>The Amazon S3 key prefix for the output speech file.</p>"
        },
        "SampleRate":{
          "shape":"SampleRate",
          "documentation":"<p>The audio frequency specified in Hz.</p> <p>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\".</p> <p>Valid values for pcm are \"8000\" and \"16000\" The default value is \"16000\". </p> <p>Valid value for ogg_opus is \"48000\". </p> <p>Valid value for mu-law and a-law is \"8000\". </p>"
        },
        "SnsTopicArn":{
          "shape":"SnsTopicArn",
          "documentation":"<p>ARN for the SNS topic optionally used for providing status notification for a speech synthesis task.</p>"
        },
        "SpeechMarkTypes":{
          "shape":"SpeechMarkTypeList",
          "documentation":"<p>The type of speech marks returned for the input text.</p>"
        },
        "Text":{
          "shape":"Text",
          "documentation":"<p>The input text to synthesize. If you specify ssml as the TextType, follow the SSML format for the input text. </p>"
        },
        "TextType":{
          "shape":"TextType",
          "documentation":"<p>Specifies whether the input text is plain text or SSML. The default value is plain text. </p>"
        },
        "VoiceId":{
          "shape":"VoiceId",
          "documentation":"<p>Voice ID to use for the synthesis. </p>"
        }
      }
    },
    "StartSpeechSynthesisTaskOutput":{
      "type":"structure",
      "members":{
        "SynthesisTask":{
          "shape":"SynthesisTask",
          "documentation":"<p>SynthesisTask object that provides information and attributes about a newly submitted speech synthesis task.</p>"
        }
      }
    },
    "StreamClosedEvent":{
      "type":"structure",
      "members":{
        "RequestCharacters":{
          "shape":"RequestCharacters",
          "documentation":"<p>The total number of characters synthesized during the streaming session.</p>"
        }
      },
      "documentation":"<p>Indicates that the synthesis stream is closed and provides summary information.</p>",
      "event":true
    },
    "SynthesisTask":{
      "type":"structure",
      "members":{
        "Engine":{
          "shape":"Engine",
          "documentation":"<p>Specifies the engine (<code>standard</code>, <code>neural</code>, <code>long-form</code> or <code>generative</code>) 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.</p>"
        },
        "TaskId":{
          "shape":"TaskId",
          "documentation":"<p>The Amazon Polly generated identifier for a speech synthesis task.</p>"
        },
        "TaskStatus":{
          "shape":"TaskStatus",
          "documentation":"<p>Current status of the individual speech synthesis task.</p>"
        },
        "TaskStatusReason":{
          "shape":"TaskStatusReason",
          "documentation":"<p>Reason for the current status of a specific speech synthesis task, including errors if the task has failed.</p>"
        },
        "OutputUri":{
          "shape":"OutputUri",
          "documentation":"<p>Pathway for the output speech file.</p>"
        },
        "CreationTime":{
          "shape":"DateTime",
          "documentation":"<p>Timestamp for the time the synthesis task was started.</p>"
        },
        "RequestCharacters":{
          "shape":"RequestCharacters",
          "documentation":"<p>Number of billable characters synthesized.</p>"
        },
        "SnsTopicArn":{
          "shape":"SnsTopicArn",
          "documentation":"<p>ARN for the SNS topic optionally used for providing status notification for a speech synthesis task.</p>"
        },
        "LexiconNames":{
          "shape":"LexiconNameList",
          "documentation":"<p>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. </p>"
        },
        "OutputFormat":{
          "shape":"OutputFormat",
          "documentation":"<p>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. </p>"
        },
        "SampleRate":{
          "shape":"SampleRate",
          "documentation":"<p>The audio frequency specified in Hz.</p> <p>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\".</p> <p>Valid values for pcm are \"8000\" and \"16000\" The default value is \"16000\". </p> <p>Valid value for ogg_opus is \"48000\". </p> <p>Valid value for mu-law and a-law is \"8000\". </p>"
        },
        "SpeechMarkTypes":{
          "shape":"SpeechMarkTypeList",
          "documentation":"<p>The type of speech marks returned for the input text.</p>"
        },
        "TextType":{
          "shape":"TextType",
          "documentation":"<p>Specifies whether the input text is plain text or SSML. The default value is plain text. </p>"
        },
        "VoiceId":{
          "shape":"VoiceId",
          "documentation":"<p>Voice ID to use for the synthesis. </p>"
        },
        "LanguageCode":{
          "shape":"LanguageCode",
          "documentation":"<p>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). </p> <p>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 <a href=\"https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html\">DescribeVoices</a> operation for the <code>LanguageCode</code> parameter. For example, if no language code is specified, Aditi will use Indian English rather than Hindi.</p>"
        }
      },
      "documentation":"<p>SynthesisTask object that provides information about a speech synthesis task.</p>"
    },
    "SynthesisTaskNotFoundException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The Speech Synthesis task with requested Task ID cannot be found.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "SynthesisTasks":{
      "type":"list",
      "member":{"shape":"SynthesisTask"}
    },
    "SynthesizeSpeechInput":{
      "type":"structure",
      "required":[
        "OutputFormat",
        "Text",
        "VoiceId"
      ],
      "members":{
        "Engine":{
          "shape":"Engine",
          "documentation":"<p>Specifies the engine (<code>standard</code>, <code>neural</code>, <code>long-form</code>, or <code>generative</code>) for Amazon Polly to use when processing input text for speech synthesis. Provide an engine that is supported by the voice you select. If you don't provide an engine, the standard engine is selected by default. If a chosen voice isn't supported by the standard engine, this will result in an error. For information on Amazon Polly voices and which voices are available for each engine, see <a href=\"https://docs.aws.amazon.com/polly/latest/dg/voicelist.html\">Available Voices</a>.</p>"
        },
        "LanguageCode":{
          "shape":"LanguageCode",
          "documentation":"<p>Optional language code for the Synthesize Speech 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). </p> <p>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 <a href=\"https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html\">DescribeVoices</a> operation for the <code>LanguageCode</code> parameter. For example, if no language code is specified, Aditi will use Indian English rather than Hindi.</p>"
        },
        "LexiconNames":{
          "shape":"LexiconNameList",
          "documentation":"<p>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. For information about storing lexicons, see <a href=\"https://docs.aws.amazon.com/polly/latest/dg/API_PutLexicon.html\">PutLexicon</a>.</p>"
        },
        "OutputFormat":{
          "shape":"OutputFormat",
          "documentation":"<p> 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. </p> <p>When pcm is used, the content returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format. </p>"
        },
        "SampleRate":{
          "shape":"SampleRate",
          "documentation":"<p>The audio frequency specified in Hz.</p> <p>The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", \"22050\", \"24000\", \"44100\" and \"48000\". 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\".</p> <p>Valid values for pcm are \"8000\" and \"16000\" The default value is \"16000\". </p> <p>Valid value for ogg_opus is \"48000\". </p> <p>Valid value for mu-law and a-law is \"8000\". </p>"
        },
        "SpeechMarkTypes":{
          "shape":"SpeechMarkTypeList",
          "documentation":"<p>The type of speech marks returned for the input text.</p>"
        },
        "Text":{
          "shape":"Text",
          "documentation":"<p> Input text to synthesize. If you specify <code>ssml</code> as the <code>TextType</code>, follow the SSML format for the input text. </p>"
        },
        "TextType":{
          "shape":"TextType",
          "documentation":"<p> Specifies whether the input text is plain text or SSML. The default value is plain text. For more information, see <a href=\"https://docs.aws.amazon.com/polly/latest/dg/ssml.html\">Using SSML</a>.</p>"
        },
        "VoiceId":{
          "shape":"VoiceId",
          "documentation":"<p> Voice ID to use for the synthesis. You can get a list of available voice IDs by calling the <a href=\"https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html\">DescribeVoices</a> operation. </p>"
        }
      }
    },
    "SynthesizeSpeechOutput":{
      "type":"structure",
      "members":{
        "AudioStream":{
          "shape":"AudioStream",
          "documentation":"<p> Stream containing the synthesized speech. </p>"
        },
        "ContentType":{
          "shape":"ContentType",
          "documentation":"<p> Specifies the type audio stream. This should reflect the <code>OutputFormat</code> parameter in your request. </p> <ul> <li> <p> If you request <code>mp3</code> as the <code>OutputFormat</code>, the <code>ContentType</code> returned is audio/mpeg. </p> </li> <li> <p> If you request <code>ogg_vorbis</code> as the <code>OutputFormat</code>, the <code>ContentType</code> returned is audio/ogg. </p> </li> <li> <p> If you request <code>ogg_opus</code> as the <code>OutputFormat</code>, the <code>ContentType</code> returned is audio/ogg. </p> </li> <li> <p> If you request <code>pcm</code> as the <code>OutputFormat</code>, the <code>ContentType</code> returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format. </p> </li> <li> <p> If you request <code>mu-law</code> as the <code>OutputFormat</code>, the <code>ContentType</code> returned is audio/mulaw. </p> </li> <li> <p> If you request <code>a-law</code> as the <code>OutputFormat</code>, the <code>ContentType</code> returned is audio/alaw. </p> </li> <li> <p>If you request <code>json</code> as the <code>OutputFormat</code>, the <code>ContentType</code> returned is application/x-json-stream.</p> </li> </ul> <p> </p>",
          "location":"header",
          "locationName":"Content-Type"
        },
        "RequestCharacters":{
          "shape":"RequestCharacters",
          "documentation":"<p>Number of characters synthesized.</p>",
          "location":"header",
          "locationName":"x-amzn-RequestCharacters"
        }
      },
      "payload":"AudioStream"
    },
    "TaskId":{
      "type":"string",
      "pattern":"^[a-zA-Z0-9_-]{1,100}$"
    },
    "TaskStatus":{
      "type":"string",
      "enum":[
        "scheduled",
        "inProgress",
        "completed",
        "failed"
      ]
    },
    "TaskStatusReason":{"type":"string"},
    "Text":{"type":"string"},
    "TextEvent":{
      "type":"structure",
      "required":["Text"],
      "members":{
        "Text":{
          "shape":"Text",
          "documentation":"<p>The text content to synthesize. If you specify <code>ssml</code> as the <code>TextType</code>, follow the SSML format for the input text.</p>"
        },
        "TextType":{
          "shape":"TextType",
          "documentation":"<p>Specifies whether the input text is plain text or SSML. Default: plain text.</p>"
        },
        "FlushStreamConfiguration":{
          "shape":"FlushStreamConfiguration",
          "documentation":"<p>Configuration for controlling when synthesized audio flushes to the output stream.</p>"
        }
      },
      "documentation":"<p>Contains text content to be synthesized into speech.</p>",
      "event":true
    },
    "TextLengthExceededException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The value of the \"Text\" parameter is longer than the accepted limits. For the <code>SynthesizeSpeech</code> API, the limit for input text is a maximum of 6000 characters total, of which no more than 3000 can be billed characters. For the <code>StartSpeechSynthesisTask</code> API, the maximum is 200,000 characters, of which no more than 100,000 can be billed characters. SSML tags are not counted as billed characters.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "TextType":{
      "type":"string",
      "enum":[
        "ssml",
        "text"
      ]
    },
    "ThrottlingException":{
      "type":"structure",
      "members":{
        "message":{"shape":"AvailabilityErrorMessage"},
        "throttlingReasons":{
          "shape":"ThrottlingReasonList",
          "documentation":"<p>A list of reasons explaining why the request was throttled.</p>"
        }
      },
      "documentation":"<p>The request was denied because of request throttling.</p>",
      "error":{"httpStatusCode":400},
      "exception":true,
      "synthetic":true
    },
    "ThrottlingReason":{
      "type":"structure",
      "members":{
        "reason":{
          "shape":"CoralAvailabilityThrottlingReason",
          "documentation":"<p>The reason code explaining why the request was throttled.</p>"
        },
        "resource":{
          "shape":"CoralAvailabilityThrottledResource",
          "documentation":"<p>The resource that caused the throttling.</p>"
        }
      },
      "documentation":"<p>Provides information about a specific throttling reason.</p>"
    },
    "ThrottlingReasonList":{
      "type":"list",
      "member":{"shape":"ThrottlingReason"}
    },
    "UnsupportedPlsAlphabetException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The alphabet specified by the lexicon is not a supported alphabet. Valid values are <code>x-sampa</code> and <code>ipa</code>.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "UnsupportedPlsLanguageException":{
      "type":"structure",
      "members":{
        "message":{"shape":"ErrorMessage"}
      },
      "documentation":"<p>The language specified in the lexicon is unsupported. For a list of supported languages, see <a href=\"https://docs.aws.amazon.com/polly/latest/dg/API_LexiconAttributes.html\">Lexicon Attributes</a>.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "ValidationException":{
      "type":"structure",
      "required":[
        "message",
        "reason"
      ],
      "members":{
        "message":{"shape":"ErrorMessage"},
        "reason":{
          "shape":"ValidationExceptionReason",
          "documentation":"<p>The reason the request failed validation.</p>"
        },
        "fields":{
          "shape":"ValidationExceptionFieldList",
          "documentation":"<p>The fields that caused the validation error.</p>"
        }
      },
      "documentation":"<p>The input fails to satisfy the constraints specified by the service.</p>",
      "error":{"httpStatusCode":400},
      "exception":true
    },
    "ValidationExceptionField":{
      "type":"structure",
      "required":[
        "name",
        "message"
      ],
      "members":{
        "name":{
          "shape":"ValidationExceptionFieldName",
          "documentation":"<p>The name of the field that failed validation.</p>"
        },
        "message":{
          "shape":"ValidationExceptionFieldMessage",
          "documentation":"<p>A message describing why the field failed validation.</p>"
        }
      },
      "documentation":"<p>Information about a field that failed validation.</p>"
    },
    "ValidationExceptionFieldList":{
      "type":"list",
      "member":{"shape":"ValidationExceptionField"}
    },
    "ValidationExceptionFieldMessage":{"type":"string"},
    "ValidationExceptionFieldName":{"type":"string"},
    "ValidationExceptionReason":{
      "type":"string",
      "enum":[
        "unsupportedOperation",
        "fieldValidationFailed",
        "other",
        "invalidInboundEvent"
      ]
    },
    "Voice":{
      "type":"structure",
      "members":{
        "Gender":{
          "shape":"Gender",
          "documentation":"<p>Gender of the voice.</p>"
        },
        "Id":{
          "shape":"VoiceId",
          "documentation":"<p>Amazon Polly assigned voice ID. This is the ID that you specify when calling the <code>SynthesizeSpeech</code> operation.</p>"
        },
        "LanguageCode":{
          "shape":"LanguageCode",
          "documentation":"<p>Language code of the voice.</p>"
        },
        "LanguageName":{
          "shape":"LanguageName",
          "documentation":"<p>Human readable name of the language in English.</p>"
        },
        "Name":{
          "shape":"VoiceName",
          "documentation":"<p>Name of the voice (for example, Salli, Kendra, etc.). This provides a human readable voice name that you might display in your application.</p>"
        },
        "AdditionalLanguageCodes":{
          "shape":"LanguageCodeList",
          "documentation":"<p>Additional codes for languages available for the specified voice in addition to its default language. </p> <p>For example, the default language for Aditi is Indian English (en-IN) because it was first used for that language. Since Aditi is bilingual and fluent in both Indian English and Hindi, this parameter would show the code <code>hi-IN</code>.</p>"
        },
        "SupportedEngines":{
          "shape":"EngineList",
          "documentation":"<p>Specifies which engines (<code>standard</code>, <code>neural</code>, <code>long-form</code> or <code>generative</code>) are supported by a given voice.</p>"
        }
      },
      "documentation":"<p>Description of the voice.</p>"
    },
    "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"
      ]
    },
    "VoiceList":{
      "type":"list",
      "member":{"shape":"Voice"}
    },
    "VoiceName":{"type":"string"}
  },
  "documentation":"<p>Amazon Polly is a web service that makes it easy to synthesize speech from text.</p> <p>The Amazon Polly service provides API operations for synthesizing high-quality speech from plain text and Speech Synthesis Markup Language (SSML), along with managing pronunciations lexicons that enable you to get the best results for your application domain.</p>"
}
