public sealed class SynthesisInput : IMessage<SynthesisInput>, IEquatable<SynthesisInput>, IDeepCloneable<SynthesisInput>, IBufferMessage, IMessage
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
characters.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eSynthesisInput\u003c/code\u003e is a class in the \u003ccode\u003eGoogle.Cloud.TextToSpeech.V1Beta1\u003c/code\u003e namespace used to provide input for text-to-speech synthesis, allowing either raw text or SSML as input.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the base .NET \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eTo generate speech, the input can be either through the \u003ccode\u003eText\u003c/code\u003e property for plain text or the \u003ccode\u003eSsml\u003c/code\u003e property for SSML, but you must provide one or the other, and not both.\u003c/p\u003e\n"],["\u003cp\u003eThe size of the text input, either raw or SSML, is limited to a maximum of 5000 characters.\u003c/p\u003e\n"],["\u003cp\u003eThe class has a \u003ccode\u003eInputSourceCase\u003c/code\u003e property that indicates whether \u003ccode\u003eText\u003c/code\u003e or \u003ccode\u003eSsml\u003c/code\u003e is being used as input.\u003c/p\u003e\n"]]],[],null,[]]