Cloud Speech-to-Text v2 API - Class BatchRecognizeRequest (1.2.0)

public sealed class BatchRecognizeRequest : IMessage<BatchRecognizeRequest>, IEquatable<BatchRecognizeRequest>, IDeepCloneable<BatchRecognizeRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Speech-to-Text v2 API class BatchRecognizeRequest.

Request message for the [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] method.

Inheritance

object > BatchRecognizeRequest

Namespace

Google.Cloud.Speech.V2

Assembly

Google.Cloud.Speech.V2.dll

Constructors

BatchRecognizeRequest()

public BatchRecognizeRequest()

BatchRecognizeRequest(BatchRecognizeRequest)

public BatchRecognizeRequest(BatchRecognizeRequest other)
Parameter
Name Description
other BatchRecognizeRequest

Properties

Config

public RecognitionConfig Config { get; set; }

Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the [config_mask][google.cloud.speech.v2.BatchRecognizeRequest.config_mask] field can be used to override parts of the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the Recognizer resource.

Property Value
Type Description
RecognitionConfig

ConfigMask

public FieldMask ConfigMask { get; set; }

The list of fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override the values in the [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config] of the recognizer during this recognition request. If no mask is provided, all given fields in [config][google.cloud.speech.v2.BatchRecognizeRequest.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][google.cloud.speech.v2.BatchRecognizeRequest.config] completely overrides and replaces the config in the recognizer for this recognition request.

Property Value
Type Description
FieldMask

Files

public RepeatedField<BatchRecognizeFileMetadata> Files { get; }

Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 5.

Property Value
Type Description
RepeatedFieldBatchRecognizeFileMetadata

ProcessingStrategy

public BatchRecognizeRequest.Types.ProcessingStrategy ProcessingStrategy { get; set; }

Processing strategy to use for this request.

Property Value
Type Description
BatchRecognizeRequestTypesProcessingStrategy

RecognitionOutputConfig

public RecognitionOutputConfig RecognitionOutputConfig { get; set; }

Configuration options for where to output the transcripts of each file.

Property Value
Type Description
RecognitionOutputConfig

Recognizer

public string Recognizer { get; set; }

Required. The name of the Recognizer to use during recognition. The expected format is projects/{project}/locations/{location}/recognizers/{recognizer}. The {recognizer} segment may be set to _ to use an empty implicit Recognizer.

Property Value
Type Description
string

RecognizerAsRecognizerName

public RecognizerName RecognizerAsRecognizerName { get; set; }

RecognizerName-typed view over the Recognizer resource name property.

Property Value
Type Description
RecognizerName