public class AmazonPollyPresigningClient extends AmazonPollyClient implements AmazonPolly
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.
LOGGING_AWS_REQUEST_METRIC| Constructor and Description | 
|---|
| AmazonPollyPresigningClient(AWSCredentialsProvider awsCredentialsProvider)Constructs a new client to invoke service methods on AmazonPolly using
 the specified AWS account credentials provider. | 
| AmazonPollyPresigningClient(AWSCredentialsProvider awsCredentialsProvider,
                           ClientConfiguration clientConfiguration)Constructs a new client to invoke service methods on AmazonPolly using
 the specified AWS account credentials provider and client configuration
 options. | 
| AmazonPollyPresigningClient(AWSCredentialsProvider awsCredentialsProvider,
                           ClientConfiguration clientConfiguration,
                           HttpClient httpClient)Constructs a new client to invoke service methods on AmazonPolly using
 the specified AWS account credentials provider, client configuration
 options and request metric collector. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.net.URL | getPresignedSynthesizeSpeechUrl(SynthesizeSpeechPresignRequest synthesizeSpeechPresignRequest)
 Returns a pre-signed URL for accessing an Amazon Polly resource. | 
deleteLexicon, describeVoices, getCachedResponseMetadata, getLexicon, getSpeechSynthesisTask, listLexicons, listSpeechSynthesisTasks, putLexicon, startSpeechSynthesisTask, synthesizeSpeechaddRequestHandler, addRequestHandler, getEndpoint, getEndpointPrefix, getRegions, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerRegionOverride, getTimeOffset, removeRequestHandler, removeRequestHandler, setConfiguration, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteLexicon, describeVoices, getCachedResponseMetadata, getLexicon, getSpeechSynthesisTask, listLexicons, listSpeechSynthesisTasks, putLexicon, setEndpoint, setRegion, shutdown, startSpeechSynthesisTask, synthesizeSpeechpublic AmazonPollyPresigningClient(AWSCredentialsProvider awsCredentialsProvider)
 The client requests are authenticated using the AWSCredentials
 provided in this constructor. Static AWSCredentials can be passed for
 quick testing. However, it is strongly recommended to use Amazon Cognito
 vended temporary credentials for use in production. This can be achieved
 by using AWSMobileClient. Please see
 https://aws-amplify.github.io/docs/android/authentication for
 instructions on how to enable AWSMobileClient.
 
 AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() {
     @Override
     public void onResult(final UserStateDetails details) {
         AmazonPollyPresigningClient client = new AmazonPollyPresigningClient(AWSMobileClient.getInstance());
     }
     @Override
     public void onError(final Exception e) {
         e.printStackTrace();
     }
 });
 
 All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will
            provide credentials to authenticate requests with AWS
            services.public AmazonPollyPresigningClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
 The client requests are authenticated using the AWSCredentials
 provided in this constructor. Static AWSCredentials can be passed for
 quick testing. However, it is strongly recommended to use Amazon Cognito
 vended temporary credentials for use in production. This can be achieved
 by using AWSMobileClient. Please see
 https://aws-amplify.github.io/docs/android/authentication for
 instructions on how to enable AWSMobileClient.
 
 AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() {
     @Override
     public void onResult(final UserStateDetails details) {
         AmazonPollyPresigningClient client = new AmazonPollyPresigningClient(AWSMobileClient.getInstance());
     }
     @Override
     public void onError(final Exception e) {
         e.printStackTrace();
     }
 });
 
 All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will
            provide credentials to authenticate requests with AWS
            services.clientConfiguration - The client configuration options controlling
            how this client connects to AmazonPolly (ex: proxy settings,
            retry counts, etc.).public AmazonPollyPresigningClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, HttpClient httpClient)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will
            provide credentials to authenticate requests with AWS
            services.clientConfiguration - The client configuration options controlling
            how this client connects to AmazonPolly (ex: proxy settings,
            retry counts, etc.).httpClient - A http clientpublic java.net.URL getPresignedSynthesizeSpeechUrl(SynthesizeSpeechPresignRequest synthesizeSpeechPresignRequest)
Returns a pre-signed URL for accessing an Amazon Polly resource.
Pre-signed URLs allow clients to form a URL for an Amazon Polly resource, and then sign it with the current AWS security credentials. The pre-signed URL can be shared to other users, allowing access to the resource without providing an account's AWS security credentials.
Pre-signed URLs are useful in many situations where AWS security credentials aren't available from the client that needs to make the actual request to Amazon Polly.
For example, a pre-signed URL to GET the synthesized speech audio stream using the owner's AWS account can be generated and passed to a system media player.
synthesizeSpeechPresignRequest - Object providing pre-signed synthesize speech
              request parameters.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.