Debian Codegraph @

googleapis/cloud/speech/v2/alias.go

raw
1 // Copyright 2022 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by aliasgen. DO NOT EDIT.
16
17 // Package speech aliases all exported identifiers in package
18 // "cloud.google.com/go/speech/apiv2/speechpb".
19 //
20 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb.
21 // Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md
22 // for more details.
23 package speech
24
25 import (
26 src "cloud.google.com/go/speech/apiv2/speechpb"
27 grpc "google.golang.org/grpc"
28 )
29
30 // Deprecated: Please use consts in: cloud.google.com/go/speech/apiv2/speechpb
31 const (
32 CustomClass_ACTIVE = src.CustomClass_ACTIVE
33 CustomClass_DELETED = src.CustomClass_DELETED
34 CustomClass_STATE_UNSPECIFIED = src.CustomClass_STATE_UNSPECIFIED
35 ExplicitDecodingConfig_ALAW = src.ExplicitDecodingConfig_ALAW
36 ExplicitDecodingConfig_AUDIO_ENCODING_UNSPECIFIED = src.ExplicitDecodingConfig_AUDIO_ENCODING_UNSPECIFIED
37 ExplicitDecodingConfig_LINEAR16 = src.ExplicitDecodingConfig_LINEAR16
38 ExplicitDecodingConfig_MULAW = src.ExplicitDecodingConfig_MULAW
39 PhraseSet_ACTIVE = src.PhraseSet_ACTIVE
40 PhraseSet_DELETED = src.PhraseSet_DELETED
41 PhraseSet_STATE_UNSPECIFIED = src.PhraseSet_STATE_UNSPECIFIED
42 RecognitionFeatures_MULTI_CHANNEL_MODE_UNSPECIFIED = src.RecognitionFeatures_MULTI_CHANNEL_MODE_UNSPECIFIED
43 RecognitionFeatures_SEPARATE_RECOGNITION_PER_CHANNEL = src.RecognitionFeatures_SEPARATE_RECOGNITION_PER_CHANNEL
44 Recognizer_ACTIVE = src.Recognizer_ACTIVE
45 Recognizer_DELETED = src.Recognizer_DELETED
46 Recognizer_STATE_UNSPECIFIED = src.Recognizer_STATE_UNSPECIFIED
47 StreamingRecognizeResponse_END_OF_SINGLE_UTTERANCE = src.StreamingRecognizeResponse_END_OF_SINGLE_UTTERANCE
48 StreamingRecognizeResponse_SPEECH_ACTIVITY_BEGIN = src.StreamingRecognizeResponse_SPEECH_ACTIVITY_BEGIN
49 StreamingRecognizeResponse_SPEECH_ACTIVITY_END = src.StreamingRecognizeResponse_SPEECH_ACTIVITY_END
50 StreamingRecognizeResponse_SPEECH_EVENT_TYPE_UNSPECIFIED = src.StreamingRecognizeResponse_SPEECH_EVENT_TYPE_UNSPECIFIED
51 )
52
53 // Deprecated: Please use vars in: cloud.google.com/go/speech/apiv2/speechpb
54 var (
55 CustomClass_State_name = src.CustomClass_State_name
56 CustomClass_State_value = src.CustomClass_State_value
57 ExplicitDecodingConfig_AudioEncoding_name = src.ExplicitDecodingConfig_AudioEncoding_name
58 ExplicitDecodingConfig_AudioEncoding_value = src.ExplicitDecodingConfig_AudioEncoding_value
59 File_google_cloud_speech_v2_cloud_speech_proto = src.File_google_cloud_speech_v2_cloud_speech_proto
60 PhraseSet_State_name = src.PhraseSet_State_name
61 PhraseSet_State_value = src.PhraseSet_State_value
62 RecognitionFeatures_MultiChannelMode_name = src.RecognitionFeatures_MultiChannelMode_name
63 RecognitionFeatures_MultiChannelMode_value = src.RecognitionFeatures_MultiChannelMode_value
64 Recognizer_State_name = src.Recognizer_State_name
65 Recognizer_State_value = src.Recognizer_State_value
66 StreamingRecognizeResponse_SpeechEventType_name = src.StreamingRecognizeResponse_SpeechEventType_name
67 StreamingRecognizeResponse_SpeechEventType_value = src.StreamingRecognizeResponse_SpeechEventType_value
68 )
69
70 // Automatically detected decoding parameters. Supported for the following
71 // encodings: * WAV_LINEAR16: 16-bit signed little-endian PCM samples in a WAV
72 // container. * WAV_MULAW: 8-bit companded mulaw samples in a WAV container. *
73 // WAV_ALAW: 8-bit companded alaw samples in a WAV container. * RFC4867_5_AMR:
74 // AMR frames with an rfc4867.5 header. * RFC4867_5_AMRWB: AMR-WB frames with
75 // an rfc4867.5 header. * FLAC: FLAC frames in the "native FLAC" container
76 // format. * MP3: MPEG audio frames with optional (ignored) ID3 metadata. *
77 // OGG_OPUS: Opus audio frames in an Ogg container. * WEBM_OPUS: Opus audio
78 // frames in a WebM container.
79 //
80 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
81 type AutoDetectDecodingConfig = src.AutoDetectDecodingConfig
82
83 // Metadata about a single file in a batch for BatchRecognize.
84 //
85 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
86 type BatchRecognizeFileMetadata = src.BatchRecognizeFileMetadata
87 type BatchRecognizeFileMetadata_Uri = src.BatchRecognizeFileMetadata_Uri
88
89 // Final results for a single file.
90 //
91 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
92 type BatchRecognizeFileResult = src.BatchRecognizeFileResult
93
94 // Operation metadata for
95 // [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize].
96 //
97 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
98 type BatchRecognizeMetadata = src.BatchRecognizeMetadata
99
100 // Request message for the
101 // [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] method.
102 //
103 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
104 type BatchRecognizeRequest = src.BatchRecognizeRequest
105
106 // Response message for
107 // [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] that is
108 // packaged into a longrunning [Operation][google.longrunning.Operation].
109 //
110 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
111 type BatchRecognizeResponse = src.BatchRecognizeResponse
112
113 // Metadata about transcription for a single file (for example, progress
114 // percent).
115 //
116 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
117 type BatchRecognizeTranscriptionMetadata = src.BatchRecognizeTranscriptionMetadata
118
119 // Message representing the config for the Speech-to-Text API. This includes
120 // an optional [KMS
121 // key](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
122 // incoming data will be encrypted.
123 //
124 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
125 type Config = src.Config
126
127 // Request message for the
128 // [CreateCustomClass][google.cloud.speech.v2.Speech.CreateCustomClass] method.
129 //
130 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
131 type CreateCustomClassRequest = src.CreateCustomClassRequest
132
133 // Request message for the
134 // [CreatePhraseSet][google.cloud.speech.v2.Speech.CreatePhraseSet] method.
135 //
136 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
137 type CreatePhraseSetRequest = src.CreatePhraseSetRequest
138
139 // Request message for the
140 // [CreateRecognizer][google.cloud.speech.v2.Speech.CreateRecognizer] method.
141 //
142 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
143 type CreateRecognizerRequest = src.CreateRecognizerRequest
144
145 // CustomClass for biasing in speech recognition. Used to define a set of
146 // words or phrases that represents a common concept or theme likely to appear
147 // in your audio, for example a list of passenger ship names.
148 //
149 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
150 type CustomClass = src.CustomClass
151
152 // An item of the class.
153 //
154 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
155 type CustomClass_ClassItem = src.CustomClass_ClassItem
156
157 // Set of states that define the lifecycle of a CustomClass.
158 //
159 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
160 type CustomClass_State = src.CustomClass_State
161
162 // Request message for the
163 // [DeleteCustomClass][google.cloud.speech.v2.Speech.DeleteCustomClass] method.
164 //
165 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
166 type DeleteCustomClassRequest = src.DeleteCustomClassRequest
167
168 // Request message for the
169 // [DeletePhraseSet][google.cloud.speech.v2.Speech.DeletePhraseSet] method.
170 //
171 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
172 type DeletePhraseSetRequest = src.DeletePhraseSetRequest
173
174 // Request message for the
175 // [DeleteRecognizer][google.cloud.speech.v2.Speech.DeleteRecognizer] method.
176 //
177 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
178 type DeleteRecognizerRequest = src.DeleteRecognizerRequest
179
180 // Explicitly specified decoding parameters.
181 //
182 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
183 type ExplicitDecodingConfig = src.ExplicitDecodingConfig
184
185 // Supported audio data encodings.
186 //
187 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
188 type ExplicitDecodingConfig_AudioEncoding = src.ExplicitDecodingConfig_AudioEncoding
189
190 // Request message for the
191 // [GetConfig][google.cloud.speech.v2.Speech.GetConfig] method.
192 //
193 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
194 type GetConfigRequest = src.GetConfigRequest
195
196 // Request message for the
197 // [GetCustomClass][google.cloud.speech.v2.Speech.GetCustomClass] method.
198 //
199 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
200 type GetCustomClassRequest = src.GetCustomClassRequest
201
202 // Request message for the
203 // [GetPhraseSet][google.cloud.speech.v2.Speech.GetPhraseSet] method.
204 //
205 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
206 type GetPhraseSetRequest = src.GetPhraseSetRequest
207
208 // Request message for the
209 // [GetRecognizer][google.cloud.speech.v2.Speech.GetRecognizer] method.
210 //
211 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
212 type GetRecognizerRequest = src.GetRecognizerRequest
213
214 // Request message for the
215 // [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.
216 //
217 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
218 type ListCustomClassesRequest = src.ListCustomClassesRequest
219
220 // Response message for the
221 // [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.
222 //
223 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
224 type ListCustomClassesResponse = src.ListCustomClassesResponse
225
226 // Request message for the
227 // [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.
228 //
229 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
230 type ListPhraseSetsRequest = src.ListPhraseSetsRequest
231
232 // Response message for the
233 // [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.
234 //
235 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
236 type ListPhraseSetsResponse = src.ListPhraseSetsResponse
237
238 // Request message for the
239 // [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.
240 //
241 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
242 type ListRecognizersRequest = src.ListRecognizersRequest
243
244 // Response message for the
245 // [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.
246 //
247 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
248 type ListRecognizersResponse = src.ListRecognizersResponse
249
250 // Represents the metadata of a long-running operation.
251 //
252 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
253 type OperationMetadata = src.OperationMetadata
254 type OperationMetadata_BatchRecognizeMetadata = src.OperationMetadata_BatchRecognizeMetadata
255 type OperationMetadata_BatchRecognizeRequest = src.OperationMetadata_BatchRecognizeRequest
256 type OperationMetadata_CreateCustomClassRequest = src.OperationMetadata_CreateCustomClassRequest
257 type OperationMetadata_CreatePhraseSetRequest = src.OperationMetadata_CreatePhraseSetRequest
258 type OperationMetadata_CreateRecognizerRequest = src.OperationMetadata_CreateRecognizerRequest
259 type OperationMetadata_DeleteCustomClassRequest = src.OperationMetadata_DeleteCustomClassRequest
260 type OperationMetadata_DeletePhraseSetRequest = src.OperationMetadata_DeletePhraseSetRequest
261 type OperationMetadata_DeleteRecognizerRequest = src.OperationMetadata_DeleteRecognizerRequest
262 type OperationMetadata_UndeleteCustomClassRequest = src.OperationMetadata_UndeleteCustomClassRequest
263 type OperationMetadata_UndeletePhraseSetRequest = src.OperationMetadata_UndeletePhraseSetRequest
264 type OperationMetadata_UndeleteRecognizerRequest = src.OperationMetadata_UndeleteRecognizerRequest
265 type OperationMetadata_UpdateConfigRequest = src.OperationMetadata_UpdateConfigRequest
266 type OperationMetadata_UpdateCustomClassRequest = src.OperationMetadata_UpdateCustomClassRequest
267 type OperationMetadata_UpdatePhraseSetRequest = src.OperationMetadata_UpdatePhraseSetRequest
268 type OperationMetadata_UpdateRecognizerRequest = src.OperationMetadata_UpdateRecognizerRequest
269
270 // PhraseSet for biasing in speech recognition. A PhraseSet is used to provide
271 // "hints" to the speech recognizer to favor specific words and phrases in the
272 // results.
273 //
274 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
275 type PhraseSet = src.PhraseSet
276
277 // A Phrase contains words and phrase "hints" so that the speech recognition
278 // is more likely to recognize them. This can be used to improve the accuracy
279 // for specific words and phrases, for example, if specific commands are
280 // typically spoken by the user. This can also be used to add additional words
281 // to the vocabulary of the recognizer. List items can also include CustomClass
282 // references containing groups of words that represent common concepts that
283 // occur in natural language.
284 //
285 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
286 type PhraseSet_Phrase = src.PhraseSet_Phrase
287
288 // Set of states that define the lifecycle of a PhraseSet.
289 //
290 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
291 type PhraseSet_State = src.PhraseSet_State
292
293 // Provides information to the Recognizer that specifies how to process the
294 // recognition request.
295 //
296 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
297 type RecognitionConfig = src.RecognitionConfig
298 type RecognitionConfig_AutoDecodingConfig = src.RecognitionConfig_AutoDecodingConfig
299 type RecognitionConfig_ExplicitDecodingConfig = src.RecognitionConfig_ExplicitDecodingConfig
300
301 // Available recognition features.
302 //
303 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
304 type RecognitionFeatures = src.RecognitionFeatures
305
306 // Options for how to recognize multi-channel audio.
307 //
308 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
309 type RecognitionFeatures_MultiChannelMode = src.RecognitionFeatures_MultiChannelMode
310
311 // Metadata about the recognition request and response.
312 //
313 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
314 type RecognitionResponseMetadata = src.RecognitionResponseMetadata
315
316 // Request message for the
317 // [Recognize][google.cloud.speech.v2.Speech.Recognize] method. Either
318 // `content` or `uri` must be supplied. Supplying both or neither returns
319 // [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. See [content
320 // limits](https://cloud.google.com/speech-to-text/quotas#content).
321 //
322 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
323 type RecognizeRequest = src.RecognizeRequest
324 type RecognizeRequest_Content = src.RecognizeRequest_Content
325 type RecognizeRequest_Uri = src.RecognizeRequest_Uri
326
327 // Response message for the
328 // [Recognize][google.cloud.speech.v2.Speech.Recognize] method.
329 //
330 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
331 type RecognizeResponse = src.RecognizeResponse
332
333 // A Recognizer message. Stores recognition configuration and metadata.
334 //
335 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
336 type Recognizer = src.Recognizer
337
338 // Set of states that define the lifecycle of a Recognizer.
339 //
340 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
341 type Recognizer_State = src.Recognizer_State
342
343 // Configuration to enable speaker diarization.
344 //
345 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
346 type SpeakerDiarizationConfig = src.SpeakerDiarizationConfig
347
348 // Provides "hints" to the speech recognizer to favor specific words and
349 // phrases in the results. Phrase sets can be specified as an inline resource,
350 // or a reference to an existing phrase set resource.
351 //
352 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
353 type SpeechAdaptation = src.SpeechAdaptation
354
355 // A biasing phrase set, which can be either a string referencing the name of
356 // an existing phrase set resource, or an inline definition of a phrase set.
357 //
358 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
359 type SpeechAdaptation_AdaptationPhraseSet = src.SpeechAdaptation_AdaptationPhraseSet
360 type SpeechAdaptation_AdaptationPhraseSet_InlinePhraseSet = src.SpeechAdaptation_AdaptationPhraseSet_InlinePhraseSet
361 type SpeechAdaptation_AdaptationPhraseSet_PhraseSet = src.SpeechAdaptation_AdaptationPhraseSet_PhraseSet
362
363 // SpeechClient is the client API for Speech service. For semantics around ctx
364 // use and closing/ending streaming RPCs, please refer to
365 // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
366 //
367 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
368 type SpeechClient = src.SpeechClient
369
370 // Alternative hypotheses (a.k.a. n-best list).
371 //
372 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
373 type SpeechRecognitionAlternative = src.SpeechRecognitionAlternative
374
375 // A speech recognition result corresponding to a portion of the audio.
376 //
377 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
378 type SpeechRecognitionResult = src.SpeechRecognitionResult
379
380 // SpeechServer is the server API for Speech service.
381 //
382 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
383 type SpeechServer = src.SpeechServer
384 type Speech_StreamingRecognizeClient = src.Speech_StreamingRecognizeClient
385 type Speech_StreamingRecognizeServer = src.Speech_StreamingRecognizeServer
386
387 // Provides configuration information for the StreamingRecognize request.
388 //
389 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
390 type StreamingRecognitionConfig = src.StreamingRecognitionConfig
391
392 // Available recognition features specific to streaming recognition requests.
393 //
394 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
395 type StreamingRecognitionFeatures = src.StreamingRecognitionFeatures
396
397 // Events that a timeout can be set on for voice activity.
398 //
399 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
400 type StreamingRecognitionFeatures_VoiceActivityTimeout = src.StreamingRecognitionFeatures_VoiceActivityTimeout
401
402 // A streaming speech recognition result corresponding to a portion of the
403 // audio that is currently being processed.
404 //
405 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
406 type StreamingRecognitionResult = src.StreamingRecognitionResult
407
408 // Request message for the
409 // [StreamingRecognize][google.cloud.speech.v2.Speech.StreamingRecognize]
410 // method. Multiple
411 // [StreamingRecognizeRequest][google.cloud.speech.v2.StreamingRecognizeRequest]
412 // messages are sent. The first message must contain a
413 // [recognizer][google.cloud.speech.v2.StreamingRecognizeRequest.recognizer]
414 // and optionally a
415 // [streaming_config][google.cloud.speech.v2.StreamingRecognizeRequest.streaming_config]
416 // message and must not contain
417 // [audio][google.cloud.speech.v2.StreamingRecognizeRequest.audio]. All
418 // subsequent messages must contain
419 // [audio][google.cloud.speech.v2.StreamingRecognizeRequest.audio] and must not
420 // contain a
421 // [streaming_config][google.cloud.speech.v2.StreamingRecognizeRequest.streaming_config]
422 // message.
423 //
424 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
425 type StreamingRecognizeRequest = src.StreamingRecognizeRequest
426 type StreamingRecognizeRequest_Audio = src.StreamingRecognizeRequest_Audio
427 type StreamingRecognizeRequest_StreamingConfig = src.StreamingRecognizeRequest_StreamingConfig
428
429 // `StreamingRecognizeResponse` is the only message returned to the client by
430 // `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
431 // messages are streamed back to the client. If there is no recognizable audio
432 // then no messages are streamed back to the client. Here are some examples of
433 // `StreamingRecognizeResponse`s that might be returned while processing audio:
434 // 1. results { alternatives { transcript: "tube" } stability: 0.01 } 2.
435 // results { alternatives { transcript: "to be a" } stability: 0.01 } 3.
436 // results { alternatives { transcript: "to be" } stability: 0.9 } results {
437 // alternatives { transcript: " or not to be" } stability: 0.01 } 4. results {
438 // alternatives { transcript: "to be or not to be" confidence: 0.92 }
439 // alternatives { transcript: "to bee or not to bee" } is_final: true } 5.
440 // results { alternatives { transcript: " that's" } stability: 0.01 } 6.
441 // results { alternatives { transcript: " that is" } stability: 0.9 } results {
442 // alternatives { transcript: " the question" } stability: 0.01 } 7. results {
443 // alternatives { transcript: " that is the question" confidence: 0.98 }
444 // alternatives { transcript: " that was the question" } is_final: true }
445 // Notes: - Only two of the above responses #4 and #7 contain final results;
446 // they are indicated by `is_final: true`. Concatenating these together
447 // generates the full transcript: "to be or not to be that is the question". -
448 // The others contain interim `results`. #3 and #6 contain two interim
449 // `results`: the first portion has a high stability and is less likely to
450 // change; the second portion has a low stability and is very likely to change.
451 // A UI designer might choose to show only high stability `results`. - The
452 // specific `stability` and `confidence` values shown above are only for
453 // illustrative purposes. Actual values may vary. - In each response, only one
454 // of these fields will be set: `error`, `speech_event_type`, or one or more
455 // (repeated) `results`.
456 //
457 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
458 type StreamingRecognizeResponse = src.StreamingRecognizeResponse
459
460 // Indicates the type of speech event.
461 //
462 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
463 type StreamingRecognizeResponse_SpeechEventType = src.StreamingRecognizeResponse_SpeechEventType
464
465 // Request message for the
466 // [UndeleteCustomClass][google.cloud.speech.v2.Speech.UndeleteCustomClass]
467 // method.
468 //
469 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
470 type UndeleteCustomClassRequest = src.UndeleteCustomClassRequest
471
472 // Request message for the
473 // [UndeletePhraseSet][google.cloud.speech.v2.Speech.UndeletePhraseSet] method.
474 //
475 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
476 type UndeletePhraseSetRequest = src.UndeletePhraseSetRequest
477
478 // Request message for the
479 // [UndeleteRecognizer][google.cloud.speech.v2.Speech.UndeleteRecognizer]
480 // method.
481 //
482 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
483 type UndeleteRecognizerRequest = src.UndeleteRecognizerRequest
484
485 // UnimplementedSpeechServer can be embedded to have forward compatible
486 // implementations.
487 //
488 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
489 type UnimplementedSpeechServer = src.UnimplementedSpeechServer
490
491 // Request message for the
492 // [UpdateConfig][google.cloud.speech.v2.Speech.UpdateConfig] method.
493 //
494 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
495 type UpdateConfigRequest = src.UpdateConfigRequest
496
497 // Request message for the
498 // [UpdateCustomClass][google.cloud.speech.v2.Speech.UpdateCustomClass] method.
499 //
500 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
501 type UpdateCustomClassRequest = src.UpdateCustomClassRequest
502
503 // Request message for the
504 // [UpdatePhraseSet][google.cloud.speech.v2.Speech.UpdatePhraseSet] method.
505 //
506 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
507 type UpdatePhraseSetRequest = src.UpdatePhraseSetRequest
508
509 // Request message for the
510 // [UpdateRecognizer][google.cloud.speech.v2.Speech.UpdateRecognizer] method.
511 //
512 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
513 type UpdateRecognizerRequest = src.UpdateRecognizerRequest
514
515 // Word-specific information for recognized words.
516 //
517 // Deprecated: Please use types in: cloud.google.com/go/speech/apiv2/speechpb
518 type WordInfo = src.WordInfo
519
520 // Deprecated: Please use funcs in: cloud.google.com/go/speech/apiv2/speechpb
521 func NewSpeechClient(cc grpc.ClientConnInterface) SpeechClient { return src.NewSpeechClient(cc) }
522
523 // Deprecated: Please use funcs in: cloud.google.com/go/speech/apiv2/speechpb
524 func RegisterSpeechServer(s *grpc.Server, srv SpeechServer) { src.RegisterSpeechServer(s, srv) }