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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThe latest version available is 2.37.0-rc, which represents the most current release of the \u003ccode\u003eSpeechConnection\u003c/code\u003e interface.\u003c/p\u003e\n"],["\u003cp\u003eThis page details the \u003ccode\u003eSpeechConnection\u003c/code\u003e object, which provides a virtual interface for methods used in the \u003ccode\u003eSpeechClient\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpeechConnection\u003c/code\u003e allows users to inject custom behaviors, especially useful for mocking when testing with the \u003ccode\u003eSpeechClient\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe page outlines a comprehensive list of virtual methods, including \u003ccode\u003eRecognize\u003c/code\u003e, \u003ccode\u003eLongRunningRecognize\u003c/code\u003e, and \u003ccode\u003eAsyncStreamingRecognize\u003c/code\u003e, along with other various \u003ccode\u003eOperation\u003c/code\u003e request type methods.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provides links to create concrete instances of the \u003ccode\u003eSpeechConnection\u003c/code\u003e and for utilizing the \u003ccode\u003eMockSpeechConnection\u003c/code\u003e for testing.\u003c/p\u003e\n"]]],[],null,[]]