{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-polly/json-schema/amazon-polly-start-speech-synthesis-stream-input-schema.json",
  "title": "StartSpeechSynthesisStreamInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-polly-operations-api-openapi.yml#/components/schemas/StartSpeechSynthesisStreamInput",
  "type": "object",
  "properties": {
    "Engine": {
      "type": "string",
      "enum": [
        "standard",
        "neural",
        "long-form",
        "generative"
      ],
      "description": "Specifies the engine for Amazon Polly to use when processing input text for speech synthesis. Currently, only the generative engine is supported. If you specify a voice that the selected engine doesn't support, Amazon Polly returns 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": "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."
    },
    "LexiconNames": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "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."
    },
    "OutputFormat": {
      "type": "string",
      "enum": [
        "json",
        "mp3",
        "ogg_opus",
        "ogg_vorbis",
        "pcm",
        "mulaw",
        "alaw"
      ],
      "description": "The audio format for the synthesized speech. Currently, Amazon Polly does not support JSON speech marks."
    },
    "SampleRate": {
      "type": "string",
      "description": "The audio frequency, specified in Hz."
    },
    "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": "The voice to use in synthesis. To get a list of available voice IDs, use the DescribeVoices operation."
    },
    "ActionStream": {
      "$ref": "#/$defs/StartSpeechSynthesisStreamActionStream"
    }
  },
  "required": [
    "Engine",
    "OutputFormat",
    "VoiceId"
  ],
  "$defs": {
    "CloseStreamEvent": {
      "type": "object",
      "properties": {}
    },
    "FlushStreamConfiguration": {
      "type": "object",
      "properties": {
        "Force": {
          "type": "boolean",
          "description": "Specifies whether to force the synthesis engine to immediately write buffered audio data to the output stream."
        }
      }
    },
    "StartSpeechSynthesisStreamActionStream": {
      "type": "object",
      "properties": {
        "TextEvent": {
          "$ref": "#/$defs/TextEvent"
        },
        "CloseStreamEvent": {
          "$ref": "#/$defs/CloseStreamEvent"
        }
      },
      "description": "Exactly one member is set."
    },
    "TextEvent": {
      "type": "object",
      "properties": {
        "Text": {
          "type": "string",
          "description": "The text content 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. Default: plain text."
        },
        "FlushStreamConfiguration": {
          "$ref": "#/$defs/FlushStreamConfiguration"
        }
      },
      "required": [
        "Text"
      ]
    }
  }
}