{
  "version": "1.0",
  "examples": {
    "DeleteLexicon": [
      {
        "input": {
          "Name": "example"
        },
        "output": {},
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "Deletes a specified pronunciation lexicon stored in an AWS Region.",
        "id": "to-delete-a-lexicon-1481922498332",
        "title": "To delete a lexicon"
      }
    ],
    "DescribeVoices": [
      {
        "input": {
          "LanguageCode": "en-GB"
        },
        "output": {
          "Voices": [
            {
              "Gender": "Female",
              "Id": "Emma",
              "LanguageCode": "en-GB",
              "LanguageName": "British English",
              "Name": "Emma"
            },
            {
              "Gender": "Male",
              "Id": "Brian",
              "LanguageCode": "en-GB",
              "LanguageName": "British English",
              "Name": "Brian"
            },
            {
              "Gender": "Female",
              "Id": "Amy",
              "LanguageCode": "en-GB",
              "LanguageName": "British English",
              "Name": "Amy"
            }
          ]
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "Returns the list of voices that are available for use when requesting speech synthesis. Displayed languages are those within the specified language code. If no language code is specified, voices for all available languages are displayed.",
        "id": "to-describe-available-voices-1482180557753",
        "title": "To describe available voices"
      }
    ],
    "GetLexicon": [
      {
        "input": {
          "Name": ""
        },
        "output": {
          "Lexicon": {
            "Content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<lexicon version=\"1.0\" \r\n      xmlns=\"http://www.w3.org/2005/01/pronunciation-lexicon\"\r\n      xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \r\n      xsi:schemaLocation=\"http://www.w3.org/2005/01/pronunciation-lexicon \r\n        http://www.w3.org/TR/2007/CR-pronunciation-lexicon-20071212/pls.xsd\"\r\n      alphabet=\"ipa\" \r\n      xml:lang=\"en-US\">\r\n  <lexeme>\r\n    <grapheme>W3C</grapheme>\r\n    <alias>World Wide Web Consortium</alias>\r\n  </lexeme>\r\n</lexicon>",
            "Name": "example"
          },
          "LexiconAttributes": {
            "Alphabet": "ipa",
            "LanguageCode": "en-US",
            "LastModified": 1478542980.117,
            "LexemesCount": 1,
            "LexiconArn": "arn:aws:polly:us-east-1:123456789012:lexicon/example",
            "Size": 503
          }
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "Returns the content of the specified pronunciation lexicon stored in an AWS Region.",
        "id": "to-retrieve-a-lexicon-1481912870836",
        "title": "To retrieve a lexicon"
      }
    ],
    "ListLexicons": [
      {
        "input": {},
        "output": {
          "Lexicons": [
            {
              "Attributes": {
                "Alphabet": "ipa",
                "LanguageCode": "en-US",
                "LastModified": 1478542980.117,
                "LexemesCount": 1,
                "LexiconArn": "arn:aws:polly:us-east-1:123456789012:lexicon/example",
                "Size": 503
              },
              "Name": "example"
            }
          ]
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "Returns a list of pronunciation lexicons stored in an AWS Region.",
        "id": "to-list-all-lexicons-in-a-region-1481842106487",
        "title": "To list all lexicons in a region"
      }
    ],
    "PutLexicon": [
      {
        "input": {
          "Content": "<Lexicon Content>",
          "Name": "W3C"
        },
        "output": {},
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "Stores a pronunciation lexicon in an AWS Region.",
        "id": "to-save-a-lexicon-1482272584088",
        "title": "To save a lexicon"
      }
    ],
    "StartSpeechSynthesisStream": [
      {
        "input": {
          "ActionStream": {
            "CloseStreamEvent": {},
            "TextEvent": {
              "Text": "Hello, this is a test of bidirectional streaming synthesis.",
              "TextType": "text"
            }
          },
          "Engine": "generative",
          "LanguageCode": "en-US",
          "OutputFormat": "pcm",
          "SampleRate": "16000",
          "VoiceId": "Joanna"
        },
        "output": {
          "EventStream": {
            "AudioEvent": {
              "AudioChunk": "AUDIO_DATA"
            },
            "StreamClosedEvent": {
              "RequestCharacters": 58
            }
          }
        },
        "comments": {
          "input": {
            "ActionStream": "The input event stream. Send TextEvent messages with text to synthesize, and a CloseStreamEvent to signal the end of input.",
            "Engine": "The engine to use for synthesis.",
            "OutputFormat": "The audio format."
          },
          "output": {
            "EventStream": "The output event stream. AudioEvent messages contain synthesized audio chunks, and StreamClosedEvent signals completion with the total character count."
          }
        },
        "description": "The following example shows how to use the StartSpeechSynthesisStream operation to send text events over an input stream and receive audio events over an output stream.",
        "id": "to-start-speech-synthesis-stream-1741791835844",
        "title": "To synthesize speech using a bidirectional stream"
      }
    ],
    "SynthesizeSpeech": [
      {
        "input": {
          "LexiconNames": [
            "example"
          ],
          "OutputFormat": "mp3",
          "SampleRate": "8000",
          "Text": "All Gaul is divided into three parts",
          "TextType": "text",
          "VoiceId": "Joanna"
        },
        "output": {
          "AudioStream": "TEXT",
          "ContentType": "audio/mpeg",
          "RequestCharacters": 37
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "Synthesizes plain text or SSML into a file of human-like speech.",
        "id": "to-synthesize-speech-1482186064046",
        "title": "To synthesize speech"
      }
    ]
  }
}
