Required. Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource.
The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all non-default valued fields in config override the values in the Recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the Recognizer for this recognition request. If a wildcard (*) is provided, config completely overrides and replaces the config in the recognizer for this recognition request.
Speech recognition features to enable specific to streaming audio recognition requests.
getConfig
Required. Features and audio metadata to use for the Automatic Speech
Recognition. This field in combination with the
config_mask
field can be used to override parts of the
default_recognition_config
of the Recognizer resource.
Required. Features and audio metadata to use for the Automatic Speech
Recognition. This field in combination with the
config_mask
field can be used to override parts of the
default_recognition_config
of the Recognizer resource.
The list of fields in
config that
override the values in the
default_recognition_config
of the recognizer during this recognition request. If no mask is provided,
all non-default valued fields in
config override
the values in the Recognizer for this recognition request. If a mask is
provided, only the fields listed in the mask override the config in the
Recognizer for this recognition request. If a wildcard (*) is provided,
config
completely overrides and replaces the config in the recognizer for this
recognition request.
The list of fields in
config that
override the values in the
default_recognition_config
of the recognizer during this recognition request. If no mask is provided,
all non-default valued fields in
config override
the values in the Recognizer for this recognition request. If a mask is
provided, only the fields listed in the mask override the config in the
Recognizer for this recognition request. If a wildcard (*) is provided,
config
completely overrides and replaces the config in the recognizer for this
recognition request.
[[["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-09-04 UTC."],[],[],null,["# Cloud Speech V2 Client - Class StreamingRecognitionConfig (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-speech/latest/V2.StreamingRecognitionConfig)\n- [2.1.0](/php/docs/reference/cloud-speech/2.1.0/V2.StreamingRecognitionConfig)\n- [2.0.1](/php/docs/reference/cloud-speech/2.0.1/V2.StreamingRecognitionConfig)\n- [1.20.1](/php/docs/reference/cloud-speech/1.20.1/V2.StreamingRecognitionConfig)\n- [1.19.2](/php/docs/reference/cloud-speech/1.19.2/V2.StreamingRecognitionConfig)\n- [1.18.3](/php/docs/reference/cloud-speech/1.18.3/V2.StreamingRecognitionConfig)\n- [1.16.0](/php/docs/reference/cloud-speech/1.16.0/V2.StreamingRecognitionConfig)\n- [1.15.0](/php/docs/reference/cloud-speech/1.15.0/V2.StreamingRecognitionConfig)\n- [1.14.3](/php/docs/reference/cloud-speech/1.14.3/V2.StreamingRecognitionConfig)\n- [1.13.1](/php/docs/reference/cloud-speech/1.13.1/V2.StreamingRecognitionConfig)\n- [1.12.0](/php/docs/reference/cloud-speech/1.12.0/V2.StreamingRecognitionConfig)\n- [1.11.2](/php/docs/reference/cloud-speech/1.11.2/V2.StreamingRecognitionConfig)\n- [1.10.0](/php/docs/reference/cloud-speech/1.10.0/V2.StreamingRecognitionConfig)\n- [1.9.1](/php/docs/reference/cloud-speech/1.9.1/V2.StreamingRecognitionConfig)\n- [1.8.0](/php/docs/reference/cloud-speech/1.8.0/V2.StreamingRecognitionConfig)\n- [1.7.0](/php/docs/reference/cloud-speech/1.7.0/V2.StreamingRecognitionConfig) \nReference documentation and code samples for the Cloud Speech V2 Client class StreamingRecognitionConfig.\n\nProvides configuration information for the StreamingRecognize request.\n\nGenerated from protobuf message `google.cloud.speech.v2.StreamingRecognitionConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Speech \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getConfig\n\nRequired. Features and audio metadata to use for the Automatic Speech\nRecognition. This field in combination with the\n[config_mask](/php/docs/reference/cloud-speech/latest/V2.StreamingRecognitionConfig#_Google_Cloud_Speech_V2_StreamingRecognitionConfig__getConfigMask__)\nfield can be used to override parts of the\n[default_recognition_config](/php/docs/reference/cloud-speech/latest/V2.Recognizer#_Google_Cloud_Speech_V2_Recognizer__getDefaultRecognitionConfig__)\nof the Recognizer resource.\n\n### hasConfig\n\n### clearConfig\n\n### setConfig\n\nRequired. Features and audio metadata to use for the Automatic Speech\nRecognition. This field in combination with the\n[config_mask](/php/docs/reference/cloud-speech/latest/V2.StreamingRecognitionConfig#_Google_Cloud_Speech_V2_StreamingRecognitionConfig__getConfigMask__)\nfield can be used to override parts of the\n[default_recognition_config](/php/docs/reference/cloud-speech/latest/V2.Recognizer#_Google_Cloud_Speech_V2_Recognizer__getDefaultRecognitionConfig__)\nof the Recognizer resource.\n\n### getConfigMask\n\nThe list of fields in\n[config](/php/docs/reference/cloud-speech/latest/V2.StreamingRecognitionConfig#_Google_Cloud_Speech_V2_StreamingRecognitionConfig__getConfig__) that\noverride the values in the\n[default_recognition_config](/php/docs/reference/cloud-speech/latest/V2.Recognizer#_Google_Cloud_Speech_V2_Recognizer__getDefaultRecognitionConfig__)\nof the recognizer during this recognition request. If no mask is provided,\nall non-default valued fields in\n[config](/php/docs/reference/cloud-speech/latest/V2.StreamingRecognitionConfig#_Google_Cloud_Speech_V2_StreamingRecognitionConfig__getConfig__) override\nthe values in the Recognizer for this recognition request. If a mask is\nprovided, only the fields listed in the mask override the config in the\nRecognizer for this recognition request. If a wildcard (`*`) is provided,\n[config](/php/docs/reference/cloud-speech/latest/V2.StreamingRecognitionConfig#_Google_Cloud_Speech_V2_StreamingRecognitionConfig__getConfig__)\ncompletely overrides and replaces the config in the recognizer for this\nrecognition request.\n\n### hasConfigMask\n\n### clearConfigMask\n\n### setConfigMask\n\nThe list of fields in\n[config](/php/docs/reference/cloud-speech/latest/V2.StreamingRecognitionConfig#_Google_Cloud_Speech_V2_StreamingRecognitionConfig__getConfig__) that\noverride the values in the\n[default_recognition_config](/php/docs/reference/cloud-speech/latest/V2.Recognizer#_Google_Cloud_Speech_V2_Recognizer__getDefaultRecognitionConfig__)\nof the recognizer during this recognition request. If no mask is provided,\nall non-default valued fields in\n[config](/php/docs/reference/cloud-speech/latest/V2.StreamingRecognitionConfig#_Google_Cloud_Speech_V2_StreamingRecognitionConfig__getConfig__) override\nthe values in the Recognizer for this recognition request. If a mask is\nprovided, only the fields listed in the mask override the config in the\nRecognizer for this recognition request. If a wildcard (`*`) is provided,\n[config](/php/docs/reference/cloud-speech/latest/V2.StreamingRecognitionConfig#_Google_Cloud_Speech_V2_StreamingRecognitionConfig__getConfig__)\ncompletely overrides and replaces the config in the recognizer for this\nrecognition request.\n\n### getStreamingFeatures\n\nSpeech recognition features to enable specific to streaming audio\nrecognition requests.\n\n### hasStreamingFeatures\n\n### clearStreamingFeatures\n\n### setStreamingFeatures\n\nSpeech recognition features to enable specific to streaming audio\nrecognition requests."]]