Class SynthesisInput
Contains text input to be synthesized. Either text
or ssml
must be supplied. Supplying both or neither
returns google.rpc.Code.INVALID_ARGUMENT. The input size is limited to 5000 bytes.
Implements
Inherited Members
Namespace: Google.Apis.Texttospeech.v1.Data
Assembly: Google.Apis.Texttospeech.v1.dll
Syntax
public class SynthesisInput : IDirectResponseSchema
Properties
CustomPronunciations
Optional. The pronunciation customizations to be applied to the input. If this is set, the input will be synthesized using the given pronunciation customizations. The initial support will be for EFIGS (English, French, Italian, German, Spanish) languages, as provided in VoiceSelectionParams. Journey and Instant Clone voices are not supported yet. In order to customize the pronunciation of a phrase, there must be an exact match of the phrase in the input types. If using SSML, the phrase must not be inside a phoneme tag (entirely or partially).
Declaration
[JsonProperty("customPronunciations")]
public virtual CustomPronunciations CustomPronunciations { get; set; }
Property Value
Type | Description |
---|---|
CustomPronunciations |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
MultiSpeakerMarkup
The multi-speaker input to be synthesized. Only applicable for multi-speaker synthesis.
Declaration
[JsonProperty("multiSpeakerMarkup")]
public virtual MultiSpeakerMarkup MultiSpeakerMarkup { get; set; }
Property Value
Type | Description |
---|---|
MultiSpeakerMarkup |
Ssml
The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return google.rpc.Code.INVALID_ARGUMENT. For more information, see SSML.
Declaration
[JsonProperty("ssml")]
public virtual string Ssml { get; set; }
Property Value
Type | Description |
---|---|
string |
Text
The raw text to be synthesized.
Declaration
[JsonProperty("text")]
public virtual string Text { get; set; }
Property Value
Type | Description |
---|---|
string |