public sealed class SynthesisInput : IMessage<SynthesisInput>, IEquatable<SynthesisInput>, IDeepCloneable<SynthesisInput>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Text-to-Speech v1beta1 API 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][google.rpc.Code.INVALID_ARGUMENT]. The
input size is limited to 5000 bytes.
Implements
IMessageSynthesisInput, IEquatableSynthesisInput, IDeepCloneableSynthesisInput, IBufferMessage, IMessageNamespace
Google.Cloud.TextToSpeech.V1Beta1Assembly
Google.Cloud.TextToSpeech.V1Beta1.dll
Constructors
SynthesisInput()
public SynthesisInput()
SynthesisInput(SynthesisInput)
public SynthesisInput(SynthesisInput other)
Parameter | |
---|---|
Name | Description |
other |
SynthesisInput |
Properties
CustomPronunciations
public CustomPronunciations CustomPronunciations { get; set; }
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).
Property Value | |
---|---|
Type | Description |
CustomPronunciations |
HasSsml
public bool HasSsml { get; }
Gets whether the "ssml" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasText
public bool HasText { get; }
Gets whether the "text" field is set
Property Value | |
---|---|
Type | Description |
bool |
InputSourceCase
public SynthesisInput.InputSourceOneofCase InputSourceCase { get; }
Property Value | |
---|---|
Type | Description |
SynthesisInputInputSourceOneofCase |
MultiSpeakerMarkup
public MultiSpeakerMarkup MultiSpeakerMarkup { get; set; }
The multi-speaker input to be synthesized. Only applicable for multi-speaker synthesis.
Property Value | |
---|---|
Type | Description |
MultiSpeakerMarkup |
Ssml
public string Ssml { get; set; }
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][google.rpc.Code.INVALID_ARGUMENT]. For more information, see SSML.
Property Value | |
---|---|
Type | Description |
string |
Text
public string Text { get; set; }
The raw text to be synthesized.
Property Value | |
---|---|
Type | Description |
string |