C# Класс Amazon.Polly.AmazonPollyClient

Implementation for accessing Polly Amazon Polly is a web service that makes it easy to synthesize speech from text.

The Amazon Polly service provides API operations for synthesizing high-quality speech from plain text and Speech Synthesis Markup Language (SSML), along with managing pronunciations lexicons that enable you to get the best results for your application domain.

Наследование: AmazonServiceClient, IAmazonPolly
Показать файл Открыть проект

Открытые методы

Метод Описание
AmazonPollyClient ( ) : System

Constructs AmazonPollyClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration>

AmazonPollyClient ( AWSCredentials credentials ) : System

Constructs AmazonPollyClient with AWS Credentials

AmazonPollyClient ( AWSCredentials credentials, AmazonPollyConfig clientConfig ) : System

Constructs AmazonPollyClient with AWS Credentials and an AmazonPollyClient Configuration object.

AmazonPollyClient ( AWSCredentials credentials, RegionEndpoint region ) : System

Constructs AmazonPollyClient with AWS Credentials

AmazonPollyClient ( AmazonPollyConfig config ) : System

Constructs AmazonPollyClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration>

AmazonPollyClient ( RegionEndpoint region ) : System

Constructs AmazonPollyClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration>

AmazonPollyClient ( string awsAccessKeyId, string awsSecretAccessKey ) : System

Constructs AmazonPollyClient with AWS Access Key ID and AWS Secret Key

AmazonPollyClient ( string awsAccessKeyId, string awsSecretAccessKey, AmazonPollyConfig clientConfig ) : System

Constructs AmazonPollyClient with AWS Access Key ID, AWS Secret Key and an AmazonPollyClient Configuration object.

AmazonPollyClient ( string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region ) : System

Constructs AmazonPollyClient with AWS Access Key ID and AWS Secret Key

AmazonPollyClient ( string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken ) : System

Constructs AmazonPollyClient with AWS Access Key ID and AWS Secret Key

AmazonPollyClient ( string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonPollyConfig clientConfig ) : System

Constructs AmazonPollyClient with AWS Access Key ID, AWS Secret Key and an AmazonPollyClient Configuration object.

AmazonPollyClient ( string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region ) : System

Constructs AmazonPollyClient with AWS Access Key ID and AWS Secret Key

