speechpb

package
v1.20.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 14 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Recognizer_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		2: "ACTIVE",
		4: "DELETED",
	}
	Recognizer_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"ACTIVE":            2,
		"DELETED":           4,
	}
)

Enum value maps for Recognizer_State.

View Source
var (
	ExplicitDecodingConfig_AudioEncoding_name = map[int32]string{
		0: "AUDIO_ENCODING_UNSPECIFIED",
		1: "LINEAR16",
		2: "MULAW",
		3: "ALAW",
	}
	ExplicitDecodingConfig_AudioEncoding_value = map[string]int32{
		"AUDIO_ENCODING_UNSPECIFIED": 0,
		"LINEAR16":                   1,
		"MULAW":                      2,
		"ALAW":                       3,
	}
)

Enum value maps for ExplicitDecodingConfig_AudioEncoding.

View Source
var (
	RecognitionFeatures_MultiChannelMode_name = map[int32]string{
		0: "MULTI_CHANNEL_MODE_UNSPECIFIED",
		1: "SEPARATE_RECOGNITION_PER_CHANNEL",
	}
	RecognitionFeatures_MultiChannelMode_value = map[string]int32{
		"MULTI_CHANNEL_MODE_UNSPECIFIED":   0,
		"SEPARATE_RECOGNITION_PER_CHANNEL": 1,
	}
)

Enum value maps for RecognitionFeatures_MultiChannelMode.

View Source
var (
	BatchRecognizeRequest_ProcessingStrategy_name = map[int32]string{
		0: "PROCESSING_STRATEGY_UNSPECIFIED",
		1: "DYNAMIC_BATCHING",
	}
	BatchRecognizeRequest_ProcessingStrategy_value = map[string]int32{
		"PROCESSING_STRATEGY_UNSPECIFIED": 0,
		"DYNAMIC_BATCHING":                1,
	}
)

Enum value maps for BatchRecognizeRequest_ProcessingStrategy.

View Source
var (
	StreamingRecognizeResponse_SpeechEventType_name = map[int32]string{
		0: "SPEECH_EVENT_TYPE_UNSPECIFIED",
		1: "END_OF_SINGLE_UTTERANCE",
		2: "SPEECH_ACTIVITY_BEGIN",
		3: "SPEECH_ACTIVITY_END",
	}
	StreamingRecognizeResponse_SpeechEventType_value = map[string]int32{
		"SPEECH_EVENT_TYPE_UNSPECIFIED": 0,
		"END_OF_SINGLE_UTTERANCE":       1,
		"SPEECH_ACTIVITY_BEGIN":         2,
		"SPEECH_ACTIVITY_END":           3,
	}
)

Enum value maps for StreamingRecognizeResponse_SpeechEventType.

View Source
var (
	CustomClass_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		2: "ACTIVE",
		4: "DELETED",
	}
	CustomClass_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"ACTIVE":            2,
		"DELETED":           4,
	}
)

Enum value maps for CustomClass_State.

View Source
var (
	PhraseSet_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		2: "ACTIVE",
		4: "DELETED",
	}
	PhraseSet_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"ACTIVE":            2,
		"DELETED":           4,
	}
)

Enum value maps for PhraseSet_State.

View Source
var File_google_cloud_speech_v2_cloud_speech_proto protoreflect.FileDescriptor

Functions

func RegisterSpeechServer

func RegisterSpeechServer(s *grpc.Server, srv SpeechServer)

Types

type AutoDetectDecodingConfig

type AutoDetectDecodingConfig struct {
	// contains filtered or unexported fields
}

Automatically detected decoding parameters. Supported for the following encodings:

* WAV_LINEAR16: 16-bit signed little-endian PCM samples in a WAV container.

* WAV_MULAW: 8-bit companded mulaw samples in a WAV container.

* WAV_ALAW: 8-bit companded alaw samples in a WAV container.

* RFC4867_5_AMR: AMR frames with an rfc4867.5 header.

* RFC4867_5_AMRWB: AMR-WB frames with an rfc4867.5 header.

* FLAC: FLAC frames in the "native FLAC" container format.

* MP3: MPEG audio frames with optional (ignored) ID3 metadata.

* OGG_OPUS: Opus audio frames in an Ogg container.

* WEBM_OPUS: Opus audio frames in a WebM container.

* M4A: M4A audio format.

func (*AutoDetectDecodingConfig) Descriptor deprecated

func (*AutoDetectDecodingConfig) Descriptor() ([]byte, []int)

Deprecated: Use AutoDetectDecodingConfig.ProtoReflect.Descriptor instead.

func (*AutoDetectDecodingConfig) ProtoMessage

func (*AutoDetectDecodingConfig) ProtoMessage()

func (*AutoDetectDecodingConfig) ProtoReflect

func (x *AutoDetectDecodingConfig) ProtoReflect() protoreflect.Message

func (*AutoDetectDecodingConfig) Reset

func (x *AutoDetectDecodingConfig) Reset()

func (*AutoDetectDecodingConfig) String

func (x *AutoDetectDecodingConfig) String() string

type BatchRecognizeFileMetadata

type BatchRecognizeFileMetadata struct {

	// The audio source, which is a Google Cloud Storage URI.
	//
	// Types that are assignable to AudioSource:
	//	*BatchRecognizeFileMetadata_Uri
	AudioSource isBatchRecognizeFileMetadata_AudioSource `protobuf_oneof:"audio_source"`
	// Features and audio metadata to use for the Automatic Speech Recognition.
	// This field in combination with the
	// [config_mask][google.cloud.speech.v2.BatchRecognizeFileMetadata.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 as well as the
	// [config][google.cloud.speech.v2.BatchRecognizeRequest.config] at the
	// request level.
	Config *RecognitionConfig `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	// The list of fields in
	// [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.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 non-default valued fields in
	// [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.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.BatchRecognizeFileMetadata.config]
	// completely overrides and replaces the config in the recognizer for this
	// recognition request.
	ConfigMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=config_mask,json=configMask,proto3" json:"config_mask,omitempty"`
	// contains filtered or unexported fields
}

Metadata about a single file in a batch for BatchRecognize.

func (*BatchRecognizeFileMetadata) Descriptor deprecated

func (*BatchRecognizeFileMetadata) Descriptor() ([]byte, []int)

Deprecated: Use BatchRecognizeFileMetadata.ProtoReflect.Descriptor instead.

func (*BatchRecognizeFileMetadata) GetAudioSource

func (m *BatchRecognizeFileMetadata) GetAudioSource() isBatchRecognizeFileMetadata_AudioSource

func (*BatchRecognizeFileMetadata) GetConfig

func (*BatchRecognizeFileMetadata) GetConfigMask

func (x *BatchRecognizeFileMetadata) GetConfigMask() *fieldmaskpb.FieldMask

func (*BatchRecognizeFileMetadata) GetUri

func (x *BatchRecognizeFileMetadata) GetUri() string

func (*BatchRecognizeFileMetadata) ProtoMessage

func (*BatchRecognizeFileMetadata) ProtoMessage()

func (*BatchRecognizeFileMetadata) ProtoReflect

func (*BatchRecognizeFileMetadata) Reset

func (x *BatchRecognizeFileMetadata) Reset()

func (*BatchRecognizeFileMetadata) String

func (x *BatchRecognizeFileMetadata) String() string

type BatchRecognizeFileMetadata_Uri

type BatchRecognizeFileMetadata_Uri struct {
	// Cloud Storage URI for the audio file.
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3,oneof"`
}

type BatchRecognizeFileResult

type BatchRecognizeFileResult struct {

	// Error if one was encountered.
	Error    *status.Status               `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Metadata *RecognitionResponseMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Types that are assignable to Result:
	//	*BatchRecognizeFileResult_CloudStorageResult
	//	*BatchRecognizeFileResult_InlineResult
	Result isBatchRecognizeFileResult_Result `protobuf_oneof:"result"`
	// Deprecated. Use `cloud_storage_result.native_format_uri` instead.
	//
	// Deprecated: Marked as deprecated in google/cloud/speech/v2/cloud_speech.proto.
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// Deprecated. Use `inline_result.transcript` instead.
	//
	// Deprecated: Marked as deprecated in google/cloud/speech/v2/cloud_speech.proto.
	Transcript *BatchRecognizeResults `protobuf:"bytes,4,opt,name=transcript,proto3" json:"transcript,omitempty"`
	// contains filtered or unexported fields
}

Final results for a single file.

func (*BatchRecognizeFileResult) Descriptor deprecated

func (*BatchRecognizeFileResult) Descriptor() ([]byte, []int)

Deprecated: Use BatchRecognizeFileResult.ProtoReflect.Descriptor instead.

func (*BatchRecognizeFileResult) GetCloudStorageResult added in v1.20.0

func (x *BatchRecognizeFileResult) GetCloudStorageResult() *CloudStorageResult

func (*BatchRecognizeFileResult) GetError

func (x *BatchRecognizeFileResult) GetError() *status.Status

func (*BatchRecognizeFileResult) GetInlineResult added in v1.20.0

func (x *BatchRecognizeFileResult) GetInlineResult() *InlineResult

func (*BatchRecognizeFileResult) GetMetadata added in v1.15.0

func (*BatchRecognizeFileResult) GetResult added in v1.20.0

func (m *BatchRecognizeFileResult) GetResult() isBatchRecognizeFileResult_Result

func (*BatchRecognizeFileResult) GetTranscript deprecated added in v1.15.0

func (x *BatchRecognizeFileResult) GetTranscript() *BatchRecognizeResults

Deprecated: Marked as deprecated in google/cloud/speech/v2/cloud_speech.proto.

func (*BatchRecognizeFileResult) GetUri deprecated

func (x *BatchRecognizeFileResult) GetUri() string

Deprecated: Marked as deprecated in google/cloud/speech/v2/cloud_speech.proto.

func (*BatchRecognizeFileResult) ProtoMessage

func (*BatchRecognizeFileResult) ProtoMessage()

func (*BatchRecognizeFileResult) ProtoReflect

func (x *BatchRecognizeFileResult) ProtoReflect() protoreflect.Message

func (*BatchRecognizeFileResult) Reset

func (x *BatchRecognizeFileResult) Reset()

func (*BatchRecognizeFileResult) String

func (x *BatchRecognizeFileResult) String() string

type BatchRecognizeFileResult_CloudStorageResult added in v1.20.0

type BatchRecognizeFileResult_CloudStorageResult struct {
	// Recognition results written to Cloud Storage. This is
	// populated only when
	// [GcsOutputConfig][google.cloud.speech.v2.GcsOutputConfig] is set in
	// the
	// [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].
	CloudStorageResult *CloudStorageResult `protobuf:"bytes,5,opt,name=cloud_storage_result,json=cloudStorageResult,proto3,oneof"`
}

type BatchRecognizeFileResult_InlineResult added in v1.20.0

type BatchRecognizeFileResult_InlineResult struct {
	// Recognition results. This is populated only when
	// [InlineOutputConfig][google.cloud.speech.v2.InlineOutputConfig] is set in
	// the
	// [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].
	InlineResult *InlineResult `protobuf:"bytes,6,opt,name=inline_result,json=inlineResult,proto3,oneof"`
}

type BatchRecognizeMetadata

type BatchRecognizeMetadata struct {

	// Map from provided filename to the transcription metadata for that file.
	TranscriptionMetadata map[string]*BatchRecognizeTranscriptionMetadata `` /* 212-byte string literal not displayed */
	// contains filtered or unexported fields
}

Operation metadata for [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize].

func (*BatchRecognizeMetadata) Descriptor deprecated

func (*BatchRecognizeMetadata) Descriptor() ([]byte, []int)

Deprecated: Use BatchRecognizeMetadata.ProtoReflect.Descriptor instead.

func (*BatchRecognizeMetadata) GetTranscriptionMetadata

func (x *BatchRecognizeMetadata) GetTranscriptionMetadata() map[string]*BatchRecognizeTranscriptionMetadata

func (*BatchRecognizeMetadata) ProtoMessage

func (*BatchRecognizeMetadata) ProtoMessage()

func (*BatchRecognizeMetadata) ProtoReflect

func (x *BatchRecognizeMetadata) ProtoReflect() protoreflect.Message

func (*BatchRecognizeMetadata) Reset

func (x *BatchRecognizeMetadata) Reset()

func (*BatchRecognizeMetadata) String

func (x *BatchRecognizeMetadata) String() string

type BatchRecognizeRequest

type BatchRecognizeRequest struct {

	// 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.
	Recognizer string `protobuf:"bytes,1,opt,name=recognizer,proto3" json:"recognizer,omitempty"`
	// 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.
	Config *RecognitionConfig `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	// 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.
	ConfigMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=config_mask,json=configMask,proto3" json:"config_mask,omitempty"`
	// Audio files with file metadata for ASR.
	// The maximum number of files allowed to be specified is 5.
	Files []*BatchRecognizeFileMetadata `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"`
	// Configuration options for where to output the transcripts of each file.
	RecognitionOutputConfig *RecognitionOutputConfig `` /* 132-byte string literal not displayed */
	// Processing strategy to use for this request.
	ProcessingStrategy BatchRecognizeRequest_ProcessingStrategy `` /* 185-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

func (*BatchRecognizeRequest) Descriptor deprecated

func (*BatchRecognizeRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchRecognizeRequest.ProtoReflect.Descriptor instead.

func (*BatchRecognizeRequest) GetConfig

func (x *BatchRecognizeRequest) GetConfig() *RecognitionConfig

func (*BatchRecognizeRequest) GetConfigMask

func (x *BatchRecognizeRequest) GetConfigMask() *fieldmaskpb.FieldMask

func (*BatchRecognizeRequest) GetFiles

func (*BatchRecognizeRequest) GetProcessingStrategy added in v1.16.0

func (*BatchRecognizeRequest) GetRecognitionOutputConfig added in v1.15.0

func (x *BatchRecognizeRequest) GetRecognitionOutputConfig() *RecognitionOutputConfig

func (*BatchRecognizeRequest) GetRecognizer

func (x *BatchRecognizeRequest) GetRecognizer() string

func (*BatchRecognizeRequest) ProtoMessage

func (*BatchRecognizeRequest) ProtoMessage()

func (*BatchRecognizeRequest) ProtoReflect

func (x *BatchRecognizeRequest) ProtoReflect() protoreflect.Message

func (*BatchRecognizeRequest) Reset

func (x *BatchRecognizeRequest) Reset()

func (*BatchRecognizeRequest) String

func (x *BatchRecognizeRequest) String() string

type BatchRecognizeRequest_ProcessingStrategy added in v1.16.0

type BatchRecognizeRequest_ProcessingStrategy int32

Possible processing strategies for batch requests.

const (
	// Default value for the processing strategy. The request is processed as
	// soon as its received.
	BatchRecognizeRequest_PROCESSING_STRATEGY_UNSPECIFIED BatchRecognizeRequest_ProcessingStrategy = 0
	// If selected, processes the request during lower utilization periods for a
	// price discount. The request is fulfilled within 24 hours.
	BatchRecognizeRequest_DYNAMIC_BATCHING BatchRecognizeRequest_ProcessingStrategy = 1
)

func (BatchRecognizeRequest_ProcessingStrategy) Descriptor added in v1.16.0

func (BatchRecognizeRequest_ProcessingStrategy) Enum added in v1.16.0

func (BatchRecognizeRequest_ProcessingStrategy) EnumDescriptor deprecated added in v1.16.0

func (BatchRecognizeRequest_ProcessingStrategy) EnumDescriptor() ([]byte, []int)

Deprecated: Use BatchRecognizeRequest_ProcessingStrategy.Descriptor instead.

func (BatchRecognizeRequest_ProcessingStrategy) Number added in v1.16.0

func (BatchRecognizeRequest_ProcessingStrategy) String added in v1.16.0

func (BatchRecognizeRequest_ProcessingStrategy) Type added in v1.16.0

type BatchRecognizeResponse

type BatchRecognizeResponse struct {

	// Map from filename to the final result for that file.
	Results map[string]*BatchRecognizeFileResult `` /* 155-byte string literal not displayed */
	// When available, billed audio seconds for the corresponding request.
	TotalBilledDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=total_billed_duration,json=totalBilledDuration,proto3" json:"total_billed_duration,omitempty"`
	// contains filtered or unexported fields
}

Response message for [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] that is packaged into a longrunning [Operation][google.longrunning.Operation].

func (*BatchRecognizeResponse) Descriptor deprecated

