public static interface SynthesisTask.Builder extends SdkPojo, CopyableBuilder<SynthesisTask.Builder,SynthesisTask>
Modifier and Type | Method and Description |
---|---|
SynthesisTask.Builder |
creationTime(Instant creationTime)
Timestamp for the time the synthesis task was started.
|
SynthesisTask.Builder |
languageCode(LanguageCode languageCode)
Optional language code for a synthesis task.
|
SynthesisTask.Builder |
languageCode(String languageCode)
Optional language code for a synthesis task.
|
SynthesisTask.Builder |
lexiconNames(Collection<String> lexiconNames)
List of one or more pronunciation lexicon names you want the service to apply during synthesis.
|
SynthesisTask.Builder |
lexiconNames(String... lexiconNames)
List of one or more pronunciation lexicon names you want the service to apply during synthesis.
|
SynthesisTask.Builder |
outputFormat(OutputFormat outputFormat)
The format in which the returned output will be encoded.
|
SynthesisTask.Builder |
outputFormat(String outputFormat)
The format in which the returned output will be encoded.
|
SynthesisTask.Builder |
outputUri(String outputUri)
Pathway for the output speech file.
|
SynthesisTask.Builder |
requestCharacters(Integer requestCharacters)
Number of billable characters synthesized.
|
SynthesisTask.Builder |
sampleRate(String sampleRate)
The audio frequency specified in Hz.
|
SynthesisTask.Builder |
snsTopicArn(String snsTopicArn)
ARN for the SNS topic optionally used for providing status notification for a speech synthesis task.
|
SynthesisTask.Builder |
speechMarkTypes(Collection<SpeechMarkType> speechMarkTypes)
The type of speech marks returned for the input text.
|
SynthesisTask.Builder |
speechMarkTypes(SpeechMarkType... speechMarkTypes)
The type of speech marks returned for the input text.
|
SynthesisTask.Builder |
speechMarkTypesWithStrings(Collection<String> speechMarkTypes)
The type of speech marks returned for the input text.
|
SynthesisTask.Builder |
speechMarkTypesWithStrings(String... speechMarkTypes)
The type of speech marks returned for the input text.
|
SynthesisTask.Builder |
taskId(String taskId)
The Amazon Polly generated identifier for a speech synthesis task.
|
SynthesisTask.Builder |
taskStatus(String taskStatus)
Current status of the individual speech synthesis task.
|
SynthesisTask.Builder |
taskStatus(TaskStatus taskStatus)
Current status of the individual speech synthesis task.
|
SynthesisTask.Builder |
taskStatusReason(String taskStatusReason)
Reason for the current status of a specific speech synthesis task, including errors if the task has failed.
|
SynthesisTask.Builder |
textType(String textType)
Specifies whether the input text is plain text or SSML.
|
SynthesisTask.Builder |
textType(TextType textType)
Specifies whether the input text is plain text or SSML.
|
SynthesisTask.Builder |
voiceId(String voiceId)
Voice ID to use for the synthesis.
|
SynthesisTask.Builder |
voiceId(VoiceId voiceId)
Voice ID to use for the synthesis.
|
copy
applyMutation, build
SynthesisTask.Builder taskId(String taskId)
The Amazon Polly generated identifier for a speech synthesis task.
taskId
- The Amazon Polly generated identifier for a speech synthesis task.SynthesisTask.Builder taskStatus(String taskStatus)
Current status of the individual speech synthesis task.
taskStatus
- Current status of the individual speech synthesis task.TaskStatus
,
TaskStatus
SynthesisTask.Builder taskStatus(TaskStatus taskStatus)
Current status of the individual speech synthesis task.
taskStatus
- Current status of the individual speech synthesis task.TaskStatus
,
TaskStatus
SynthesisTask.Builder taskStatusReason(String taskStatusReason)
Reason for the current status of a specific speech synthesis task, including errors if the task has failed.
taskStatusReason
- Reason for the current status of a specific speech synthesis task, including errors if the task has
failed.SynthesisTask.Builder outputUri(String outputUri)
Pathway for the output speech file.
outputUri
- Pathway for the output speech file.SynthesisTask.Builder creationTime(Instant creationTime)
Timestamp for the time the synthesis task was started.
creationTime
- Timestamp for the time the synthesis task was started.SynthesisTask.Builder requestCharacters(Integer requestCharacters)
Number of billable characters synthesized.
requestCharacters
- Number of billable characters synthesized.SynthesisTask.Builder snsTopicArn(String snsTopicArn)
ARN for the SNS topic optionally used for providing status notification for a speech synthesis task.
snsTopicArn
- ARN for the SNS topic optionally used for providing status notification for a speech synthesis task.SynthesisTask.Builder lexiconNames(Collection<String> lexiconNames)
List of one or more pronunciation lexicon names you want the service to apply during synthesis. Lexicons are applied only if the language of the lexicon is the same as the language of the voice.
lexiconNames
- List of one or more pronunciation lexicon names you want the service to apply during synthesis.
Lexicons are applied only if the language of the lexicon is the same as the language of the voice.SynthesisTask.Builder lexiconNames(String... lexiconNames)
List of one or more pronunciation lexicon names you want the service to apply during synthesis. Lexicons are applied only if the language of the lexicon is the same as the language of the voice.
lexiconNames
- List of one or more pronunciation lexicon names you want the service to apply during synthesis.
Lexicons are applied only if the language of the lexicon is the same as the language of the voice.SynthesisTask.Builder outputFormat(String outputFormat)
The format in which the returned output will be encoded. For audio stream, this will be mp3, ogg_vorbis, or pcm. For speech marks, this will be json.
outputFormat
- The format in which the returned output will be encoded. For audio stream, this will be mp3,
ogg_vorbis, or pcm. For speech marks, this will be json.OutputFormat
,
OutputFormat
SynthesisTask.Builder outputFormat(OutputFormat outputFormat)
The format in which the returned output will be encoded. For audio stream, this will be mp3, ogg_vorbis, or pcm. For speech marks, this will be json.
outputFormat
- The format in which the returned output will be encoded. For audio stream, this will be mp3,
ogg_vorbis, or pcm. For speech marks, this will be json.OutputFormat
,
OutputFormat
SynthesisTask.Builder sampleRate(String sampleRate)
The audio frequency specified in Hz.
The valid values for mp3 and ogg_vorbis are "8000", "16000", and "22050". The default value is "22050".
Valid values for pcm are "8000" and "16000" The default value is "16000".
sampleRate
- The audio frequency specified in Hz.
The valid values for mp3 and ogg_vorbis are "8000", "16000", and "22050". The default value is "22050".
Valid values for pcm are "8000" and "16000" The default value is "16000".
SynthesisTask.Builder speechMarkTypesWithStrings(Collection<String> speechMarkTypes)
The type of speech marks returned for the input text.
speechMarkTypes
- The type of speech marks returned for the input text.SynthesisTask.Builder speechMarkTypesWithStrings(String... speechMarkTypes)
The type of speech marks returned for the input text.
speechMarkTypes
- The type of speech marks returned for the input text.SynthesisTask.Builder speechMarkTypes(Collection<SpeechMarkType> speechMarkTypes)
The type of speech marks returned for the input text.
speechMarkTypes
- The type of speech marks returned for the input text.SynthesisTask.Builder speechMarkTypes(SpeechMarkType... speechMarkTypes)
The type of speech marks returned for the input text.
speechMarkTypes
- The type of speech marks returned for the input text.SynthesisTask.Builder textType(String textType)
Specifies whether the input text is plain text or SSML. The default value is plain text.
SynthesisTask.Builder textType(TextType textType)
Specifies whether the input text is plain text or SSML. The default value is plain text.
SynthesisTask.Builder voiceId(String voiceId)
Voice ID to use for the synthesis.
SynthesisTask.Builder voiceId(VoiceId voiceId)
Voice ID to use for the synthesis.
SynthesisTask.Builder languageCode(String languageCode)
Optional language code for a synthesis task. This is only necessary if using a bilingual voice, such as Aditi, which can be used for either Indian English (en-IN) or Hindi (hi-IN).
If a bilingual voice is used and no language code is specified, Amazon Polly will use the default language of
the bilingual voice. The default language for any voice is the one returned by the DescribeVoices operation for
the LanguageCode
parameter. For example, if no language code is specified, Aditi will use Indian
English rather than Hindi.
languageCode
- Optional language code for a synthesis task. This is only necessary if using a bilingual voice, such
as Aditi, which can be used for either Indian English (en-IN) or Hindi (hi-IN).
If a bilingual voice is used and no language code is specified, Amazon Polly will use the default
language of the bilingual voice. The default language for any voice is the one returned by the DescribeVoices
operation for the LanguageCode
parameter. For example, if no language code is specified,
Aditi will use Indian English rather than Hindi.
LanguageCode
,
LanguageCode
SynthesisTask.Builder languageCode(LanguageCode languageCode)
Optional language code for a synthesis task. This is only necessary if using a bilingual voice, such as Aditi, which can be used for either Indian English (en-IN) or Hindi (hi-IN).
If a bilingual voice is used and no language code is specified, Amazon Polly will use the default language of
the bilingual voice. The default language for any voice is the one returned by the DescribeVoices operation for
the LanguageCode
parameter. For example, if no language code is specified, Aditi will use Indian
English rather than Hindi.
languageCode
- Optional language code for a synthesis task. This is only necessary if using a bilingual voice, such
as Aditi, which can be used for either Indian English (en-IN) or Hindi (hi-IN).
If a bilingual voice is used and no language code is specified, Amazon Polly will use the default
language of the bilingual voice. The default language for any voice is the one returned by the DescribeVoices
operation for the LanguageCode
parameter. For example, if no language code is specified,
Aditi will use Indian English rather than Hindi.
LanguageCode
,
LanguageCode
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.