BeginDeleteLexicon ( DeleteLexiconRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the DeleteLexicon operation.

BeginDescribeVoices ( DescribeVoicesRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the DescribeVoices operation.

BeginGetLexicon ( GetLexiconRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the GetLexicon operation.

BeginListLexicons ( ListLexiconsRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the ListLexicons operation.

BeginPutLexicon ( PutLexiconRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the PutLexicon operation.

BeginSynthesizeSpeech ( SynthesizeSpeechRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the SynthesizeSpeech operation.

DeleteLexicon ( DeleteLexiconRequest request ) : DeleteLexiconResponse

Deletes the specified pronunciation lexicon stored in an AWS Region. A lexicon which has been deleted is not available for speech synthesis, nor is it possible to retrieve it using either the GetLexicon or ListLexicon APIs.

For more information, see Managing Lexicons.

DeleteLexiconAsync ( DeleteLexiconRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the DeleteLexicon operation.

DescribeVoices ( DescribeVoicesRequest request ) : DescribeVoicesResponse

Returns the list of voices that are available for use when requesting speech synthesis. Each voice speaks a specified language, is either male or female, and is identified by an ID, which is the ASCII version of the voice name.

When synthesizing speech ( SynthesizeSpeech ), you provide the voice ID for the voice you want from the list of voices returned by DescribeVoices.

For example, you want your news reader application to read news in a specific language, but giving a user the option to choose the voice. Using the DescribeVoices operation you can provide the user with a list of available voices to select from.

You can optionally specify a language code to filter the available voices. For example, if you specify en-US, the operation returns a list of all available US English voices.

This operation requires permissions to perform the polly:DescribeVoices action.

DescribeVoicesAsync ( DescribeVoicesRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the DescribeVoices operation.

EndDeleteLexicon ( IAsyncResult asyncResult ) : DeleteLexiconResponse

Finishes the asynchronous execution of the DeleteLexicon operation.

EndDescribeVoices ( IAsyncResult asyncResult ) : DescribeVoicesResponse

Finishes the asynchronous execution of the DescribeVoices operation.

EndGetLexicon ( IAsyncResult asyncResult ) : GetLexiconResponse

Finishes the asynchronous execution of the GetLexicon operation.

EndListLexicons ( IAsyncResult asyncResult ) : ListLexiconsResponse

Finishes the asynchronous execution of the ListLexicons operation.

EndPutLexicon ( IAsyncResult asyncResult ) : PutLexiconResponse

Finishes the asynchronous execution of the PutLexicon operation.

EndSynthesizeSpeech ( IAsyncResult asyncResult ) : SynthesizeSpeechResponse

Finishes the asynchronous execution of the SynthesizeSpeech operation.

GetLexicon ( GetLexiconRequest request ) : GetLexiconResponse

Returns the content of the specified pronunciation lexicon stored in an AWS Region. For more information, see Managing Lexicons.

GetLexiconAsync ( GetLexiconRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the GetLexicon operation.

ListLexicons ( ListLexiconsRequest request ) : ListLexiconsResponse

Returns a list of pronunciation lexicons stored in an AWS Region. For more information, see Managing Lexicons.

ListLexiconsAsync ( ListLexiconsRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the ListLexicons operation.

PutLexicon ( PutLexiconRequest request ) : PutLexiconResponse

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.

PutLexiconAsync ( PutLexiconRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the PutLexicon operation.

SynthesizeSpeech ( SynthesizeSpeechRequest request ) : SynthesizeSpeechResponse

Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes. SSML input must be valid, well-formed SSML. Some alphabets might not be available with all the voices (for example, Cyrillic might not be read at all by English voices) unless phoneme mapping is used. For more information, see How it Works.

SynthesizeSpeechAsync ( SynthesizeSpeechRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the SynthesizeSpeech operation.

Защищенные методы

Метод Описание
CreateSigner ( ) : AbstractAWSSigner

Creates the signer for the service.

Dispose ( bool disposing ) : void

Disposes the service client.

Описание методов

AmazonPollyClient() публичный Метод

Constructs AmazonPollyClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration>
public AmazonPollyClient ( ) : System
Результат System

AmazonPollyClient() публичный Метод

Constructs AmazonPollyClient with AWS Credentials
public AmazonPollyClient ( AWSCredentials credentials ) : System
credentials Amazon.Runtime.AWSCredentials AWS Credentials
Результат System

AmazonPollyClient() публичный Метод

Constructs AmazonPollyClient with AWS Credentials and an AmazonPollyClient Configuration object.
public AmazonPollyClient ( AWSCredentials credentials, AmazonPollyConfig clientConfig ) : System
credentials Amazon.Runtime.AWSCredentials AWS Credentials
clientConfig AmazonPollyConfig The AmazonPollyClient Configuration Object
Результат System

AmazonPollyClient() публичный Метод

Constructs AmazonPollyClient with AWS Credentials
public AmazonPollyClient ( AWSCredentials credentials, RegionEndpoint region ) : System
credentials Amazon.Runtime.AWSCredentials AWS Credentials
region RegionEndpoint The region to connect.
Результат System

AmazonPollyClient() публичный Метод

Constructs AmazonPollyClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration>
public AmazonPollyClient ( AmazonPollyConfig config ) : System
config AmazonPollyConfig The AmazonPollyClient Configuration Object
Результат System

AmazonPollyClient() публичный Метод

Constructs AmazonPollyClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration>
public AmazonPollyClient ( RegionEndpoint region ) : System
region RegionEndpoint The region to connect.
Результат System

AmazonPollyClient() публичный Метод

Constructs AmazonPollyClient with AWS Access Key ID and AWS Secret Key
public AmazonPollyClient ( string awsAccessKeyId, string awsSecretAccessKey ) : System
awsAccessKeyId string AWS Access Key ID
awsSecretAccessKey string AWS Secret Access Key
Результат System

AmazonPollyClient() публичный Метод

Constructs AmazonPollyClient with AWS Access Key ID, AWS Secret Key and an AmazonPollyClient Configuration object.
public AmazonPollyClient ( string awsAccessKeyId, string awsSecretAccessKey, AmazonPollyConfig clientConfig ) : System
awsAccessKeyId string AWS Access Key ID
awsSecretAccessKey string AWS Secret Access Key
clientConfig AmazonPollyConfig The AmazonPollyClient Configuration Object
Результат System

AmazonPollyClient() публичный Метод

Constructs AmazonPollyClient with AWS Access Key ID and AWS Secret Key
public AmazonPollyClient ( string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region ) : System
awsAccessKeyId string AWS Access Key ID
awsSecretAccessKey string AWS Secret Access Key
region RegionEndpoint The region to connect.
Результат System

AmazonPollyClient() публичный Метод

Constructs AmazonPollyClient with AWS Access Key ID and AWS Secret Key
public AmazonPollyClient ( string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken ) : System
awsAccessKeyId string AWS Access Key ID
awsSecretAccessKey string AWS Secret Access Key
awsSessionToken string AWS Session Token
Результат System

AmazonPollyClient() публичный Метод

Constructs AmazonPollyClient with AWS Access Key ID, AWS Secret Key and an AmazonPollyClient Configuration object.
public AmazonPollyClient ( string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonPollyConfig clientConfig ) : System
awsAccessKeyId string AWS Access Key ID
awsSecretAccessKey string AWS Secret Access Key
awsSessionToken string AWS Session Token
clientConfig AmazonPollyConfig The AmazonPollyClient Configuration Object
Результат System

AmazonPollyClient() публичный Метод

Constructs AmazonPollyClient with AWS Access Key ID and AWS Secret Key
public AmazonPollyClient ( string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region ) : System
awsAccessKeyId string AWS Access Key ID
awsSecretAccessKey string AWS Secret Access Key
awsSessionToken string AWS Session Token
region RegionEndpoint The region to connect.
Результат System

BeginDeleteLexicon() публичный Метод

Initiates the asynchronous execution of the DeleteLexicon operation.
public BeginDeleteLexicon ( DeleteLexiconRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.Polly.Model.DeleteLexiconRequest Container for the necessary parameters to execute the DeleteLexicon operation on AmazonPollyClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
Результат IAsyncResult

BeginDescribeVoices() публичный Метод

Initiates the asynchronous execution of the DescribeVoices operation.
public BeginDescribeVoices ( DescribeVoicesRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.Polly.Model.DescribeVoicesRequest Container for the necessary parameters to execute the DescribeVoices operation on AmazonPollyClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
Результат IAsyncResult

BeginGetLexicon() публичный Метод

Initiates the asynchronous execution of the GetLexicon operation.
public BeginGetLexicon ( GetLexiconRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.Polly.Model.GetLexiconRequest Container for the necessary parameters to execute the GetLexicon operation on AmazonPollyClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
Результат IAsyncResult

BeginListLexicons() публичный Метод

Initiates the asynchronous execution of the ListLexicons operation.
public BeginListLexicons ( ListLexiconsRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.Polly.Model.ListLexiconsRequest Container for the necessary parameters to execute the ListLexicons operation on AmazonPollyClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
Результат IAsyncResult

BeginPutLexicon() публичный Метод

Initiates the asynchronous execution of the PutLexicon operation.
public BeginPutLexicon ( PutLexiconRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.Polly.Model.PutLexiconRequest Container for the necessary parameters to execute the PutLexicon operation on AmazonPollyClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
Результат IAsyncResult

BeginSynthesizeSpeech() публичный Метод

Initiates the asynchronous execution of the SynthesizeSpeech operation.
public BeginSynthesizeSpeech ( SynthesizeSpeechRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.Polly.Model.SynthesizeSpeechRequest Container for the necessary parameters to execute the SynthesizeSpeech operation on AmazonPollyClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
Результат IAsyncResult

CreateSigner() защищенный Метод

Creates the signer for the service.
protected CreateSigner ( ) : AbstractAWSSigner
Результат Amazon.Runtime.Internal.Auth.AbstractAWSSigner

DeleteLexicon() публичный Метод

Deletes the specified pronunciation lexicon stored in an AWS Region. A lexicon which has been deleted is not available for speech synthesis, nor is it possible to retrieve it using either the GetLexicon or ListLexicon APIs.

For more information, see Managing Lexicons.

/// Amazon Polly can't find the specified lexicon. This could be caused by a lexicon that /// is missing, its name is misspelled or specifying a lexicon that is in a different /// region. /// /// /// /// Verify that the lexicon exists, is in the region (see ListLexicons) and that /// you spelled its name is spelled correctly. Then try again. /// /// /// An unknown condition has caused a service failure. ///
public DeleteLexicon ( DeleteLexiconRequest request ) : DeleteLexiconResponse
request Amazon.Polly.Model.DeleteLexiconRequest Container for the necessary parameters to execute the DeleteLexicon service method.
Результат DeleteLexiconResponse

DeleteLexiconAsync() публичный Метод

Initiates the asynchronous execution of the DeleteLexicon operation.
public DeleteLexiconAsync ( DeleteLexiconRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.Polly.Model.DeleteLexiconRequest Container for the necessary parameters to execute the DeleteLexicon operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task

DescribeVoices() публичный Метод

Returns the list of voices that are available for use when requesting speech synthesis. Each voice speaks a specified language, is either male or female, and is identified by an ID, which is the ASCII version of the voice name.

When synthesizing speech ( SynthesizeSpeech ), you provide the voice ID for the voice you want from the list of voices returned by DescribeVoices.

For example, you want your news reader application to read news in a specific language, but giving a user the option to choose the voice. Using the DescribeVoices operation you can provide the user with a list of available voices to select from.

You can optionally specify a language code to filter the available voices. For example, if you specify en-US, the operation returns a list of all available US English voices.

This operation requires permissions to perform the polly:DescribeVoices action.

/// The NextToken is invalid. Verify that it's spelled correctly, and then try again. /// /// An unknown condition has caused a service failure. ///
public DescribeVoices ( DescribeVoicesRequest request ) : DescribeVoicesResponse
request Amazon.Polly.Model.DescribeVoicesRequest Container for the necessary parameters to execute the DescribeVoices service method.
Результат Amazon.Polly.Model.DescribeVoicesResponse

DescribeVoicesAsync() публичный Метод

Initiates the asynchronous execution of the DescribeVoices operation.
public DescribeVoicesAsync ( DescribeVoicesRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.Polly.Model.DescribeVoicesRequest Container for the necessary parameters to execute the DescribeVoices operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task

Dispose() защищенный Метод

Disposes the service client.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

EndDeleteLexicon() публичный Метод

Finishes the asynchronous execution of the DeleteLexicon operation.
public EndDeleteLexicon ( IAsyncResult asyncResult ) : DeleteLexiconResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginDeleteLexicon.
Результат DeleteLexiconResponse

EndDescribeVoices() публичный Метод

Finishes the asynchronous execution of the DescribeVoices operation.
public EndDescribeVoices ( IAsyncResult asyncResult ) : DescribeVoicesResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginDescribeVoices.
Результат Amazon.Polly.Model.DescribeVoicesResponse

EndGetLexicon() публичный Метод

Finishes the asynchronous execution of the GetLexicon operation.
public EndGetLexicon ( IAsyncResult asyncResult ) : GetLexiconResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginGetLexicon.
Результат Amazon.Polly.Model.GetLexiconResponse

EndListLexicons() публичный Метод

Finishes the asynchronous execution of the ListLexicons operation.
public EndListLexicons ( IAsyncResult asyncResult ) : ListLexiconsResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginListLexicons.
Результат Amazon.Polly.Model.ListLexiconsResponse

EndPutLexicon() публичный Метод

Finishes the asynchronous execution of the PutLexicon operation.
public EndPutLexicon ( IAsyncResult asyncResult ) : PutLexiconResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginPutLexicon.
Результат PutLexiconResponse

EndSynthesizeSpeech() публичный Метод

Finishes the asynchronous execution of the SynthesizeSpeech operation.
public EndSynthesizeSpeech ( IAsyncResult asyncResult ) : SynthesizeSpeechResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginSynthesizeSpeech.
Результат Amazon.Polly.Model.SynthesizeSpeechResponse

GetLexicon() публичный Метод

Returns the content of the specified pronunciation lexicon stored in an AWS Region. For more information, see Managing Lexicons.
/// Amazon Polly can't find the specified lexicon. This could be caused by a lexicon that /// is missing, its name is misspelled or specifying a lexicon that is in a different /// region. /// /// /// /// Verify that the lexicon exists, is in the region (see ListLexicons) and that /// you spelled its name is spelled correctly. Then try again. /// /// /// An unknown condition has caused a service failure. ///
public GetLexicon ( GetLexiconRequest request ) : GetLexiconResponse
request Amazon.Polly.Model.GetLexiconRequest Container for the necessary parameters to execute the GetLexicon service method.
Результат Amazon.Polly.Model.GetLexiconResponse

GetLexiconAsync() публичный Метод

Initiates the asynchronous execution of the GetLexicon operation.
public GetLexiconAsync ( GetLexiconRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.Polly.Model.GetLexiconRequest Container for the necessary parameters to execute the GetLexicon operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task

ListLexicons() публичный Метод

Returns a list of pronunciation lexicons stored in an AWS Region. For more information, see Managing Lexicons.
/// The NextToken is invalid. Verify that it's spelled correctly, and then try again. /// /// An unknown condition has caused a service failure. ///
public ListLexicons ( ListLexiconsRequest request ) : ListLexiconsResponse
request Amazon.Polly.Model.ListLexiconsRequest Container for the necessary parameters to execute the ListLexicons service method.
Результат Amazon.Polly.Model.ListLexiconsResponse

ListLexiconsAsync() публичный Метод

Initiates the asynchronous execution of the ListLexicons operation.
public ListLexiconsAsync ( ListLexiconsRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.Polly.Model.ListLexiconsRequest Container for the necessary parameters to execute the ListLexicons operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task

PutLexicon() публичный Метод

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.
Результат PutLexiconResponse

PutLexiconAsync() публичный Метод

Initiates the asynchronous execution of the PutLexicon operation.
public PutLexiconAsync ( PutLexiconRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.Polly.Model.PutLexiconRequest Container for the necessary parameters to execute the PutLexicon operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task

SynthesizeSpeech() публичный Метод

Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes. SSML input must be valid, well-formed SSML. Some alphabets might not be available with all the voices (for example, Cyrillic might not be read at all by English voices) unless phoneme mapping is used. For more information, see How it Works.
/// The specified sample rate is not valid. /// /// The SSML you provided is invalid. Verify the SSML syntax, spelling of tags and values, /// and then try again. /// /// Amazon Polly can't find the specified lexicon. This could be caused by a lexicon that /// is missing, its name is misspelled or specifying a lexicon that is in a different /// region. /// /// /// /// Verify that the lexicon exists, is in the region (see ListLexicons) and that /// you spelled its name is spelled correctly. Then try again. /// /// /// An unknown condition has caused a service failure. /// /// The value of the "Text" parameter is longer than the accepted limits. The limit for /// input text is a maximum of 3000 characters total, of which no more than 1500 can be /// billed characters. SSML tags are not counted as billed characters. ///
public SynthesizeSpeech ( SynthesizeSpeechRequest request ) : SynthesizeSpeechResponse
request Amazon.Polly.Model.SynthesizeSpeechRequest Container for the necessary parameters to execute the SynthesizeSpeech service method.
Результат Amazon.Polly.Model.SynthesizeSpeechResponse

SynthesizeSpeechAsync() публичный Метод

Initiates the asynchronous execution of the SynthesizeSpeech operation.
public SynthesizeSpeechAsync ( SynthesizeSpeechRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.Polly.Model.SynthesizeSpeechRequest Container for the necessary parameters to execute the SynthesizeSpeech operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task