func (*BatchRecognizeResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchRecognizeResponse.ProtoReflect.Descriptor instead.

func (*BatchRecognizeResponse) GetResults

func (*BatchRecognizeResponse) GetTotalBilledDuration added in v1.15.0

func (x *BatchRecognizeResponse) GetTotalBilledDuration() *durationpb.Duration

func (*BatchRecognizeResponse) ProtoMessage

func (*BatchRecognizeResponse) ProtoMessage()

func (*BatchRecognizeResponse) ProtoReflect

func (x *BatchRecognizeResponse) ProtoReflect() protoreflect.Message

func (*BatchRecognizeResponse) Reset

func (x *BatchRecognizeResponse) Reset()

func (*BatchRecognizeResponse) String

func (x *BatchRecognizeResponse) String() string

type BatchRecognizeResults added in v1.15.0

type BatchRecognizeResults struct {

	// Sequential list of transcription results corresponding to sequential
	// portions of audio.
	Results []*SpeechRecognitionResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// Metadata about the recognition.
	Metadata *RecognitionResponseMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

Output type for Cloud Storage of BatchRecognize transcripts. Though this proto isn't returned in this API anywhere, the Cloud Storage transcripts will be this proto serialized and should be parsed as such.

func (*BatchRecognizeResults) Descriptor deprecated added in v1.15.0

func (*BatchRecognizeResults) Descriptor() ([]byte, []int)

Deprecated: Use BatchRecognizeResults.ProtoReflect.Descriptor instead.

func (*BatchRecognizeResults) GetMetadata added in v1.15.0

func (*BatchRecognizeResults) GetResults added in v1.15.0

func (*BatchRecognizeResults) ProtoMessage added in v1.15.0

func (*BatchRecognizeResults) ProtoMessage()

func (*BatchRecognizeResults) ProtoReflect added in v1.15.0

func (x *BatchRecognizeResults) ProtoReflect() protoreflect.Message

func (*BatchRecognizeResults) Reset added in v1.15.0

func (x *BatchRecognizeResults) Reset()

func (*BatchRecognizeResults) String added in v1.15.0

func (x *BatchRecognizeResults) String() string

type BatchRecognizeTranscriptionMetadata

type BatchRecognizeTranscriptionMetadata struct {

	// How much of the file has been transcribed so far.
	ProgressPercent int32 `protobuf:"varint,1,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"`
	// Error if one was encountered.
	Error *status.Status `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// The Cloud Storage URI to which recognition results will be written.
	Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"`
	// contains filtered or unexported fields
}

Metadata about transcription for a single file (for example, progress percent).

func (*BatchRecognizeTranscriptionMetadata) Descriptor deprecated

func (*BatchRecognizeTranscriptionMetadata) Descriptor() ([]byte, []int)

Deprecated: Use BatchRecognizeTranscriptionMetadata.ProtoReflect.Descriptor instead.

func (*BatchRecognizeTranscriptionMetadata) GetError

func (*BatchRecognizeTranscriptionMetadata) GetProgressPercent

func (x *BatchRecognizeTranscriptionMetadata) GetProgressPercent() int32

func (*BatchRecognizeTranscriptionMetadata) GetUri

func (*BatchRecognizeTranscriptionMetadata) ProtoMessage

func (*BatchRecognizeTranscriptionMetadata) ProtoMessage()

func (*BatchRecognizeTranscriptionMetadata) ProtoReflect

func (*BatchRecognizeTranscriptionMetadata) Reset

func (*BatchRecognizeTranscriptionMetadata) String

type CloudStorageResult added in v1.20.0

type CloudStorageResult struct {

	// The Cloud Storage URI to which recognition results were written.
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// contains filtered or unexported fields
}

Final results written to Cloud Storage.

func (*CloudStorageResult) Descriptor deprecated added in v1.20.0

func (*CloudStorageResult) Descriptor() ([]byte, []int)

Deprecated: Use CloudStorageResult.ProtoReflect.Descriptor instead.

func (*CloudStorageResult) GetUri added in v1.20.0

func (x *CloudStorageResult) GetUri() string

func (*CloudStorageResult) ProtoMessage added in v1.20.0

func (*CloudStorageResult) ProtoMessage()

func (*CloudStorageResult) ProtoReflect added in v1.20.0

func (x *CloudStorageResult) ProtoReflect() protoreflect.Message

func (*CloudStorageResult) Reset added in v1.20.0

func (x *CloudStorageResult) Reset()

func (*CloudStorageResult) String added in v1.20.0

func (x *CloudStorageResult) String() string

type Config

type Config struct {

	// Output only. The name of the config resource. There is exactly one config
	// resource per project per location. The expected format is
	// `projects/{project}/locations/{location}/config`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. An optional [KMS key
	// name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
	// present, will be used to encrypt Speech-to-Text resources at-rest. Updating
	// this key will not encrypt existing resources using this key; only new
	// resources will be encrypted using this key. The expected format is
	// `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
	KmsKeyName string `protobuf:"bytes,2,opt,name=kms_key_name,json=kmsKeyName,proto3" json:"kms_key_name,omitempty"`
	// Output only. The most recent time this resource was modified.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

Message representing the config for the Speech-to-Text API. This includes an optional [KMS key](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which incoming data will be encrypted.

func (*Config) Descriptor deprecated

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetKmsKeyName

func (x *Config) GetKmsKeyName() string

func (*Config) GetName

func (x *Config) GetName() string

func (*Config) GetUpdateTime

func (x *Config) GetUpdateTime() *timestamppb.Timestamp

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type CreateCustomClassRequest

type CreateCustomClassRequest struct {

	// Required. The CustomClass to create.
	CustomClass *CustomClass `protobuf:"bytes,1,opt,name=custom_class,json=customClass,proto3" json:"custom_class,omitempty"`
	// If set, validate the request and preview the CustomClass, but do not
	// actually create it.
	ValidateOnly bool `protobuf:"varint,2,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// The ID to use for the CustomClass, which will become the final component of
	// the CustomClass's resource name.
	//
	// This value should be 4-63 characters, and valid characters
	// are /[a-z][0-9]-/.
	CustomClassId string `protobuf:"bytes,3,opt,name=custom_class_id,json=customClassId,proto3" json:"custom_class_id,omitempty"`
	// Required. The project and location where this CustomClass will be created.
	// The expected format is `projects/{project}/locations/{location}`.
	Parent string `protobuf:"bytes,4,opt,name=parent,proto3" json:"parent,omitempty"`
	// contains filtered or unexported fields
}

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

func (*CreateCustomClassRequest) Descriptor deprecated

func (*CreateCustomClassRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateCustomClassRequest.ProtoReflect.Descriptor instead.

func (*CreateCustomClassRequest) GetCustomClass

func (x *CreateCustomClassRequest) GetCustomClass() *CustomClass

func (*CreateCustomClassRequest) GetCustomClassId

func (x *CreateCustomClassRequest) GetCustomClassId() string

func (*CreateCustomClassRequest) GetParent

func (x *CreateCustomClassRequest) GetParent() string

func (*CreateCustomClassRequest) GetValidateOnly

func (x *CreateCustomClassRequest) GetValidateOnly() bool

func (*CreateCustomClassRequest) ProtoMessage

func (*CreateCustomClassRequest) ProtoMessage()

func (*CreateCustomClassRequest) ProtoReflect

func (x *CreateCustomClassRequest) ProtoReflect() protoreflect.Message

func (*CreateCustomClassRequest) Reset

func (x *CreateCustomClassRequest) Reset()

func (*CreateCustomClassRequest) String

func (x *CreateCustomClassRequest) String() string

type CreatePhraseSetRequest

type CreatePhraseSetRequest struct {

	// Required. The PhraseSet to create.
	PhraseSet *PhraseSet `protobuf:"bytes,1,opt,name=phrase_set,json=phraseSet,proto3" json:"phrase_set,omitempty"`
	// If set, validate the request and preview the PhraseSet, but do not
	// actually create it.
	ValidateOnly bool `protobuf:"varint,2,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// The ID to use for the PhraseSet, which will become the final component of
	// the PhraseSet's resource name.
	//
	// This value should be 4-63 characters, and valid characters
	// are /[a-z][0-9]-/.
	PhraseSetId string `protobuf:"bytes,3,opt,name=phrase_set_id,json=phraseSetId,proto3" json:"phrase_set_id,omitempty"`
	// Required. The project and location where this PhraseSet will be created.
	// The expected format is `projects/{project}/locations/{location}`.
	Parent string `protobuf:"bytes,4,opt,name=parent,proto3" json:"parent,omitempty"`
	// contains filtered or unexported fields
}

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

func (*CreatePhraseSetRequest) Descriptor deprecated

func (*CreatePhraseSetRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreatePhraseSetRequest.ProtoReflect.Descriptor instead.

func (*CreatePhraseSetRequest) GetParent

func (x *CreatePhraseSetRequest) GetParent() string

func (*CreatePhraseSetRequest) GetPhraseSet

func (x *CreatePhraseSetRequest) GetPhraseSet() *PhraseSet

func (*CreatePhraseSetRequest) GetPhraseSetId

func (x *CreatePhraseSetRequest) GetPhraseSetId() string

func (*CreatePhraseSetRequest) GetValidateOnly

func (x *CreatePhraseSetRequest) GetValidateOnly() bool

func (*CreatePhraseSetRequest) ProtoMessage

func (*CreatePhraseSetRequest) ProtoMessage()

func (*CreatePhraseSetRequest) ProtoReflect

func (x *CreatePhraseSetRequest) ProtoReflect() protoreflect.Message

func (*CreatePhraseSetRequest) Reset

func (x *CreatePhraseSetRequest) Reset()

func (*CreatePhraseSetRequest) String

func (x *CreatePhraseSetRequest) String() string

type CreateRecognizerRequest

type CreateRecognizerRequest struct {

	// Required. The Recognizer to create.
	Recognizer *Recognizer `protobuf:"bytes,1,opt,name=recognizer,proto3" json:"recognizer,omitempty"`
	// If set, validate the request and preview the Recognizer, but do not
	// actually create it.
	ValidateOnly bool `protobuf:"varint,2,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// The ID to use for the Recognizer, which will become the final component of
	// the Recognizer's resource name.
	//
	// This value should be 4-63 characters, and valid characters
	// are /[a-z][0-9]-/.
	RecognizerId string `protobuf:"bytes,3,opt,name=recognizer_id,json=recognizerId,proto3" json:"recognizer_id,omitempty"`
	// Required. The project and location where this Recognizer will be created.
	// The expected format is `projects/{project}/locations/{location}`.
	Parent string `protobuf:"bytes,4,opt,name=parent,proto3" json:"parent,omitempty"`
	// contains filtered or unexported fields
}

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

func (*CreateRecognizerRequest) Descriptor deprecated

func (*CreateRecognizerRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateRecognizerRequest.ProtoReflect.Descriptor instead.

func (*CreateRecognizerRequest) GetParent

func (x *CreateRecognizerRequest) GetParent() string

func (*CreateRecognizerRequest) GetRecognizer

func (x *CreateRecognizerRequest) GetRecognizer() *Recognizer

func (*CreateRecognizerRequest) GetRecognizerId

func (x *CreateRecognizerRequest) GetRecognizerId() string

func (*CreateRecognizerRequest) GetValidateOnly

func (x *CreateRecognizerRequest) GetValidateOnly() bool

func (*CreateRecognizerRequest) ProtoMessage

func (*CreateRecognizerRequest) ProtoMessage()

func (*CreateRecognizerRequest) ProtoReflect

func (x *CreateRecognizerRequest) ProtoReflect() protoreflect.Message

func (*CreateRecognizerRequest) Reset

func (x *CreateRecognizerRequest) Reset()

func (*CreateRecognizerRequest) String

func (x *CreateRecognizerRequest) String() string

type CustomClass

type CustomClass struct {

	// Output only. The resource name of the CustomClass.
	// Format:
	// `projects/{project}/locations/{location}/customClasses/{custom_class}`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. System-assigned unique identifier for the CustomClass.
	Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// User-settable, human-readable name for the CustomClass. Must be 63
	// characters or less.
	DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// A collection of class items.
	Items []*CustomClass_ClassItem `protobuf:"bytes,5,rep,name=items,proto3" json:"items,omitempty"`
	// Output only. The CustomClass lifecycle state.
	State CustomClass_State `protobuf:"varint,15,opt,name=state,proto3,enum=google.cloud.speech.v2.CustomClass_State" json:"state,omitempty"`
	// Output only. Creation time.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The most recent time this resource was modified.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Output only. The time at which this resource was requested for deletion.
	DeleteTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
	// Output only. The time at which this resource will be purged.
	ExpireTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
	// Allows users to store small amounts of arbitrary data.
	// Both the key and the value must be 63 characters or less each.
	// At most 100 annotations.
	Annotations map[string]string `` /* 164-byte string literal not displayed */
	// Output only. This checksum is computed by the server based on the value of
	// other fields. This may be sent on update, undelete, and delete requests to
	// ensure the client has an up-to-date value before proceeding.
	Etag string `protobuf:"bytes,11,opt,name=etag,proto3" json:"etag,omitempty"`
	// Output only. Whether or not this CustomClass is in the process of being
	// updated.
	Reconciling bool `protobuf:"varint,12,opt,name=reconciling,proto3" json:"reconciling,omitempty"`
	// Output only. The [KMS key
	// name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
	// the CustomClass is encrypted. The expected format is
	// `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
	KmsKeyName string `protobuf:"bytes,13,opt,name=kms_key_name,json=kmsKeyName,proto3" json:"kms_key_name,omitempty"`
	// Output only. The [KMS key version
	// name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
	// with which the CustomClass is encrypted. The expected format is
	// `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
	KmsKeyVersionName string `protobuf:"bytes,14,opt,name=kms_key_version_name,json=kmsKeyVersionName,proto3" json:"kms_key_version_name,omitempty"`
	// contains filtered or unexported fields
}

CustomClass for biasing in speech recognition. Used to define a set of words or phrases that represents a common concept or theme likely to appear in your audio, for example a list of passenger ship names.

func (*CustomClass) Descriptor deprecated

func (*CustomClass) Descriptor() ([]byte, []int)

Deprecated: Use CustomClass.ProtoReflect.Descriptor instead.

func (*CustomClass) GetAnnotations

func (x *CustomClass) GetAnnotations() map[string]string

func (*CustomClass) GetCreateTime

func (x *CustomClass) GetCreateTime() *timestamppb.Timestamp

func (*CustomClass) GetDeleteTime

func (x *CustomClass) GetDeleteTime() *timestamppb.Timestamp

func (*CustomClass) GetDisplayName

func (x *CustomClass) GetDisplayName() string

func (*CustomClass) GetEtag

func (x *CustomClass) GetEtag() string

func (*CustomClass) GetExpireTime

func (x *CustomClass) GetExpireTime() *timestamppb.Timestamp

func (*CustomClass) GetItems

func (x *CustomClass) GetItems() []*CustomClass_ClassItem

func (*CustomClass) GetKmsKeyName

func (x *CustomClass) GetKmsKeyName() string

func (*CustomClass) GetKmsKeyVersionName

func (x *CustomClass) GetKmsKeyVersionName() string

func (*CustomClass) GetName

func (x *CustomClass) GetName() string

func (*CustomClass) GetReconciling

func (x *CustomClass) GetReconciling() bool

func (*CustomClass) GetState

func (x *CustomClass) GetState() CustomClass_State

func (*CustomClass) GetUid

func (x *CustomClass) GetUid() string

func (*CustomClass) GetUpdateTime

func (x *CustomClass) GetUpdateTime() *timestamppb.Timestamp

func (*CustomClass) ProtoMessage

func (*CustomClass) ProtoMessage()

func (*CustomClass) ProtoReflect

func (x *CustomClass) ProtoReflect() protoreflect.Message

func (*CustomClass) Reset

func (x *CustomClass) Reset()

func (*CustomClass) String

func (x *CustomClass) String() string

type CustomClass_ClassItem

type CustomClass_ClassItem struct {

	// The class item's value.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

An item of the class.

func (*CustomClass_ClassItem) Descriptor deprecated

func (*CustomClass_ClassItem) Descriptor() ([]byte, []int)

Deprecated: Use CustomClass_ClassItem.ProtoReflect.Descriptor instead.

func (*CustomClass_ClassItem) GetValue

func (x *CustomClass_ClassItem) GetValue() string

func (*CustomClass_ClassItem) ProtoMessage

func (*CustomClass_ClassItem) ProtoMessage()

func (*CustomClass_ClassItem) ProtoReflect

func (x *CustomClass_ClassItem) ProtoReflect() protoreflect.Message

func (*CustomClass_ClassItem) Reset

func (x *CustomClass_ClassItem) Reset()

func (*CustomClass_ClassItem) String

func (x *CustomClass_ClassItem) String() string

type CustomClass_State

type CustomClass_State int32

Set of states that define the lifecycle of a CustomClass.

const (
	// Unspecified state.  This is only used/useful for distinguishing
	// unset values.
	CustomClass_STATE_UNSPECIFIED CustomClass_State = 0
	// The normal and active state.
	CustomClass_ACTIVE CustomClass_State = 2
	// This CustomClass has been deleted.
	CustomClass_DELETED CustomClass_State = 4
)

func (CustomClass_State) Descriptor

func (CustomClass_State) Enum

func (CustomClass_State) EnumDescriptor deprecated

func (CustomClass_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use CustomClass_State.Descriptor instead.

func (CustomClass_State) Number

func (CustomClass_State) String

func (x CustomClass_State) String() string

func (CustomClass_State) Type

type DeleteCustomClassRequest

type DeleteCustomClassRequest struct {

	// Required. The name of the CustomClass to delete.
	// Format:
	// `projects/{project}/locations/{location}/customClasses/{custom_class}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// If set, validate the request and preview the deleted CustomClass, but do
	// not actually delete it.
	ValidateOnly bool `protobuf:"varint,2,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// If set to true, and the CustomClass is not found, the request will succeed
	// and  be a no-op (no Operation is recorded in this case).
	AllowMissing bool `protobuf:"varint,4,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
	// This checksum is computed by the server based on the value of other
	// fields. This may be sent on update, undelete, and delete requests to ensure
	// the client has an up-to-date value before proceeding.
	Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"`
	// contains filtered or unexported fields
}

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

func (*DeleteCustomClassRequest) Descriptor deprecated

func (*DeleteCustomClassRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteCustomClassRequest.ProtoReflect.Descriptor instead.

func (*DeleteCustomClassRequest) GetAllowMissing

func (x *DeleteCustomClassRequest) GetAllowMissing() bool

func (*DeleteCustomClassRequest) GetEtag

func (x *DeleteCustomClassRequest) GetEtag() string

func (*DeleteCustomClassRequest) GetName

func (x *DeleteCustomClassRequest) GetName() string

func (*DeleteCustomClassRequest) GetValidateOnly

func (x *DeleteCustomClassRequest) GetValidateOnly() bool

func (*DeleteCustomClassRequest) ProtoMessage

func (*DeleteCustomClassRequest) ProtoMessage()

func (*DeleteCustomClassRequest) ProtoReflect

func (x *DeleteCustomClassRequest) ProtoReflect() protoreflect.Message

func (*DeleteCustomClassRequest) Reset

func (x *DeleteCustomClassRequest) Reset()

func (*DeleteCustomClassRequest) String

func (x *DeleteCustomClassRequest) String() string

type DeletePhraseSetRequest

type DeletePhraseSetRequest struct {

	// Required. The name of the PhraseSet to delete.
	// Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// If set, validate the request and preview the deleted PhraseSet, but do not
	// actually delete it.
	ValidateOnly bool `protobuf:"varint,2,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// If set to true, and the PhraseSet is not found, the request will succeed
	// and  be a no-op (no Operation is recorded in this case).
	AllowMissing bool `protobuf:"varint,4,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
	// This checksum is computed by the server based on the value of other
	// fields. This may be sent on update, undelete, and delete requests to ensure
	// the client has an up-to-date value before proceeding.
	Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"`
	// contains filtered or unexported fields
}

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

func (*DeletePhraseSetRequest) Descriptor deprecated

func (*DeletePhraseSetRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeletePhraseSetRequest.ProtoReflect.Descriptor instead.

func (*DeletePhraseSetRequest) GetAllowMissing

func (x *DeletePhraseSetRequest) GetAllowMissing() bool

func (*DeletePhraseSetRequest) GetEtag

func (x *DeletePhraseSetRequest) GetEtag() string

func (*DeletePhraseSetRequest) GetName

func (x *DeletePhraseSetRequest) GetName() string

func (*DeletePhraseSetRequest) GetValidateOnly

func (x *DeletePhraseSetRequest) GetValidateOnly() bool

func (*DeletePhraseSetRequest) ProtoMessage

func (*DeletePhraseSetRequest) ProtoMessage()

func (*DeletePhraseSetRequest) ProtoReflect

func (x *DeletePhraseSetRequest) ProtoReflect() protoreflect.Message

func (*DeletePhraseSetRequest) Reset

func (x *DeletePhraseSetRequest) Reset()

func (*DeletePhraseSetRequest) String

func (x *DeletePhraseSetRequest) String() string

type DeleteRecognizerRequest

type DeleteRecognizerRequest struct {

	// Required. The name of the Recognizer to delete.
	// Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// If set, validate the request and preview the deleted Recognizer, but do not
	// actually delete it.
	ValidateOnly bool `protobuf:"varint,2,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// If set to true, and the Recognizer is not found, the request will succeed
	// and  be a no-op (no Operation is recorded in this case).
	AllowMissing bool `protobuf:"varint,4,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
	// This checksum is computed by the server based on the value of other
	// fields. This may be sent on update, undelete, and delete requests to ensure
	// the client has an up-to-date value before proceeding.
	Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"`
	// contains filtered or unexported fields
}

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

func (*DeleteRecognizerRequest) Descriptor deprecated

func (*DeleteRecognizerRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRecognizerRequest.ProtoReflect.Descriptor instead.

func (*DeleteRecognizerRequest) GetAllowMissing

func (x *DeleteRecognizerRequest) GetAllowMissing() bool

func (*DeleteRecognizerRequest) GetEtag

func (x *DeleteRecognizerRequest) GetEtag() string

func (*DeleteRecognizerRequest) GetName

func (x *DeleteRecognizerRequest) GetName() string

func (*DeleteRecognizerRequest) GetValidateOnly

func (x *DeleteRecognizerRequest) GetValidateOnly() bool

func (*DeleteRecognizerRequest) ProtoMessage

func (*DeleteRecognizerRequest) ProtoMessage()

func (*DeleteRecognizerRequest) ProtoReflect

func (x *DeleteRecognizerRequest) ProtoReflect() protoreflect.Message

func (*DeleteRecognizerRequest) Reset

func (x *DeleteRecognizerRequest) Reset()

func (*DeleteRecognizerRequest) String

func (x *DeleteRecognizerRequest) String() string

type ExplicitDecodingConfig

type ExplicitDecodingConfig struct {

	// Required. Encoding of the audio data sent for recognition.
	Encoding ExplicitDecodingConfig_AudioEncoding `` /* 135-byte string literal not displayed */
	// Sample rate in Hertz of the audio data sent for recognition. Valid
	// values are: 8000-48000. 16000 is optimal. For best results, set the
	// sampling rate of the audio source to 16000 Hz. If that's not possible, use
	// the native sample rate of the audio source (instead of re-sampling).
	// Supported for the following encodings:
	//
	// * LINEAR16: Headerless 16-bit signed little-endian PCM samples.
	//
	// * MULAW: Headerless 8-bit companded mulaw samples.
	//
	// * ALAW: Headerless 8-bit companded alaw samples.
	SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
	// Number of channels present in the audio data sent for recognition.
	// Supported for the following encodings:
	//
	// * LINEAR16: Headerless 16-bit signed little-endian PCM samples.
	//
	// * MULAW: Headerless 8-bit companded mulaw samples.
	//
	// * ALAW: Headerless 8-bit companded alaw samples.
	//
	// The maximum allowed value is 8.
	AudioChannelCount int32 `protobuf:"varint,3,opt,name=audio_channel_count,json=audioChannelCount,proto3" json:"audio_channel_count,omitempty"`
	// contains filtered or unexported fields
}

Explicitly specified decoding parameters.

func (*ExplicitDecodingConfig) Descriptor deprecated

func (*ExplicitDecodingConfig) Descriptor() ([]byte, []int)

Deprecated: Use ExplicitDecodingConfig.ProtoReflect.Descriptor instead.

func (*ExplicitDecodingConfig) GetAudioChannelCount

func (x *ExplicitDecodingConfig) GetAudioChannelCount() int32

func (*ExplicitDecodingConfig) GetEncoding

func (*ExplicitDecodingConfig) GetSampleRateHertz

func (x *ExplicitDecodingConfig) GetSampleRateHertz() int32

func (*ExplicitDecodingConfig) ProtoMessage

func (*ExplicitDecodingConfig) ProtoMessage()

func (*ExplicitDecodingConfig) ProtoReflect

func (x *ExplicitDecodingConfig) ProtoReflect() protoreflect.Message

func (*ExplicitDecodingConfig) Reset

func (x *ExplicitDecodingConfig) Reset()

func (*ExplicitDecodingConfig) String

func (x *ExplicitDecodingConfig) String() string

type ExplicitDecodingConfig_AudioEncoding

type ExplicitDecodingConfig_AudioEncoding int32

Supported audio data encodings.

const (
	// Default value. This value is unused.
	ExplicitDecodingConfig_AUDIO_ENCODING_UNSPECIFIED ExplicitDecodingConfig_AudioEncoding = 0
	// Headerless 16-bit signed little-endian PCM samples.
	ExplicitDecodingConfig_LINEAR16 ExplicitDecodingConfig_AudioEncoding = 1
	// Headerless 8-bit companded mulaw samples.
	ExplicitDecodingConfig_MULAW ExplicitDecodingConfig_AudioEncoding = 2
	// Headerless 8-bit companded alaw samples.
	ExplicitDecodingConfig_ALAW ExplicitDecodingConfig_AudioEncoding = 3
)

func (ExplicitDecodingConfig_AudioEncoding) Descriptor

func (ExplicitDecodingConfig_AudioEncoding) Enum

func (ExplicitDecodingConfig_AudioEncoding) EnumDescriptor deprecated

func (ExplicitDecodingConfig_AudioEncoding) EnumDescriptor() ([]byte, []int)

Deprecated: Use ExplicitDecodingConfig_AudioEncoding.Descriptor instead.

func (ExplicitDecodingConfig_AudioEncoding) Number

func (ExplicitDecodingConfig_AudioEncoding) String

func (ExplicitDecodingConfig_AudioEncoding) Type

type GcsOutputConfig added in v1.15.0

type GcsOutputConfig struct {

	// The Cloud Storage URI prefix with which recognition results will be
	// written.
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// contains filtered or unexported fields
}

Output configurations for Cloud Storage.

func (*GcsOutputConfig) Descriptor deprecated added in v1.15.0

func (*GcsOutputConfig) Descriptor() ([]byte, []int)

Deprecated: Use GcsOutputConfig.ProtoReflect.Descriptor instead.

func (*GcsOutputConfig) GetUri added in v1.15.0

func (x *GcsOutputConfig) GetUri() string

func (*GcsOutputConfig) ProtoMessage added in v1.15.0

func (*GcsOutputConfig) ProtoMessage()

func (*GcsOutputConfig) ProtoReflect added in v1.15.0

func (x *GcsOutputConfig) ProtoReflect() protoreflect.Message

func (*GcsOutputConfig) Reset added in v1.15.0

func (x *GcsOutputConfig) Reset()

func (*GcsOutputConfig) String added in v1.15.0

func (x *GcsOutputConfig) String() string

type GetConfigRequest

type GetConfigRequest struct {

	// Required. The name of the config to retrieve. There is exactly one config
	// resource per project per location. The expected format is
	// `projects/{project}/locations/{location}/config`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

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

func (*GetConfigRequest) Descriptor deprecated

func (*GetConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetConfigRequest.ProtoReflect.Descriptor instead.

func (*GetConfigRequest) GetName

func (x *GetConfigRequest) GetName() string

func (*GetConfigRequest) ProtoMessage

func (*GetConfigRequest) ProtoMessage()

func (*GetConfigRequest) ProtoReflect

func (x *GetConfigRequest) ProtoReflect() protoreflect.Message

func (*GetConfigRequest) Reset

func (x *GetConfigRequest) Reset()

func (*GetConfigRequest) String

func (x *GetConfigRequest) String() string

type GetCustomClassRequest

type GetCustomClassRequest struct {

	// Required. The name of the CustomClass to retrieve. The expected format is
	// `projects/{project}/locations/{location}/customClasses/{custom_class}`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

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

func (*GetCustomClassRequest) Descriptor deprecated

func (*GetCustomClassRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCustomClassRequest.ProtoReflect.Descriptor instead.

func (*GetCustomClassRequest) GetName

func (x *GetCustomClassRequest) GetName() string

func (*GetCustomClassRequest) ProtoMessage

func (*GetCustomClassRequest) ProtoMessage()

func (*GetCustomClassRequest) ProtoReflect

func (x *GetCustomClassRequest) ProtoReflect() protoreflect.Message

func (*GetCustomClassRequest) Reset

func (x *GetCustomClassRequest) Reset()

func (*GetCustomClassRequest) String

func (x *GetCustomClassRequest) String() string

type GetPhraseSetRequest

type GetPhraseSetRequest struct {

	// Required. The name of the PhraseSet to retrieve. The expected format is
	// `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

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

func (*GetPhraseSetRequest) Descriptor deprecated

func (*GetPhraseSetRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetPhraseSetRequest.ProtoReflect.Descriptor instead.

func (*GetPhraseSetRequest) GetName

func (x *GetPhraseSetRequest) GetName() string

func (*GetPhraseSetRequest) ProtoMessage

func (*GetPhraseSetRequest) ProtoMessage()

func (*GetPhraseSetRequest) ProtoReflect

func (x *GetPhraseSetRequest) ProtoReflect() protoreflect.Message

func (*GetPhraseSetRequest) Reset

func (x *GetPhraseSetRequest) Reset()

func (*GetPhraseSetRequest) String

func (x *GetPhraseSetRequest) String() string

type GetRecognizerRequest

type GetRecognizerRequest struct {

	// Required. The name of the Recognizer to retrieve. The expected format is
	// `projects/{project}/locations/{location}/recognizers/{recognizer}`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

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

func (*GetRecognizerRequest) Descriptor deprecated

func (*GetRecognizerRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetRecognizerRequest.ProtoReflect.Descriptor instead.

func (*GetRecognizerRequest) GetName

func (x *GetRecognizerRequest) GetName() string

func (*GetRecognizerRequest) ProtoMessage

func (*GetRecognizerRequest) ProtoMessage()

func (*GetRecognizerRequest) ProtoReflect

func (x *GetRecognizerRequest) ProtoReflect() protoreflect.Message

func (*GetRecognizerRequest) Reset

func (x *GetRecognizerRequest) Reset()

func (*GetRecognizerRequest) String

func (x *GetRecognizerRequest) String() string

type InlineOutputConfig added in v1.15.0

type InlineOutputConfig struct {
	// contains filtered or unexported fields
}

Output configurations for inline response.

func (*InlineOutputConfig) Descriptor deprecated added in v1.15.0

func (*InlineOutputConfig) Descriptor() ([]byte, []int)

Deprecated: Use InlineOutputConfig.ProtoReflect.Descriptor instead.

func (*InlineOutputConfig) ProtoMessage added in v1.15.0

func (*InlineOutputConfig) ProtoMessage()

func (*InlineOutputConfig) ProtoReflect added in v1.15.0

func (x *InlineOutputConfig) ProtoReflect() protoreflect.Message

func (*InlineOutputConfig) Reset added in v1.15.0

func (x *InlineOutputConfig) Reset()

func (*InlineOutputConfig) String added in v1.15.0

func (x *InlineOutputConfig) String() string

type InlineResult added in v1.20.0

type InlineResult struct {

	// The transcript for the audio file.
	Transcript *BatchRecognizeResults `protobuf:"bytes,1,opt,name=transcript,proto3" json:"transcript,omitempty"`
	// contains filtered or unexported fields
}

Final results returned inline in the recognition response.

func (*InlineResult) Descriptor deprecated added in v1.20.0

func (*InlineResult) Descriptor() ([]byte, []int)

Deprecated: Use InlineResult.ProtoReflect.Descriptor instead.

func (*InlineResult) GetTranscript added in v1.20.0

func (x *InlineResult) GetTranscript() *BatchRecognizeResults

func (*InlineResult) ProtoMessage added in v1.20.0

func (*InlineResult) ProtoMessage()

func (*InlineResult) ProtoReflect added in v1.20.0

func (x *InlineResult) ProtoReflect() protoreflect.Message

func (*InlineResult) Reset added in v1.20.0

func (x *InlineResult) Reset()

func (*InlineResult) String added in v1.20.0

func (x *InlineResult) String() string

type ListCustomClassesRequest

type ListCustomClassesRequest struct {

	// Required. The project and location of CustomClass resources to list. The
	// expected format is `projects/{project}/locations/{location}`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Number of results per requests. A valid page_size ranges from 0 to 100
	// inclusive. If the page_size is zero or unspecified, a page size of 5 will
	// be chosen. If the page size exceeds 100, it will be coerced down to 100.
	// Note that a call might return fewer results than the requested page size.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous
	// [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to
	// [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] must
	// match the call that provided the page token.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Whether, or not, to show resources that have been deleted.
	ShowDeleted bool `protobuf:"varint,4,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ListCustomClassesRequest) Descriptor deprecated

func (*ListCustomClassesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListCustomClassesRequest.ProtoReflect.Descriptor instead.

func (*ListCustomClassesRequest) GetPageSize

func (x *ListCustomClassesRequest) GetPageSize() int32

func (*ListCustomClassesRequest) GetPageToken

func (x *ListCustomClassesRequest) GetPageToken() string

func (*ListCustomClassesRequest) GetParent

func (x *ListCustomClassesRequest) GetParent() string

func (*ListCustomClassesRequest) GetShowDeleted

func (x *ListCustomClassesRequest) GetShowDeleted() bool

func (*ListCustomClassesRequest) ProtoMessage

func (*ListCustomClassesRequest) ProtoMessage()

func (*ListCustomClassesRequest) ProtoReflect

func (x *ListCustomClassesRequest) ProtoReflect() protoreflect.Message

func (*ListCustomClassesRequest) Reset

func (x *ListCustomClassesRequest) Reset()

func (*ListCustomClassesRequest) String

func (x *ListCustomClassesRequest) String() string

type ListCustomClassesResponse

type ListCustomClassesResponse struct {

	// The list of requested CustomClasses.
	CustomClasses []*CustomClass `protobuf:"bytes,1,rep,name=custom_classes,json=customClasses,proto3" json:"custom_classes,omitempty"`
	// A token, which can be sent as
	// [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
	// retrieve the next page. If this field is omitted, there are no subsequent
	// pages. This token expires after 72 hours.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response message for the [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.

func (*ListCustomClassesResponse) Descriptor deprecated

func (*ListCustomClassesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListCustomClassesResponse.ProtoReflect.Descriptor instead.

func (*ListCustomClassesResponse) GetCustomClasses

func (x *ListCustomClassesResponse) GetCustomClasses() []*CustomClass

func (*ListCustomClassesResponse) GetNextPageToken

func (x *ListCustomClassesResponse) GetNextPageToken() string

func (*ListCustomClassesResponse) ProtoMessage

func (*ListCustomClassesResponse) ProtoMessage()

func (*ListCustomClassesResponse) ProtoReflect

func (*ListCustomClassesResponse) Reset

func (x *ListCustomClassesResponse) Reset()

func (*ListCustomClassesResponse) String

func (x *ListCustomClassesResponse) String() string

type ListPhraseSetsRequest

type ListPhraseSetsRequest struct {

	// Required. The project and location of PhraseSet resources to list. The
	// expected format is `projects/{project}/locations/{location}`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of PhraseSets to return. The service may return fewer
	// than this value. If unspecified, at most 5 PhraseSets will be returned.
	// The maximum value is 100; values above 100 will be coerced to 100.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous
	// [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to
	// [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] must match
	// the call that provided the page token.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Whether, or not, to show resources that have been deleted.
	ShowDeleted bool `protobuf:"varint,4,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ListPhraseSetsRequest) Descriptor deprecated

func (*ListPhraseSetsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListPhraseSetsRequest.ProtoReflect.Descriptor instead.

func (*ListPhraseSetsRequest) GetPageSize

func (x *ListPhraseSetsRequest) GetPageSize() int32

func (*ListPhraseSetsRequest) GetPageToken

func (x *ListPhraseSetsRequest) GetPageToken() string

func (*ListPhraseSetsRequest) GetParent

func (x *ListPhraseSetsRequest) GetParent() string

func (*ListPhraseSetsRequest) GetShowDeleted

func (x *ListPhraseSetsRequest) GetShowDeleted() bool

func (*ListPhraseSetsRequest) ProtoMessage

func (*ListPhraseSetsRequest) ProtoMessage()

func (*ListPhraseSetsRequest) ProtoReflect

func (x *ListPhraseSetsRequest) ProtoReflect() protoreflect.Message

func (*ListPhraseSetsRequest) Reset

func (x *ListPhraseSetsRequest) Reset()

func (*ListPhraseSetsRequest) String

func (x *ListPhraseSetsRequest) String() string

type ListPhraseSetsResponse

type ListPhraseSetsResponse struct {

	// The list of requested PhraseSets.
	PhraseSets []*PhraseSet `protobuf:"bytes,1,rep,name=phrase_sets,json=phraseSets,proto3" json:"phrase_sets,omitempty"`
	// A token, which can be sent as
	// [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
	// retrieve the next page. If this field is omitted, there are no subsequent
	// pages. This token expires after 72 hours.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response message for the [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.

func (*ListPhraseSetsResponse) Descriptor deprecated

func (*ListPhraseSetsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListPhraseSetsResponse.ProtoReflect.Descriptor instead.

func (*ListPhraseSetsResponse) GetNextPageToken

func (x *ListPhraseSetsResponse) GetNextPageToken() string

func (*ListPhraseSetsResponse) GetPhraseSets

func (x *ListPhraseSetsResponse) GetPhraseSets() []*PhraseSet

func (*ListPhraseSetsResponse) ProtoMessage

func (*ListPhraseSetsResponse) ProtoMessage()

func (*ListPhraseSetsResponse) ProtoReflect

func (x *ListPhraseSetsResponse) ProtoReflect() protoreflect.Message

func (*ListPhraseSetsResponse) Reset

func (x *ListPhraseSetsResponse) Reset()

func (*ListPhraseSetsResponse) String

func (x *ListPhraseSetsResponse) String() string

type ListRecognizersRequest

type ListRecognizersRequest struct {

	// Required. The project and location of Recognizers to list. The expected
	// format is `projects/{project}/locations/{location}`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of Recognizers to return. The service may return fewer
	// than this value. If unspecified, at most 5 Recognizers will be returned.
	// The maximum value is 100; values above 100 will be coerced to 100.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous
	// [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to
	// [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] must match
	// the call that provided the page token.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Whether, or not, to show resources that have been deleted.
	ShowDeleted bool `protobuf:"varint,4,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ListRecognizersRequest) Descriptor deprecated

func (*ListRecognizersRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListRecognizersRequest.ProtoReflect.Descriptor instead.

func (*ListRecognizersRequest) GetPageSize

func (x *ListRecognizersRequest) GetPageSize() int32

func (*ListRecognizersRequest) GetPageToken

func (x *ListRecognizersRequest) GetPageToken() string

func (*ListRecognizersRequest) GetParent

func (x *ListRecognizersRequest) GetParent() string

func (*ListRecognizersRequest) GetShowDeleted

func (x *ListRecognizersRequest) GetShowDeleted() bool

func (*ListRecognizersRequest) ProtoMessage

func (*ListRecognizersRequest) ProtoMessage()

func (*ListRecognizersRequest) ProtoReflect

func (x *ListRecognizersRequest) ProtoReflect() protoreflect.Message

func (*ListRecognizersRequest) Reset

func (x *ListRecognizersRequest) Reset()

func (*ListRecognizersRequest) String

func (x *ListRecognizersRequest) String() string

type ListRecognizersResponse

type ListRecognizersResponse struct {

	// The list of requested Recognizers.
	Recognizers []*Recognizer `protobuf:"bytes,1,rep,name=recognizers,proto3" json:"recognizers,omitempty"`
	// A token, which can be sent as
	// [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
	// retrieve the next page. If this field is omitted, there are no subsequent
	// pages. This token expires after 72 hours.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response message for the [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.

func (*ListRecognizersResponse) Descriptor deprecated

func (*ListRecognizersResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListRecognizersResponse.ProtoReflect.Descriptor instead.

func (*ListRecognizersResponse) GetNextPageToken

func (x *ListRecognizersResponse) GetNextPageToken() string

func (*ListRecognizersResponse) GetRecognizers

func (x *ListRecognizersResponse) GetRecognizers() []*Recognizer

func (*ListRecognizersResponse) ProtoMessage

func (*ListRecognizersResponse) ProtoMessage()

func (*ListRecognizersResponse) ProtoReflect

func (x *ListRecognizersResponse) ProtoReflect() protoreflect.Message

func (*ListRecognizersResponse) Reset

func (x *ListRecognizersResponse) Reset()

func (*ListRecognizersResponse) String

func (x *ListRecognizersResponse) String() string

type OperationMetadata

type OperationMetadata struct {

	// The time the operation was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The time the operation was last updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// The resource path for the target of the operation.
	Resource string `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
	// The method that triggered the operation.
	Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"`
	// The [KMS key
	// name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
	// the content of the Operation is encrypted. The expected format is
	// `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
	KmsKeyName string `protobuf:"bytes,6,opt,name=kms_key_name,json=kmsKeyName,proto3" json:"kms_key_name,omitempty"`
	// The [KMS key version
	// name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
	// with which content of the Operation is encrypted. The expected format is
	// `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
	KmsKeyVersionName string `protobuf:"bytes,7,opt,name=kms_key_version_name,json=kmsKeyVersionName,proto3" json:"kms_key_version_name,omitempty"`
	// The request that spawned the Operation.
	//
	// Types that are assignable to Request:
	//	*OperationMetadata_BatchRecognizeRequest
	//	*OperationMetadata_CreateRecognizerRequest
	//	*OperationMetadata_UpdateRecognizerRequest
	//	*OperationMetadata_DeleteRecognizerRequest
	//	*OperationMetadata_UndeleteRecognizerRequest
	//	*OperationMetadata_CreateCustomClassRequest
	//	*OperationMetadata_UpdateCustomClassRequest
	//	*OperationMetadata_DeleteCustomClassRequest
	//	*OperationMetadata_UndeleteCustomClassRequest
	//	*OperationMetadata_CreatePhraseSetRequest
	//	*OperationMetadata_UpdatePhraseSetRequest
	//	*OperationMetadata_DeletePhraseSetRequest
	//	*OperationMetadata_UndeletePhraseSetRequest
	//	*OperationMetadata_UpdateConfigRequest
	Request isOperationMetadata_Request `protobuf_oneof:"request"`
	// The percent progress of the Operation. Values can range from 0-100. If the
	// value is 100, then the operation is finished.
	ProgressPercent int32 `protobuf:"varint,22,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"`
	// Specific metadata per RPC.
	//
	// Types that are assignable to Metadata:
	//	*OperationMetadata_BatchRecognizeMetadata
	Metadata isOperationMetadata_Metadata `protobuf_oneof:"metadata"`
	// contains filtered or unexported fields
}

Represents the metadata of a long-running operation.

func (*OperationMetadata) Descriptor deprecated

func (*OperationMetadata) Descriptor() ([]byte, []int)

Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.

func (*OperationMetadata) GetBatchRecognizeMetadata

func (x *OperationMetadata) GetBatchRecognizeMetadata() *BatchRecognizeMetadata

func (*OperationMetadata) GetBatchRecognizeRequest

func (x *OperationMetadata) GetBatchRecognizeRequest() *BatchRecognizeRequest

func (*OperationMetadata) GetCreateCustomClassRequest

func (x *OperationMetadata) GetCreateCustomClassRequest() *CreateCustomClassRequest

func (*OperationMetadata) GetCreatePhraseSetRequest

func (x *OperationMetadata) GetCreatePhraseSetRequest() *CreatePhraseSetRequest

func (*OperationMetadata) GetCreateRecognizerRequest

func (x *OperationMetadata) GetCreateRecognizerRequest() *CreateRecognizerRequest

func (*OperationMetadata) GetCreateTime

func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp

func (*OperationMetadata) GetDeleteCustomClassRequest

func (x *OperationMetadata) GetDeleteCustomClassRequest() *DeleteCustomClassRequest

func (*OperationMetadata) GetDeletePhraseSetRequest

func (x *OperationMetadata) GetDeletePhraseSetRequest() *DeletePhraseSetRequest

func (*OperationMetadata) GetDeleteRecognizerRequest

func (x *OperationMetadata) GetDeleteRecognizerRequest() *DeleteRecognizerRequest

func (*OperationMetadata) GetKmsKeyName

func (x *OperationMetadata) GetKmsKeyName() string

func (*OperationMetadata) GetKmsKeyVersionName

func (x *OperationMetadata) GetKmsKeyVersionName() string

func (*OperationMetadata) GetMetadata

func (m *OperationMetadata) GetMetadata() isOperationMetadata_Metadata

func (*OperationMetadata) GetMethod

func (x *OperationMetadata) GetMethod() string

func (*OperationMetadata) GetProgressPercent

func (x *OperationMetadata) GetProgressPercent() int32

func (*OperationMetadata) GetRequest

func (m *OperationMetadata) GetRequest() isOperationMetadata_Request

func (*OperationMetadata) GetResource

func (x *OperationMetadata) GetResource() string

func (*OperationMetadata) GetUndeleteCustomClassRequest

func (x *OperationMetadata) GetUndeleteCustomClassRequest() *UndeleteCustomClassRequest

func (*OperationMetadata) GetUndeletePhraseSetRequest

func (x *OperationMetadata) GetUndeletePhraseSetRequest() *UndeletePhraseSetRequest

func (*OperationMetadata) GetUndeleteRecognizerRequest

func (x *OperationMetadata) GetUndeleteRecognizerRequest() *UndeleteRecognizerRequest

func (*OperationMetadata) GetUpdateConfigRequest deprecated

func (x *OperationMetadata) GetUpdateConfigRequest() *UpdateConfigRequest

Deprecated: Marked as deprecated in google/cloud/speech/v2/cloud_speech.proto.

func (*OperationMetadata) GetUpdateCustomClassRequest

func (x *OperationMetadata) GetUpdateCustomClassRequest() *UpdateCustomClassRequest

func (*OperationMetadata) GetUpdatePhraseSetRequest

func (x *OperationMetadata) GetUpdatePhraseSetRequest() *UpdatePhraseSetRequest

func (*OperationMetadata) GetUpdateRecognizerRequest

func (x *OperationMetadata) GetUpdateRecognizerRequest() *UpdateRecognizerRequest

func (*OperationMetadata) GetUpdateTime

func (x *OperationMetadata) GetUpdateTime() *timestamppb.Timestamp

func (*OperationMetadata) ProtoMessage

func (*OperationMetadata) ProtoMessage()

func (*OperationMetadata) ProtoReflect

func (x *OperationMetadata) ProtoReflect() protoreflect.Message

func (*OperationMetadata) Reset

func (x *OperationMetadata) Reset()

func (*OperationMetadata) String

func (x *OperationMetadata) String() string

type OperationMetadata_BatchRecognizeMetadata

type OperationMetadata_BatchRecognizeMetadata struct {
	// Metadata specific to the BatchRecognize method.
	BatchRecognizeMetadata *BatchRecognizeMetadata `protobuf:"bytes,23,opt,name=batch_recognize_metadata,json=batchRecognizeMetadata,proto3,oneof"`
}

type OperationMetadata_BatchRecognizeRequest

type OperationMetadata_BatchRecognizeRequest struct {
	// The BatchRecognizeRequest that spawned the Operation.
	BatchRecognizeRequest *BatchRecognizeRequest `protobuf:"bytes,8,opt,name=batch_recognize_request,json=batchRecognizeRequest,proto3,oneof"`
}

type OperationMetadata_CreateCustomClassRequest

type OperationMetadata_CreateCustomClassRequest struct {
	// The CreateCustomClassRequest that spawned the Operation.
	CreateCustomClassRequest *CreateCustomClassRequest `protobuf:"bytes,13,opt,name=create_custom_class_request,json=createCustomClassRequest,proto3,oneof"`
}

type OperationMetadata_CreatePhraseSetRequest

type OperationMetadata_CreatePhraseSetRequest struct {
	// The CreatePhraseSetRequest that spawned the Operation.
	CreatePhraseSetRequest *CreatePhraseSetRequest `protobuf:"bytes,17,opt,name=create_phrase_set_request,json=createPhraseSetRequest,proto3,oneof"`
}

type OperationMetadata_CreateRecognizerRequest

type OperationMetadata_CreateRecognizerRequest struct {
	// The CreateRecognizerRequest that spawned the Operation.
	CreateRecognizerRequest *CreateRecognizerRequest `protobuf:"bytes,9,opt,name=create_recognizer_request,json=createRecognizerRequest,proto3,oneof"`
}

type OperationMetadata_DeleteCustomClassRequest

type OperationMetadata_DeleteCustomClassRequest struct {
	// The DeleteCustomClassRequest that spawned the Operation.
	DeleteCustomClassRequest *DeleteCustomClassRequest `protobuf:"bytes,15,opt,name=delete_custom_class_request,json=deleteCustomClassRequest,proto3,oneof"`
}

type OperationMetadata_DeletePhraseSetRequest

type OperationMetadata_DeletePhraseSetRequest struct {
	// The DeletePhraseSetRequest that spawned the Operation.
	DeletePhraseSetRequest *DeletePhraseSetRequest `protobuf:"bytes,19,opt,name=delete_phrase_set_request,json=deletePhraseSetRequest,proto3,oneof"`
}

type OperationMetadata_DeleteRecognizerRequest

type OperationMetadata_DeleteRecognizerRequest struct {
	// The DeleteRecognizerRequest that spawned the Operation.
	DeleteRecognizerRequest *DeleteRecognizerRequest `protobuf:"bytes,11,opt,name=delete_recognizer_request,json=deleteRecognizerRequest,proto3,oneof"`
}

type OperationMetadata_UndeleteCustomClassRequest

type OperationMetadata_UndeleteCustomClassRequest struct {
	// The UndeleteCustomClassRequest that spawned the Operation.
	UndeleteCustomClassRequest *UndeleteCustomClassRequest `protobuf:"bytes,16,opt,name=undelete_custom_class_request,json=undeleteCustomClassRequest,proto3,oneof"`
}

type OperationMetadata_UndeletePhraseSetRequest

type OperationMetadata_UndeletePhraseSetRequest struct {
	// The UndeletePhraseSetRequest that spawned the Operation.
	UndeletePhraseSetRequest *UndeletePhraseSetRequest `protobuf:"bytes,20,opt,name=undelete_phrase_set_request,json=undeletePhraseSetRequest,proto3,oneof"`
}

type OperationMetadata_UndeleteRecognizerRequest

type OperationMetadata_UndeleteRecognizerRequest struct {
	// The UndeleteRecognizerRequest that spawned the Operation.
	UndeleteRecognizerRequest *UndeleteRecognizerRequest `protobuf:"bytes,12,opt,name=undelete_recognizer_request,json=undeleteRecognizerRequest,proto3,oneof"`
}

type OperationMetadata_UpdateConfigRequest

type OperationMetadata_UpdateConfigRequest struct {
	// The UpdateConfigRequest that spawned the Operation.
	//
	// Deprecated: Marked as deprecated in google/cloud/speech/v2/cloud_speech.proto.
	UpdateConfigRequest *UpdateConfigRequest `protobuf:"bytes,21,opt,name=update_config_request,json=updateConfigRequest,proto3,oneof"`
}

type OperationMetadata_UpdateCustomClassRequest

type OperationMetadata_UpdateCustomClassRequest struct {
	// The UpdateCustomClassRequest that spawned the Operation.
	UpdateCustomClassRequest *UpdateCustomClassRequest `protobuf:"bytes,14,opt,name=update_custom_class_request,json=updateCustomClassRequest,proto3,oneof"`
}

type OperationMetadata_UpdatePhraseSetRequest

type OperationMetadata_UpdatePhraseSetRequest struct {
	// The UpdatePhraseSetRequest that spawned the Operation.
	UpdatePhraseSetRequest *UpdatePhraseSetRequest `protobuf:"bytes,18,opt,name=update_phrase_set_request,json=updatePhraseSetRequest,proto3,oneof"`
}

type OperationMetadata_UpdateRecognizerRequest

type OperationMetadata_UpdateRecognizerRequest struct {
	// The UpdateRecognizerRequest that spawned the Operation.
	UpdateRecognizerRequest *UpdateRecognizerRequest `protobuf:"bytes,10,opt,name=update_recognizer_request,json=updateRecognizerRequest,proto3,oneof"`
}

type PhraseSet

type PhraseSet struct {

	// Output only. The resource name of the PhraseSet.
	// Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. System-assigned unique identifier for the PhraseSet.
	Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// A list of word and phrases.
	Phrases []*PhraseSet_Phrase `protobuf:"bytes,3,rep,name=phrases,proto3" json:"phrases,omitempty"`
	// Hint Boost. Positive value will increase the probability that a specific
	// phrase will be recognized over other similar sounding phrases. The higher
	// the boost, the higher the chance of false positive recognition as well.
	// Valid `boost` values are between 0 (exclusive) and 20. We recommend using a
	// binary search approach to finding the optimal value for your use case as
	// well as adding phrases both with and without boost to your requests.
	Boost float32 `protobuf:"fixed32,4,opt,name=boost,proto3" json:"boost,omitempty"`
	// User-settable, human-readable name for the PhraseSet. Must be 63
	// characters or less.
	DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Output only. The PhraseSet lifecycle state.
	State PhraseSet_State `protobuf:"varint,15,opt,name=state,proto3,enum=google.cloud.speech.v2.PhraseSet_State" json:"state,omitempty"`
	// Output only. Creation time.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The most recent time this resource was modified.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Output only. The time at which this resource was requested for deletion.
	DeleteTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
	// Output only. The time at which this resource will be purged.
	ExpireTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
	// Allows users to store small amounts of arbitrary data.
	// Both the key and the value must be 63 characters or less each.
	// At most 100 annotations.
	Annotations map[string]string `` /* 164-byte string literal not displayed */
	// Output only. This checksum is computed by the server based on the value of
	// other fields. This may be sent on update, undelete, and delete requests to
	// ensure the client has an up-to-date value before proceeding.
	Etag string `protobuf:"bytes,11,opt,name=etag,proto3" json:"etag,omitempty"`
	// Output only. Whether or not this PhraseSet is in the process of being
	// updated.
	Reconciling bool `protobuf:"varint,12,opt,name=reconciling,proto3" json:"reconciling,omitempty"`
	// Output only. The [KMS key
	// name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
	// the PhraseSet is encrypted. The expected format is
	// `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
	KmsKeyName string `protobuf:"bytes,13,opt,name=kms_key_name,json=kmsKeyName,proto3" json:"kms_key_name,omitempty"`
	// Output only. The [KMS key version
	// name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
	// with which the PhraseSet is encrypted. The expected format is
	// `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
	KmsKeyVersionName string `protobuf:"bytes,14,opt,name=kms_key_version_name,json=kmsKeyVersionName,proto3" json:"kms_key_version_name,omitempty"`
	// contains filtered or unexported fields
}

PhraseSet for biasing in speech recognition. A PhraseSet is used to provide "hints" to the speech recognizer to favor specific words and phrases in the results.

func (*PhraseSet) Descriptor deprecated

func (*PhraseSet) Descriptor() ([]byte, []int)

Deprecated: Use PhraseSet.ProtoReflect.Descriptor instead.

func (*PhraseSet) GetAnnotations

func (x *PhraseSet) GetAnnotations() map[string]string

func (*PhraseSet) GetBoost

func (x *PhraseSet) GetBoost() float32

func (*PhraseSet) GetCreateTime

func (x *PhraseSet) GetCreateTime() *timestamppb.Timestamp

func (*PhraseSet) GetDeleteTime

func (x *PhraseSet) GetDeleteTime() *timestamppb.Timestamp

func (*PhraseSet) GetDisplayName

func (x *PhraseSet) GetDisplayName() string

func (*PhraseSet) GetEtag

func (x *PhraseSet) GetEtag() string

func (*PhraseSet) GetExpireTime

func (x *PhraseSet) GetExpireTime() *timestamppb.Timestamp

func (*PhraseSet) GetKmsKeyName

func (x *PhraseSet) GetKmsKeyName() string

func (*PhraseSet) GetKmsKeyVersionName

func (x *PhraseSet) GetKmsKeyVersionName() string

func (*PhraseSet) GetName

func (x *PhraseSet) GetName() string

func (*PhraseSet) GetPhrases

func (x *PhraseSet) GetPhrases() []*PhraseSet_Phrase

func (*PhraseSet) GetReconciling

func (x *PhraseSet) GetReconciling() bool

func (*PhraseSet) GetState

func (x *PhraseSet) GetState() PhraseSet_State

func (*PhraseSet) GetUid

func (x *PhraseSet) GetUid() string

func (*PhraseSet) GetUpdateTime

func (x *PhraseSet) GetUpdateTime() *timestamppb.Timestamp

func (*PhraseSet) ProtoMessage

func (*PhraseSet) ProtoMessage()

func (*PhraseSet) ProtoReflect

func (x *PhraseSet) ProtoReflect() protoreflect.Message

func (*PhraseSet) Reset

func (x *PhraseSet) Reset()

func (*PhraseSet) String

func (x *PhraseSet) String() string

type PhraseSet_Phrase

type PhraseSet_Phrase struct {

	// The phrase itself.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// Hint Boost. Overrides the boost set at the phrase set level.
	// Positive value will increase the probability that a specific phrase will
	// be recognized over other similar sounding phrases. The higher the boost,
	// the higher the chance of false positive recognition as well. Negative
	// boost values would correspond to anti-biasing. Anti-biasing is not
	// enabled, so negative boost values will return an error. Boost values must
	// be between 0 and 20. Any values outside that range will return an error.
	// We recommend using a binary search approach to finding the optimal value
	// for your use case as well as adding phrases both with and without boost
	// to your requests.
	Boost float32 `protobuf:"fixed32,2,opt,name=boost,proto3" json:"boost,omitempty"`
	// contains filtered or unexported fields
}

A Phrase contains words and phrase "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer.

List items can also include CustomClass references containing groups of words that represent common concepts that occur in natural language.

func (*PhraseSet_Phrase) Descriptor deprecated

func (*PhraseSet_Phrase) Descriptor() ([]byte, []int)

Deprecated: Use PhraseSet_Phrase.ProtoReflect.Descriptor instead.

func (*PhraseSet_Phrase) GetBoost

func (x *PhraseSet_Phrase) GetBoost() float32

func (*PhraseSet_Phrase) GetValue

func (x *PhraseSet_Phrase) GetValue() string

func (*PhraseSet_Phrase) ProtoMessage

func (*PhraseSet_Phrase) ProtoMessage()

func (*PhraseSet_Phrase) ProtoReflect

func (x *PhraseSet_Phrase) ProtoReflect() protoreflect.Message

func (*PhraseSet_Phrase) Reset

func (x *PhraseSet_Phrase) Reset()

func (*PhraseSet_Phrase) String

func (x *PhraseSet_Phrase) String() string

type PhraseSet_State

type PhraseSet_State int32

Set of states that define the lifecycle of a PhraseSet.

const (
	// Unspecified state.  This is only used/useful for distinguishing
	// unset values.
	PhraseSet_STATE_UNSPECIFIED PhraseSet_State = 0
	// The normal and active state.
	PhraseSet_ACTIVE PhraseSet_State = 2
	// This PhraseSet has been deleted.
	PhraseSet_DELETED PhraseSet_State = 4
)

func (PhraseSet_State) Descriptor

func (PhraseSet_State) Enum

func (x PhraseSet_State) Enum() *PhraseSet_State

func (PhraseSet_State) EnumDescriptor deprecated

func (PhraseSet_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use PhraseSet_State.Descriptor instead.

func (PhraseSet_State) Number

func (PhraseSet_State) String

func (x PhraseSet_State) String() string

func (PhraseSet_State) Type

type RecognitionConfig

type RecognitionConfig struct {

	// Decoding parameters for audio being sent for recognition.
	//
	// Types that are assignable to DecodingConfig:
	//	*RecognitionConfig_AutoDecodingConfig
	//	*RecognitionConfig_ExplicitDecodingConfig
	DecodingConfig isRecognitionConfig_DecodingConfig `protobuf_oneof:"decoding_config"`
	// Optional. Which model to use for recognition requests. Select the model
	// best suited to your domain to get best results.
	//
	// Guidance for choosing which model to use can be found in the [Transcription
	// Models
	// Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model)
	// and the models supported in each region can be found in the [Table Of
	// Supported
	// Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
	Model string `protobuf:"bytes,9,opt,name=model,proto3" json:"model,omitempty"`
	// Optional. The language of the supplied audio as a
	// [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
	// Language tags are normalized to BCP-47 before they are used eg "en-us"
	// becomes "en-US".
	//
	// Supported languages for each model are listed in the [Table of Supported
	// Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
	//
	// If additional languages are provided, recognition result will contain
	// recognition in the most likely language detected. The recognition result
	// will include the language tag of the language detected in the audio.
	LanguageCodes []string `protobuf:"bytes,10,rep,name=language_codes,json=languageCodes,proto3" json:"language_codes,omitempty"`
	// Speech recognition features to enable.
	Features *RecognitionFeatures `protobuf:"bytes,2,opt,name=features,proto3" json:"features,omitempty"`
	// Speech adaptation context that weights recognizer predictions for specific
	// words and phrases.
	Adaptation *SpeechAdaptation `protobuf:"bytes,6,opt,name=adaptation,proto3" json:"adaptation,omitempty"`
	// Optional. Use transcription normalization to automatically replace parts of
	// the transcript with phrases of your choosing. For StreamingRecognize, this
	// normalization only applies to stable partial transcripts (stability > 0.8)
	// and final transcripts.
	TranscriptNormalization *TranscriptNormalization `` /* 131-byte string literal not displayed */
	// contains filtered or unexported fields
}

Provides information to the Recognizer that specifies how to process the recognition request.

func (*RecognitionConfig) Descriptor deprecated

func (*RecognitionConfig) Descriptor() ([]byte, []int)

Deprecated: Use RecognitionConfig.ProtoReflect.Descriptor instead.

func (*RecognitionConfig) GetAdaptation

func (x *RecognitionConfig) GetAdaptation() *SpeechAdaptation

func (*RecognitionConfig) GetAutoDecodingConfig

func (x *RecognitionConfig) GetAutoDecodingConfig() *AutoDetectDecodingConfig

func (*RecognitionConfig) GetDecodingConfig

func (m *RecognitionConfig) GetDecodingConfig() isRecognitionConfig_DecodingConfig

func (*RecognitionConfig) GetExplicitDecodingConfig

func (x *RecognitionConfig) GetExplicitDecodingConfig() *ExplicitDecodingConfig

func (*RecognitionConfig) GetFeatures

func (x *RecognitionConfig) GetFeatures() *RecognitionFeatures

func (*RecognitionConfig) GetLanguageCodes added in v1.18.0

func (x *RecognitionConfig) GetLanguageCodes() []string

func (*RecognitionConfig) GetModel added in v1.18.0

func (x *RecognitionConfig) GetModel() string

func (*RecognitionConfig) GetTranscriptNormalization added in v1.20.0

func (x *RecognitionConfig) GetTranscriptNormalization() *TranscriptNormalization

func (*RecognitionConfig) ProtoMessage

func (*RecognitionConfig) ProtoMessage()

func (*RecognitionConfig) ProtoReflect

func (x *RecognitionConfig) ProtoReflect() protoreflect.Message

func (*RecognitionConfig) Reset

func (x *RecognitionConfig) Reset()

func (*RecognitionConfig) String

func (x *RecognitionConfig) String() string

type RecognitionConfig_AutoDecodingConfig

type RecognitionConfig_AutoDecodingConfig struct {
	// Automatically detect decoding parameters.
	// Preferred for supported formats.
	AutoDecodingConfig *AutoDetectDecodingConfig `protobuf:"bytes,7,opt,name=auto_decoding_config,json=autoDecodingConfig,proto3,oneof"`
}

type RecognitionConfig_ExplicitDecodingConfig

type RecognitionConfig_ExplicitDecodingConfig struct {
	// Explicitly specified decoding parameters.
	// Required if using headerless PCM audio (linear16, mulaw, alaw).
	ExplicitDecodingConfig *ExplicitDecodingConfig `protobuf:"bytes,8,opt,name=explicit_decoding_config,json=explicitDecodingConfig,proto3,oneof"`
}

type RecognitionFeatures

type RecognitionFeatures struct {

	// If set to `true`, the server will attempt to filter out profanities,
	// replacing all but the initial character in each filtered word with
	// asterisks, for instance, "f***". If set to `false` or omitted, profanities
	// won't be filtered out.
	ProfanityFilter bool `protobuf:"varint,1,opt,name=profanity_filter,json=profanityFilter,proto3" json:"profanity_filter,omitempty"`
	// If `true`, the top result includes a list of words and the start and end
	// time offsets (timestamps) for those words. If `false`, no word-level time
	// offset information is returned. The default is `false`.
	EnableWordTimeOffsets bool `` /* 129-byte string literal not displayed */
	// If `true`, the top result includes a list of words and the confidence for
	// those words. If `false`, no word-level confidence information is returned.
	// The default is `false`.
	EnableWordConfidence bool `protobuf:"varint,3,opt,name=enable_word_confidence,json=enableWordConfidence,proto3" json:"enable_word_confidence,omitempty"`
	// If `true`, adds punctuation to recognition result hypotheses. This feature
	// is only available in select languages. The default `false` value does not
	// add punctuation to result hypotheses.
	EnableAutomaticPunctuation bool `` /* 142-byte string literal not displayed */
	// The spoken punctuation behavior for the call. If `true`, replaces spoken
	// punctuation with the corresponding symbols in the request. For example,
	// "how are you question mark" becomes "how are you?". See
	// https://cloud.google.com/speech-to-text/docs/spoken-punctuation for
	// support. If `false`, spoken punctuation is not replaced.
	EnableSpokenPunctuation bool `` /* 134-byte string literal not displayed */
	// The spoken emoji behavior for the call. If `true`, adds spoken emoji
	// formatting for the request. This will replace spoken emojis with the
	// corresponding Unicode symbols in the final transcript. If `false`, spoken
	// emojis are not replaced.
	EnableSpokenEmojis bool `protobuf:"varint,15,opt,name=enable_spoken_emojis,json=enableSpokenEmojis,proto3" json:"enable_spoken_emojis,omitempty"`
	// Mode for recognizing multi-channel audio.
	MultiChannelMode RecognitionFeatures_MultiChannelMode `` /* 178-byte string literal not displayed */
	// Configuration to enable speaker diarization and set additional
	// parameters to make diarization better suited for your application.
	// When this is enabled, we send all the words from the beginning of the
	// audio for the top alternative in every consecutive STREAMING responses.
	// This is done in order to improve our speaker tags as our models learn to
	// identify the speakers in the conversation over time.
	// For non-streaming requests, the diarization results will be provided only
	// in the top alternative of the FINAL SpeechRecognitionResult.
	DiarizationConfig *SpeakerDiarizationConfig `protobuf:"bytes,9,opt,name=diarization_config,json=diarizationConfig,proto3" json:"diarization_config,omitempty"`
	// Maximum number of recognition hypotheses to be returned.
	// The server may return fewer than `max_alternatives`.
	// Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of
	// one. If omitted, will return a maximum of one.
	MaxAlternatives int32 `protobuf:"varint,16,opt,name=max_alternatives,json=maxAlternatives,proto3" json:"max_alternatives,omitempty"`
	// contains filtered or unexported fields
}

Available recognition features.

func (*RecognitionFeatures) Descriptor deprecated

func (*RecognitionFeatures) Descriptor() ([]byte, []int)

Deprecated: Use RecognitionFeatures.ProtoReflect.Descriptor instead.

func (*RecognitionFeatures) GetDiarizationConfig

func (x *RecognitionFeatures) GetDiarizationConfig() *SpeakerDiarizationConfig

func (*RecognitionFeatures) GetEnableAutomaticPunctuation

func (x *RecognitionFeatures) GetEnableAutomaticPunctuation() bool

func (*RecognitionFeatures) GetEnableSpokenEmojis

func (x *RecognitionFeatures) GetEnableSpokenEmojis() bool

func (*RecognitionFeatures) GetEnableSpokenPunctuation

func (x *RecognitionFeatures) GetEnableSpokenPunctuation() bool

func (*RecognitionFeatures) GetEnableWordConfidence

func (x *RecognitionFeatures) GetEnableWordConfidence() bool

func (*RecognitionFeatures) GetEnableWordTimeOffsets

func (x *RecognitionFeatures) GetEnableWordTimeOffsets() bool

func (*RecognitionFeatures) GetMaxAlternatives

func (x *RecognitionFeatures) GetMaxAlternatives() int32

func (*RecognitionFeatures) GetMultiChannelMode

func (*RecognitionFeatures) GetProfanityFilter

func (x *RecognitionFeatures) GetProfanityFilter() bool

func (*RecognitionFeatures) ProtoMessage

func (*RecognitionFeatures) ProtoMessage()

func (*RecognitionFeatures) ProtoReflect

func (x *RecognitionFeatures) ProtoReflect() protoreflect.Message

func (*RecognitionFeatures) Reset

func (x *RecognitionFeatures) Reset()

func (*RecognitionFeatures) String

func (x *RecognitionFeatures) String() string

type RecognitionFeatures_MultiChannelMode

type RecognitionFeatures_MultiChannelMode int32

Options for how to recognize multi-channel audio.

const (
	// Default value for the multi-channel mode. If the audio contains
	// multiple channels, only the first channel will be transcribed; other
	// channels will be ignored.
	RecognitionFeatures_MULTI_CHANNEL_MODE_UNSPECIFIED RecognitionFeatures_MultiChannelMode = 0
	// If selected, each channel in the provided audio is transcribed
	// independently. This cannot be selected if the selected
	// [model][google.cloud.speech.v2.Recognizer.model] is `latest_short`.
	RecognitionFeatures_SEPARATE_RECOGNITION_PER_CHANNEL RecognitionFeatures_MultiChannelMode = 1
)

func (RecognitionFeatures_MultiChannelMode) Descriptor

func (RecognitionFeatures_MultiChannelMode) Enum

func (RecognitionFeatures_MultiChannelMode) EnumDescriptor deprecated

func (RecognitionFeatures_MultiChannelMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use RecognitionFeatures_MultiChannelMode.Descriptor instead.

func (RecognitionFeatures_MultiChannelMode) Number

func (RecognitionFeatures_MultiChannelMode) String

func (RecognitionFeatures_MultiChannelMode) Type

type RecognitionOutputConfig added in v1.15.0

type RecognitionOutputConfig struct {

	// Types that are assignable to Output:
	//	*RecognitionOutputConfig_GcsOutputConfig
	//	*RecognitionOutputConfig_InlineResponseConfig
	Output isRecognitionOutputConfig_Output `protobuf_oneof:"output"`
	// contains filtered or unexported fields
}

Configuration options for the output(s) of recognition.

func (*RecognitionOutputConfig) Descriptor deprecated added in v1.15.0

func (*RecognitionOutputConfig) Descriptor() ([]byte, []int)

Deprecated: Use RecognitionOutputConfig.ProtoReflect.Descriptor instead.

func (*RecognitionOutputConfig) GetGcsOutputConfig added in v1.15.0

func (x *RecognitionOutputConfig) GetGcsOutputConfig() *GcsOutputConfig

func (*RecognitionOutputConfig) GetInlineResponseConfig added in v1.15.0

func (x *RecognitionOutputConfig) GetInlineResponseConfig() *InlineOutputConfig

func (*RecognitionOutputConfig) GetOutput added in v1.15.0

func (m *RecognitionOutputConfig) GetOutput() isRecognitionOutputConfig_Output

func (*RecognitionOutputConfig) ProtoMessage added in v1.15.0

func (*RecognitionOutputConfig) ProtoMessage()

func (*RecognitionOutputConfig) ProtoReflect added in v1.15.0

func (x *RecognitionOutputConfig) ProtoReflect() protoreflect.Message

func (*RecognitionOutputConfig) Reset added in v1.15.0

func (x *RecognitionOutputConfig) Reset()

func (*RecognitionOutputConfig) String added in v1.15.0

func (x *RecognitionOutputConfig) String() string

type RecognitionOutputConfig_GcsOutputConfig added in v1.15.0

type RecognitionOutputConfig_GcsOutputConfig struct {
	// If this message is populated, recognition results are written to the
	// provided Google Cloud Storage URI.
	GcsOutputConfig *GcsOutputConfig `protobuf:"bytes,1,opt,name=gcs_output_config,json=gcsOutputConfig,proto3,oneof"`
}

type RecognitionOutputConfig_InlineResponseConfig added in v1.15.0

type RecognitionOutputConfig_InlineResponseConfig struct {
	// If this message is populated, recognition results are provided in the
	// [BatchRecognizeResponse][google.cloud.speech.v2.BatchRecognizeResponse]
	// message of the Operation when completed. This is only supported when
	// calling [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize]
	// with just one audio file.
	InlineResponseConfig *InlineOutputConfig `protobuf:"bytes,2,opt,name=inline_response_config,json=inlineResponseConfig,proto3,oneof"`
}

type RecognitionResponseMetadata

type RecognitionResponseMetadata struct {

	// When available, billed audio seconds for the corresponding request.
	TotalBilledDuration *durationpb.Duration `protobuf:"bytes,6,opt,name=total_billed_duration,json=totalBilledDuration,proto3" json:"total_billed_duration,omitempty"`
	// contains filtered or unexported fields
}

Metadata about the recognition request and response.

func (*RecognitionResponseMetadata) Descriptor deprecated

func (*RecognitionResponseMetadata) Descriptor() ([]byte, []int)

Deprecated: Use RecognitionResponseMetadata.ProtoReflect.Descriptor instead.

func (*RecognitionResponseMetadata) GetTotalBilledDuration

func (x *RecognitionResponseMetadata) GetTotalBilledDuration() *durationpb.Duration

func (*RecognitionResponseMetadata) ProtoMessage

func (*RecognitionResponseMetadata) ProtoMessage()

func (*RecognitionResponseMetadata) ProtoReflect

func (*RecognitionResponseMetadata) Reset

func (x *RecognitionResponseMetadata) Reset()

func (*RecognitionResponseMetadata) String

func (x *RecognitionResponseMetadata) String() string

type RecognizeRequest

type RecognizeRequest struct {

	// 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.
	Recognizer string `protobuf:"bytes,3,opt,name=recognizer,proto3" json:"recognizer,omitempty"`
	// Features and audio metadata to use for the Automatic Speech Recognition.
	// This field in combination with the
	// [config_mask][google.cloud.speech.v2.RecognizeRequest.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.
	Config *RecognitionConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// The list of fields in
	// [config][google.cloud.speech.v2.RecognizeRequest.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 non-default valued fields in
	// [config][google.cloud.speech.v2.RecognizeRequest.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.RecognizeRequest.config] completely
	// overrides and replaces the config in the recognizer for this recognition
	// request.
	ConfigMask *fieldmaskpb.FieldMask `protobuf:"bytes,8,opt,name=config_mask,json=configMask,proto3" json:"config_mask,omitempty"`
	// The audio source, which is either inline content or a Google Cloud
	// Storage URI.
	//
	// Types that are assignable to AudioSource:
	//	*RecognizeRequest_Content
	//	*RecognizeRequest_Uri
	AudioSource isRecognizeRequest_AudioSource `protobuf_oneof:"audio_source"`
	// contains filtered or unexported fields
}

Request message for the [Recognize][google.cloud.speech.v2.Speech.Recognize] method. Either `content` or `uri` must be supplied. Supplying both or neither returns [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. See [content limits](https://cloud.google.com/speech-to-text/quotas#content).

func (*RecognizeRequest) Descriptor deprecated

func (*RecognizeRequest) Descriptor() ([]byte, []int)

Deprecated: Use RecognizeRequest.ProtoReflect.Descriptor instead.

func (*RecognizeRequest) GetAudioSource

func (m *RecognizeRequest) GetAudioSource() isRecognizeRequest_AudioSource

func (*RecognizeRequest) GetConfig

func (x *RecognizeRequest) GetConfig() *RecognitionConfig

func (*RecognizeRequest) GetConfigMask

func (x *RecognizeRequest) GetConfigMask() *fieldmaskpb.FieldMask

func (*RecognizeRequest) GetContent

func (x *RecognizeRequest) GetContent() []byte

func (*RecognizeRequest) GetRecognizer

func (x *RecognizeRequest) GetRecognizer() string

func (*RecognizeRequest) GetUri

func (x *RecognizeRequest) GetUri() string

func (*RecognizeRequest) ProtoMessage

func (*RecognizeRequest) ProtoMessage()

func (*RecognizeRequest) ProtoReflect

func (x *RecognizeRequest) ProtoReflect() protoreflect.Message

func (*RecognizeRequest) Reset

func (x *RecognizeRequest) Reset()

func (*RecognizeRequest) String

func (x *RecognizeRequest) String() string

type RecognizeRequest_Content

type RecognizeRequest_Content struct {
	// The audio data bytes encoded as specified in
	// [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
	// with all bytes fields, proto buffers use a pure binary representation,
	// whereas JSON representations use base64.
	Content []byte `protobuf:"bytes,5,opt,name=content,proto3,oneof"`
}

type RecognizeRequest_Uri

type RecognizeRequest_Uri struct {
	// URI that points to a file that contains audio data bytes as specified in
	// [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
	// must not be compressed (for example, gzip). Currently, only Google Cloud
	// Storage URIs are supported, which must be specified in the following
	// format: `gs://bucket_name/object_name` (other URI formats return
	// [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more
	// information, see [Request
	// URIs](https://cloud.google.com/storage/docs/reference-uris).
	Uri string `protobuf:"bytes,6,opt,name=uri,proto3,oneof"`
}

type RecognizeResponse

type RecognizeResponse struct {

	// Sequential list of transcription results corresponding to sequential
	// portions of audio.
	Results []*SpeechRecognitionResult `protobuf:"bytes,3,rep,name=results,proto3" json:"results,omitempty"`
	// Metadata about the recognition.
	Metadata *RecognitionResponseMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

Response message for the [Recognize][google.cloud.speech.v2.Speech.Recognize] method.

func (*RecognizeResponse) Descriptor deprecated

func (*RecognizeResponse) Descriptor() ([]byte, []int)

Deprecated: Use RecognizeResponse.ProtoReflect.Descriptor instead.

func (*RecognizeResponse) GetMetadata

func (*RecognizeResponse) GetResults

func (x *RecognizeResponse) GetResults() []*SpeechRecognitionResult

func (*RecognizeResponse) ProtoMessage

func (*RecognizeResponse) ProtoMessage()

func (*RecognizeResponse) ProtoReflect

func (x *RecognizeResponse) ProtoReflect() protoreflect.Message

func (*RecognizeResponse) Reset

func (x *RecognizeResponse) Reset()

func (*RecognizeResponse) String

func (x *RecognizeResponse) String() string

type Recognizer

type Recognizer struct {

	// Output only. The resource name of the Recognizer.
	// Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. System-assigned unique identifier for the Recognizer.
	Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// User-settable, human-readable name for the Recognizer. Must be 63
	// characters or less.
	DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Optional. This field is now deprecated. Prefer the
	// [`model`][google.cloud.speech.v2.RecognitionConfig.model] field in the
	// [`RecognitionConfig`][google.cloud.speech.v2.RecognitionConfig] message.
	//
	// Which model to use for recognition requests. Select the model best suited
	// to your domain to get best results.
	//
	// Guidance for choosing which model to use can be found in the [Transcription
	// Models
	// Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model)
	// and the models supported in each region can be found in the [Table Of
	// Supported
	// Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
	//
	// Deprecated: Marked as deprecated in google/cloud/speech/v2/cloud_speech.proto.
	Model string `protobuf:"bytes,4,opt,name=model,proto3" json:"model,omitempty"`
	// Optional. This field is now deprecated. Prefer the
	// [`language_codes`][google.cloud.speech.v2.RecognitionConfig.language_codes]
	// field in the
	// [`RecognitionConfig`][google.cloud.speech.v2.RecognitionConfig] message.
	//
	// The language of the supplied audio as a
	// [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
	//
	// Supported languages for each model are listed in the [Table of Supported
	// Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
	//
	// If additional languages are provided, recognition result will contain
	// recognition in the most likely language detected. The recognition result
	// will include the language tag of the language detected in the audio.
	// When you create or update a Recognizer, these values are
	// stored in normalized BCP-47 form. For example, "en-us" is stored as
	// "en-US".
	//
	// Deprecated: Marked as deprecated in google/cloud/speech/v2/cloud_speech.proto.
	LanguageCodes []string `protobuf:"bytes,17,rep,name=language_codes,json=languageCodes,proto3" json:"language_codes,omitempty"`
	// Default configuration to use for requests with this Recognizer.
	// This can be overwritten by inline configuration in the
	// [RecognizeRequest.config][google.cloud.speech.v2.RecognizeRequest.config]
	// field.
	DefaultRecognitionConfig *RecognitionConfig `` /* 135-byte string literal not displayed */
	// Allows users to store small amounts of arbitrary data.
	// Both the key and the value must be 63 characters or less each.
	// At most 100 annotations.
	Annotations map[string]string `` /* 163-byte string literal not displayed */
	// Output only. The Recognizer lifecycle state.
	State Recognizer_State `protobuf:"varint,8,opt,name=state,proto3,enum=google.cloud.speech.v2.Recognizer_State" json:"state,omitempty"`
	// Output only. Creation time.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The most recent time this Recognizer was modified.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Output only. The time at which this Recognizer was requested for deletion.
	DeleteTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
	// Output only. The time at which this Recognizer will be purged.
	ExpireTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
	// Output only. This checksum is computed by the server based on the value of
	// other fields. This may be sent on update, undelete, and delete requests to
	// ensure the client has an up-to-date value before proceeding.
	Etag string `protobuf:"bytes,12,opt,name=etag,proto3" json:"etag,omitempty"`
	// Output only. Whether or not this Recognizer is in the process of being
	// updated.
	Reconciling bool `protobuf:"varint,13,opt,name=reconciling,proto3" json:"reconciling,omitempty"`
	// Output only. The [KMS key
	// name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
	// the Recognizer is encrypted. The expected format is
	// `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
	KmsKeyName string `protobuf:"bytes,15,opt,name=kms_key_name,json=kmsKeyName,proto3" json:"kms_key_name,omitempty"`
	// Output only. The [KMS key version
	// name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
	// with which the Recognizer is encrypted. The expected format is
	// `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
	KmsKeyVersionName string `protobuf:"bytes,16,opt,name=kms_key_version_name,json=kmsKeyVersionName,proto3" json:"kms_key_version_name,omitempty"`
	// contains filtered or unexported fields
}

A Recognizer message. Stores recognition configuration and metadata.

func (*Recognizer) Descriptor deprecated

func (*Recognizer) Descriptor() ([]byte, []int)

Deprecated: Use Recognizer.ProtoReflect.Descriptor instead.

func (*Recognizer) GetAnnotations

func (x *Recognizer) GetAnnotations() map[string]string

func (*Recognizer) GetCreateTime

func (x *Recognizer) GetCreateTime() *timestamppb.Timestamp

func (*Recognizer) GetDefaultRecognitionConfig

func (x *Recognizer) GetDefaultRecognitionConfig() *RecognitionConfig

func (*Recognizer) GetDeleteTime

func (x *Recognizer) GetDeleteTime() *timestamppb.Timestamp

func (*Recognizer) GetDisplayName

func (x *Recognizer) GetDisplayName() string

func (*Recognizer) GetEtag

func (x *Recognizer) GetEtag() string

func (*Recognizer) GetExpireTime

func (x *Recognizer) GetExpireTime() *timestamppb.Timestamp

func (*Recognizer) GetKmsKeyName

func (x *Recognizer) GetKmsKeyName() string

func (*Recognizer) GetKmsKeyVersionName

func (x *Recognizer) GetKmsKeyVersionName() string

func (*Recognizer) GetLanguageCodes deprecated

func (x *Recognizer) GetLanguageCodes() []string

Deprecated: Marked as deprecated in google/cloud/speech/v2/cloud_speech.proto.

func (*Recognizer) GetModel deprecated

func (x *Recognizer) GetModel() string

Deprecated: Marked as deprecated in google/cloud/speech/v2/cloud_speech.proto.

func (*Recognizer) GetName

func (x *Recognizer) GetName() string

func (*Recognizer) GetReconciling

func (x *Recognizer) GetReconciling() bool

func (*Recognizer) GetState

func (x *Recognizer) GetState() Recognizer_State

func (*Recognizer) GetUid

func (x *Recognizer) GetUid() string

func (*Recognizer) GetUpdateTime

func (x *Recognizer) GetUpdateTime() *timestamppb.Timestamp

func (*Recognizer) ProtoMessage

func (*Recognizer) ProtoMessage()

func (*Recognizer) ProtoReflect

func (x *Recognizer) ProtoReflect() protoreflect.Message

func (*Recognizer) Reset

func (x *Recognizer) Reset()

func (*Recognizer) String

func (x *Recognizer) String() string

type Recognizer_State

type Recognizer_State int32

Set of states that define the lifecycle of a Recognizer.

const (
	// The default value. This value is used if the state is omitted.
	Recognizer_STATE_UNSPECIFIED Recognizer_State = 0
	// The Recognizer is active and ready for use.
	Recognizer_ACTIVE Recognizer_State = 2
	// This Recognizer has been deleted.
	Recognizer_DELETED Recognizer_State = 4
)

func (Recognizer_State) Descriptor

func (Recognizer_State) Enum

func (Recognizer_State) EnumDescriptor deprecated

func (Recognizer_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use Recognizer_State.Descriptor instead.

func (Recognizer_State) Number

func (Recognizer_State) String

func (x Recognizer_State) String() string

func (Recognizer_State) Type

type SpeakerDiarizationConfig

type SpeakerDiarizationConfig struct {

	// Required. Minimum number of speakers in the conversation. This range gives
	// you more flexibility by allowing the system to automatically determine the
	// correct number of speakers.
	//
	// To fix the number of speakers detected in the audio, set
	// `min_speaker_count` = `max_speaker_count`.
	MinSpeakerCount int32 `protobuf:"varint,2,opt,name=min_speaker_count,json=minSpeakerCount,proto3" json:"min_speaker_count,omitempty"`
	// Required. Maximum number of speakers in the conversation. Valid values are:
	// 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
	// by allowing the system to automatically determine the correct number of
	// speakers.
	MaxSpeakerCount int32 `protobuf:"varint,3,opt,name=max_speaker_count,json=maxSpeakerCount,proto3" json:"max_speaker_count,omitempty"`
	// contains filtered or unexported fields
}

Configuration to enable speaker diarization.

func (*SpeakerDiarizationConfig) Descriptor deprecated

func (*SpeakerDiarizationConfig) Descriptor() ([]byte, []int)

Deprecated: Use SpeakerDiarizationConfig.ProtoReflect.Descriptor instead.

func (*SpeakerDiarizationConfig) GetMaxSpeakerCount

func (x *SpeakerDiarizationConfig) GetMaxSpeakerCount() int32

func (*SpeakerDiarizationConfig) GetMinSpeakerCount

func (x *SpeakerDiarizationConfig) GetMinSpeakerCount() int32

func (*SpeakerDiarizationConfig) ProtoMessage

func (*SpeakerDiarizationConfig) ProtoMessage()

func (*SpeakerDiarizationConfig) ProtoReflect

func (x *SpeakerDiarizationConfig) ProtoReflect() protoreflect.Message

func (*SpeakerDiarizationConfig) Reset

func (x *SpeakerDiarizationConfig) Reset()

func (*SpeakerDiarizationConfig) String

func (x *SpeakerDiarizationConfig) String() string

type SpeechAdaptation

type SpeechAdaptation struct {

	// A list of inline or referenced PhraseSets.
	PhraseSets []*SpeechAdaptation_AdaptationPhraseSet `protobuf:"bytes,1,rep,name=phrase_sets,json=phraseSets,proto3" json:"phrase_sets,omitempty"`
	// A list of inline CustomClasses. Existing CustomClass resources can be
	// referenced directly in a PhraseSet.
	CustomClasses []*CustomClass `protobuf:"bytes,2,rep,name=custom_classes,json=customClasses,proto3" json:"custom_classes,omitempty"`
	// contains filtered or unexported fields
}

Provides "hints" to the speech recognizer to favor specific words and phrases in the results. PhraseSets can be specified as an inline resource, or a reference to an existing PhraseSet resource.

func (*SpeechAdaptation) Descriptor deprecated

func (*SpeechAdaptation) Descriptor() ([]byte, []int)

Deprecated: Use SpeechAdaptation.ProtoReflect.Descriptor instead.

func (*SpeechAdaptation) GetCustomClasses

func (x *SpeechAdaptation) GetCustomClasses() []*CustomClass

func (*SpeechAdaptation) GetPhraseSets

func (*SpeechAdaptation) ProtoMessage

func (*SpeechAdaptation) ProtoMessage()

func (*SpeechAdaptation) ProtoReflect

func (x *SpeechAdaptation) ProtoReflect() protoreflect.Message

func (*SpeechAdaptation) Reset

func (x *SpeechAdaptation) Reset()

func (*SpeechAdaptation) String

func (x *SpeechAdaptation) String() string

type SpeechAdaptation_AdaptationPhraseSet

type SpeechAdaptation_AdaptationPhraseSet struct {

	// Types that are assignable to Value:
	//	*SpeechAdaptation_AdaptationPhraseSet_PhraseSet
	//	*SpeechAdaptation_AdaptationPhraseSet_InlinePhraseSet
	Value isSpeechAdaptation_AdaptationPhraseSet_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

A biasing PhraseSet, which can be either a string referencing the name of an existing PhraseSets resource, or an inline definition of a PhraseSet.

func (*SpeechAdaptation_AdaptationPhraseSet) Descriptor deprecated

func (*SpeechAdaptation_AdaptationPhraseSet) Descriptor() ([]byte, []int)

Deprecated: Use SpeechAdaptation_AdaptationPhraseSet.ProtoReflect.Descriptor instead.

func (*SpeechAdaptation_AdaptationPhraseSet) GetInlinePhraseSet

func (x *SpeechAdaptation_AdaptationPhraseSet) GetInlinePhraseSet() *PhraseSet

func (*SpeechAdaptation_AdaptationPhraseSet) GetPhraseSet

func (x *SpeechAdaptation_AdaptationPhraseSet) GetPhraseSet() string

func (*SpeechAdaptation_AdaptationPhraseSet) GetValue

func (m *SpeechAdaptation_AdaptationPhraseSet) GetValue() isSpeechAdaptation_AdaptationPhraseSet_Value

func (*SpeechAdaptation_AdaptationPhraseSet) ProtoMessage

func (*SpeechAdaptation_AdaptationPhraseSet) ProtoMessage()

func (*SpeechAdaptation_AdaptationPhraseSet) ProtoReflect

func (*SpeechAdaptation_AdaptationPhraseSet) Reset

func (*SpeechAdaptation_AdaptationPhraseSet) String

type SpeechAdaptation_AdaptationPhraseSet_InlinePhraseSet

type SpeechAdaptation_AdaptationPhraseSet_InlinePhraseSet struct {
	// An inline defined PhraseSet.
	InlinePhraseSet *PhraseSet `protobuf:"bytes,2,opt,name=inline_phrase_set,json=inlinePhraseSet,proto3,oneof"`
}

type SpeechAdaptation_AdaptationPhraseSet_PhraseSet

type SpeechAdaptation_AdaptationPhraseSet_PhraseSet struct {
	// The name of an existing PhraseSet resource. The user must have read
	// access to the resource and it must not be deleted.
	PhraseSet string `protobuf:"bytes,1,opt,name=phrase_set,json=phraseSet,proto3,oneof"`
}

type SpeechClient

type SpeechClient interface {
	// Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
	CreateRecognizer(ctx context.Context, in *CreateRecognizerRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Lists Recognizers.
	ListRecognizers(ctx context.Context, in *ListRecognizersRequest, opts ...grpc.CallOption) (*ListRecognizersResponse, error)
	// Returns the requested
	// [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
	// [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested Recognizer doesn't
	// exist.
	GetRecognizer(ctx context.Context, in *GetRecognizerRequest, opts ...grpc.CallOption) (*Recognizer, error)
	// Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
	UpdateRecognizer(ctx context.Context, in *UpdateRecognizerRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
	DeleteRecognizer(ctx context.Context, in *DeleteRecognizerRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
	UndeleteRecognizer(ctx context.Context, in *UndeleteRecognizerRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Performs synchronous Speech recognition: receive results after all audio
	// has been sent and processed.
	Recognize(ctx context.Context, in *RecognizeRequest, opts ...grpc.CallOption) (*RecognizeResponse, error)
	// Performs bidirectional streaming speech recognition: receive results while
	// sending audio. This method is only available via the gRPC API (not REST).
	StreamingRecognize(ctx context.Context, opts ...grpc.CallOption) (Speech_StreamingRecognizeClient, error)
	// Performs batch asynchronous speech recognition: send a request with N
	// audio files and receive a long running operation that can be polled to see
	// when the transcriptions are finished.
	BatchRecognize(ctx context.Context, in *BatchRecognizeRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Returns the requested [Config][google.cloud.speech.v2.Config].
	GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*Config, error)
	// Updates the [Config][google.cloud.speech.v2.Config].
	UpdateConfig(ctx context.Context, in *UpdateConfigRequest, opts ...grpc.CallOption) (*Config, error)
	// Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
	CreateCustomClass(ctx context.Context, in *CreateCustomClassRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Lists CustomClasses.
	ListCustomClasses(ctx context.Context, in *ListCustomClassesRequest, opts ...grpc.CallOption) (*ListCustomClassesResponse, error)
	// Returns the requested
	// [CustomClass][google.cloud.speech.v2.CustomClass].
	GetCustomClass(ctx context.Context, in *GetCustomClassRequest, opts ...grpc.CallOption) (*CustomClass, error)
	// Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
	UpdateCustomClass(ctx context.Context, in *UpdateCustomClassRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
	DeleteCustomClass(ctx context.Context, in *DeleteCustomClassRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
	UndeleteCustomClass(ctx context.Context, in *UndeleteCustomClassRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
	CreatePhraseSet(ctx context.Context, in *CreatePhraseSetRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Lists PhraseSets.
	ListPhraseSets(ctx context.Context, in *ListPhraseSetsRequest, opts ...grpc.CallOption) (*ListPhraseSetsResponse, error)
	// Returns the requested
	// [PhraseSet][google.cloud.speech.v2.PhraseSet].
	GetPhraseSet(ctx context.Context, in *GetPhraseSetRequest, opts ...grpc.CallOption) (*PhraseSet, error)
	// Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
	UpdatePhraseSet(ctx context.Context, in *UpdatePhraseSetRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
	DeletePhraseSet(ctx context.Context, in *DeletePhraseSetRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
	UndeletePhraseSet(ctx context.Context, in *UndeletePhraseSetRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}

SpeechClient is the client API for Speech service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSpeechClient

func NewSpeechClient(cc grpc.ClientConnInterface) SpeechClient

type SpeechRecognitionAlternative

type SpeechRecognitionAlternative struct {

	// Transcript text representing the words that the user spoke.
	Transcript string `protobuf:"bytes,1,opt,name=transcript,proto3" json:"transcript,omitempty"`
	// The confidence estimate between 0.0 and 1.0. A higher number
	// indicates an estimated greater likelihood that the recognized words are
	// correct. This field is set only for the top alternative of a non-streaming
	// result or, of a streaming result where
	// [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final] is
	// set to `true`. This field is not guaranteed to be accurate and users should
	// not rely on it to be always provided. The default of 0.0 is a sentinel
	// value indicating `confidence` was not set.
	Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"`
	// A list of word-specific information for each recognized word.
	// When the
	// [SpeakerDiarizationConfig][google.cloud.speech.v2.SpeakerDiarizationConfig]
	// is set, you will see all the words from the beginning of the audio.
	Words []*WordInfo `protobuf:"bytes,3,rep,name=words,proto3" json:"words,omitempty"`
	// contains filtered or unexported fields
}

Alternative hypotheses (a.k.a. n-best list).

func (*SpeechRecognitionAlternative) Descriptor deprecated

func (*SpeechRecognitionAlternative) Descriptor() ([]byte, []int)

Deprecated: Use SpeechRecognitionAlternative.ProtoReflect.Descriptor instead.

func (*SpeechRecognitionAlternative) GetConfidence

func (x *SpeechRecognitionAlternative) GetConfidence() float32

func (*SpeechRecognitionAlternative) GetTranscript

func (x *SpeechRecognitionAlternative) GetTranscript() string

func (*SpeechRecognitionAlternative) GetWords

func (x *SpeechRecognitionAlternative) GetWords() []*WordInfo

func (*SpeechRecognitionAlternative) ProtoMessage

func (*SpeechRecognitionAlternative) ProtoMessage()

func (*SpeechRecognitionAlternative) ProtoReflect

func (*SpeechRecognitionAlternative) Reset

func (x *SpeechRecognitionAlternative) Reset()

func (*SpeechRecognitionAlternative) String

type SpeechRecognitionResult

type SpeechRecognitionResult struct {

	// May contain one or more recognition hypotheses. These alternatives are
	// ordered in terms of accuracy, with the top (first) alternative being the
	// most probable, as ranked by the recognizer.
	Alternatives []*SpeechRecognitionAlternative `protobuf:"bytes,1,rep,name=alternatives,proto3" json:"alternatives,omitempty"`
	// For multi-channel audio, this is the channel number corresponding to the
	// recognized result for the audio from that channel.
	// For `audio_channel_count` = `N`, its output values can range from `1` to
	// `N`.
	ChannelTag int32 `protobuf:"varint,2,opt,name=channel_tag,json=channelTag,proto3" json:"channel_tag,omitempty"`
	// Time offset of the end of this result relative to the beginning of the
	// audio.
	ResultEndOffset *durationpb.Duration `protobuf:"bytes,4,opt,name=result_end_offset,json=resultEndOffset,proto3" json:"result_end_offset,omitempty"`
	// Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
	// language tag of the language in this result. This language code was
	// detected to have the most likelihood of being spoken in the audio.
	LanguageCode string `protobuf:"bytes,5,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// contains filtered or unexported fields
}

A speech recognition result corresponding to a portion of the audio.

func (*SpeechRecognitionResult) Descriptor deprecated

func (*SpeechRecognitionResult) Descriptor() ([]byte, []int)

Deprecated: Use SpeechRecognitionResult.ProtoReflect.Descriptor instead.

func (*SpeechRecognitionResult) GetAlternatives

func (x *SpeechRecognitionResult) GetAlternatives() []*SpeechRecognitionAlternative

func (*SpeechRecognitionResult) GetChannelTag

func (x *SpeechRecognitionResult) GetChannelTag() int32

func (*SpeechRecognitionResult) GetLanguageCode

func (x *SpeechRecognitionResult) GetLanguageCode() string

func (*SpeechRecognitionResult) GetResultEndOffset

func (x *SpeechRecognitionResult) GetResultEndOffset() *durationpb.Duration

func (*SpeechRecognitionResult) ProtoMessage

func (*SpeechRecognitionResult) ProtoMessage()

func (*SpeechRecognitionResult) ProtoReflect

func (x *SpeechRecognitionResult) ProtoReflect() protoreflect.Message

func (*SpeechRecognitionResult) Reset

func (x *SpeechRecognitionResult) Reset()

func (*SpeechRecognitionResult) String

func (x *SpeechRecognitionResult) String() string

type SpeechServer

type SpeechServer interface {
	// Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
	CreateRecognizer(context.Context, *CreateRecognizerRequest) (*longrunningpb.Operation, error)
	// Lists Recognizers.
	ListRecognizers(context.Context, *ListRecognizersRequest) (*ListRecognizersResponse, error)
	// Returns the requested
	// [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
	// [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested Recognizer doesn't
	// exist.
	GetRecognizer(context.Context, *GetRecognizerRequest) (*Recognizer, error)
	// Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
	UpdateRecognizer(context.Context, *UpdateRecognizerRequest) (*longrunningpb.Operation, error)
	// Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
	DeleteRecognizer(context.Context, *DeleteRecognizerRequest) (*longrunningpb.Operation, error)
	// Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
	UndeleteRecognizer(context.Context, *UndeleteRecognizerRequest) (*longrunningpb.Operation, error)
	// Performs synchronous Speech recognition: receive results after all audio
	// has been sent and processed.
	Recognize(context.Context, *RecognizeRequest) (*RecognizeResponse, error)
	// Performs bidirectional streaming speech recognition: receive results while
	// sending audio. This method is only available via the gRPC API (not REST).
	StreamingRecognize(Speech_StreamingRecognizeServer) error
	// Performs batch asynchronous speech recognition: send a request with N
	// audio files and receive a long running operation that can be polled to see
	// when the transcriptions are finished.
	BatchRecognize(context.Context, *BatchRecognizeRequest) (*longrunningpb.Operation, error)
	// Returns the requested [Config][google.cloud.speech.v2.Config].
	GetConfig(context.Context, *GetConfigRequest) (*Config, error)
	// Updates the [Config][google.cloud.speech.v2.Config].
	UpdateConfig(context.Context, *UpdateConfigRequest) (*Config, error)
	// Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
	CreateCustomClass(context.Context, *CreateCustomClassRequest) (*longrunningpb.Operation, error)
	// Lists CustomClasses.
	ListCustomClasses(context.Context, *ListCustomClassesRequest) (*ListCustomClassesResponse, error)
	// Returns the requested
	// [CustomClass][google.cloud.speech.v2.CustomClass].
	GetCustomClass(context.Context, *GetCustomClassRequest) (*CustomClass, error)
	// Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
	UpdateCustomClass(context.Context, *UpdateCustomClassRequest) (*longrunningpb.Operation, error)
	// Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
	DeleteCustomClass(context.Context, *DeleteCustomClassRequest) (*longrunningpb.Operation, error)
	// Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
	UndeleteCustomClass(context.Context, *UndeleteCustomClassRequest) (*longrunningpb.Operation, error)
	// Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
	CreatePhraseSet(context.Context, *CreatePhraseSetRequest) (*longrunningpb.Operation, error)
	// Lists PhraseSets.
	ListPhraseSets(context.Context, *ListPhraseSetsRequest) (*ListPhraseSetsResponse, error)
	// Returns the requested
	// [PhraseSet][google.cloud.speech.v2.PhraseSet].
	GetPhraseSet(context.Context, *GetPhraseSetRequest) (*PhraseSet, error)
	// Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
	UpdatePhraseSet(context.Context, *UpdatePhraseSetRequest) (*longrunningpb.Operation, error)
	// Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
	DeletePhraseSet(context.Context, *DeletePhraseSetRequest) (*longrunningpb.Operation, error)
	// Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
	UndeletePhraseSet(context.Context, *UndeletePhraseSetRequest) (*longrunningpb.Operation, error)
}

SpeechServer is the server API for Speech service.

type Speech_StreamingRecognizeClient

type Speech_StreamingRecognizeClient interface {
	Send(*StreamingRecognizeRequest) error
	Recv() (*StreamingRecognizeResponse, error)
	grpc.ClientStream
}

type Speech_StreamingRecognizeServer

type Speech_StreamingRecognizeServer interface {
	Send(*StreamingRecognizeResponse) error
	Recv() (*StreamingRecognizeRequest, error)
	grpc.ServerStream
}

type StreamingRecognitionConfig

type StreamingRecognitionConfig struct {

	// Required. Features and audio metadata to use for the Automatic Speech
	// Recognition. This field in combination with the
	// [config_mask][google.cloud.speech.v2.StreamingRecognitionConfig.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.
	Config *RecognitionConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// The list of fields in
	// [config][google.cloud.speech.v2.StreamingRecognitionConfig.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 non-default valued fields in
	// [config][google.cloud.speech.v2.StreamingRecognitionConfig.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.StreamingRecognitionConfig.config]
	// completely overrides and replaces the config in the recognizer for this
	// recognition request.
	ConfigMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=config_mask,json=configMask,proto3" json:"config_mask,omitempty"`
	// Speech recognition features to enable specific to streaming audio
	// recognition requests.
	StreamingFeatures *StreamingRecognitionFeatures `protobuf:"bytes,2,opt,name=streaming_features,json=streamingFeatures,proto3" json:"streaming_features,omitempty"`
	// contains filtered or unexported fields
}

Provides configuration information for the StreamingRecognize request.

func (*StreamingRecognitionConfig) Descriptor deprecated

func (*StreamingRecognitionConfig) Descriptor() ([]byte, []int)

Deprecated: Use StreamingRecognitionConfig.ProtoReflect.Descriptor instead.

func (*StreamingRecognitionConfig) GetConfig

func (*StreamingRecognitionConfig) GetConfigMask

func (x *StreamingRecognitionConfig) GetConfigMask() *fieldmaskpb.FieldMask

func (*StreamingRecognitionConfig) GetStreamingFeatures

func (x *StreamingRecognitionConfig) GetStreamingFeatures() *StreamingRecognitionFeatures

func (*StreamingRecognitionConfig) ProtoMessage

func (*StreamingRecognitionConfig) ProtoMessage()

func (*StreamingRecognitionConfig) ProtoReflect

func (*StreamingRecognitionConfig) Reset

func (x *StreamingRecognitionConfig) Reset()

func (*StreamingRecognitionConfig) String

func (x *StreamingRecognitionConfig) String() string

type StreamingRecognitionFeatures

type StreamingRecognitionFeatures struct {

	// If `true`, responses with voice activity speech events will be returned as
	// they are detected.
	EnableVoiceActivityEvents bool `` /* 141-byte string literal not displayed */
	// Whether or not to stream interim results to the client. If set to true,
	// interim results will be streamed to the client. Otherwise, only the final
	// response will be streamed back.
	InterimResults bool `protobuf:"varint,2,opt,name=interim_results,json=interimResults,proto3" json:"interim_results,omitempty"`
	// If set, the server will automatically close the stream after the specified
	// duration has elapsed after the last VOICE_ACTIVITY speech event has been
	// sent. The field `voice_activity_events` must also be set to true.
	VoiceActivityTimeout *StreamingRecognitionFeatures_VoiceActivityTimeout `protobuf:"bytes,3,opt,name=voice_activity_timeout,json=voiceActivityTimeout,proto3" json:"voice_activity_timeout,omitempty"`
	// contains filtered or unexported fields
}

Available recognition features specific to streaming recognition requests.

func (*StreamingRecognitionFeatures) Descriptor deprecated

func (*StreamingRecognitionFeatures) Descriptor() ([]byte, []int)

Deprecated: Use StreamingRecognitionFeatures.ProtoReflect.Descriptor instead.

func (*StreamingRecognitionFeatures) GetEnableVoiceActivityEvents

func (x *StreamingRecognitionFeatures) GetEnableVoiceActivityEvents() bool

func (*StreamingRecognitionFeatures) GetInterimResults

func (x *StreamingRecognitionFeatures) GetInterimResults() bool

func (*StreamingRecognitionFeatures) GetVoiceActivityTimeout

func (*StreamingRecognitionFeatures) ProtoMessage

func (*StreamingRecognitionFeatures) ProtoMessage()

func (*StreamingRecognitionFeatures) ProtoReflect

func (*StreamingRecognitionFeatures) Reset

func (x *StreamingRecognitionFeatures) Reset()

func (*StreamingRecognitionFeatures) String

type StreamingRecognitionFeatures_VoiceActivityTimeout

type StreamingRecognitionFeatures_VoiceActivityTimeout struct {

	// Duration to timeout the stream if no speech begins. If this is set and
	// no speech is detected in this duration at the start of the stream, the
	// server will close the stream.
	SpeechStartTimeout *durationpb.Duration `protobuf:"bytes,1,opt,name=speech_start_timeout,json=speechStartTimeout,proto3" json:"speech_start_timeout,omitempty"`
	// Duration to timeout the stream after speech ends. If this is set and no
	// speech is detected in this duration after speech was detected, the server
	// will close the stream.
	SpeechEndTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=speech_end_timeout,json=speechEndTimeout,proto3" json:"speech_end_timeout,omitempty"`
	// contains filtered or unexported fields
}

Events that a timeout can be set on for voice activity.

func (*StreamingRecognitionFeatures_VoiceActivityTimeout) Descriptor deprecated

Deprecated: Use StreamingRecognitionFeatures_VoiceActivityTimeout.ProtoReflect.Descriptor instead.

func (*StreamingRecognitionFeatures_VoiceActivityTimeout) GetSpeechEndTimeout

func (*StreamingRecognitionFeatures_VoiceActivityTimeout) GetSpeechStartTimeout

func (*StreamingRecognitionFeatures_VoiceActivityTimeout) ProtoMessage

func (*StreamingRecognitionFeatures_VoiceActivityTimeout) ProtoReflect

func (*StreamingRecognitionFeatures_VoiceActivityTimeout) Reset

func (*StreamingRecognitionFeatures_VoiceActivityTimeout) String

type StreamingRecognitionResult

type StreamingRecognitionResult struct {

	// May contain one or more recognition hypotheses. These alternatives are
	// ordered in terms of accuracy, with the top (first) alternative being the
	// most probable, as ranked by the recognizer.
	Alternatives []*SpeechRecognitionAlternative `protobuf:"bytes,1,rep,name=alternatives,proto3" json:"alternatives,omitempty"`
	// If `false`, this
	// [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
	// represents an interim result that may change. If `true`, this is the final
	// time the speech service will return this particular
	// [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult],
	// the recognizer will not return any further hypotheses for this portion of
	// the transcript and corresponding audio.
	IsFinal bool `protobuf:"varint,2,opt,name=is_final,json=isFinal,proto3" json:"is_final,omitempty"`
	// An estimate of the likelihood that the recognizer will not change its guess
	// about this interim result. Values range from 0.0 (completely unstable)
	// to 1.0 (completely stable). This field is only provided for interim results
	// ([is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`false`).
	// The default of 0.0 is a sentinel value indicating `stability` was not set.
	Stability float32 `protobuf:"fixed32,3,opt,name=stability,proto3" json:"stability,omitempty"`
	// Time offset of the end of this result relative to the beginning of the
	// audio.
	ResultEndOffset *durationpb.Duration `protobuf:"bytes,4,opt,name=result_end_offset,json=resultEndOffset,proto3" json:"result_end_offset,omitempty"`
	// For multi-channel audio, this is the channel number corresponding to the
	// recognized result for the audio from that channel.
	// For
	// `audio_channel_count` = `N`, its output values can range from `1` to `N`.
	ChannelTag int32 `protobuf:"varint,5,opt,name=channel_tag,json=channelTag,proto3" json:"channel_tag,omitempty"`
	// Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
	// language tag of the language in this result. This language code was
	// detected to have the most likelihood of being spoken in the audio.
	LanguageCode string `protobuf:"bytes,6,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// contains filtered or unexported fields
}

A streaming speech recognition result corresponding to a portion of the audio that is currently being processed.

func (*StreamingRecognitionResult) Descriptor deprecated

func (*StreamingRecognitionResult) Descriptor() ([]byte, []int)

Deprecated: Use StreamingRecognitionResult.ProtoReflect.Descriptor instead.

func (*StreamingRecognitionResult) GetAlternatives

func (*StreamingRecognitionResult) GetChannelTag

func (x *StreamingRecognitionResult) GetChannelTag() int32

func (*StreamingRecognitionResult) GetIsFinal

func (x *StreamingRecognitionResult) GetIsFinal() bool

func (*StreamingRecognitionResult) GetLanguageCode

func (x *StreamingRecognitionResult) GetLanguageCode() string

func (*StreamingRecognitionResult) GetResultEndOffset

func (x *StreamingRecognitionResult) GetResultEndOffset() *durationpb.Duration

func (*StreamingRecognitionResult) GetStability

func (x *StreamingRecognitionResult) GetStability() float32

func (*StreamingRecognitionResult) ProtoMessage

func (*StreamingRecognitionResult) ProtoMessage()

func (*StreamingRecognitionResult) ProtoReflect

func (*StreamingRecognitionResult) Reset

func (x *StreamingRecognitionResult) Reset()

func (*StreamingRecognitionResult) String

func (x *StreamingRecognitionResult) String() string

type StreamingRecognizeRequest

type StreamingRecognizeRequest struct {

	// 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.
	Recognizer string `protobuf:"bytes,3,opt,name=recognizer,proto3" json:"recognizer,omitempty"`
	// Types that are assignable to StreamingRequest:
	//	*StreamingRecognizeRequest_StreamingConfig
	//	*StreamingRecognizeRequest_Audio
	StreamingRequest isStreamingRecognizeRequest_StreamingRequest `protobuf_oneof:"streaming_request"`
	// contains filtered or unexported fields
}

Request message for the [StreamingRecognize][google.cloud.speech.v2.Speech.StreamingRecognize] method. Multiple StreamingRecognizeRequest[google.cloud.speech.v2.StreamingRecognizeRequest] messages are sent in one call.

If the Recognizer[google.cloud.speech.v2.Recognizer] referenced by [recognizer][google.cloud.speech.v2.StreamingRecognizeRequest.recognizer] contains a fully specified request configuration then the stream may only contain messages with only [audio][google.cloud.speech.v2.StreamingRecognizeRequest.audio] set.

Otherwise the first message must contain a [recognizer][google.cloud.speech.v2.StreamingRecognizeRequest.recognizer] and a [streaming_config][google.cloud.speech.v2.StreamingRecognizeRequest.streaming_config] message that together fully specify the request configuration and must not contain [audio][google.cloud.speech.v2.StreamingRecognizeRequest.audio]. All subsequent messages must only have [audio][google.cloud.speech.v2.StreamingRecognizeRequest.audio] set.

func (*StreamingRecognizeRequest) Descriptor deprecated

func (*StreamingRecognizeRequest) Descriptor() ([]byte, []int)

Deprecated: Use StreamingRecognizeRequest.ProtoReflect.Descriptor instead.

func (*StreamingRecognizeRequest) GetAudio

func (x *StreamingRecognizeRequest) GetAudio() []byte

func (*StreamingRecognizeRequest) GetRecognizer

func (x *StreamingRecognizeRequest) GetRecognizer() string

func (*StreamingRecognizeRequest) GetStreamingConfig

func (x *StreamingRecognizeRequest) GetStreamingConfig() *StreamingRecognitionConfig

func (*StreamingRecognizeRequest) GetStreamingRequest

func (m *StreamingRecognizeRequest) GetStreamingRequest() isStreamingRecognizeRequest_StreamingRequest

func (*StreamingRecognizeRequest) ProtoMessage

func (*StreamingRecognizeRequest) ProtoMessage()

func (*StreamingRecognizeRequest) ProtoReflect

func (*StreamingRecognizeRequest) Reset

func (x *StreamingRecognizeRequest) Reset()

func (*StreamingRecognizeRequest) String

func (x *StreamingRecognizeRequest) String() string

type StreamingRecognizeRequest_Audio

type StreamingRecognizeRequest_Audio struct {
	// Inline audio bytes to be Recognized.
	// Maximum size for this field is 15 KB per request.
	Audio []byte `protobuf:"bytes,5,opt,name=audio,proto3,oneof"`
}

type StreamingRecognizeRequest_StreamingConfig

type StreamingRecognizeRequest_StreamingConfig struct {
	// StreamingRecognitionConfig to be used in this recognition attempt.
	// If provided, it will override the default RecognitionConfig stored in the
	// Recognizer.
	StreamingConfig *StreamingRecognitionConfig `protobuf:"bytes,6,opt,name=streaming_config,json=streamingConfig,proto3,oneof"`
}

type StreamingRecognizeResponse

type StreamingRecognizeResponse struct {

	// This repeated list contains zero or more results that
	// correspond to consecutive portions of the audio currently being processed.
	// It contains zero or one
	// [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`true`
	// result (the newly settled portion), followed by zero or more
	// [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`false`
	// results (the interim results).
	Results []*StreamingRecognitionResult `protobuf:"bytes,6,rep,name=results,proto3" json:"results,omitempty"`
	// Indicates the type of speech event.
	SpeechEventType StreamingRecognizeResponse_SpeechEventType `` /* 180-byte string literal not displayed */
	// Time offset between the beginning of the audio and event emission.
	SpeechEventOffset *durationpb.Duration `protobuf:"bytes,7,opt,name=speech_event_offset,json=speechEventOffset,proto3" json:"speech_event_offset,omitempty"`
	// Metadata about the recognition.
	Metadata *RecognitionResponseMetadata `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

`StreamingRecognizeResponse` is the only message returned to the client by `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse` messages are streamed back to the client. If there is no recognizable audio then no messages are streamed back to the client.

Here are some examples of `StreamingRecognizeResponse`s that might be returned while processing audio:

1. results { alternatives { transcript: "tube" } stability: 0.01 }

2. results { alternatives { transcript: "to be a" } stability: 0.01 }

  1. results { alternatives { transcript: "to be" } stability: 0.9 } results { alternatives { transcript: " or not to be" } stability: 0.01 }

  2. results { alternatives { transcript: "to be or not to be" confidence: 0.92 } alternatives { transcript: "to bee or not to bee" } is_final: true }

5. results { alternatives { transcript: " that's" } stability: 0.01 }

  1. results { alternatives { transcript: " that is" } stability: 0.9 } results { alternatives { transcript: " the question" } stability: 0.01 }

  2. results { alternatives { transcript: " that is the question" confidence: 0.98 } alternatives { transcript: " that was the question" } is_final: true }

Notes:

  • Only two of the above responses #4 and #7 contain final results; they are indicated by `is_final: true`. Concatenating these together generates the full transcript: "to be or not to be that is the question".

  • The others contain interim `results`. #3 and #6 contain two interim `results`: the first portion has a high stability and is less likely to change; the second portion has a low stability and is very likely to change. A UI designer might choose to show only high stability `results`.

  • The specific `stability` and `confidence` values shown above are only for illustrative purposes. Actual values may vary.

  • In each response, only one of these fields will be set: `error`, `speech_event_type`, or one or more (repeated) `results`.

func (*StreamingRecognizeResponse) Descriptor deprecated

func (*StreamingRecognizeResponse) Descriptor() ([]byte, []int)

Deprecated: Use StreamingRecognizeResponse.ProtoReflect.Descriptor instead.

func (*StreamingRecognizeResponse) GetMetadata

func (*StreamingRecognizeResponse) GetResults

func (*StreamingRecognizeResponse) GetSpeechEventOffset

func (x *StreamingRecognizeResponse) GetSpeechEventOffset() *durationpb.Duration

func (*StreamingRecognizeResponse) GetSpeechEventType

func (*StreamingRecognizeResponse) ProtoMessage

func (*StreamingRecognizeResponse) ProtoMessage()

func (*StreamingRecognizeResponse) ProtoReflect

func (*StreamingRecognizeResponse) Reset

func (x *StreamingRecognizeResponse) Reset()

func (*StreamingRecognizeResponse) String

func (x *StreamingRecognizeResponse) String() string

type StreamingRecognizeResponse_SpeechEventType

type StreamingRecognizeResponse_SpeechEventType int32

Indicates the type of speech event.

const (
	// No speech event specified.
	StreamingRecognizeResponse_SPEECH_EVENT_TYPE_UNSPECIFIED StreamingRecognizeResponse_SpeechEventType = 0
	// This event indicates that the server has detected the end of the user's
	// speech utterance and expects no additional speech. Therefore, the server
	// will not process additional audio and will close the gRPC bidirectional
	// stream. This event is only sent if there was a force cutoff due to
	// silence being detected early. This event is only available through the
	// `latest_short` [model][google.cloud.speech.v2.Recognizer.model].
	StreamingRecognizeResponse_END_OF_SINGLE_UTTERANCE StreamingRecognizeResponse_SpeechEventType = 1
	// This event indicates that the server has detected the beginning of human
	// voice activity in the stream. This event can be returned multiple times
	// if speech starts and stops repeatedly throughout the stream. This event
	// is only sent if `voice_activity_events` is set to true.
	StreamingRecognizeResponse_SPEECH_ACTIVITY_BEGIN StreamingRecognizeResponse_SpeechEventType = 2
	// This event indicates that the server has detected the end of human voice
	// activity in the stream. This event can be returned multiple times if
	// speech starts and stops repeatedly throughout the stream. This event is
	// only sent if `voice_activity_events` is set to true.
	StreamingRecognizeResponse_SPEECH_ACTIVITY_END StreamingRecognizeResponse_SpeechEventType = 3
)

func (StreamingRecognizeResponse_SpeechEventType) Descriptor

func (StreamingRecognizeResponse_SpeechEventType) Enum

func (StreamingRecognizeResponse_SpeechEventType) EnumDescriptor deprecated

func (StreamingRecognizeResponse_SpeechEventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use StreamingRecognizeResponse_SpeechEventType.Descriptor instead.

func (StreamingRecognizeResponse_SpeechEventType) Number

func (StreamingRecognizeResponse_SpeechEventType) String

func (StreamingRecognizeResponse_SpeechEventType) Type

type TranscriptNormalization added in v1.20.0

type TranscriptNormalization struct {

	// A list of replacement entries. We will perform replacement with one entry
	// at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
	// => "mountain dog"] will never be applied because we will always process the
	// first entry before it. At most 100 entries.
	Entries []*TranscriptNormalization_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

Transcription normalization configuration. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability > 0.8) and final transcripts.

func (*TranscriptNormalization) Descriptor deprecated added in v1.20.0

func (*TranscriptNormalization) Descriptor() ([]byte, []int)

Deprecated: Use TranscriptNormalization.ProtoReflect.Descriptor instead.

func (*TranscriptNormalization) GetEntries added in v1.20.0

func (*TranscriptNormalization) ProtoMessage added in v1.20.0

func (*TranscriptNormalization) ProtoMessage()

func (*TranscriptNormalization) ProtoReflect added in v1.20.0

func (x *TranscriptNormalization) ProtoReflect() protoreflect.Message

func (*TranscriptNormalization) Reset added in v1.20.0

func (x *TranscriptNormalization) Reset()

func (*TranscriptNormalization) String added in v1.20.0

func (x *TranscriptNormalization) String() string

type TranscriptNormalization_Entry added in v1.20.0

type TranscriptNormalization_Entry struct {

	// What to replace. Max length is 100 characters.
	Search string `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"`
	// What to replace with. Max length is 100 characters.
	Replace string `protobuf:"bytes,2,opt,name=replace,proto3" json:"replace,omitempty"`
	// Whether the search is case sensitive.
	CaseSensitive bool `protobuf:"varint,3,opt,name=case_sensitive,json=caseSensitive,proto3" json:"case_sensitive,omitempty"`
	// contains filtered or unexported fields
}

A single replacement configuration.

func (*TranscriptNormalization_Entry) Descriptor deprecated added in v1.20.0

func (*TranscriptNormalization_Entry) Descriptor() ([]byte, []int)

Deprecated: Use TranscriptNormalization_Entry.ProtoReflect.Descriptor instead.

func (*TranscriptNormalization_Entry) GetCaseSensitive added in v1.20.0

func (x *TranscriptNormalization_Entry) GetCaseSensitive() bool

func (*TranscriptNormalization_Entry) GetReplace added in v1.20.0

func (x *TranscriptNormalization_Entry) GetReplace() string

func (*TranscriptNormalization_Entry) GetSearch added in v1.20.0

func (x *TranscriptNormalization_Entry) GetSearch() string

func (*TranscriptNormalization_Entry) ProtoMessage added in v1.20.0

func (*TranscriptNormalization_Entry) ProtoMessage()

func (*TranscriptNormalization_Entry) ProtoReflect added in v1.20.0

func (*TranscriptNormalization_Entry) Reset added in v1.20.0

func (x *TranscriptNormalization_Entry) Reset()

func (*TranscriptNormalization_Entry) String added in v1.20.0

type UndeleteCustomClassRequest

type UndeleteCustomClassRequest struct {

	// Required. The name of the CustomClass to undelete.
	// Format:
	// `projects/{project}/locations/{location}/customClasses/{custom_class}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// If set, validate the request and preview the undeleted CustomClass, but do
	// not actually undelete it.
	ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// This checksum is computed by the server based on the value of other
	// fields. This may be sent on update, undelete, and delete requests to ensure
	// the client has an up-to-date value before proceeding.
	Etag string `protobuf:"bytes,4,opt,name=etag,proto3" json:"etag,omitempty"`
	// contains filtered or unexported fields
}

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

func (*UndeleteCustomClassRequest) Descriptor deprecated

func (*UndeleteCustomClassRequest) Descriptor() ([]byte, []int)

Deprecated: Use UndeleteCustomClassRequest.ProtoReflect.Descriptor instead.

func (*UndeleteCustomClassRequest) GetEtag

func (x *UndeleteCustomClassRequest) GetEtag() string

func (*UndeleteCustomClassRequest) GetName

func (x *UndeleteCustomClassRequest) GetName() string

func (*UndeleteCustomClassRequest) GetValidateOnly

func (x *UndeleteCustomClassRequest) GetValidateOnly() bool

func (*UndeleteCustomClassRequest) ProtoMessage

func (*UndeleteCustomClassRequest) ProtoMessage()

func (*UndeleteCustomClassRequest) ProtoReflect

func (*UndeleteCustomClassRequest) Reset

func (x *UndeleteCustomClassRequest) Reset()

func (*UndeleteCustomClassRequest) String

func (x *UndeleteCustomClassRequest) String() string

type UndeletePhraseSetRequest

type UndeletePhraseSetRequest struct {

	// Required. The name of the PhraseSet to undelete.
	// Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// If set, validate the request and preview the undeleted PhraseSet, but do
	// not actually undelete it.
	ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// This checksum is computed by the server based on the value of other
	// fields. This may be sent on update, undelete, and delete requests to ensure
	// the client has an up-to-date value before proceeding.
	Etag string `protobuf:"bytes,4,opt,name=etag,proto3" json:"etag,omitempty"`
	// contains filtered or unexported fields
}

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

func (*UndeletePhraseSetRequest) Descriptor deprecated

func (*UndeletePhraseSetRequest) Descriptor() ([]byte, []int)

Deprecated: Use UndeletePhraseSetRequest.ProtoReflect.Descriptor instead.

func (*UndeletePhraseSetRequest) GetEtag

func (x *UndeletePhraseSetRequest) GetEtag() string

func (*UndeletePhraseSetRequest) GetName

func (x *UndeletePhraseSetRequest) GetName() string

func (*UndeletePhraseSetRequest) GetValidateOnly

func (x *UndeletePhraseSetRequest) GetValidateOnly() bool

func (*UndeletePhraseSetRequest) ProtoMessage

func (*UndeletePhraseSetRequest) ProtoMessage()

func (*UndeletePhraseSetRequest) ProtoReflect

func (x *UndeletePhraseSetRequest) ProtoReflect() protoreflect.Message

func (*UndeletePhraseSetRequest) Reset

func (x *UndeletePhraseSetRequest) Reset()

func (*UndeletePhraseSetRequest) String

func (x *UndeletePhraseSetRequest) String() string

type UndeleteRecognizerRequest

type UndeleteRecognizerRequest struct {

	// Required. The name of the Recognizer to undelete.
	// Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// If set, validate the request and preview the undeleted Recognizer, but do
	// not actually undelete it.
	ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// This checksum is computed by the server based on the value of other
	// fields. This may be sent on update, undelete, and delete requests to ensure
	// the client has an up-to-date value before proceeding.
	Etag string `protobuf:"bytes,4,opt,name=etag,proto3" json:"etag,omitempty"`
	// contains filtered or unexported fields
}

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

func (*UndeleteRecognizerRequest) Descriptor deprecated

func (*UndeleteRecognizerRequest) Descriptor() ([]byte, []int)

Deprecated: Use UndeleteRecognizerRequest.ProtoReflect.Descriptor instead.

func (*UndeleteRecognizerRequest) GetEtag

func (x *UndeleteRecognizerRequest) GetEtag() string

func (*UndeleteRecognizerRequest) GetName

func (x *UndeleteRecognizerRequest) GetName() string

func (*UndeleteRecognizerRequest) GetValidateOnly

func (x *UndeleteRecognizerRequest) GetValidateOnly() bool

func (*UndeleteRecognizerRequest) ProtoMessage

func (*UndeleteRecognizerRequest) ProtoMessage()

func (*UndeleteRecognizerRequest) ProtoReflect

func (*UndeleteRecognizerRequest) Reset

func (x *UndeleteRecognizerRequest) Reset()

func (*UndeleteRecognizerRequest) String

func (x *UndeleteRecognizerRequest) String() string

type UnimplementedSpeechServer

type UnimplementedSpeechServer struct {
}

UnimplementedSpeechServer can be embedded to have forward compatible implementations.

func (*UnimplementedSpeechServer) BatchRecognize

func (*UnimplementedSpeechServer) CreateCustomClass

func (*UnimplementedSpeechServer) CreatePhraseSet

func (*UnimplementedSpeechServer) CreateRecognizer

func (*UnimplementedSpeechServer) DeleteCustomClass

func (*UnimplementedSpeechServer) DeletePhraseSet

func (*UnimplementedSpeechServer) DeleteRecognizer

func (*UnimplementedSpeechServer) GetConfig

func (*UnimplementedSpeechServer) GetCustomClass

func (*UnimplementedSpeechServer) GetPhraseSet

func (*UnimplementedSpeechServer) GetRecognizer

func (*UnimplementedSpeechServer) ListCustomClasses

func (*UnimplementedSpeechServer) ListPhraseSets

func (*UnimplementedSpeechServer) ListRecognizers

func (*UnimplementedSpeechServer) Recognize

func (*UnimplementedSpeechServer) StreamingRecognize

func (*UnimplementedSpeechServer) UndeleteCustomClass

func (*UnimplementedSpeechServer) UndeletePhraseSet

func (*UnimplementedSpeechServer) UndeleteRecognizer

func (*UnimplementedSpeechServer) UpdateConfig

func (*UnimplementedSpeechServer) UpdateCustomClass

func (*UnimplementedSpeechServer) UpdatePhraseSet

func (*UnimplementedSpeechServer) UpdateRecognizer

type UpdateConfigRequest

type UpdateConfigRequest struct {

	// Required. The config to update.
	//
	// The config's `name` field is used to identify the config to be updated.
	// The expected format is `projects/{project}/locations/{location}/config`.
	Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// The list of fields to be updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

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

func (*UpdateConfigRequest) Descriptor deprecated

func (*UpdateConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateConfigRequest.ProtoReflect.Descriptor instead.

func (*UpdateConfigRequest) GetConfig

func (x *UpdateConfigRequest) GetConfig() *Config

func (*UpdateConfigRequest) GetUpdateMask

func (x *UpdateConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateConfigRequest) ProtoMessage

func (*UpdateConfigRequest) ProtoMessage()

func (*UpdateConfigRequest) ProtoReflect

func (x *UpdateConfigRequest) ProtoReflect() protoreflect.Message

func (*UpdateConfigRequest) Reset

func (x *UpdateConfigRequest) Reset()

func (*UpdateConfigRequest) String

func (x *UpdateConfigRequest) String() string

type UpdateCustomClassRequest

type UpdateCustomClassRequest struct {

	// Required. The CustomClass to update.
	//
	// The CustomClass's `name` field is used to identify the CustomClass to
	// update. Format:
	// `projects/{project}/locations/{location}/customClasses/{custom_class}`.
	CustomClass *CustomClass `protobuf:"bytes,1,opt,name=custom_class,json=customClass,proto3" json:"custom_class,omitempty"`
	// The list of fields to be updated. If empty, all fields are considered for
	// update.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// If set, validate the request and preview the updated CustomClass, but do
	// not actually update it.
	ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// contains filtered or unexported fields
}

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

func (*UpdateCustomClassRequest) Descriptor deprecated

func (*UpdateCustomClassRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateCustomClassRequest.ProtoReflect.Descriptor instead.

func (*UpdateCustomClassRequest) GetCustomClass

func (x *UpdateCustomClassRequest) GetCustomClass() *CustomClass

func (*UpdateCustomClassRequest) GetUpdateMask

func (x *UpdateCustomClassRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateCustomClassRequest) GetValidateOnly

func (x *UpdateCustomClassRequest) GetValidateOnly() bool

func (*UpdateCustomClassRequest) ProtoMessage

func (*UpdateCustomClassRequest) ProtoMessage()

func (*UpdateCustomClassRequest) ProtoReflect

func (x *UpdateCustomClassRequest) ProtoReflect() protoreflect.Message

func (*UpdateCustomClassRequest) Reset

func (x *UpdateCustomClassRequest) Reset()

func (*UpdateCustomClassRequest) String

func (x *UpdateCustomClassRequest) String() string

type UpdatePhraseSetRequest

type UpdatePhraseSetRequest struct {

	// Required. The PhraseSet to update.
	//
	// The PhraseSet's `name` field is used to identify the PhraseSet to update.
	// Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
	PhraseSet *PhraseSet `protobuf:"bytes,1,opt,name=phrase_set,json=phraseSet,proto3" json:"phrase_set,omitempty"`
	// The list of fields to update. If empty, all non-default valued fields are
	// considered for update. Use `*` to update the entire PhraseSet resource.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// If set, validate the request and preview the updated PhraseSet, but do not
	// actually update it.
	ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// contains filtered or unexported fields
}

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

func (*UpdatePhraseSetRequest) Descriptor deprecated

func (*UpdatePhraseSetRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePhraseSetRequest.ProtoReflect.Descriptor instead.

func (*UpdatePhraseSetRequest) GetPhraseSet

func (x *UpdatePhraseSetRequest) GetPhraseSet() *PhraseSet

func (*UpdatePhraseSetRequest) GetUpdateMask

func (x *UpdatePhraseSetRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdatePhraseSetRequest) GetValidateOnly

func (x *UpdatePhraseSetRequest) GetValidateOnly() bool

func (*UpdatePhraseSetRequest) ProtoMessage

func (*UpdatePhraseSetRequest) ProtoMessage()

func (*UpdatePhraseSetRequest) ProtoReflect

func (x *UpdatePhraseSetRequest) ProtoReflect() protoreflect.Message

func (*UpdatePhraseSetRequest) Reset

func (x *UpdatePhraseSetRequest) Reset()

func (*UpdatePhraseSetRequest) String

func (x *UpdatePhraseSetRequest) String() string

type UpdateRecognizerRequest

type UpdateRecognizerRequest struct {

	// Required. The Recognizer to update.
	//
	// The Recognizer's `name` field is used to identify the Recognizer to update.
	// Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
	Recognizer *Recognizer `protobuf:"bytes,1,opt,name=recognizer,proto3" json:"recognizer,omitempty"`
	// The list of fields to update. If empty, all non-default valued fields are
	// considered for update. Use `*` to update the entire Recognizer resource.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// If set, validate the request and preview the updated Recognizer, but do not
	// actually update it.
	ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// contains filtered or unexported fields
}

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

func (*UpdateRecognizerRequest) Descriptor deprecated

func (*UpdateRecognizerRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateRecognizerRequest.ProtoReflect.Descriptor instead.

func (*UpdateRecognizerRequest) GetRecognizer

func (x *UpdateRecognizerRequest) GetRecognizer() *Recognizer

func (*UpdateRecognizerRequest) GetUpdateMask

func (x *UpdateRecognizerRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateRecognizerRequest) GetValidateOnly

func (x *UpdateRecognizerRequest) GetValidateOnly() bool

func (*UpdateRecognizerRequest) ProtoMessage

func (*UpdateRecognizerRequest) ProtoMessage()

func (*UpdateRecognizerRequest) ProtoReflect

func (x *UpdateRecognizerRequest) ProtoReflect() protoreflect.Message

func (*UpdateRecognizerRequest) Reset

func (x *UpdateRecognizerRequest) Reset()

func (*UpdateRecognizerRequest) String

func (x *UpdateRecognizerRequest) String() string

type WordInfo

type WordInfo struct {

	// Time offset relative to the beginning of the audio,
	// and corresponding to the start of the spoken word.
	// This field is only set if
	// [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
	// is `true` and only in the top hypothesis. This is an experimental feature
	// and the accuracy of the time offset can vary.
	StartOffset *durationpb.Duration `protobuf:"bytes,1,opt,name=start_offset,json=startOffset,proto3" json:"start_offset,omitempty"`
	// Time offset relative to the beginning of the audio,
	// and corresponding to the end of the spoken word.
	// This field is only set if
	// [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
	// is `true` and only in the top hypothesis. This is an experimental feature
	// and the accuracy of the time offset can vary.
	EndOffset *durationpb.Duration `protobuf:"bytes,2,opt,name=end_offset,json=endOffset,proto3" json:"end_offset,omitempty"`
	// The word corresponding to this set of information.
	Word string `protobuf:"bytes,3,opt,name=word,proto3" json:"word,omitempty"`
	// The confidence estimate between 0.0 and 1.0. A higher number
	// indicates an estimated greater likelihood that the recognized words are
	// correct. This field is set only for the top alternative of a non-streaming
	// result or, of a streaming result where
	// [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final] is
	// set to `true`. This field is not guaranteed to be accurate and users should
	// not rely on it to be always provided. The default of 0.0 is a sentinel
	// value indicating `confidence` was not set.
	Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
	// A distinct label is assigned for every speaker within the audio. This field
	// specifies which one of those speakers was detected to have spoken this
	// word. `speaker_label` is set if
	// [SpeakerDiarizationConfig][google.cloud.speech.v2.SpeakerDiarizationConfig]
	// is given and only in the top alternative.
	SpeakerLabel string `protobuf:"bytes,6,opt,name=speaker_label,json=speakerLabel,proto3" json:"speaker_label,omitempty"`
	// contains filtered or unexported fields
}

Word-specific information for recognized words.

func (*WordInfo) Descriptor deprecated

func (*WordInfo) Descriptor() ([]byte, []int)

Deprecated: Use WordInfo.ProtoReflect.Descriptor instead.

func (*WordInfo) GetConfidence

func (x *WordInfo) GetConfidence() float32

func (*WordInfo) GetEndOffset

func (x *WordInfo) GetEndOffset() *durationpb.Duration

func (*WordInfo) GetSpeakerLabel

func (x *WordInfo) GetSpeakerLabel() string

func (*WordInfo) GetStartOffset

func (x *WordInfo) GetStartOffset() *durationpb.Duration

func (*WordInfo) GetWord

func (x *WordInfo) GetWord() string

func (*WordInfo) ProtoMessage

func (*WordInfo) ProtoMessage()

func (*WordInfo) ProtoReflect

func (x *WordInfo) ProtoReflect() protoreflect.Message

func (*WordInfo) Reset

func (x *WordInfo) Reset()

func (*WordInfo) String

func (x *WordInfo) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL