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 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.

For more information, see Managing Lexicons.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Polly.AmazonPollyRequest
      Amazon.Polly.Model.PutLexiconRequest

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

Syntax

C#
public class PutLexiconRequest : AmazonPollyRequest
         IAmazonWebServiceRequest

The PutLexiconRequest type exposes the following members

Constructors

NameDescription
Public Method PutLexiconRequest()

Properties

NameTypeDescription
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.

Examples

Stores a pronunciation lexicon in an AWS Region.

To save a lexicon


var client = new AmazonPollyClient();
var response = client.PutLexicon(new PutLexiconRequest 
{
    Content = "file://example.pls",
    Name = "W3C"
});


            

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5