Class TextToSpeechSynthesisInput
- Namespace
- Uralstech.UCloud.TextToSpeech.Synthesis
Contains text input to be synthesized.
public class TextToSpeechSynthesisInput
- Inheritance
-
objectTextToSpeechSynthesisInput
Remarks
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.
Constructors
TextToSpeechSynthesisInput()
public TextToSpeechSynthesisInput()
TextToSpeechSynthesisInput(string, bool)
public TextToSpeechSynthesisInput(string input, bool isSsml = false)
Parameters
input
stringThe input.
isSsml
boolIs the input SSML or normal text?
Fields
Ssml
The SSML document to be synthesized.
public string Ssml
Field Value
- string
Remarks
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.
Text
public string Text
Field Value
- string