public sealed class VoiceSelectionParams : IMessage<VoiceSelectionParams>, IEquatable<VoiceSelectionParams>, IDeepCloneable<VoiceSelectionParams>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2 API class VoiceSelectionParams.
Description of which voice to use for speech synthesis.
Optional. The name of the voice. If not set, the service will choose a
voice based on the other parameters such as language_code and
[ssml_gender][google.cloud.dialogflow.v2.VoiceSelectionParams.ssml_gender].
Optional. The preferred gender of the voice. If not set, the service will
choose a voice based on the other parameters such as language_code and
[name][google.cloud.dialogflow.v2.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
voice of the appropriate gender is not available, the synthesizer should
substitute a voice with a different gender rather than failing the request.
[[["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 provided content details the \u003ccode\u003eVoiceSelectionParams\u003c/code\u003e class within the Google Cloud Dialogflow v2 API, outlining its purpose for specifying voice characteristics for speech synthesis.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API covered is 4.26.0, with a comprehensive list of versions from 3.2.0 to 4.26.0, each linking to their respective documentation pages for the \u003ccode\u003eVoiceSelectionParams\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eVoiceSelectionParams\u003c/code\u003e 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 \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors, \u003ccode\u003eVoiceSelectionParams()\u003c/code\u003e and \u003ccode\u003eVoiceSelectionParams(VoiceSelectionParams other)\u003c/code\u003e, as well as properties like \u003ccode\u003eName\u003c/code\u003e and \u003ccode\u003eSsmlGender\u003c/code\u003e to define voice preferences.\u003c/p\u003e\n"],["\u003cp\u003eThe document also highlights that if a voice is not set, it will choose a voice based on the other parameters, and that \u003ccode\u003eSsmlGender\u003c/code\u003e is only a preference and not a requirement.\u003c/p\u003e\n"]]],[],null,[]]