SynthesisTask class

SynthesisTask object that provides information about a speech synthesis task.

Constructors

SynthesisTask({DateTime? creationTime, Engine? engine, LanguageCode? languageCode, List<String>? lexiconNames, OutputFormat? outputFormat, String? outputUri, int? requestCharacters, String? sampleRate, String? snsTopicArn, List<SpeechMarkType>? speechMarkTypes, String? taskId, TaskStatus? taskStatus, String? taskStatusReason, TextType? textType, VoiceId? voiceId})
SynthesisTask.fromJson(Map<String, dynamic> json)
factory

Properties

creationTime DateTime?
Timestamp for the time the synthesis task was started.
final
engine 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.
final
hashCode int
The hash code for this object.
no setterinherited
languageCode 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).
final
lexiconNames List<String>?
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.
final
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.
final
outputUri String?
Pathway for the output speech file.
final
requestCharacters int?
Number of billable characters synthesized.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate String?
The audio frequency specified in Hz.
final
snsTopicArn String?
ARN for the SNS topic optionally used for providing status notification for a speech synthesis task.
final
speechMarkTypes List<SpeechMarkType>?
The type of speech marks returned for the input text.
final
taskId String?
The Amazon Polly generated identifier for a speech synthesis task.
final
taskStatus TaskStatus?
Current status of the individual speech synthesis task.
final
taskStatusReason String?
Reason for the current status of a specific speech synthesis task, including errors if the task has failed.
final
textType TextType?
Specifies whether the input text is plain text or SSML. The default value is plain text.
final
voiceId VoiceId?
Voice ID to use for the synthesis.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited