Class SynthesizeSpeechRequest
Inherited Members
Namespace: Glitch9.AIDevKit.AmazonAws.Polly
Assembly: Glitch9.AIDevKit.Provider.AmazonAws.dll
Syntax
public class SynthesizeSpeechRequest
Properties
| Edit this page View SourceEngine
Optional. Specifies the engine (standard, neural, long-form, or generative) for Amazon Polly to use when processing input text for speech synthesis.
Declaration
[JsonProperty("Engine")]
public string Engine { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
LanguageCode
Optional. Optional language code for the Synthesize Speech request.
Declaration
[JsonProperty("LanguageCode")]
public string LanguageCode { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
LexiconNames
Optional. List of one or more pronunciation lexicon names you want the service to apply during synthesis.
Declaration
[JsonProperty("LexiconNames")]
public List<string> LexiconNames { get; set; }
Property Value
| Type | Description |
|---|---|
| List<string> |
OutputFormat
Required. The format in which the returned output will be encoded. For audio stream: mp3, ogg_vorbis, or pcm. For speech marks: json.
Declaration
[JsonProperty("OutputFormat")]
public string OutputFormat { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SampleRate
Optional. The audio frequency specified in Hz. Valid values for mp3 and ogg_vorbis: 8000, 16000, 22050, 24000, 44100, 48000 Valid values for pcm: 8000, 16000
Declaration
[JsonProperty("SampleRate")]
public string SampleRate { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SpeechMarkTypes
Optional. The type of speech marks returned for the input text.
Declaration
[JsonProperty("SpeechMarkTypes")]
public List<string> SpeechMarkTypes { get; set; }
Property Value
| Type | Description |
|---|---|
| List<string> |
Text
Required. Input text to synthesize. If you specify ssml as the TextType, follow the SSML format for the input text.
Declaration
[JsonProperty("Text")]
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TextType
Optional. Specifies whether the input text is plain text or SSML. Default is plain text.
Declaration
[JsonProperty("TextType")]
public string TextType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
VoiceId
Required. Voice ID to use for the synthesis.
Declaration
[JsonProperty("VoiceId")]
public string VoiceId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |