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 \u003ccode\u003eSynthesisInput\u003c/code\u003e class from the Google Cloud Text-to-Speech v1 API is used to provide text input for speech synthesis.\u003c/p\u003e\n"],["\u003cp\u003eUsers can provide either raw text or a well-formed SSML document, but not both, for the \u003ccode\u003eSynthesisInput\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe input size for \u003ccode\u003eSynthesisInput\u003c/code\u003e, whether text or SSML, is limited to a maximum of 5000 bytes.\u003c/p\u003e\n"],["\u003cp\u003eThis document outlines version history from 2.2.0 up to the most recent version, 3.10.0, for the \u003ccode\u003eSynthesisInput\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eSynthesisInput\u003c/code\u003e implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from Object.\u003c/p\u003e\n"]]],[],null,[]]