Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data SynthesisTask = SynthesisTask' {
- creationTime :: Maybe POSIX
- languageCode :: Maybe LanguageCode
- snsTopicArn :: Maybe Text
- taskStatusReason :: Maybe Text
- taskId :: Maybe Text
- requestCharacters :: Maybe Int
- engine :: Maybe Engine
- speechMarkTypes :: Maybe [SpeechMarkType]
- sampleRate :: Maybe Text
- outputFormat :: Maybe OutputFormat
- textType :: Maybe TextType
- voiceId :: Maybe VoiceId
- lexiconNames :: Maybe [Text]
- taskStatus :: Maybe TaskStatus
- outputUri :: Maybe Text
- newSynthesisTask :: SynthesisTask
- synthesisTask_creationTime :: Lens' SynthesisTask (Maybe UTCTime)
- synthesisTask_languageCode :: Lens' SynthesisTask (Maybe LanguageCode)
- synthesisTask_snsTopicArn :: Lens' SynthesisTask (Maybe Text)
- synthesisTask_taskStatusReason :: Lens' SynthesisTask (Maybe Text)
- synthesisTask_taskId :: Lens' SynthesisTask (Maybe Text)
- synthesisTask_requestCharacters :: Lens' SynthesisTask (Maybe Int)
- synthesisTask_engine :: Lens' SynthesisTask (Maybe Engine)
- synthesisTask_speechMarkTypes :: Lens' SynthesisTask (Maybe [SpeechMarkType])
- synthesisTask_sampleRate :: Lens' SynthesisTask (Maybe Text)
- synthesisTask_outputFormat :: Lens' SynthesisTask (Maybe OutputFormat)
- synthesisTask_textType :: Lens' SynthesisTask (Maybe TextType)
- synthesisTask_voiceId :: Lens' SynthesisTask (Maybe VoiceId)
- synthesisTask_lexiconNames :: Lens' SynthesisTask (Maybe [Text])
- synthesisTask_taskStatus :: Lens' SynthesisTask (Maybe TaskStatus)
- synthesisTask_outputUri :: Lens' SynthesisTask (Maybe Text)
Documentation
data SynthesisTask Source #
SynthesisTask object that provides information about a speech synthesis task.
See: newSynthesisTask
smart constructor.
SynthesisTask' | |
|
Instances
newSynthesisTask :: SynthesisTask Source #
Create a value of SynthesisTask
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:creationTime:SynthesisTask'
, synthesisTask_creationTime
- Timestamp for the time the synthesis task was started.
$sel:languageCode:SynthesisTask'
, synthesisTask_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.
$sel:snsTopicArn:SynthesisTask'
, synthesisTask_snsTopicArn
- ARN for the SNS topic optionally used for providing status notification
for a speech synthesis task.
$sel:taskStatusReason:SynthesisTask'
, synthesisTask_taskStatusReason
- Reason for the current status of a specific speech synthesis task,
including errors if the task has failed.
$sel:taskId:SynthesisTask'
, synthesisTask_taskId
- The Amazon Polly generated identifier for a speech synthesis task.
$sel:requestCharacters:SynthesisTask'
, synthesisTask_requestCharacters
- Number of billable characters synthesized.
$sel:engine:SynthesisTask'
, synthesisTask_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.
$sel:speechMarkTypes:SynthesisTask'
, synthesisTask_speechMarkTypes
- The type of speech marks returned for the input text.
$sel:sampleRate:SynthesisTask'
, synthesisTask_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".
$sel:outputFormat:SynthesisTask'
, synthesisTask_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.
$sel:textType:SynthesisTask'
, synthesisTask_textType
- Specifies whether the input text is plain text or SSML. The default
value is plain text.
$sel:voiceId:SynthesisTask'
, synthesisTask_voiceId
- Voice ID to use for the synthesis.
$sel:lexiconNames:SynthesisTask'
, synthesisTask_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.
$sel:taskStatus:SynthesisTask'
, synthesisTask_taskStatus
- Current status of the individual speech synthesis task.
$sel:outputUri:SynthesisTask'
, synthesisTask_outputUri
- Pathway for the output speech file.
synthesisTask_creationTime :: Lens' SynthesisTask (Maybe UTCTime) Source #
Timestamp for the time the synthesis task was started.
synthesisTask_languageCode :: Lens' SynthesisTask (Maybe LanguageCode) Source #
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.
synthesisTask_snsTopicArn :: Lens' SynthesisTask (Maybe Text) Source #
ARN for the SNS topic optionally used for providing status notification for a speech synthesis task.
synthesisTask_taskStatusReason :: Lens' SynthesisTask (Maybe Text) Source #
Reason for the current status of a specific speech synthesis task, including errors if the task has failed.
synthesisTask_taskId :: Lens' SynthesisTask (Maybe Text) Source #
The Amazon Polly generated identifier for a speech synthesis task.
synthesisTask_requestCharacters :: Lens' SynthesisTask (Maybe Int) Source #
Number of billable characters synthesized.
synthesisTask_engine :: Lens' SynthesisTask (Maybe Engine) Source #
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.
synthesisTask_speechMarkTypes :: Lens' SynthesisTask (Maybe [SpeechMarkType]) Source #
The type of speech marks returned for the input text.
synthesisTask_sampleRate :: Lens' SynthesisTask (Maybe Text) Source #
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".
synthesisTask_outputFormat :: Lens' SynthesisTask (Maybe OutputFormat) Source #
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.
synthesisTask_textType :: Lens' SynthesisTask (Maybe TextType) Source #
Specifies whether the input text is plain text or SSML. The default value is plain text.
synthesisTask_voiceId :: Lens' SynthesisTask (Maybe VoiceId) Source #
Voice ID to use for the synthesis.
synthesisTask_lexiconNames :: Lens' SynthesisTask (Maybe [Text]) Source #
List of one or more pronunciation lexicon names you want the service to apply during synthesis. Lexicons are applied only if the language of the lexicon is the same as the language of the voice.
synthesisTask_taskStatus :: Lens' SynthesisTask (Maybe TaskStatus) Source #
Current status of the individual speech synthesis task.
synthesisTask_outputUri :: Lens' SynthesisTask (Maybe Text) Source #
Pathway for the output speech file.