public sealed class SynthesisInput : IMessage<SynthesisInput>, IEquatable<SynthesisInput>, IDeepCloneable<SynthesisInput>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Text-to-Speech v1 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.
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.
[[["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\u003eThe latest version available for the Google Cloud Text-to-Speech v1 API's \u003ccode\u003eSynthesisInput\u003c/code\u003e class is 3.10.0, with multiple older versions, from 3.9.0 all the way down to 2.2.0, also documented.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSynthesisInput\u003c/code\u003e class, part of the Google.Cloud.TextToSpeech.V1 namespace, is used to provide text or SSML input for text-to-speech synthesis, with a limit of 5000 bytes for input size.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides two constructors, a default one and another that accepts a \u003ccode\u003eSynthesisInput\u003c/code\u003e object, and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSynthesisInput\u003c/code\u003e has properties to check if the \u003ccode\u003etext\u003c/code\u003e or \u003ccode\u003essml\u003c/code\u003e fields are set (\u003ccode\u003eHasText\u003c/code\u003e and \u003ccode\u003eHasSsml\u003c/code\u003e), determine the input source (\u003ccode\u003eInputSourceCase\u003c/code\u003e), and get or set the actual \u003ccode\u003eText\u003c/code\u003e or \u003ccode\u003eSsml\u003c/code\u003e content.\u003c/p\u003e\n"],["\u003cp\u003eEither \u003ccode\u003eText\u003c/code\u003e or \u003ccode\u003eSsml\u003c/code\u003e must be provided for synthesis, and providing neither or both will result in an \u003ccode\u003eINVALID_ARGUMENT\u003c/code\u003e error.\u003c/p\u003e\n"]]],[],null,[]]