speech

package
v0.0.0-...-a4fef06 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Overview

Package speech aliases all exported identifiers in package "cloud.google.com/go/speech/apiv2/speechpb".

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb. Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md for more details.

Index

Constants

View Source
const (
	CustomClass_ACTIVE                                       = src.CustomClass_ACTIVE
	CustomClass_DELETED                                      = src.CustomClass_DELETED
	CustomClass_STATE_UNSPECIFIED                            = src.CustomClass_STATE_UNSPECIFIED
	ExplicitDecodingConfig_ALAW                              = src.ExplicitDecodingConfig_ALAW
	ExplicitDecodingConfig_AUDIO_ENCODING_UNSPECIFIED        = src.ExplicitDecodingConfig_AUDIO_ENCODING_UNSPECIFIED
	ExplicitDecodingConfig_LINEAR16                          = src.ExplicitDecodingConfig_LINEAR16
	ExplicitDecodingConfig_MULAW                             = src.ExplicitDecodingConfig_MULAW
	PhraseSet_ACTIVE                                         = src.PhraseSet_ACTIVE
	PhraseSet_DELETED                                        = src.PhraseSet_DELETED
	PhraseSet_STATE_UNSPECIFIED                              = src.PhraseSet_STATE_UNSPECIFIED
	RecognitionFeatures_MULTI_CHANNEL_MODE_UNSPECIFIED       = src.RecognitionFeatures_MULTI_CHANNEL_MODE_UNSPECIFIED
	RecognitionFeatures_SEPARATE_RECOGNITION_PER_CHANNEL     = src.RecognitionFeatures_SEPARATE_RECOGNITION_PER_CHANNEL
	Recognizer_ACTIVE                                        = src.Recognizer_ACTIVE
	Recognizer_DELETED                                       = src.Recognizer_DELETED
	Recognizer_STATE_UNSPECIFIED                             = src.Recognizer_STATE_UNSPECIFIED
	StreamingRecognizeResponse_END_OF_SINGLE_UTTERANCE       = src.StreamingRecognizeResponse_END_OF_SINGLE_UTTERANCE
	StreamingRecognizeResponse_SPEECH_ACTIVITY_BEGIN         = src.StreamingRecognizeResponse_SPEECH_ACTIVITY_BEGIN
	StreamingRecognizeResponse_SPEECH_ACTIVITY_END           = src.StreamingRecognizeResponse_SPEECH_ACTIVITY_END
	StreamingRecognizeResponse_SPEECH_EVENT_TYPE_UNSPECIFIED = src.StreamingRecognizeResponse_SPEECH_EVENT_TYPE_UNSPECIFIED
)

Deprecated: Please use consts in: cloud.google.com/go/speech/apiv2/speechpb

Variables

View Source
var (
	CustomClass_State_name                           = src.CustomClass_State_name
	CustomClass_State_value                          = src.CustomClass_State_value
	ExplicitDecodingConfig_AudioEncoding_name        = src.ExplicitDecodingConfig_AudioEncoding_name
	ExplicitDecodingConfig_AudioEncoding_value       = src.ExplicitDecodingConfig_AudioEncoding_value
	File_google_cloud_speech_v2_cloud_speech_proto   = src.File_google_cloud_speech_v2_cloud_speech_proto
	PhraseSet_State_name                             = src.PhraseSet_State_name
	PhraseSet_State_value                            = src.PhraseSet_State_value
	RecognitionFeatures_MultiChannelMode_name        = src.RecognitionFeatures_MultiChannelMode_name
	RecognitionFeatures_MultiChannelMode_value       = src.RecognitionFeatures_MultiChannelMode_value
	Recognizer_State_name                            = src.Recognizer_State_name
	Recognizer_State_value                           = src.Recognizer_State_value
	StreamingRecognizeResponse_SpeechEventType_name  = src.StreamingRecognizeResponse_SpeechEventType_name
	StreamingRecognizeResponse_SpeechEventType_value = src.StreamingRecognizeResponse_SpeechEventType_value
)

Deprecated: Please use vars in: cloud.google.com/go/speech/apiv2/speechpb

Functions

func RegisterSpeechServer deprecated

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

Deprecated: Please use funcs in: cloud.google.com/go/speech/apiv2/speechpb

Types

type AutoDetectDecodingConfig deprecated

