AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the PutLexicon operation. Stores a pronunciation lexicon in an AWS 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.

For more information, see Managing Lexicons.

Inheritance Hierarchy


Namespace: Amazon.Polly.Model
Assembly: AWSSDK.Polly.dll
Version: 3.x.y.z


public class PutLexiconRequest : AmazonPollyRequest

The PutLexiconRequest type exposes the following members


Public Method PutLexiconRequest()


Public Property Content System.String

Gets and sets the property Content.

Content of the PLS lexicon as string data.

Public Property Name System.String

Gets and sets the property Name.

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.


Stores a pronunciation lexicon in an AWS Region.

To save a lexicon

var response = client.PutLexicon(new PutLexiconRequest 
    Content = "file://example.pls",
    Name = "W3C"


Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms