@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAmazonPollyAsync extends AbstractAmazonPolly implements AmazonPollyAsync
AmazonPollyAsync
. Convenient method forms pass through to the corresponding
overload that takes a request object and an AsyncHandler
, which throws an
UnsupportedOperationException
.ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
Future<DeleteLexiconResult> |
deleteLexiconAsync(DeleteLexiconRequest request)
Deletes the specified pronunciation lexicon stored in an Amazon Web Services Region.
|
Future<DeleteLexiconResult> |
deleteLexiconAsync(DeleteLexiconRequest request,
AsyncHandler<DeleteLexiconRequest,DeleteLexiconResult> asyncHandler)
Deletes the specified pronunciation lexicon stored in an Amazon Web Services Region.
|
Future<DescribeVoicesResult> |
describeVoicesAsync(DescribeVoicesRequest request)
Returns the list of voices that are available for use when requesting speech synthesis.
|
Future<DescribeVoicesResult> |
describeVoicesAsync(DescribeVoicesRequest request,
AsyncHandler<DescribeVoicesRequest,DescribeVoicesResult> asyncHandler)
Returns the list of voices that are available for use when requesting speech synthesis.
|
Future<GetLexiconResult> |
getLexiconAsync(GetLexiconRequest request)
Returns the content of the specified pronunciation lexicon stored in an Amazon Web Services Region.
|
Future<GetLexiconResult> |
getLexiconAsync(GetLexiconRequest request,
AsyncHandler<GetLexiconRequest,GetLexiconResult> asyncHandler)
Returns the content of the specified pronunciation lexicon stored in an Amazon Web Services Region.
|
Future<GetSpeechSynthesisTaskResult> |
getSpeechSynthesisTaskAsync(GetSpeechSynthesisTaskRequest request)
Retrieves a specific SpeechSynthesisTask object based on its TaskID.
|
Future<GetSpeechSynthesisTaskResult> |
getSpeechSynthesisTaskAsync(GetSpeechSynthesisTaskRequest request,
AsyncHandler<GetSpeechSynthesisTaskRequest,GetSpeechSynthesisTaskResult> asyncHandler)
Retrieves a specific SpeechSynthesisTask object based on its TaskID.
|
Future<ListLexiconsResult> |
listLexiconsAsync(ListLexiconsRequest request)
Returns a list of pronunciation lexicons stored in an Amazon Web Services Region.
|
Future<ListLexiconsResult> |
listLexiconsAsync(ListLexiconsRequest request,
AsyncHandler<ListLexiconsRequest,ListLexiconsResult> asyncHandler)
Returns a list of pronunciation lexicons stored in an Amazon Web Services Region.
|
Future<ListSpeechSynthesisTasksResult> |
listSpeechSynthesisTasksAsync(ListSpeechSynthesisTasksRequest request)
Returns a list of SpeechSynthesisTask objects ordered by their creation date.
|
Future<ListSpeechSynthesisTasksResult> |
listSpeechSynthesisTasksAsync(ListSpeechSynthesisTasksRequest request,
AsyncHandler<ListSpeechSynthesisTasksRequest,ListSpeechSynthesisTasksResult> asyncHandler)
Returns a list of SpeechSynthesisTask objects ordered by their creation date.
|
Future<PutLexiconResult> |
putLexiconAsync(PutLexiconRequest request)
Stores a pronunciation lexicon in an Amazon Web Services Region.
|
Future<PutLexiconResult> |
putLexiconAsync(PutLexiconRequest request,
AsyncHandler<PutLexiconRequest,PutLexiconResult> asyncHandler)
Stores a pronunciation lexicon in an Amazon Web Services Region.
|
Future<StartSpeechSynthesisTaskResult> |
startSpeechSynthesisTaskAsync(StartSpeechSynthesisTaskRequest request)
Allows the creation of an asynchronous synthesis task, by starting a new
SpeechSynthesisTask . |
Future<StartSpeechSynthesisTaskResult> |
startSpeechSynthesisTaskAsync(StartSpeechSynthesisTaskRequest request,
AsyncHandler<StartSpeechSynthesisTaskRequest,StartSpeechSynthesisTaskResult> asyncHandler)
Allows the creation of an asynchronous synthesis task, by starting a new
SpeechSynthesisTask . |
Future<SynthesizeSpeechResult> |
synthesizeSpeechAsync(SynthesizeSpeechRequest request)
Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes.
|
Future<SynthesizeSpeechResult> |
synthesizeSpeechAsync(SynthesizeSpeechRequest request,
AsyncHandler<SynthesizeSpeechRequest,SynthesizeSpeechResult> asyncHandler)
Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes.
|
deleteLexicon, describeVoices, getCachedResponseMetadata, getLexicon, getSpeechSynthesisTask, listLexicons, listSpeechSynthesisTasks, presigners, putLexicon, setEndpoint, setRegion, shutdown, startSpeechSynthesisTask, synthesizeSpeech
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteLexicon, describeVoices, getCachedResponseMetadata, getLexicon, getSpeechSynthesisTask, listLexicons, listSpeechSynthesisTasks, presigners, putLexicon, setEndpoint, setRegion, shutdown, startSpeechSynthesisTask, synthesizeSpeech
public Future<DeleteLexiconResult> deleteLexiconAsync(DeleteLexiconRequest request)
AmazonPollyAsync
Deletes the specified pronunciation lexicon stored in an Amazon Web Services 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
in interface AmazonPollyAsync
public Future<DeleteLexiconResult> deleteLexiconAsync(DeleteLexiconRequest request, AsyncHandler<DeleteLexiconRequest,DeleteLexiconResult> asyncHandler)
AmazonPollyAsync
Deletes the specified pronunciation lexicon stored in an Amazon Web Services 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
in interface AmazonPollyAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeVoicesResult> describeVoicesAsync(DescribeVoicesRequest request)
AmazonPollyAsync
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
in interface AmazonPollyAsync
public Future<DescribeVoicesResult> describeVoicesAsync(DescribeVoicesRequest request, AsyncHandler<DescribeVoicesRequest,DescribeVoicesResult> asyncHandler)
AmazonPollyAsync
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
in interface AmazonPollyAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetLexiconResult> getLexiconAsync(GetLexiconRequest request)
AmazonPollyAsync
Returns the content of the specified pronunciation lexicon stored in an Amazon Web Services Region. For more information, see Managing Lexicons.
getLexiconAsync
in interface AmazonPollyAsync
public Future<GetLexiconResult> getLexiconAsync(GetLexiconRequest request, AsyncHandler<GetLexiconRequest,GetLexiconResult> asyncHandler)
AmazonPollyAsync
Returns the content of the specified pronunciation lexicon stored in an Amazon Web Services Region. For more information, see Managing Lexicons.
getLexiconAsync
in interface AmazonPollyAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetSpeechSynthesisTaskResult> getSpeechSynthesisTaskAsync(GetSpeechSynthesisTaskRequest request)
AmazonPollyAsync
Retrieves a specific SpeechSynthesisTask object based on its TaskID. This object contains information about the given speech synthesis task, including the status of the task, and a link to the S3 bucket containing the output of the task.
getSpeechSynthesisTaskAsync
in interface AmazonPollyAsync
public Future<GetSpeechSynthesisTaskResult> getSpeechSynthesisTaskAsync(GetSpeechSynthesisTaskRequest request, AsyncHandler<GetSpeechSynthesisTaskRequest,GetSpeechSynthesisTaskResult> asyncHandler)
AmazonPollyAsync
Retrieves a specific SpeechSynthesisTask object based on its TaskID. This object contains information about the given speech synthesis task, including the status of the task, and a link to the S3 bucket containing the output of the task.
getSpeechSynthesisTaskAsync
in interface AmazonPollyAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListLexiconsResult> listLexiconsAsync(ListLexiconsRequest request)
AmazonPollyAsync
Returns a list of pronunciation lexicons stored in an Amazon Web Services Region. For more information, see Managing Lexicons.
listLexiconsAsync
in interface AmazonPollyAsync
public Future<ListLexiconsResult> listLexiconsAsync(ListLexiconsRequest request, AsyncHandler<ListLexiconsRequest,ListLexiconsResult> asyncHandler)
AmazonPollyAsync
Returns a list of pronunciation lexicons stored in an Amazon Web Services Region. For more information, see Managing Lexicons.
listLexiconsAsync
in interface AmazonPollyAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListSpeechSynthesisTasksResult> listSpeechSynthesisTasksAsync(ListSpeechSynthesisTasksRequest request)
AmazonPollyAsync
Returns a list of SpeechSynthesisTask objects ordered by their creation date. This operation can filter the tasks by their status, for example, allowing users to list only tasks that are completed.
listSpeechSynthesisTasksAsync
in interface AmazonPollyAsync
public Future<ListSpeechSynthesisTasksResult> listSpeechSynthesisTasksAsync(ListSpeechSynthesisTasksRequest request, AsyncHandler<ListSpeechSynthesisTasksRequest,ListSpeechSynthesisTasksResult> asyncHandler)
AmazonPollyAsync
Returns a list of SpeechSynthesisTask objects ordered by their creation date. This operation can filter the tasks by their status, for example, allowing users to list only tasks that are completed.
listSpeechSynthesisTasksAsync
in interface AmazonPollyAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<PutLexiconResult> putLexiconAsync(PutLexiconRequest request)
AmazonPollyAsync
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.
putLexiconAsync
in interface AmazonPollyAsync
public Future<PutLexiconResult> putLexiconAsync(PutLexiconRequest request, AsyncHandler<PutLexiconRequest,PutLexiconResult> asyncHandler)
AmazonPollyAsync
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.
putLexiconAsync
in interface AmazonPollyAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartSpeechSynthesisTaskResult> startSpeechSynthesisTaskAsync(StartSpeechSynthesisTaskRequest request)
AmazonPollyAsync
Allows the creation of an asynchronous synthesis task, by starting a new SpeechSynthesisTask
. This
operation requires all the standard information needed for speech synthesis, plus the name of an Amazon S3 bucket
for the service to store the output of the synthesis task and two optional parameters (
OutputS3KeyPrefix
and SnsTopicArn
). Once the synthesis task is created, this operation
will return a SpeechSynthesisTask
object, which will include an identifier of this task as well as
the current status. The SpeechSynthesisTask
object is available for 72 hours after starting the
asynchronous synthesis task.
startSpeechSynthesisTaskAsync
in interface AmazonPollyAsync
public Future<StartSpeechSynthesisTaskResult> startSpeechSynthesisTaskAsync(StartSpeechSynthesisTaskRequest request, AsyncHandler<StartSpeechSynthesisTaskRequest,StartSpeechSynthesisTaskResult> asyncHandler)
AmazonPollyAsync
Allows the creation of an asynchronous synthesis task, by starting a new SpeechSynthesisTask
. This
operation requires all the standard information needed for speech synthesis, plus the name of an Amazon S3 bucket
for the service to store the output of the synthesis task and two optional parameters (
OutputS3KeyPrefix
and SnsTopicArn
). Once the synthesis task is created, this operation
will return a SpeechSynthesisTask
object, which will include an identifier of this task as well as
the current status. The SpeechSynthesisTask
object is available for 72 hours after starting the
asynchronous synthesis task.
startSpeechSynthesisTaskAsync
in interface AmazonPollyAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<SynthesizeSpeechResult> synthesizeSpeechAsync(SynthesizeSpeechRequest request)
AmazonPollyAsync
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
in interface AmazonPollyAsync
public Future<SynthesizeSpeechResult> synthesizeSpeechAsync(SynthesizeSpeechRequest request, AsyncHandler<SynthesizeSpeechRequest,SynthesizeSpeechResult> asyncHandler)
AmazonPollyAsync
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
in interface AmazonPollyAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.