Generated from protobuf messagegoogle.cloud.speech.v2.BatchRecognizeRequest
Namespace
Google \ Cloud \ Speech \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ recognizer
string
Required. The name of the Recognizer to use during recognition. The expected format isprojects/{project}/locations/{location}/recognizers/{recognizer}. The {recognizer} segment may be set to_to use an empty implicit Recognizer.
Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with theconfig_maskfield can be used to override parts of thedefault_recognition_configof the Recognizer resource.
The list of fields inconfigthat override the values in thedefault_recognition_configof the recognizer during this recognition request. If no mask is provided, all given fields inconfigoverride 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,configcompletely overrides and replaces the config in the recognizer for this recognition request.
Configuration options for where to output the transcripts of each file.
↳ processing_strategy
int
Processing strategy to use for this request.
getRecognizer
Required. The name of the Recognizer to use during recognition. The
expected format isprojects/{project}/locations/{location}/recognizers/{recognizer}. The
{recognizer} segment may be set to_to use an empty implicit Recognizer.
Returns
Type
Description
string
setRecognizer
Required. The name of the Recognizer to use during recognition. The
expected format isprojects/{project}/locations/{location}/recognizers/{recognizer}. The
{recognizer} segment may be set to_to use an empty implicit Recognizer.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getConfig
Features and audio metadata to use for the Automatic Speech Recognition.
The list of fields inconfigthat override
the values in thedefault_recognition_configof the recognizer during this recognition request. If no mask is provided,
all given fields inconfigoverride 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,configcompletely
overrides and replaces the config in the recognizer for this recognition
request.
The list of fields inconfigthat override
the values in thedefault_recognition_configof the recognizer during this recognition request. If no mask is provided,
all given fields inconfigoverride 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,configcompletely
overrides and replaces the config in the recognizer for this recognition
request.
Required. The name of the Recognizer to use during recognition. The
expected format isprojects/{project}/locations/{location}/recognizers/{recognizer}. The
{recognizer} segment may be set to_to use an empty implicit Recognizer. Please seeSpeechClient::recognizerName()for help formatting this field.
Features and audio metadata to use for the Automatic Speech Recognition.
This field in combination with theconfig_maskfield can be used to override parts of thedefault_recognition_configof the Recognizer resource.
The list of fields inconfigthat override
the values in thedefault_recognition_configof the recognizer during this recognition request. If no mask is provided,
all given fields inconfigoverride 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,configcompletely
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 BatchRecognizeRequest (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-speech/latest/V2.BatchRecognizeRequest)\n- [2.1.0](/php/docs/reference/cloud-speech/2.1.0/V2.BatchRecognizeRequest)\n- [2.0.1](/php/docs/reference/cloud-speech/2.0.1/V2.BatchRecognizeRequest)\n- [1.20.1](/php/docs/reference/cloud-speech/1.20.1/V2.BatchRecognizeRequest)\n- [1.19.2](/php/docs/reference/cloud-speech/1.19.2/V2.BatchRecognizeRequest)\n- [1.18.3](/php/docs/reference/cloud-speech/1.18.3/V2.BatchRecognizeRequest)\n- [1.16.0](/php/docs/reference/cloud-speech/1.16.0/V2.BatchRecognizeRequest)\n- [1.15.0](/php/docs/reference/cloud-speech/1.15.0/V2.BatchRecognizeRequest)\n- [1.14.3](/php/docs/reference/cloud-speech/1.14.3/V2.BatchRecognizeRequest)\n- [1.13.1](/php/docs/reference/cloud-speech/1.13.1/V2.BatchRecognizeRequest)\n- [1.12.0](/php/docs/reference/cloud-speech/1.12.0/V2.BatchRecognizeRequest)\n- [1.11.2](/php/docs/reference/cloud-speech/1.11.2/V2.BatchRecognizeRequest)\n- [1.10.0](/php/docs/reference/cloud-speech/1.10.0/V2.BatchRecognizeRequest)\n- [1.9.1](/php/docs/reference/cloud-speech/1.9.1/V2.BatchRecognizeRequest)\n- [1.8.0](/php/docs/reference/cloud-speech/1.8.0/V2.BatchRecognizeRequest)\n- [1.7.0](/php/docs/reference/cloud-speech/1.7.0/V2.BatchRecognizeRequest) \nReference documentation and code samples for the Cloud Speech V2 Client class BatchRecognizeRequest.\n\nRequest message for the\n[BatchRecognize](/php/docs/reference/cloud-speech/latest/V2.Client.SpeechClient#_Google_Cloud_Speech_V2_Client_SpeechClient__batchRecognize__)\nmethod.\n\nGenerated from protobuf message `google.cloud.speech.v2.BatchRecognizeRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Speech \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getRecognizer\n\nRequired. The name of the Recognizer to use during recognition. The\nexpected format is\n`projects/{project}/locations/{location}/recognizers/{recognizer}`. The\n{recognizer} segment may be set to `_` to use an empty implicit Recognizer.\n\n### setRecognizer\n\nRequired. The name of the Recognizer to use during recognition. The\nexpected format is\n`projects/{project}/locations/{location}/recognizers/{recognizer}`. The\n{recognizer} segment may be set to `_` to use an empty implicit Recognizer.\n\n### getConfig\n\nFeatures and audio metadata to use for the Automatic Speech Recognition.\n\nThis field in combination with the\n[config_mask](/php/docs/reference/cloud-speech/latest/V2.BatchRecognizeRequest#_Google_Cloud_Speech_V2_BatchRecognizeRequest__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\nFeatures and audio metadata to use for the Automatic Speech Recognition.\n\nThis field in combination with the\n[config_mask](/php/docs/reference/cloud-speech/latest/V2.BatchRecognizeRequest#_Google_Cloud_Speech_V2_BatchRecognizeRequest__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.BatchRecognizeRequest#_Google_Cloud_Speech_V2_BatchRecognizeRequest__getConfig__) that override\nthe 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 given fields in\n[config](/php/docs/reference/cloud-speech/latest/V2.BatchRecognizeRequest#_Google_Cloud_Speech_V2_BatchRecognizeRequest__getConfig__) override the\nvalues 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.BatchRecognizeRequest#_Google_Cloud_Speech_V2_BatchRecognizeRequest__getConfig__) completely\noverrides and replaces the config in the recognizer for this recognition\nrequest.\n\n### hasConfigMask\n\n### clearConfigMask\n\n### setConfigMask\n\nThe list of fields in\n[config](/php/docs/reference/cloud-speech/latest/V2.BatchRecognizeRequest#_Google_Cloud_Speech_V2_BatchRecognizeRequest__getConfig__) that override\nthe 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 given fields in\n[config](/php/docs/reference/cloud-speech/latest/V2.BatchRecognizeRequest#_Google_Cloud_Speech_V2_BatchRecognizeRequest__getConfig__) override the\nvalues 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.BatchRecognizeRequest#_Google_Cloud_Speech_V2_BatchRecognizeRequest__getConfig__) completely\noverrides and replaces the config in the recognizer for this recognition\nrequest.\n\n### getFiles\n\nAudio files with file metadata for ASR.\n\nThe maximum number of files allowed to be specified is 15.\n\n### setFiles\n\nAudio files with file metadata for ASR.\n\nThe maximum number of files allowed to be specified is 15.\n\n### getRecognitionOutputConfig\n\nConfiguration options for where to output the transcripts of each file.\n\n### hasRecognitionOutputConfig\n\n### clearRecognitionOutputConfig\n\n### setRecognitionOutputConfig\n\nConfiguration options for where to output the transcripts of each file.\n\n### getProcessingStrategy\n\nProcessing strategy to use for this request.\n\n### setProcessingStrategy\n\nProcessing strategy to use for this request.\n\n### static::build"]]