libZSservicesZSamazonka-pollyZSamazonka-polly
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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.

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

  • snsTopicArn :: Maybe Text

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

  • taskStatusReason :: Maybe Text

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

  • taskId :: Maybe Text

    The Amazon Polly generated identifier for a speech synthesis task.

  • requestCharacters :: Maybe Int

    Number of billable characters synthesized.

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

  • speechMarkTypes :: Maybe [SpeechMarkType]

    The type of speech marks returned for the input text.

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

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

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

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

  • taskStatus :: Maybe TaskStatus

    Current status of the individual speech synthesis task.

  • outputUri :: Maybe Text

    Pathway for the output speech file.

Instances

Instances details
Eq SynthesisTask Source # 
Instance details

Defined in Amazonka.Polly.Types.SynthesisTask

Read SynthesisTask Source # 
Instance details

Defined in Amazonka.Polly.Types.SynthesisTask

Show 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 #

NFData SynthesisTask Source # 
Instance details

Defined in Amazonka.Polly.Types.SynthesisTask

Methods

rnf :: SynthesisTask -> () #

Hashable SynthesisTask Source # 
Instance details

Defined in Amazonka.Polly.Types.SynthesisTask

FromJSON 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" "libZSservicesZSamazonka-pollyZSamazonka-polly" 'False) (C1 ('MetaCons "SynthesisTask'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "creationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "languageCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LanguageCode)) :*: S1 ('MetaSel ('Just "snsTopicArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "taskStatusReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "taskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "requestCharacters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "engine") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Engine))))) :*: (((S1 ('MetaSel ('Just "speechMarkTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SpeechMarkType])) :*: S1 ('MetaSel ('Just "sampleRate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "outputFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OutputFormat)) :*: S1 ('MetaSel ('Just "textType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TextType)))) :*: ((S1 ('MetaSel ('Just "voiceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VoiceId)) :*: S1 ('MetaSel ('Just "lexiconNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "taskStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TaskStatus)) :*: S1 ('MetaSel ('Just "outputUri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))))

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.