public class SynthesizeSpeechRequest extends AmazonWebServiceRequest implements Serializable
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.
| Constructor and Description |
|---|
SynthesizeSpeechRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getLanguageCode()
Optional language code for the Synthesize Speech request.
|
List<String> |
getLexiconNames()
List of one or more pronunciation lexicon names you want the service to
apply during synthesis.
|
String |
getOutputFormat()
The format in which the returned output will be encoded.
|
String |
getSampleRate()
The audio frequency specified in Hz.
|
List<String> |
getSpeechMarkTypes()
The type of speech marks returned for the input text.
|
String |
getText()
Input text to synthesize.
|
String |
getTextType()
Specifies whether the input text is plain text or SSML.
|
String |
getVoiceId()
Voice ID to use for the synthesis.
|
int |
hashCode() |
void |
setLanguageCode(LanguageCode languageCode)
Optional language code for the Synthesize Speech request.
|
void |
setLanguageCode(String languageCode)
Optional language code for the Synthesize Speech request.
|
void |
setLexiconNames(Collection<String> lexiconNames)
List of one or more pronunciation lexicon names you want the service to
apply during synthesis.
|
void |
setOutputFormat(OutputFormat outputFormat)
The format in which the returned output will be encoded.
|
void |
setOutputFormat(String outputFormat)
The format in which the returned output will be encoded.
|
void |
setSampleRate(String sampleRate)
The audio frequency specified in Hz.
|
void |
setSpeechMarkTypes(Collection<String> speechMarkTypes)
The type of speech marks returned for the input text.
|
void |
setText(String text)
Input text to synthesize.
|
void |
setTextType(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(String voiceId)
Voice ID to use for the synthesis.
|
void |
setVoiceId(VoiceId voiceId)
Voice ID to use for the synthesis.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SynthesizeSpeechRequest |
withLanguageCode(LanguageCode languageCode)
Optional language code for the Synthesize Speech request.
|
SynthesizeSpeechRequest |
withLanguageCode(String languageCode)
Optional language code for the Synthesize Speech request.
|
SynthesizeSpeechRequest |
withLexiconNames(Collection<String> lexiconNames)
List of one or more pronunciation lexicon names you want the service to
apply during synthesis.
|
SynthesizeSpeechRequest |
withLexiconNames(String... lexiconNames)
List of one or more pronunciation lexicon names you want the service to
apply during synthesis.
|
SynthesizeSpeechRequest |
withOutputFormat(OutputFormat outputFormat)
The format in which the returned output will be encoded.
|
SynthesizeSpeechRequest |
withOutputFormat(String outputFormat)
The format in which the returned output will be encoded.
|
SynthesizeSpeechRequest |
withSampleRate(String sampleRate)
The audio frequency specified in Hz.
|
SynthesizeSpeechRequest |
withSpeechMarkTypes(Collection<String> speechMarkTypes)
The type of speech marks returned for the input text.
|
SynthesizeSpeechRequest |
withSpeechMarkTypes(String... speechMarkTypes)
The type of speech marks returned for the input text.
|
SynthesizeSpeechRequest |
withText(String text)
Input text to synthesize.
|
SynthesizeSpeechRequest |
withTextType(String textType)
Specifies whether the input text is plain text or SSML.
|
SynthesizeSpeechRequest |
withTextType(TextType textType)
Specifies whether the input text is plain text or SSML.
|
SynthesizeSpeechRequest |
withVoiceId(String voiceId)
Voice ID to use for the synthesis.
|
SynthesizeSpeechRequest |
withVoiceId(VoiceId voiceId)
Voice ID to use for the synthesis.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic List<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.
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(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. For information about storing lexicons, see PutLexicon.
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 SynthesizeSpeechRequest withLexiconNames(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.
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 SynthesizeSpeechRequest withLexiconNames(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. For information about storing lexicons, see PutLexicon.
Returns a reference to this object so that method calls can be chained together.
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 String getOutputFormat()
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.
When pcm is used, the content returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
Constraints:
Allowed Values: json, mp3, ogg_vorbis, pcm
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.
When pcm is used, the content returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
OutputFormatpublic void setOutputFormat(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.
When pcm is used, the content returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
Constraints:
Allowed Values: json, mp3, ogg_vorbis, pcm
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.
When pcm is used, the content returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
OutputFormatpublic SynthesizeSpeechRequest withOutputFormat(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.
When pcm is used, the content returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: json, mp3, ogg_vorbis, pcm
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.
When pcm is used, the content returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
OutputFormatpublic void setOutputFormat(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.
When pcm is used, the content returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
Constraints:
Allowed Values: json, mp3, ogg_vorbis, pcm
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.
When pcm is used, the content returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
OutputFormatpublic SynthesizeSpeechRequest withOutputFormat(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.
When pcm is used, the content returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: json, mp3, ogg_vorbis, pcm
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.
When pcm is used, the content returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
OutputFormatpublic 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(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 SynthesizeSpeechRequest withSampleRate(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 List<String> getSpeechMarkTypes()
The type of speech marks returned for the input text.
The type of speech marks returned for the input text.
public void setSpeechMarkTypes(Collection<String> speechMarkTypes)
The type of speech marks returned for the input text.
speechMarkTypes - The type of speech marks returned for the input text.
public SynthesizeSpeechRequest withSpeechMarkTypes(String... speechMarkTypes)
The type of speech marks returned for the input text.
Returns a reference to this object so that method calls can be chained together.
speechMarkTypes - The type of speech marks returned for the input text.
public SynthesizeSpeechRequest withSpeechMarkTypes(Collection<String> speechMarkTypes)
The type of speech marks returned for the input text.
Returns a reference to this object so that method calls can be chained together.
speechMarkTypes - The type of speech marks returned for the input text.
public 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(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 SynthesizeSpeechRequest withText(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 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.
TextTypepublic void setTextType(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.
TextTypepublic SynthesizeSpeechRequest withTextType(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.
TextTypepublic 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.
TextTypepublic SynthesizeSpeechRequest 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.
TextTypepublic 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, Lea, 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,
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.
VoiceIdpublic void setVoiceId(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, Lea, 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,
Zhiyu, Bianca, Lucia, Mia
voiceId - Voice ID to use for the synthesis. You can get a list of available voice IDs by calling the DescribeVoices operation.
VoiceIdpublic SynthesizeSpeechRequest withVoiceId(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, Lea, 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,
Zhiyu, Bianca, Lucia, Mia
voiceId - Voice ID to use for the synthesis. You can get a list of available voice IDs by calling the DescribeVoices operation.
VoiceIdpublic 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, Lea, 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,
Zhiyu, Bianca, Lucia, Mia
voiceId - Voice ID to use for the synthesis. You can get a list of available voice IDs by calling the DescribeVoices operation.
VoiceIdpublic SynthesizeSpeechRequest 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, Lea, 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,
Zhiyu, Bianca, Lucia, Mia
voiceId - Voice ID to use for the synthesis. You can get a list of available voice IDs by calling the DescribeVoices operation.
VoiceIdpublic 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: cmn-CN, 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.
LanguageCodepublic void setLanguageCode(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: cmn-CN, 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.
LanguageCodepublic SynthesizeSpeechRequest withLanguageCode(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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: cmn-CN, 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.
LanguageCodepublic 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: cmn-CN, 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.
LanguageCodepublic SynthesizeSpeechRequest 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: cmn-CN, 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.
LanguageCodepublic String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.