type AutoDetectDecodingConfig = src.AutoDetectDecodingConfig

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.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type BatchRecognizeFileMetadata deprecated

type BatchRecognizeFileMetadata = src.BatchRecognizeFileMetadata

Metadata about a single file in a batch for BatchRecognize.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type BatchRecognizeFileMetadata_Uri

type BatchRecognizeFileMetadata_Uri = src.BatchRecognizeFileMetadata_Uri

type BatchRecognizeFileResult deprecated

type BatchRecognizeFileResult = src.BatchRecognizeFileResult

Final results for a single file.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type BatchRecognizeMetadata deprecated

type BatchRecognizeMetadata = src.BatchRecognizeMetadata

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type BatchRecognizeRequest deprecated

type BatchRecognizeRequest = src.BatchRecognizeRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type BatchRecognizeResponse deprecated

type BatchRecognizeResponse = src.BatchRecognizeResponse

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type BatchRecognizeTranscriptionMetadata deprecated

type BatchRecognizeTranscriptionMetadata = src.BatchRecognizeTranscriptionMetadata

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type Config deprecated

type Config = src.Config

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.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type CreateCustomClassRequest deprecated

type CreateCustomClassRequest = src.CreateCustomClassRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type CreatePhraseSetRequest deprecated

type CreatePhraseSetRequest = src.CreatePhraseSetRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type CreateRecognizerRequest deprecated

type CreateRecognizerRequest = src.CreateRecognizerRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type CustomClass deprecated

type CustomClass = src.CustomClass

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.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type CustomClass_ClassItem deprecated

type CustomClass_ClassItem = src.CustomClass_ClassItem

An item of the class.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type CustomClass_State deprecated

type CustomClass_State = src.CustomClass_State

Set of states that define the lifecycle of a CustomClass.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type DeleteCustomClassRequest deprecated

type DeleteCustomClassRequest = src.DeleteCustomClassRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type DeletePhraseSetRequest deprecated

type DeletePhraseSetRequest = src.DeletePhraseSetRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type DeleteRecognizerRequest deprecated

type DeleteRecognizerRequest = src.DeleteRecognizerRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type ExplicitDecodingConfig deprecated

type ExplicitDecodingConfig = src.ExplicitDecodingConfig

Explicitly specified decoding parameters.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type ExplicitDecodingConfig_AudioEncoding deprecated

type ExplicitDecodingConfig_AudioEncoding = src.ExplicitDecodingConfig_AudioEncoding

Supported audio data encodings.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type GetConfigRequest deprecated

type GetConfigRequest = src.GetConfigRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type GetCustomClassRequest deprecated

type GetCustomClassRequest = src.GetCustomClassRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type GetPhraseSetRequest deprecated

type GetPhraseSetRequest = src.GetPhraseSetRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type GetRecognizerRequest deprecated

type GetRecognizerRequest = src.GetRecognizerRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type ListCustomClassesRequest deprecated

type ListCustomClassesRequest = src.ListCustomClassesRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type ListCustomClassesResponse deprecated

type ListCustomClassesResponse = src.ListCustomClassesResponse

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type ListPhraseSetsRequest deprecated

type ListPhraseSetsRequest = src.ListPhraseSetsRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type ListPhraseSetsResponse deprecated

type ListPhraseSetsResponse = src.ListPhraseSetsResponse

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type ListRecognizersRequest deprecated

type ListRecognizersRequest = src.ListRecognizersRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type ListRecognizersResponse deprecated

type ListRecognizersResponse = src.ListRecognizersResponse

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type OperationMetadata deprecated

type OperationMetadata = src.OperationMetadata

Represents the metadata of a long-running operation.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type OperationMetadata_BatchRecognizeMetadata

type OperationMetadata_BatchRecognizeMetadata = src.OperationMetadata_BatchRecognizeMetadata

type OperationMetadata_BatchRecognizeRequest

type OperationMetadata_BatchRecognizeRequest = src.OperationMetadata_BatchRecognizeRequest

type OperationMetadata_CreateCustomClassRequest

type OperationMetadata_CreateCustomClassRequest = src.OperationMetadata_CreateCustomClassRequest

type OperationMetadata_CreatePhraseSetRequest

type OperationMetadata_CreatePhraseSetRequest = src.OperationMetadata_CreatePhraseSetRequest

type OperationMetadata_CreateRecognizerRequest

