Amazon.Polly.AmazonPollyClient.PutLexicon C# (CSharp) Method

PutLexicon() public method

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.

/// Amazon Polly can't find the specified lexicon. Verify that the lexicon's name is spelled /// correctly, and then try again. /// /// The maximum size of the specified lexicon would be exceeded by this operation. /// /// The maximum size of the lexeme would be exceeded by this operation. /// /// The maximum number of lexicons would be exceeded by this operation. /// /// An unknown condition has caused a service failure. /// /// The alphabet specified by the lexicon is not a supported alphabet. Valid values are /// x-sampa and ipa. /// /// The language specified in the lexicon is unsupported. For a list of supported languages, /// see Lexicon /// Attributes. ///
public PutLexicon ( PutLexiconRequest request ) : PutLexiconResponse
request Amazon.Polly.Model.PutLexiconRequest Container for the necessary parameters to execute the PutLexicon service method.
return PutLexiconResponse
        public PutLexiconResponse PutLexicon(PutLexiconRequest request)
        {
            var marshaller = new PutLexiconRequestMarshaller();
            var unmarshaller = PutLexiconResponseUnmarshaller.Instance;

            return Invoke<PutLexiconRequest,PutLexiconResponse>(request, marshaller, unmarshaller);
        }