/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.polly.model; import java.io.Serializable; /** *
* SynthesisTask object that provides information about a speech synthesis task. *
*/ public class SynthesisTask implements Serializable { /** *
* 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.
*
* Constraints:
* Allowed Values: standard, neural
*/
private String engine;
/**
*
* The Amazon Polly generated identifier for a speech synthesis task. *
*
* Constraints:
* Pattern: ^[a-zA-Z0-9_-]{1,100}$
*/
private String taskId;
/**
*
* Current status of the individual speech synthesis task. *
*
* Constraints:
* Allowed Values: scheduled, inProgress, completed, failed
*/
private String taskStatus;
/**
*
* Reason for the current status of a specific speech synthesis task, * including errors if the task has failed. *
*/ private String taskStatusReason; /** ** Pathway for the output speech file. *
*/ private String outputUri; /** ** Timestamp for the time the synthesis task was started. *
*/ private java.util.Date creationTime; /** ** Number of billable characters synthesized. *
*/ private Integer requestCharacters; /** ** ARN for the SNS topic optionally used for providing status notification * for a speech synthesis task. *
*
* Constraints:
* Pattern: ^arn:aws(-(cn|iso(-b)?|us-gov))?:sns:[a-z0-
* 9_-]{1,50}:\d{12}:[a-zA-Z0-9_-]{1,256}$
*/
private String snsTopicArn;
/**
*
* 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. *
*/ private java.util.List* 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. *
*
* Constraints:
* Allowed Values: json, mp3, ogg_vorbis, pcm
*/
private String outputFormat;
/**
*
* The audio frequency specified in Hz. *
** The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050", and * "24000". The default value for standard voices is "22050". The default * value for neural voices is "24000". *
** Valid values for pcm are "8000" and "16000" The default value is "16000". *
*/ private String sampleRate; /** ** The type of speech marks returned for the input text. *
*/ private java.util.List* Specifies whether the input text is plain text or SSML. The default value * is plain text. *
*
* Constraints:
* Allowed Values: ssml, text
*/
private String textType;
/**
*
* Voice ID to use for the synthesis. *
*
* Constraints:
* Allowed Values: Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla,
* Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa,
* Filiz, Gabrielle, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan,
* Joanna, Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte,
* Lucia, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel,
* Mizuki, Naja, Nicole, Olivia, Penelope, Raveena, Ricardo, Ruben, Russell,
* Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu, Aria,
* Ayanda, Arlet, Hannah, Arthur, Daniel, Liam, Pedro, Kajal, Hiujin, Laura,
* Elin, Ida, Suvi, Ola, Hala, Andres, Sergio, Remi, Adriano, Thiago, Ruth,
* Stephen, Kazuha, Tomoko, Niamh, Sofie
*/
private String voiceId;
/**
*
* 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 uses 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: arb, 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, en-NZ, en-ZA, ca-ES, de-AT, yue-CN, ar-AE, fi-FI, en-IE
*/
private String languageCode;
/**
*
* 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.
*
* Constraints:
* Allowed Values: standard, neural
*
* @return
* 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.
*
* 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.
*
* Constraints:
* Allowed Values: standard, neural
*
* @param 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.
*
* 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.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: standard, neural
*
* @param 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.
*
* 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.
*
* Constraints:
* Allowed Values: standard, neural
*
* @param 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.
*
* 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.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: standard, neural
*
* @param 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.
*
* The Amazon Polly generated identifier for a speech synthesis task. *
*
* Constraints:
* Pattern: ^[a-zA-Z0-9_-]{1,100}$
*
* @return
* The Amazon Polly generated identifier for a speech synthesis * task. *
*/ public String getTaskId() { return taskId; } /** ** The Amazon Polly generated identifier for a speech synthesis task. *
*
* Constraints:
* Pattern: ^[a-zA-Z0-9_-]{1,100}$
*
* @param taskId
* The Amazon Polly generated identifier for a speech synthesis * task. *
*/ public void setTaskId(String taskId) { this.taskId = taskId; } /** ** The Amazon Polly generated identifier for a speech synthesis task. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Pattern: ^[a-zA-Z0-9_-]{1,100}$
*
* @param taskId
* The Amazon Polly generated identifier for a speech synthesis * task. *
* @return A reference to this updated object so that method calls can be * chained together. */ public SynthesisTask withTaskId(String taskId) { this.taskId = taskId; return this; } /** ** Current status of the individual speech synthesis task. *
*
* Constraints:
* Allowed Values: scheduled, inProgress, completed, failed
*
* @return
* Current status of the individual speech synthesis task. *
* @see TaskStatus */ public String getTaskStatus() { return taskStatus; } /** ** Current status of the individual speech synthesis task. *
*
* Constraints:
* Allowed Values: scheduled, inProgress, completed, failed
*
* @param taskStatus
* Current status of the individual speech synthesis task. *
* @see TaskStatus */ public void setTaskStatus(String taskStatus) { this.taskStatus = taskStatus; } /** ** Current status of the individual speech synthesis task. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: scheduled, inProgress, completed, failed
*
* @param taskStatus
* Current status of the individual speech synthesis task. *
* @return A reference to this updated object so that method calls can be * chained together. * @see TaskStatus */ public SynthesisTask withTaskStatus(String taskStatus) { this.taskStatus = taskStatus; return this; } /** ** Current status of the individual speech synthesis task. *
*
* Constraints:
* Allowed Values: scheduled, inProgress, completed, failed
*
* @param taskStatus
* Current status of the individual speech synthesis task. *
* @see TaskStatus */ public void setTaskStatus(TaskStatus taskStatus) { this.taskStatus = taskStatus.toString(); } /** ** Current status of the individual speech synthesis task. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: scheduled, inProgress, completed, failed
*
* @param taskStatus
* Current status of the individual speech synthesis task. *
* @return A reference to this updated object so that method calls can be * chained together. * @see TaskStatus */ public SynthesisTask withTaskStatus(TaskStatus taskStatus) { this.taskStatus = taskStatus.toString(); return this; } /** ** Reason for the current status of a specific speech synthesis task, * including errors if the task has failed. *
* * @return* Reason for the current status of a specific speech synthesis * task, including errors if the task has failed. *
*/ public String getTaskStatusReason() { return taskStatusReason; } /** ** Reason for the current status of a specific speech synthesis task, * including errors if the task has failed. *
* * @param taskStatusReason* Reason for the current status of a specific speech synthesis * task, including errors if the task has failed. *
*/ public void setTaskStatusReason(String taskStatusReason) { this.taskStatusReason = taskStatusReason; } /** ** Reason for the current status of a specific speech synthesis task, * including errors if the task has failed. *
** Returns a reference to this object so that method calls can be chained * together. * * @param taskStatusReason
* Reason for the current status of a specific speech synthesis * task, including errors if the task has failed. *
* @return A reference to this updated object so that method calls can be * chained together. */ public SynthesisTask withTaskStatusReason(String taskStatusReason) { this.taskStatusReason = taskStatusReason; return this; } /** ** Pathway for the output speech file. *
* * @return* Pathway for the output speech file. *
*/ public String getOutputUri() { return outputUri; } /** ** Pathway for the output speech file. *
* * @param outputUri* Pathway for the output speech file. *
*/ public void setOutputUri(String outputUri) { this.outputUri = outputUri; } /** ** Pathway for the output speech file. *
** Returns a reference to this object so that method calls can be chained * together. * * @param outputUri
* Pathway for the output speech file. *
* @return A reference to this updated object so that method calls can be * chained together. */ public SynthesisTask withOutputUri(String outputUri) { this.outputUri = outputUri; return this; } /** ** Timestamp for the time the synthesis task was started. *
* * @return* Timestamp for the time the synthesis task was started. *
*/ public java.util.Date getCreationTime() { return creationTime; } /** ** Timestamp for the time the synthesis task was started. *
* * @param creationTime* Timestamp for the time the synthesis task was started. *
*/ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** Timestamp for the time the synthesis task was started. *
** Returns a reference to this object so that method calls can be chained * together. * * @param creationTime
* Timestamp for the time the synthesis task was started. *
* @return A reference to this updated object so that method calls can be * chained together. */ public SynthesisTask withCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; return this; } /** ** Number of billable characters synthesized. *
* * @return* Number of billable characters synthesized. *
*/ public Integer getRequestCharacters() { return requestCharacters; } /** ** Number of billable characters synthesized. *
* * @param requestCharacters* Number of billable characters synthesized. *
*/ public void setRequestCharacters(Integer requestCharacters) { this.requestCharacters = requestCharacters; } /** ** Number of billable characters synthesized. *
** Returns a reference to this object so that method calls can be chained * together. * * @param requestCharacters
* Number of billable characters synthesized. *
* @return A reference to this updated object so that method calls can be * chained together. */ public SynthesisTask withRequestCharacters(Integer requestCharacters) { this.requestCharacters = requestCharacters; return this; } /** ** ARN for the SNS topic optionally used for providing status notification * for a speech synthesis task. *
*
* Constraints:
* Pattern: ^arn:aws(-(cn|iso(-b)?|us-gov))?:sns:[a-z0-
* 9_-]{1,50}:\d{12}:[a-zA-Z0-9_-]{1,256}$
*
* @return
* ARN for the SNS topic optionally used for providing status * notification for a speech synthesis task. *
*/ public String getSnsTopicArn() { return snsTopicArn; } /** ** ARN for the SNS topic optionally used for providing status notification * for a speech synthesis task. *
*
* Constraints:
* Pattern: ^arn:aws(-(cn|iso(-b)?|us-gov))?:sns:[a-z0-
* 9_-]{1,50}:\d{12}:[a-zA-Z0-9_-]{1,256}$
*
* @param snsTopicArn
* ARN for the SNS topic optionally used for providing status * notification for a speech synthesis task. *
*/ public void setSnsTopicArn(String snsTopicArn) { this.snsTopicArn = snsTopicArn; } /** ** ARN for the SNS topic optionally used for providing status notification * for a speech synthesis task. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Pattern: ^arn:aws(-(cn|iso(-b)?|us-gov))?:sns:[a-z0-
* 9_-]{1,50}:\d{12}:[a-zA-Z0-9_-]{1,256}$
*
* @param snsTopicArn
* ARN for the SNS topic optionally used for providing status * notification for a speech synthesis task. *
* @return A reference to this updated object so that method calls can be * chained together. */ public SynthesisTask withSnsTopicArn(String snsTopicArn) { this.snsTopicArn = snsTopicArn; return this; } /** ** 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. *
* * @return* 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. *
*/ public java.util.List* 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. *
* * @param 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. *
*/ public void setLexiconNames(java.util.Collection* 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public SynthesisTask withLexiconNames(String... lexiconNames) { if (getLexiconNames() == null) { this.lexiconNames = new java.util.ArrayList* 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public SynthesisTask withLexiconNames(java.util.Collection* 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. *
*
* Constraints:
* Allowed Values: json, mp3, ogg_vorbis, pcm
*
* @return
* 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. *
* @see OutputFormat */ public String getOutputFormat() { return 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. *
*
* Constraints:
* Allowed Values: json, mp3, ogg_vorbis, pcm
*
* @param 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. *
* @see OutputFormat */ public void setOutputFormat(String outputFormat) { this.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. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: json, mp3, ogg_vorbis, pcm
*
* @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. * @see OutputFormat */ public SynthesisTask withOutputFormat(String outputFormat) { this.outputFormat = outputFormat; return this; } /** ** 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. *
*
* Constraints:
* Allowed Values: json, mp3, ogg_vorbis, pcm
*
* @param 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. *
* @see OutputFormat */ public void setOutputFormat(OutputFormat outputFormat) { this.outputFormat = outputFormat.toString(); } /** ** 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. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: json, mp3, ogg_vorbis, pcm
*
* @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. * @see OutputFormat */ public SynthesisTask withOutputFormat(OutputFormat outputFormat) { this.outputFormat = outputFormat.toString(); return this; } /** ** The audio frequency specified in Hz. *
** The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050", and * "24000". The default value for standard voices is "22050". The default * value for neural voices is "24000". *
** Valid values for pcm are "8000" and "16000" The default value is "16000". *
* * @return* The audio frequency specified in Hz. *
** The valid values for mp3 and ogg_vorbis are "8000", "16000", * "22050", and "24000". The default value for standard voices is * "22050". The default value for neural voices is "24000". *
** Valid values for pcm are "8000" and "16000" The default value is * "16000". *
*/ public String getSampleRate() { return sampleRate; } /** ** The audio frequency specified in Hz. *
** The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050", and * "24000". The default value for standard voices is "22050". The default * value for neural voices is "24000". *
** Valid values for pcm are "8000" and "16000" The default value is "16000". *
* * @param sampleRate* The audio frequency specified in Hz. *
** The valid values for mp3 and ogg_vorbis are "8000", "16000", * "22050", and "24000". The default value for standard voices is * "22050". The default value for neural voices is "24000". *
** Valid values for pcm are "8000" and "16000" The default value * is "16000". *
*/ public void setSampleRate(String sampleRate) { this.sampleRate = sampleRate; } /** ** The audio frequency specified in Hz. *
** The valid values for mp3 and ogg_vorbis are "8000", "16000", "22050", and * "24000". The default value for standard voices is "22050". The default * value for neural voices is "24000". *
** 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. * * @param sampleRate
* The audio frequency specified in Hz. *
** The valid values for mp3 and ogg_vorbis are "8000", "16000", * "22050", and "24000". The default value for standard voices is * "22050". The default value for neural voices is "24000". *
** Valid values for pcm are "8000" and "16000" The default value * is "16000". *
* @return A reference to this updated object so that method calls can be * chained together. */ public SynthesisTask withSampleRate(String sampleRate) { this.sampleRate = sampleRate; return this; } /** ** The type of speech marks returned for the input text. *
* * @return* The type of speech marks returned for the input text. *
*/ public java.util.List* The type of speech marks returned for the input text. *
* * @param speechMarkTypes* The type of speech marks returned for the input text. *
*/ public void setSpeechMarkTypes(java.util.Collection* The type of speech marks returned for the input text. *
** Returns a reference to this object so that method calls can be chained * together. * * @param speechMarkTypes
* The type of speech marks returned for the input text. *
* @return A reference to this updated object so that method calls can be * chained together. */ public SynthesisTask withSpeechMarkTypes(String... speechMarkTypes) { if (getSpeechMarkTypes() == null) { this.speechMarkTypes = new java.util.ArrayList* The type of speech marks returned for the input text. *
** Returns a reference to this object so that method calls can be chained * together. * * @param speechMarkTypes
* The type of speech marks returned for the input text. *
* @return A reference to this updated object so that method calls can be * chained together. */ public SynthesisTask withSpeechMarkTypes(java.util.Collection* Specifies whether the input text is plain text or SSML. The default value * is plain text. *
*
* Constraints:
* Allowed Values: ssml, text
*
* @return
* Specifies whether the input text is plain text or SSML. The * default value is plain text. *
* @see TextType */ public String getTextType() { return textType; } /** ** Specifies whether the input text is plain text or SSML. The default value * is plain text. *
*
* Constraints:
* Allowed Values: ssml, text
*
* @param textType
* Specifies whether the input text is plain text or SSML. The * default value is plain text. *
* @see TextType */ public void setTextType(String textType) { this.textType = textType; } /** ** Specifies whether the input text is plain text or SSML. The default value * is plain text. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: ssml, text
*
* @param textType
* Specifies whether the input text is plain text or SSML. The * default value is plain text. *
* @return A reference to this updated object so that method calls can be * chained together. * @see TextType */ public SynthesisTask withTextType(String textType) { this.textType = textType; return this; } /** ** Specifies whether the input text is plain text or SSML. The default value * is plain text. *
*
* Constraints:
* Allowed Values: ssml, text
*
* @param textType
* Specifies whether the input text is plain text or SSML. The * default value is plain text. *
* @see TextType */ public void setTextType(TextType textType) { this.textType = textType.toString(); } /** ** Specifies whether the input text is plain text or SSML. The default value * is plain text. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: ssml, text
*
* @param textType
* Specifies whether the input text is plain text or SSML. The * default value is plain text. *
* @return A reference to this updated object so that method calls can be * chained together. * @see TextType */ public SynthesisTask withTextType(TextType textType) { this.textType = textType.toString(); return this; } /** ** Voice ID to use for the synthesis. *
*
* Constraints:
* Allowed Values: Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla,
* Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa,
* Filiz, Gabrielle, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan,
* Joanna, Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte,
* Lucia, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel,
* Mizuki, Naja, Nicole, Olivia, Penelope, Raveena, Ricardo, Ruben, Russell,
* Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu, Aria,
* Ayanda, Arlet, Hannah, Arthur, Daniel, Liam, Pedro, Kajal, Hiujin, Laura,
* Elin, Ida, Suvi, Ola, Hala, Andres, Sergio, Remi, Adriano, Thiago, Ruth,
* Stephen, Kazuha, Tomoko, Niamh, Sofie
*
* @return
* Voice ID to use for the synthesis. *
* @see VoiceId */ public String getVoiceId() { return voiceId; } /** ** Voice ID to use for the synthesis. *
*
* Constraints:
* Allowed Values: Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla,
* Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa,
* Filiz, Gabrielle, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan,
* Joanna, Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte,
* Lucia, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel,
* Mizuki, Naja, Nicole, Olivia, Penelope, Raveena, Ricardo, Ruben, Russell,
* Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu, Aria,
* Ayanda, Arlet, Hannah, Arthur, Daniel, Liam, Pedro, Kajal, Hiujin, Laura,
* Elin, Ida, Suvi, Ola, Hala, Andres, Sergio, Remi, Adriano, Thiago, Ruth,
* Stephen, Kazuha, Tomoko, Niamh, Sofie
*
* @param voiceId
* Voice ID to use for the synthesis. *
* @see VoiceId */ public void setVoiceId(String voiceId) { this.voiceId = voiceId; } /** ** Voice ID to use for the synthesis. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla,
* Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa,
* Filiz, Gabrielle, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan,
* Joanna, Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte,
* Lucia, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel,
* Mizuki, Naja, Nicole, Olivia, Penelope, Raveena, Ricardo, Ruben, Russell,
* Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu, Aria,
* Ayanda, Arlet, Hannah, Arthur, Daniel, Liam, Pedro, Kajal, Hiujin, Laura,
* Elin, Ida, Suvi, Ola, Hala, Andres, Sergio, Remi, Adriano, Thiago, Ruth,
* Stephen, Kazuha, Tomoko, Niamh, Sofie
*
* @param voiceId
* Voice ID to use for the synthesis. *
* @return A reference to this updated object so that method calls can be * chained together. * @see VoiceId */ public SynthesisTask withVoiceId(String voiceId) { this.voiceId = voiceId; return this; } /** ** Voice ID to use for the synthesis. *
*
* Constraints:
* Allowed Values: Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla,
* Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa,
* Filiz, Gabrielle, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan,
* Joanna, Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte,
* Lucia, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel,
* Mizuki, Naja, Nicole, Olivia, Penelope, Raveena, Ricardo, Ruben, Russell,
* Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu, Aria,
* Ayanda, Arlet, Hannah, Arthur, Daniel, Liam, Pedro, Kajal, Hiujin, Laura,
* Elin, Ida, Suvi, Ola, Hala, Andres, Sergio, Remi, Adriano, Thiago, Ruth,
* Stephen, Kazuha, Tomoko, Niamh, Sofie
*
* @param voiceId
* Voice ID to use for the synthesis. *
* @see VoiceId */ public void setVoiceId(VoiceId voiceId) { this.voiceId = voiceId.toString(); } /** ** Voice ID to use for the synthesis. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla,
* Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa,
* Filiz, Gabrielle, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan,
* Joanna, Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte,
* Lucia, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel,
* Mizuki, Naja, Nicole, Olivia, Penelope, Raveena, Ricardo, Ruben, Russell,
* Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu, Aria,
* Ayanda, Arlet, Hannah, Arthur, Daniel, Liam, Pedro, Kajal, Hiujin, Laura,
* Elin, Ida, Suvi, Ola, Hala, Andres, Sergio, Remi, Adriano, Thiago, Ruth,
* Stephen, Kazuha, Tomoko, Niamh, Sofie
*
* @param voiceId
* Voice ID to use for the synthesis. *
* @return A reference to this updated object so that method calls can be * chained together. * @see VoiceId */ public SynthesisTask withVoiceId(VoiceId voiceId) { this.voiceId = voiceId.toString(); return this; } /** ** 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 uses 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: arb, 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, en-NZ, en-ZA, ca-ES, de-AT, yue-CN, ar-AE, fi-FI, en-IE
*
* @return
* 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 uses 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.
*
* 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 uses 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: arb, 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, en-NZ, en-ZA, ca-ES, de-AT, yue-CN, ar-AE, fi-FI, en-IE
*
* @param 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 uses 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.
*
* 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 uses 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: arb, 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, en-NZ, en-ZA, ca-ES, de-AT, yue-CN, ar-AE, fi-FI, en-IE
*
* @param 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 uses 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.
*
* 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 uses 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: arb, 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, en-NZ, en-ZA, ca-ES, de-AT, yue-CN, ar-AE, fi-FI, en-IE
*
* @param 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 uses 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.
*
* 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 uses 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: arb, 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, en-NZ, en-ZA, ca-ES, de-AT, yue-CN, ar-AE, fi-FI, en-IE
*
* @param 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 uses 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.
*