type OperationMetadata_CreateRecognizerRequest = src.OperationMetadata_CreateRecognizerRequest

type OperationMetadata_DeleteCustomClassRequest

type OperationMetadata_DeleteCustomClassRequest = src.OperationMetadata_DeleteCustomClassRequest

type OperationMetadata_DeletePhraseSetRequest

type OperationMetadata_DeletePhraseSetRequest = src.OperationMetadata_DeletePhraseSetRequest

type OperationMetadata_DeleteRecognizerRequest

type OperationMetadata_DeleteRecognizerRequest = src.OperationMetadata_DeleteRecognizerRequest

type OperationMetadata_UndeleteCustomClassRequest

type OperationMetadata_UndeleteCustomClassRequest = src.OperationMetadata_UndeleteCustomClassRequest

type OperationMetadata_UndeletePhraseSetRequest

type OperationMetadata_UndeletePhraseSetRequest = src.OperationMetadata_UndeletePhraseSetRequest

type OperationMetadata_UndeleteRecognizerRequest

type OperationMetadata_UndeleteRecognizerRequest = src.OperationMetadata_UndeleteRecognizerRequest

type OperationMetadata_UpdateConfigRequest

type OperationMetadata_UpdateConfigRequest = src.OperationMetadata_UpdateConfigRequest

type OperationMetadata_UpdateCustomClassRequest

type OperationMetadata_UpdateCustomClassRequest = src.OperationMetadata_UpdateCustomClassRequest

type OperationMetadata_UpdatePhraseSetRequest

type OperationMetadata_UpdatePhraseSetRequest = src.OperationMetadata_UpdatePhraseSetRequest

type OperationMetadata_UpdateRecognizerRequest

type OperationMetadata_UpdateRecognizerRequest = src.OperationMetadata_UpdateRecognizerRequest

type PhraseSet deprecated

type PhraseSet = src.PhraseSet

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.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type PhraseSet_Phrase deprecated

type PhraseSet_Phrase = src.PhraseSet_Phrase

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.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type PhraseSet_State deprecated

type PhraseSet_State = src.PhraseSet_State

Set of states that define the lifecycle of a PhraseSet.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type RecognitionConfig deprecated

type RecognitionConfig = src.RecognitionConfig

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type RecognitionConfig_AutoDecodingConfig

type RecognitionConfig_AutoDecodingConfig = src.RecognitionConfig_AutoDecodingConfig

type RecognitionConfig_ExplicitDecodingConfig

type RecognitionConfig_ExplicitDecodingConfig = src.RecognitionConfig_ExplicitDecodingConfig

type RecognitionFeatures deprecated

type RecognitionFeatures = src.RecognitionFeatures

Available recognition features.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type RecognitionFeatures_MultiChannelMode deprecated

type RecognitionFeatures_MultiChannelMode = src.RecognitionFeatures_MultiChannelMode

Options for how to recognize multi-channel audio.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type RecognitionResponseMetadata deprecated

type RecognitionResponseMetadata = src.RecognitionResponseMetadata

Metadata about the recognition request and response.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type RecognizeRequest deprecated

type RecognizeRequest = src.RecognizeRequest

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).

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type RecognizeRequest_Content

type RecognizeRequest_Content = src.RecognizeRequest_Content

type RecognizeRequest_Uri

type RecognizeRequest_Uri = src.RecognizeRequest_Uri

type RecognizeResponse deprecated

type RecognizeResponse = src.RecognizeResponse

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type Recognizer deprecated

type Recognizer = src.Recognizer

A Recognizer message. Stores recognition configuration and metadata.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type Recognizer_State deprecated

type Recognizer_State = src.Recognizer_State

Set of states that define the lifecycle of a Recognizer.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type SpeakerDiarizationConfig deprecated

type SpeakerDiarizationConfig = src.SpeakerDiarizationConfig

Configuration to enable speaker diarization.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type SpeechAdaptation deprecated

type SpeechAdaptation = src.SpeechAdaptation

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type SpeechAdaptation_AdaptationPhraseSet deprecated

type SpeechAdaptation_AdaptationPhraseSet = src.SpeechAdaptation_AdaptationPhraseSet

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type SpeechClient deprecated

type SpeechClient = src.SpeechClient

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.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

func NewSpeechClient deprecated

func NewSpeechClient(cc grpc.ClientConnInterface) SpeechClient

