amazonka-polly-2.0: Amazon Polly SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Polly.Types.SynthesisTask

Description

 
Synopsis

Documentation

data SynthesisTask Source #

SynthesisTask object that provides information about a speech synthesis task.

See: newSynthesisTask smart constructor.

Constructors

SynthesisTask' 

Fields

  • creationTime :: Maybe POSIX

    Timestamp for the time the synthesis task was started.

  • engine :: Maybe 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.

  • languageCode :: Maybe 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.

  • lexiconNames :: Maybe [Text]

    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.

  • outputFormat :: Maybe 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.

  • outputUri :: Maybe Text

    Pathway for the output speech file.

  • requestCharacters :: Maybe Int

    Number of billable characters synthesized.

  • sampleRate :: Maybe Text

    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".

  • snsTopicArn :: Maybe Text

    ARN for the SNS topic optionally used for providing status notification for a speech synthesis task.

  • speechMarkTypes :: Maybe [SpeechMarkType]

    The type of speech marks returned for the input text.

  • taskId :: Maybe Text

    The Amazon Polly generated identifier for a speech synthesis task.

  • taskStatus :: Maybe TaskStatus

    Current status of the individual speech synthesis task.

  • taskStatusReason :: Maybe Text

    Reason for the current status of a specific speech synthesis task, including errors if the task has failed.

  • textType :: Maybe TextType

    Specifies whether the input text is plain text or SSML. The default value is plain text.

  • voiceId :: Maybe VoiceId

    Voice ID to use for the synthesis.

Instances

Instances details
FromJSON SynthesisTask Source # 
Instance details

Defined in Amazonka.Polly.Types.SynthesisTask

Generic SynthesisTask Source # 
Instance details

Defined in Amazonka.Polly.Types.SynthesisTask

Associated Types

type Rep SynthesisTask :: Type -> Type #

Read SynthesisTask Source # 
Instance details

Defined in Amazonka.Polly.Types.SynthesisTask

Show SynthesisTask Source # 
Instance details

Defined in Amazonka.Polly.Types.SynthesisTask

NFData SynthesisTask Source # 
Instance details

Defined in Amazonka.Polly.Types.SynthesisTask

Methods

rnf :: SynthesisTask -> () #

Eq SynthesisTask Source # 
Instance details

Defined in Amazonka.Polly.Types.SynthesisTask

Hashable SynthesisTask Source # 
Instance details

Defined in Amazonka.Polly.Types.SynthesisTask

type Rep SynthesisTask Source # 
Instance details

Defined in Amazonka.Polly.Types.SynthesisTask

type Rep SynthesisTask = D1 ('MetaData "SynthesisTask" "Amazonka.Polly.Types.SynthesisTask" "amazonka-polly-2.0-6sZiChgAXCB1QK3Mfr0Pfp" 'False) (C1 ('MetaCons "SynthesisTask'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "creationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "engine") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Engine)) :*: S1 ('MetaSel ('Just "languageCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LanguageCode)))) :*: ((S1 ('MetaSel ('Just "lexiconNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "outputFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OutputFormat))) :*: (S1 ('MetaSel ('Just "outputUri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "requestCharacters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))) :*: (((S1 ('MetaSel ('Just "sampleRate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "snsTopicArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "speechMarkTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SpeechMarkType])) :*: S1 ('MetaSel ('Just "taskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "taskStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TaskStatus)) :*: S1 ('MetaSel ('Just "taskStatusReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "textType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TextType)) :*: S1 ('MetaSel ('Just "voiceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VoiceId)))))))

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.