Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data SynthesisTask = SynthesisTask' {
- creationTime :: Maybe POSIX
- engine :: Maybe Engine
- languageCode :: Maybe LanguageCode
- lexiconNames :: Maybe [Text]
- outputFormat :: Maybe OutputFormat
- outputUri :: Maybe Text
- requestCharacters :: Maybe Int
- sampleRate :: Maybe Text
- snsTopicArn :: Maybe Text
- speechMarkTypes :: Maybe [SpeechMarkType]
- taskId :: Maybe Text
- taskStatus :: Maybe TaskStatus
- taskStatusReason :: Maybe Text
- textType :: Maybe TextType
- voiceId :: Maybe VoiceId
- newSynthesisTask :: SynthesisTask
- synthesisTask_creationTime :: Lens' SynthesisTask (Maybe UTCTime)
- synthesisTask_engine :: Lens' SynthesisTask (Maybe Engine)
- synthesisTask_languageCode :: Lens' SynthesisTask (Maybe LanguageCode)
- synthesisTask_lexiconNames :: Lens' SynthesisTask (Maybe [Text])
- synthesisTask_outputFormat :: Lens' SynthesisTask (Maybe OutputFormat)
- synthesisTask_outputUri :: Lens' SynthesisTask (Maybe Text)
- synthesisTask_requestCharacters :: Lens' SynthesisTask (Maybe Int)
- synthesisTask_sampleRate :: Lens' SynthesisTask (Maybe Text)
- synthesisTask_snsTopicArn :: Lens' SynthesisTask (Maybe Text)
- synthesisTask_speechMarkTypes :: Lens' SynthesisTask (Maybe [SpeechMarkType])
- synthesisTask_taskId :: Lens' SynthesisTask (Maybe Text)
- synthesisTask_taskStatus :: Lens' SynthesisTask (Maybe TaskStatus)
- synthesisTask_taskStatusReason :: Lens' SynthesisTask (Maybe Text)
- synthesisTask_textType :: Lens' SynthesisTask (Maybe TextType)
- synthesisTask_voiceId :: Lens' SynthesisTask (Maybe VoiceId)
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: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: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: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: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:outputUri:SynthesisTask'
, synthesisTask_outputUri
- Pathway for the output speech file.
$sel:requestCharacters:SynthesisTask'
, synthesisTask_requestCharacters
- Number of billable characters synthesized.
$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:snsTopicArn:SynthesisTask'
, synthesisTask_snsTopicArn
- ARN for the SNS topic optionally used for providing status notification
for a speech synthesis task.
$sel:speechMarkTypes:SynthesisTask'
, synthesisTask_speechMarkTypes
- The type of speech marks returned for the input text.
$sel:taskId:SynthesisTask'
, synthesisTask_taskId
- The Amazon Polly generated identifier for a speech synthesis task.
$sel:taskStatus:SynthesisTask'
, synthesisTask_taskStatus
- Current status of the individual 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: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.
synthesisTask_creationTime :: Lens' SynthesisTask (Maybe UTCTime) Source #
Timestamp for the time the synthesis task was started.
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_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_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_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_outputUri :: Lens' SynthesisTask (Maybe Text) Source #
Pathway for the output speech file.
synthesisTask_requestCharacters :: Lens' SynthesisTask (Maybe Int) Source #
Number of billable characters synthesized.
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_snsTopicArn :: Lens' SynthesisTask (Maybe Text) Source #
ARN for the SNS topic optionally used for providing status notification for a speech synthesis task.
synthesisTask_speechMarkTypes :: Lens' SynthesisTask (Maybe [SpeechMarkType]) Source #
The type of speech marks returned for the input text.
synthesisTask_taskId :: Lens' SynthesisTask (Maybe Text) Source #
The Amazon Polly generated identifier for a speech synthesis task.
synthesisTask_taskStatus :: Lens' SynthesisTask (Maybe TaskStatus) Source #
Current status of the individual 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_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.