Deprecated: Please use funcs in: cloud.google.com/go/speech/apiv2/speechpb

type SpeechRecognitionAlternative deprecated

type SpeechRecognitionAlternative = src.SpeechRecognitionAlternative

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type SpeechRecognitionResult deprecated

type SpeechRecognitionResult = src.SpeechRecognitionResult

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type SpeechServer deprecated

type SpeechServer = src.SpeechServer

SpeechServer is the server API for Speech service.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type Speech_StreamingRecognizeClient

type Speech_StreamingRecognizeClient = src.Speech_StreamingRecognizeClient

type Speech_StreamingRecognizeServer

type Speech_StreamingRecognizeServer = src.Speech_StreamingRecognizeServer

type StreamingRecognitionConfig deprecated

type StreamingRecognitionConfig = src.StreamingRecognitionConfig

Provides configuration information for the StreamingRecognize request.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type StreamingRecognitionFeatures deprecated

type StreamingRecognitionFeatures = src.StreamingRecognitionFeatures

Available recognition features specific to streaming recognition requests.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type StreamingRecognitionFeatures_VoiceActivityTimeout deprecated

type StreamingRecognitionFeatures_VoiceActivityTimeout = src.StreamingRecognitionFeatures_VoiceActivityTimeout

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type StreamingRecognitionResult deprecated

type StreamingRecognitionResult = src.StreamingRecognitionResult

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type StreamingRecognizeRequest deprecated

type StreamingRecognizeRequest = src.StreamingRecognizeRequest

Request message for the [StreamingRecognize][google.cloud.speech.v2.Speech.StreamingRecognize] method. Multiple StreamingRecognizeRequest[google.cloud.speech.v2.StreamingRecognizeRequest] messages are sent. The first message must contain a [recognizer][google.cloud.speech.v2.StreamingRecognizeRequest.recognizer] and optionally a [streaming_config][google.cloud.speech.v2.StreamingRecognizeRequest.streaming_config] message and must not contain [audio][google.cloud.speech.v2.StreamingRecognizeRequest.audio]. All subsequent messages must contain [audio][google.cloud.speech.v2.StreamingRecognizeRequest.audio] and must not contain a [streaming_config][google.cloud.speech.v2.StreamingRecognizeRequest.streaming_config] message.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type StreamingRecognizeRequest_Audio

type StreamingRecognizeRequest_Audio = src.StreamingRecognizeRequest_Audio

type StreamingRecognizeRequest_StreamingConfig

type StreamingRecognizeRequest_StreamingConfig = src.StreamingRecognizeRequest_StreamingConfig

type StreamingRecognizeResponse deprecated

type StreamingRecognizeResponse = src.StreamingRecognizeResponse

`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 } 3. results { alternatives { transcript: "to be" } stability: 0.9 } results { alternatives { transcript: " or not to be" } stability: 0.01 } 4. 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 } 6. results { alternatives { transcript: " that is" } stability: 0.9 } results { alternatives { transcript: " the question" } stability: 0.01 } 7. 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`.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type StreamingRecognizeResponse_SpeechEventType deprecated

type StreamingRecognizeResponse_SpeechEventType = src.StreamingRecognizeResponse_SpeechEventType

Indicates the type of speech event.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type UndeleteCustomClassRequest deprecated

type UndeleteCustomClassRequest = src.UndeleteCustomClassRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type UndeletePhraseSetRequest deprecated

type UndeletePhraseSetRequest = src.UndeletePhraseSetRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type UndeleteRecognizerRequest deprecated

type UndeleteRecognizerRequest = src.UndeleteRecognizerRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type UnimplementedSpeechServer deprecated

type UnimplementedSpeechServer = src.UnimplementedSpeechServer

UnimplementedSpeechServer can be embedded to have forward compatible implementations.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type UpdateConfigRequest deprecated

type UpdateConfigRequest = src.UpdateConfigRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type UpdateCustomClassRequest deprecated

type UpdateCustomClassRequest = src.UpdateCustomClassRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type UpdatePhraseSetRequest deprecated

type UpdatePhraseSetRequest = src.UpdatePhraseSetRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type UpdateRecognizerRequest deprecated

type UpdateRecognizerRequest = src.UpdateRecognizerRequest

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

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

type WordInfo deprecated

type WordInfo = src.WordInfo

Word-specific information for recognized words.

Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb

Jump to

Keyboard shortcuts

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