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 is used within the Google Cloud Speech API.\u003c/p\u003e\n"],["\u003cp\u003eIt lists available versions, ranging from version 2.11.0 up to the latest release candidate version 2.37.0-rc, and displays the latest version being 2.37.0-rc.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSpeechConnection\u003c/code\u003e offers virtual methods corresponding to each user-facing overload set found in \u003ccode\u003eSpeechClient\u003c/code\u003e, including methods like \u003ccode\u003eRecognize\u003c/code\u003e, \u003ccode\u003eLongRunningRecognize\u003c/code\u003e, and \u003ccode\u003eAsyncStreamingRecognize\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe provided interfaces for \u003ccode\u003eSpeechClient\u003c/code\u003e enable users to integrate custom behaviors, particularly useful during testing with mock objects, and also includes the functionality of a mock object \u003ccode\u003espeech_v1_mocks::MockSpeechConnection\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eSpeechConnection\u003c/code\u003e API is represented by \u003ccode\u003e[2.37.0-rc (latest)](/cpp/docs/reference/speech/latest/classgoogle_1_1cloud_1_1speech__v1_1_1SpeechConnection)\u003c/code\u003e, and the current version represented in this particular page is \u003ccode\u003e2.12.0\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]