public class SynthesizeSpeechPresignRequest
extends java.lang.Object
implements java.io.Serializable
Synthesizes UTF-8 input, plain text or SSML, to a pre-signed URL to a stream of bytes. SSML input must be valid, well-formed SSML. Some alphabets might not be available with all the voices (eg. Cyrillic might not be read at all by English voices) unless phoneme mapping is used. For more information, see How it Works.
Constructor and Description |
---|
SynthesizeSpeechPresignRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Engine |
getEngine()
Specifies the engine (standard or neural) for Amazon Polly to use
when processing input text for speech synthesis.
|
java.util.Date |
getExpiration()
The expiration date at which point the new pre-signed URL will no longer
be accepted by Amazon Polly.
|
java.lang.String |
getLanguageCode()
Optional language code for the Synthesize Speech request.
|
java.util.List<java.lang.String> |
getLexiconNames()
List of one or more pronunciation lexicon names you want the service to
apply during synthesis.
|
java.lang.String |
getOutputFormat()
The audio format in which the resulting stream will be encoded.
|
AWSCredentials |
getRequestCredentials()
Returns the optional credentials to use to sign this request, overriding
the default credentials set at the client level.
|
java.lang.String |
getSampleRate()
The audio frequency specified in Hz.
|
java.util.List<java.lang.String> |
getSpeechMarkTypes()
Returns the value of the speechMarkTypes property for this object.
|
java.lang.String |
getText()
Input text to synthesize.
|
java.lang.String |
getTextType()
Specifies whether the input text is plain text or SSML.
|
java.lang.String |
getVoiceId()
Voice ID to use for the synthesis.
|
int |
hashCode() |
void |
setEngine(Engine engine)
Specifies the engine (standard or neural) for Amazon Polly to use
when processing input text for speech synthesis.
|
void |
setExpiration(java.util.Date expiration)
Sets the expiration date at which point the new pre-signed URL will no
longer be accepted by Amazon Polly.
|
void |
setLanguageCode(LanguageCode languageCode)
Optional language code for the Synthesize Speech request.
|
void |
setLanguageCode(java.lang.String languageCode)
Optional language code for the Synthesize Speech request.
|
void |
setLexiconNames(java.util.Collection<java.lang.String> lexiconNames)
List of one or more pronunciation lexicon names you want the service to
apply during synthesis.
|
void |
setLexiconNames(java.lang.String... lexiconNames)
List of one or more pronunciation lexicon names you want the service to
apply during synthesis.
|
void |
setOutputFormat(OutputFormat outputFormat)
The audio format in which the resulting stream will be encoded.
|
void |
setOutputFormat(java.lang.String outputFormat)
The audio format in which the resulting stream will be encoded.
|
void |
setRequestCredentials(AWSCredentials credentials)
Sets the optional credentials to use for this request, overriding the
default credentials set at the client level.
|
void |
setSampleRate(java.lang.String sampleRate)
The audio frequency specified in Hz.
|
void |
setSpeechMarkTypes(java.util.Collection<java.lang.String> speechMarkTypes)
Sets the value of speechMarkTypes
|
void |
setText(java.lang.String text)
Input text to synthesize.
|
void |
setTextType(java.lang.String textType)
Specifies whether the input text is plain text or SSML.
|
void |
setTextType(TextType textType)
Specifies whether the input text is plain text or SSML.
|
void |
setVoiceId(java.lang.String voiceId)
Voice ID to use for the synthesis.
|
void |
setVoiceId(VoiceId voiceId)
Voice ID to use for the synthesis.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SynthesizeSpeechPresignRequest |
withEngine(Engine engine)
Specifies the engine (standard or neural) for Amazon Polly to use
when processing input text for speech synthesis.
|
SynthesizeSpeechPresignRequest |
withExpiration(java.util.Date expiration)
Sets the expiration date at which point the new pre-signed URL will no
longer be accepted by Amazon Polly.
|
SynthesizeSpeechPresignRequest |
withLanguageCode(LanguageCode languageCode)
Optional language code for the Synthesize Speech request.
|
SynthesizeSpeechPresignRequest |
withLanguageCode(java.lang.String languageCode)
Optional language code for the Synthesize Speech request.
|
SynthesizeSpeechPresignRequest |
withLexiconNames(java.util.Collection<java.lang.String> lexiconNames)
List of one or more pronunciation lexicon names you want the service to
apply during synthesis.
|
SynthesizeSpeechPresignRequest |
withLexiconNames(java.lang.String... lexiconNames)
List of one or more pronunciation lexicon names you want the service to
apply during synthesis.
|
SynthesizeSpeechPresignRequest |
withOutputFormat(OutputFormat outputFormat)
The audio format in which the resulting stream will be encoded.
|
SynthesizeSpeechPresignRequest |
withOutputFormat(java.lang.String outputFormat)
The audio format in which the resulting stream will be encoded.
|
SynthesizeSpeechPresignRequest |
withRequestCredentials(AWSCredentials credentials)
Sets the optional credentials to use for this request, overriding the
default credentials set at the client level.
|
SynthesizeSpeechPresignRequest |
withSampleRate(java.lang.String sampleRate)
The audio frequency specified in Hz.
|
SynthesizeSpeechPresignRequest |
withSpeechMarkTypes(java.util.Collection<java.lang.String> speechMarkTypes)
Sets the value of the speechMarkTypes property for this object.
|
SynthesizeSpeechPresignRequest |
withSpeechMarkTypes(java.lang.String... speechMarkTypes)
Sets the value of the speechMarkTypes property for this object.
|
SynthesizeSpeechPresignRequest |
withText(java.lang.String text)
Input text to synthesize.
|
SynthesizeSpeechPresignRequest |
withTextType(java.lang.String textType)
Specifies whether the input text is plain text or SSML.
|
SynthesizeSpeechPresignRequest |
withTextType(TextType textType)
Specifies whether the input text is plain text or SSML.
|
SynthesizeSpeechPresignRequest |
withVoiceId(java.lang.String voiceId)
Voice ID to use for the synthesis.
|
SynthesizeSpeechPresignRequest |
withVoiceId(VoiceId voiceId)
Voice ID to use for the synthesis.
|
public java.util.Date getExpiration()
The expiration date at which point the new pre-signed URL will no longer be accepted by Amazon Polly. If not specified, a default value will be supplied.
public void setExpiration(java.util.Date expiration)
Sets the expiration date at which point the new pre-signed URL will no longer be accepted by Amazon Polly. If not specified, a default value will be supplied.
expiration
- The expiration date at which point the new pre-signed
URL will no longer be accepted by Amazon Polly.public SynthesizeSpeechPresignRequest withExpiration(java.util.Date expiration)
Sets the expiration date at which point the new pre-signed URL will no longer be accepted by Amazon Polly. If not specified, a default value will be supplied.
Returns a reference to this object so that method calls can be chained together.
expiration
- The expiration date at which point the new pre-signed
URL will no longer be accepted by Amazon Polly.public AWSCredentials getRequestCredentials()
public void setRequestCredentials(AWSCredentials credentials)
credentials
- The optional AWS security credentials to use for this
request, overriding the default credentials set at the client
level.public SynthesizeSpeechPresignRequest withRequestCredentials(AWSCredentials credentials)
credentials
- The optional AWS security credentials to use for this
request, overriding the default credentials set at the client
level.public java.util.List<java.lang.String> getLexiconNames()
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. For information about storing lexicons, see PutLexicon.
Lexicon name (returned as a single item of the List) 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. For information about storing lexicons, see
AmazonPolly.putLexicon(PutLexiconRequest)
.
public void setLexiconNames(java.lang.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. For information about storing lexicons, see PutLexicon.
Currently only one lexicon per request is supported by AWS SDK for Android.
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. For information about storing lexicons, see PutLexicon.
public void setLexiconNames(java.util.Collection<java.lang.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. For information about storing lexicons, see PutLexicon.
Currently only one lexicon per request is supported by AWS SDK for Android.
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. For information about storing lexicons, see PutLexicon.
public SynthesizeSpeechPresignRequest withLexiconNames(java.lang.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. For information about storing lexicons, see PutLexicon.
Returns a reference to this object so that method calls can be chained together.
Currently only one lexicon per request is supported by AWS SDK for Android.
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. For information about storing lexicons, see PutLexicon.
public SynthesizeSpeechPresignRequest withLexiconNames(java.util.Collection<java.lang.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. For information about storing lexicons, see PutLexicon.
Returns a reference to this object so that method calls can be chained together.
Currently only one lexicon per request is supported by AWS SDK for Android.
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. For information about storing lexicons, see PutLexicon.
public java.lang.String getOutputFormat()
The audio format in which the resulting stream will be encoded.
Constraints:
Allowed Values: mp3, ogg_vorbis, pcm
The audio format in which the resulting stream will be encoded.
OutputFormat
public void setOutputFormat(java.lang.String outputFormat)
The audio format in which the resulting stream will be encoded.
Constraints:
Allowed Values: mp3, ogg_vorbis, pcm
outputFormat
- The audio format in which the resulting stream will be encoded.
OutputFormat
public void setOutputFormat(OutputFormat outputFormat)
The audio format in which the resulting stream will be encoded.
Constraints:
Allowed Values: mp3, ogg_vorbis, pcm
outputFormat
- The audio format in which the resulting stream will be encoded.
OutputFormat
public SynthesizeSpeechPresignRequest withOutputFormat(java.lang.String outputFormat)
The audio format in which the resulting stream will be encoded.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: mp3, ogg_vorbis, pcm
outputFormat
- The audio format in which the resulting stream will be encoded.
OutputFormat
public SynthesizeSpeechPresignRequest withOutputFormat(OutputFormat outputFormat)
The audio format in which the resulting stream will be encoded.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: mp3, ogg_vorbis, pcm
outputFormat
- The audio format in which the resulting stream will be encoded.
OutputFormat
public java.lang.String getSampleRate()
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".
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".
public void setSampleRate(java.lang.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".
public SynthesizeSpeechPresignRequest withSampleRate(java.lang.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".
Returns a reference to this object so that method calls can be chained together.
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".
public java.util.List<java.lang.String> getSpeechMarkTypes()
public void setSpeechMarkTypes(java.util.Collection<java.lang.String> speechMarkTypes)
speechMarkTypes
- The new value for the speechMarkTypes property for
this object.public SynthesizeSpeechPresignRequest withSpeechMarkTypes(java.lang.String... speechMarkTypes)
Returns a reference to this object so that method calls can be chained together.
speechMarkTypes
- The new value for the speechMarkTypes property for
this object.public SynthesizeSpeechPresignRequest withSpeechMarkTypes(java.util.Collection<java.lang.String> speechMarkTypes)
Returns a reference to this object so that method calls can be chained together.
speechMarkTypes
- The new value for the speechMarkTypes property for
this object.public java.lang.String getText()
Input text to synthesize. If you specify ssml
as the
TextType
, follow the SSML format for the input text.
Input text to synthesize. If you specify ssml
as the
TextType
, follow the SSML format for the input text.
public void setText(java.lang.String text)
Input text to synthesize. If you specify ssml
as the
TextType
, follow the SSML format for the input text.
text
-
Input text to synthesize. If you specify ssml
as
the TextType
, follow the SSML format for the
input text.
public SynthesizeSpeechPresignRequest withText(java.lang.String text)
Input text to synthesize. If you specify ssml
as the
TextType
, follow the SSML format for the input text.
Returns a reference to this object so that method calls can be chained together.
text
-
Input text to synthesize. If you specify ssml
as
the TextType
, follow the SSML format for the
input text.
public java.lang.String getTextType()
Specifies whether the input text is plain text or SSML. The default value is plain text. For more information, see Using SSML.
Constraints:
Allowed Values: ssml, text
Specifies whether the input text is plain text or SSML. The default value is plain text. For more information, see Using SSML.
TextType
public void setTextType(java.lang.String textType)
Specifies whether the input text is plain text or SSML. The default value is plain text. For more information, see Using SSML.
Constraints:
Allowed Values: ssml, text
textType
- Specifies whether the input text is plain text or SSML. The default value is plain text. For more information, see Using SSML.
TextType
public void setTextType(TextType textType)
Specifies whether the input text is plain text or SSML. The default value is plain text. For more information, see Using SSML.
Constraints:
Allowed Values: ssml, text
textType
- Specifies whether the input text is plain text or SSML. The default value is plain text. For more information, see Using SSML.
TextType
public SynthesizeSpeechPresignRequest withTextType(java.lang.String textType)
Specifies whether the input text is plain text or SSML. The default value is plain text. For more information, see Using SSML.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ssml, text
textType
- Specifies whether the input text is plain text or SSML. The default value is plain text. For more information, see Using SSML.
TextType
public SynthesizeSpeechPresignRequest withTextType(TextType textType)
Specifies whether the input text is plain text or SSML. The default value is plain text. For more information, see Using SSML.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ssml, text
textType
- Specifies whether the input text is plain text or SSML. The default value is plain text. For more information, see Using SSML.
TextType
public java.lang.String getVoiceId()
Voice ID to use for the synthesis. You can get a list of available voice IDs by calling the DescribeVoices operation.
Constraints:
Allowed Values: Geraint, Gwyneth, Mads, Naja, Hans, Marlene,
Nicole, Russell, Amy, Brian, Emma, Raveena, Ivy, Joanna, Joey, Justin,
Kendra, Kimberly, Matthew, Salli, Conchita, Enrique, Miguel, Penelope, Chantal,
Celine, Mathieu, Dora, Karl, Carla, Giorgio, Mizuki, Liv, Lotte, Ruben,
Ewa, Jacek, Jan, Maja, Ricardo, Vitoria, Cristiano, Ines, Carmen, Maxim,
Tatyana, Astrid, Filiz, Vicki, Takumi, Seoyeon, Aditi, Lea, Zhiyu, Bianca,
Lucia, Mia
Voice ID to use for the synthesis. You can get a list of available voice IDs by calling the DescribeVoices operation.
VoiceId
public void setVoiceId(java.lang.String voiceId)
Voice ID to use for the synthesis. You can get a list of available voice IDs by calling the DescribeVoices operation.
Constraints:
Allowed Values: Geraint, Gwyneth, Mads, Naja, Hans, Marlene,
Nicole, Russell, Amy, Brian, Emma, Raveena, Ivy, Joanna, Joey, Justin,
Kendra, Kimberly, Matthew, Salli, Conchita, Enrique, Miguel, Penelope, Chantal,
Celine, Mathieu, Dora, Karl, Carla, Giorgio, Mizuki, Liv, Lotte, Ruben,
Ewa, Jacek, Jan, Maja, Ricardo, Vitoria, Cristiano, Ines, Carmen, Maxim,
Tatyana, Astrid, Filiz, Vicki, Takumi, Seoyeon, Aditi, Lea
voiceId
- Voice ID to use for the synthesis. You can get a list of available voice IDs by calling the DescribeVoices operation.
VoiceId
public void setVoiceId(VoiceId voiceId)
Voice ID to use for the synthesis. You can get a list of available voice IDs by calling the DescribeVoices operation.
Constraints:
Allowed Values: Geraint, Gwyneth, Mads, Naja, Hans, Marlene,
Nicole, Russell, Amy, Brian, Emma, Raveena, Ivy, Joanna, Joey, Justin,
Kendra, Kimberly, Matthew, Salli, Conchita, Enrique, Miguel, Penelope, Chantal,
Celine, Mathieu, Dora, Karl, Carla, Giorgio, Mizuki, Liv, Lotte, Ruben,
Ewa, Jacek, Jan, Maja, Ricardo, Vitoria, Cristiano, Ines, Carmen, Maxim,
Tatyana, Astrid, Filiz, Vicki, Takumi, Seoyeon, Aditi, Lea
voiceId
- Voice ID to use for the synthesis. You can get a list of available voice IDs by calling the DescribeVoices operation.
VoiceId
public SynthesizeSpeechPresignRequest withVoiceId(java.lang.String voiceId)
Voice ID to use for the synthesis. You can get a list of available voice IDs by calling the DescribeVoices operation.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Geraint, Gwyneth, Mads, Naja, Hans, Marlene,
Nicole, Russell, Amy, Brian, Emma, Raveena, Ivy, Joanna, Joey, Justin,
Kendra, Kimberly, Matthew, Salli, Conchita, Enrique, Miguel, Penelope, Chantal,
Celine, Mathieu, Dora, Karl, Carla, Giorgio, Liv, Lotte, Ruben, Ewa,
Jacek, Jan, Maja, Ricardo, Vitoria, Cristiano, Ines, Carmen, Maxim,
Tatyana, Astrid, Filiz, Vicki, Takumi, Seoyeon, Aditi, Lea
voiceId
- Voice ID to use for the synthesis. You can get a list of available voice IDs by calling the DescribeVoices operation.
VoiceId
public SynthesizeSpeechPresignRequest withVoiceId(VoiceId voiceId)
Voice ID to use for the synthesis. You can get a list of available voice IDs by calling the DescribeVoices operation.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Geraint, Gwyneth, Mads, Naja, Hans, Marlene,
Nicole, Russell, Amy, Brian, Emma, Raveena, Ivy, Joanna, Joey, Justin,
Kendra, Kimberly, Matthew, Salli, Conchita, Enrique, Miguel, Penelope, Chantal,
Celine, Mathieu, Dora, Karl, Carla, Giorgio, Liv, Lotte, Ruben, Ewa,
Jacek, Jan, Maja, Ricardo, Vitoria, Cristiano, Ines, Carmen, Maxim,
Tatyana, Astrid, Filiz, Vicki, Takumi, Seoyeon, Aditi, Lea
voiceId
- Voice ID to use for the synthesis. You can get a list of available voice IDs by calling the DescribeVoices operation.
VoiceId
public java.lang.String getLanguageCode()
Optional language code for the Synthesize Speech request. 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.
Constraints:
Allowed Values: cm-CMN, cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS,
en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, hi-IN,
ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR
Optional language code for the Synthesize Speech request. 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
public void setLanguageCode(java.lang.String languageCode)
Optional language code for the Synthesize Speech request. 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.
Constraints:
Allowed Values: cm-CMN, cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS,
en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, hi-IN,
ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR
languageCode
- Optional language code for the Synthesize Speech request. 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
public void setLanguageCode(LanguageCode languageCode)
Optional language code for the Synthesize Speech request. 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.
Constraints:
Allowed Values: cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS,
en-IN, en-US, es-ES, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, hi-IN,
ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR
languageCode
- Optional language code for the Synthesize Speech request. 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
public SynthesizeSpeechPresignRequest withLanguageCode(java.lang.String languageCode)
Optional language code for the Synthesize Speech request. 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.
Constraints:
Allowed Values: cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS,
en-IN, en-US, es-ES, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, hi-IN,
ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR
languageCode
- Optional language code for the Synthesize Speech request. 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
public SynthesizeSpeechPresignRequest withLanguageCode(LanguageCode languageCode)
Optional language code for the Synthesize Speech request. 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.
Constraints:
Allowed Values: cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS,
en-IN, en-US, es-ES, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, hi-IN,
ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR
languageCode
- Optional language code for the Synthesize Speech request. 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
public Engine getEngine()
Specifies the engine (standard or neural) for Amazon Polly to use when processing input text for speech synthesis. Using a voice that is not supported for the engine selected will result in an error.
Engine
public void setEngine(Engine engine)
engine
- Specifies the engine (standard or neural) for Amazon Polly to use when processing input text for speech synthesis. Using a voice that is not supported for the engine selected will result in an error.
Engine
public SynthesizeSpeechPresignRequest withEngine(Engine engine)
engine
- Specifies the engine (standard or neural) for Amazon Polly to use when processing input text for speech synthesis. Using a voice that is not supported for the engine selected will result in an error.
Engine
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.