public sealed class TextToSpeechSettings : IMessage<TextToSpeechSettings>, IEquatable<TextToSpeechSettings>, IDeepCloneable<TextToSpeechSettings>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2 API class TextToSpeechSettings.
Instructs the speech synthesizer on how to generate the output audio content.
Optional. The synthesis sample rate (in hertz) for this audio. If not
provided, then the synthesizer will use the default sample rate based on
the audio encoding. If this is different from the voice's natural sample
rate, then the synthesizer will honor this request by converting to the
desired sample rate (which might result in worse audio quality).
[[["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\u003eThis document provides reference documentation for the \u003ccode\u003eTextToSpeechSettings\u003c/code\u003e class within the Google Cloud Dialogflow v2 API, specifically for version 4.17.0 and other versions ranging from 3.2.0 to 4.26.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTextToSpeechSettings\u003c/code\u003e class is designed to configure how the speech synthesizer generates output audio content, and it inherits from the object class and implements several interfaces including IMessage, IEquatable, and IDeepCloneable.\u003c/p\u003e\n"],["\u003cp\u003eKey properties within \u003ccode\u003eTextToSpeechSettings\u003c/code\u003e include \u003ccode\u003eEnableTextToSpeech\u003c/code\u003e (a boolean to turn text-to-speech on or off), \u003ccode\u003eOutputAudioEncoding\u003c/code\u003e (setting the encoding of the synthesized audio), \u003ccode\u003eSampleRateHertz\u003c/code\u003e (to specify the sample rate), and \u003ccode\u003eSynthesizeSpeechConfigs\u003c/code\u003e (to configure speech synthesis per language).\u003c/p\u003e\n"],["\u003cp\u003eThe document details two constructors for the \u003ccode\u003eTextToSpeechSettings\u003c/code\u003e class: a default constructor and one that accepts another \u003ccode\u003eTextToSpeechSettings\u003c/code\u003e object as a parameter for copying configurations.\u003c/p\u003e\n"],["\u003cp\u003eThe document provides a version history of \u003ccode\u003eTextToSpeechSettings\u003c/code\u003e allowing users to refer to previous versions of the class documentation, while showcasing version 4.26.0 as the latest.\u003c/p\u003e\n"]]],[],null,[]]