The returned connection object should not be used directly; instead it should be passed as an argument to the constructor of TextToSpeechClient.
The optional options argument may be used to configure aspects of the returned TextToSpeechConnection. Expected options are any of the types in the following option lists:
[[["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-14 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the Google Cloud Text-to-Speech C++ client library, with version 2.37.0-rc being the latest release candidate, and 2.31.0 as the version currently being documented.\u003c/p\u003e\n"],["\u003cp\u003eThe library offers classes such as \u003ccode\u003eTextToSpeechClient\u003c/code\u003e and \u003ccode\u003eTextToSpeechConnection\u003c/code\u003e for interacting with the Google Cloud Text-to-Speech API.\u003c/p\u003e\n"],["\u003cp\u003eSeveral classes and structs define retry policies, such as \u003ccode\u003eTextToSpeechLimitedErrorCountRetryPolicy\u003c/code\u003e, \u003ccode\u003eTextToSpeechLimitedTimeRetryPolicy\u003c/code\u003e, \u003ccode\u003eTextToSpeechRetryPolicy\u003c/code\u003e, \u003ccode\u003eTextToSpeechBackoffPolicyOption\u003c/code\u003e, \u003ccode\u003eTextToSpeechRetryPolicyOption\u003c/code\u003e, and \u003ccode\u003eTextToSpeechConnectionIdempotencyPolicy\u003c/code\u003e allowing for customization of error handling.\u003c/p\u003e\n"],["\u003cp\u003eThe function \u003ccode\u003eMakeTextToSpeechConnection\u003c/code\u003e is used to create a \u003ccode\u003eTextToSpeechConnection\u003c/code\u003e object, which is then used to configure and pass along to \u003ccode\u003eTextToSpeechClient\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMakeDefaultTextToSpeechConnectionIdempotencyPolicy\u003c/code\u003e will return a default \u003ccode\u003eTextToSpeechConnectionIdempotencyPolicy\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]