This interface defines virtual methods for each of the user-facing overload sets in SpeechClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type SpeechClient.
[[["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 document outlines the \u003ccode\u003eSpeechConnection\u003c/code\u003e object for \u003ccode\u003eSpeechClient\u003c/code\u003e, which provides an interface with virtual methods corresponding to each user-facing overload set in \u003ccode\u003eSpeechClient\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is \u003ccode\u003e2.37.0-rc\u003c/code\u003e, and the document references versions from \u003ccode\u003e2.11.0\u003c/code\u003e through to the latest.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSpeechConnection\u003c/code\u003e enables the injection of custom behavior, such as with a Google Mock object, for testing \u003ccode\u003eSpeechClient\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eThe document includes details on functions such as \u003ccode\u003eRecognize\u003c/code\u003e, \u003ccode\u003eLongRunningRecognize\u003c/code\u003e, and \u003ccode\u003eAsyncStreamingRecognize\u003c/code\u003e along with their parameters and return types.\u003c/p\u003e\n"],["\u003cp\u003eTo create an instance of the connection object you may refer to \u003ccode\u003eMakeSpeechConnection()\u003c/code\u003e, or use \u003ccode\u003eMockSpeechConnection\u003c/code\u003e for testing.\u003c/p\u003e\n"]]],[],null,[]]