@maxim_mazurok/gapi.client.speech-v1p1beta1 0.0.20220808
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1100 -0
- package/package.json +20 -0
- package/readme.md +88 -0
- package/tests.ts +326 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,1100 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Cloud Speech-to-Text API v1p1beta1 0.0 */
|
|
2
|
+
// Project: https://cloud.google.com/speech-to-text/docs/quickstart-protocol
|
|
3
|
+
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
|
+
// Nick Amoscato <https://github.com/namoscato>
|
|
5
|
+
// Declan Vong <https://github.com/declanvong>
|
|
6
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
+
// TypeScript Version: 2.8
|
|
8
|
+
|
|
9
|
+
// IMPORTANT
|
|
10
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
|
+
// Generated from: https://speech.googleapis.com/$discovery/rest?version=v1p1beta1
|
|
13
|
+
// Revision: 20220808
|
|
14
|
+
|
|
15
|
+
/// <reference types="gapi.client" />
|
|
16
|
+
|
|
17
|
+
declare namespace gapi.client {
|
|
18
|
+
/** Load Cloud Speech-to-Text API v1p1beta1 */
|
|
19
|
+
function load(urlOrObject: "https://speech.googleapis.com/$discovery/rest?version=v1p1beta1"): Promise<void>;
|
|
20
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
21
|
+
function load(name: "speech", version: "v1p1beta1"): Promise<void>;
|
|
22
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
23
|
+
function load(name: "speech", version: "v1p1beta1", callback: () => any): void;
|
|
24
|
+
|
|
25
|
+
namespace speech {
|
|
26
|
+
interface ClassItem {
|
|
27
|
+
/** The class item's value. */
|
|
28
|
+
value?: string;
|
|
29
|
+
}
|
|
30
|
+
interface CreateCustomClassRequest {
|
|
31
|
+
/** Required. The custom class to create. */
|
|
32
|
+
customClass?: CustomClass;
|
|
33
|
+
/**
|
|
34
|
+
* Required. The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should restrict to letters, numbers, and hyphens,
|
|
35
|
+
* with the first character a letter, the last a letter or a number, and be 4-63 characters.
|
|
36
|
+
*/
|
|
37
|
+
customClassId?: string;
|
|
38
|
+
}
|
|
39
|
+
interface CreatePhraseSetRequest {
|
|
40
|
+
/** Required. The phrase set to create. */
|
|
41
|
+
phraseSet?: PhraseSet;
|
|
42
|
+
/**
|
|
43
|
+
* Required. The ID to use for the phrase set, which will become the final component of the phrase set's resource name. This value should restrict to letters, numbers, and hyphens,
|
|
44
|
+
* with the first character a letter, the last a letter or a number, and be 4-63 characters.
|
|
45
|
+
*/
|
|
46
|
+
phraseSetId?: string;
|
|
47
|
+
}
|
|
48
|
+
interface CustomClass {
|
|
49
|
+
/** If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive. */
|
|
50
|
+
customClassId?: string;
|
|
51
|
+
/** A collection of class items. */
|
|
52
|
+
items?: ClassItem[];
|
|
53
|
+
/** The resource name of the custom class. */
|
|
54
|
+
name?: string;
|
|
55
|
+
}
|
|
56
|
+
// tslint:disable-next-line:no-empty-interface
|
|
57
|
+
interface Empty {
|
|
58
|
+
}
|
|
59
|
+
interface Entry {
|
|
60
|
+
/** Whether the search is case sensitive. */
|
|
61
|
+
caseSensitive?: boolean;
|
|
62
|
+
/** What to replace with. Max length is 100 characters. */
|
|
63
|
+
replace?: string;
|
|
64
|
+
/** What to replace. Max length is 100 characters. */
|
|
65
|
+
search?: string;
|
|
66
|
+
}
|
|
67
|
+
interface ListCustomClassesResponse {
|
|
68
|
+
/** The custom classes. */
|
|
69
|
+
customClasses?: CustomClass[];
|
|
70
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
71
|
+
nextPageToken?: string;
|
|
72
|
+
}
|
|
73
|
+
interface ListOperationsResponse {
|
|
74
|
+
/** The standard List next-page token. */
|
|
75
|
+
nextPageToken?: string;
|
|
76
|
+
/** A list of operations that matches the specified filter in the request. */
|
|
77
|
+
operations?: Operation[];
|
|
78
|
+
}
|
|
79
|
+
interface ListPhraseSetResponse {
|
|
80
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
81
|
+
nextPageToken?: string;
|
|
82
|
+
/** The phrase set. */
|
|
83
|
+
phraseSets?: PhraseSet[];
|
|
84
|
+
}
|
|
85
|
+
interface LongRunningRecognizeMetadata {
|
|
86
|
+
/** Time of the most recent processing update. */
|
|
87
|
+
lastUpdateTime?: string;
|
|
88
|
+
/** Output only. A copy of the TranscriptOutputConfig if it was set in the request. */
|
|
89
|
+
outputConfig?: TranscriptOutputConfig;
|
|
90
|
+
/** Approximate percentage of audio processed thus far. Guaranteed to be 100 when the audio is fully processed and the results are available. */
|
|
91
|
+
progressPercent?: number;
|
|
92
|
+
/** Time when the request was received. */
|
|
93
|
+
startTime?: string;
|
|
94
|
+
/** Output only. The URI of the audio file being transcribed. Empty if the audio was sent as byte content. */
|
|
95
|
+
uri?: string;
|
|
96
|
+
}
|
|
97
|
+
interface LongRunningRecognizeRequest {
|
|
98
|
+
/** Required. The audio data to be recognized. */
|
|
99
|
+
audio?: RecognitionAudio;
|
|
100
|
+
/** Required. Provides information to the recognizer that specifies how to process the request. */
|
|
101
|
+
config?: RecognitionConfig;
|
|
102
|
+
/** Optional. Specifies an optional destination for the recognition results. */
|
|
103
|
+
outputConfig?: TranscriptOutputConfig;
|
|
104
|
+
}
|
|
105
|
+
interface LongRunningRecognizeResponse {
|
|
106
|
+
/** Original output config if present in the request. */
|
|
107
|
+
outputConfig?: TranscriptOutputConfig;
|
|
108
|
+
/** If the transcript output fails this field contains the relevant error. */
|
|
109
|
+
outputError?: Status;
|
|
110
|
+
/** Sequential list of transcription results corresponding to sequential portions of audio. */
|
|
111
|
+
results?: SpeechRecognitionResult[];
|
|
112
|
+
/** When available, billed audio seconds for the corresponding request. */
|
|
113
|
+
totalBilledTime?: string;
|
|
114
|
+
}
|
|
115
|
+
interface Operation {
|
|
116
|
+
/** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
|
|
117
|
+
done?: boolean;
|
|
118
|
+
/** The error result of the operation in case of failure or cancellation. */
|
|
119
|
+
error?: Status;
|
|
120
|
+
/**
|
|
121
|
+
* Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such
|
|
122
|
+
* metadata. Any method that returns a long-running operation should document the metadata type, if any.
|
|
123
|
+
*/
|
|
124
|
+
metadata?: { [P in string]: any };
|
|
125
|
+
/**
|
|
126
|
+
* The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending
|
|
127
|
+
* with `operations/{unique_id}`.
|
|
128
|
+
*/
|
|
129
|
+
name?: string;
|
|
130
|
+
/**
|
|
131
|
+
* The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
|
|
132
|
+
* original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the
|
|
133
|
+
* original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
134
|
+
*/
|
|
135
|
+
response?: { [P in string]: any };
|
|
136
|
+
}
|
|
137
|
+
interface Phrase {
|
|
138
|
+
/**
|
|
139
|
+
* 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
|
|
140
|
+
* phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost will simply be ignored. Though `boost` can accept a wide range of positive
|
|
141
|
+
* values, most use cases are best served with values between 0 and 20. We recommend using a binary search approach to finding the optimal value for your use case. Speech recognition
|
|
142
|
+
* will skip PhraseSets with a boost value of 0.
|
|
143
|
+
*/
|
|
144
|
+
boost?: number;
|
|
145
|
+
/** The phrase itself. */
|
|
146
|
+
value?: string;
|
|
147
|
+
}
|
|
148
|
+
interface PhraseSet {
|
|
149
|
+
/**
|
|
150
|
+
* 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
|
|
151
|
+
* of false positive recognition as well. Negative boost values would correspond to anti-biasing. Anti-biasing is not enabled, so negative boost will simply be ignored. Though `boost`
|
|
152
|
+
* can accept a wide range of positive values, most use cases are best served with values between 0 (exclusive) and 20. We recommend using a binary search approach to finding the
|
|
153
|
+
* optimal value for your use case. Speech recognition will skip PhraseSets with a boost value of 0.
|
|
154
|
+
*/
|
|
155
|
+
boost?: number;
|
|
156
|
+
/** The resource name of the phrase set. */
|
|
157
|
+
name?: string;
|
|
158
|
+
/** A list of word and phrases. */
|
|
159
|
+
phrases?: Phrase[];
|
|
160
|
+
}
|
|
161
|
+
interface RecognitionAudio {
|
|
162
|
+
/**
|
|
163
|
+
* The audio data bytes encoded as specified in `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a pure binary representation, whereas JSON representations use
|
|
164
|
+
* base64.
|
|
165
|
+
*/
|
|
166
|
+
content?: string;
|
|
167
|
+
/**
|
|
168
|
+
* URI that points to a file that contains audio data bytes as specified in `RecognitionConfig`. The file must not be compressed (for example, gzip). Currently, only Google Cloud
|
|
169
|
+
* Storage URIs are supported, which must be specified in the following format: `gs://bucket_name/object_name` (other URI formats return google.rpc.Code.INVALID_ARGUMENT). For more
|
|
170
|
+
* information, see [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
|
|
171
|
+
*/
|
|
172
|
+
uri?: string;
|
|
173
|
+
}
|
|
174
|
+
interface RecognitionConfig {
|
|
175
|
+
/**
|
|
176
|
+
* Speech adaptation configuration improves the accuracy of speech recognition. For more information, see the [speech
|
|
177
|
+
* adaptation](https://cloud.google.com/speech-to-text/docs/adaptation) documentation. When speech adaptation is set it supersedes the `speech_contexts` field.
|
|
178
|
+
*/
|
|
179
|
+
adaptation?: SpeechAdaptation;
|
|
180
|
+
/**
|
|
181
|
+
* A list of up to 3 additional [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags, listing possible alternative languages of the supplied audio. See [Language
|
|
182
|
+
* Support](https://cloud.google.com/speech-to-text/docs/languages) for a list of the currently supported language codes. If alternative languages are listed, recognition result will
|
|
183
|
+
* contain recognition in the most likely language detected including the main language_code. The recognition result will include the language tag of the language detected in the
|
|
184
|
+
* audio. Note: This feature is only supported for Voice Command and Voice Search use cases and performance may vary for other use cases (e.g., phone call transcription).
|
|
185
|
+
*/
|
|
186
|
+
alternativeLanguageCodes?: string[];
|
|
187
|
+
/**
|
|
188
|
+
* The number of channels in the input audio data. ONLY set this for MULTI-CHANNEL recognition. Valid values for LINEAR16 and FLAC are `1`-`8`. Valid values for OGG_OPUS are '1'-'254'.
|
|
189
|
+
* Valid value for MULAW, AMR, AMR_WB and SPEEX_WITH_HEADER_BYTE is only `1`. If `0` or omitted, defaults to one channel (mono). Note: We only recognize the first channel by default.
|
|
190
|
+
* To perform independent recognition on each channel set `enable_separate_recognition_per_channel` to 'true'.
|
|
191
|
+
*/
|
|
192
|
+
audioChannelCount?: number;
|
|
193
|
+
/**
|
|
194
|
+
* Config to enable speaker diarization and set additional parameters to make diarization better suited for your application. Note: When this is enabled, we send all the words from the
|
|
195
|
+
* 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
|
|
196
|
+
* 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.
|
|
197
|
+
*/
|
|
198
|
+
diarizationConfig?: SpeakerDiarizationConfig;
|
|
199
|
+
/**
|
|
200
|
+
* If set, specifies the estimated number of speakers in the conversation. Defaults to '2'. Ignored unless enable_speaker_diarization is set to true. Note: Use diarization_config
|
|
201
|
+
* instead.
|
|
202
|
+
*/
|
|
203
|
+
diarizationSpeakerCount?: number;
|
|
204
|
+
/**
|
|
205
|
+
* If 'true', adds punctuation to recognition result hypotheses. This feature is only available in select languages. Setting this for requests in other languages has no effect at all.
|
|
206
|
+
* The default 'false' value does not add punctuation to result hypotheses.
|
|
207
|
+
*/
|
|
208
|
+
enableAutomaticPunctuation?: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* This needs to be set to `true` explicitly and `audio_channel_count` > 1 to get each channel recognized separately. The recognition result will contain a `channel_tag` field to state
|
|
211
|
+
* which channel that result belongs to. If this is not true, we will only recognize the first channel. The request is billed cumulatively for all channels recognized:
|
|
212
|
+
* `audio_channel_count` multiplied by the length of the audio.
|
|
213
|
+
*/
|
|
214
|
+
enableSeparateRecognitionPerChannel?: boolean;
|
|
215
|
+
/**
|
|
216
|
+
* If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_tag provided in the WordInfo. Note: Use
|
|
217
|
+
* diarization_config instead.
|
|
218
|
+
*/
|
|
219
|
+
enableSpeakerDiarization?: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* The spoken emoji behavior for the call If not set, uses default behavior based on model of choice If 'true', adds spoken emoji formatting for the request. This will replace spoken
|
|
222
|
+
* emojis with the corresponding Unicode symbols in the final transcript. If 'false', spoken emojis are not replaced.
|
|
223
|
+
*/
|
|
224
|
+
enableSpokenEmojis?: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* The spoken punctuation behavior for the call If not set, uses default behavior based on model of choice e.g. command_and_search will enable spoken punctuation by default If 'true',
|
|
227
|
+
* replaces spoken punctuation with the corresponding symbols in the request. For example, "how are you question mark" becomes "how are you?". See
|
|
228
|
+
* https://cloud.google.com/speech-to-text/docs/spoken-punctuation for support. If 'false', spoken punctuation is not replaced.
|
|
229
|
+
*/
|
|
230
|
+
enableSpokenPunctuation?: boolean;
|
|
231
|
+
/** 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`. */
|
|
232
|
+
enableWordConfidence?: boolean;
|
|
233
|
+
/**
|
|
234
|
+
* 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.
|
|
235
|
+
* The default is `false`.
|
|
236
|
+
*/
|
|
237
|
+
enableWordTimeOffsets?: boolean;
|
|
238
|
+
/**
|
|
239
|
+
* Encoding of audio data sent in all `RecognitionAudio` messages. This field is optional for `FLAC` and `WAV` audio files and required for all other audio formats. For details, see
|
|
240
|
+
* AudioEncoding.
|
|
241
|
+
*/
|
|
242
|
+
encoding?: string;
|
|
243
|
+
/**
|
|
244
|
+
* Required. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". See [Language
|
|
245
|
+
* Support](https://cloud.google.com/speech-to-text/docs/languages) for a list of the currently supported language codes.
|
|
246
|
+
*/
|
|
247
|
+
languageCode?: string;
|
|
248
|
+
/**
|
|
249
|
+
* Maximum number of recognition hypotheses to be returned. Specifically, the maximum number of `SpeechRecognitionAlternative` messages within each `SpeechRecognitionResult`. The
|
|
250
|
+
* 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.
|
|
251
|
+
*/
|
|
252
|
+
maxAlternatives?: number;
|
|
253
|
+
/** Metadata regarding this request. */
|
|
254
|
+
metadata?: RecognitionMetadata;
|
|
255
|
+
/**
|
|
256
|
+
* Which model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model
|
|
257
|
+
* based on the parameters in the RecognitionConfig. *Model* *Description* latest_long Best for long form content like media or conversation. latest_short Best for short form content
|
|
258
|
+
* like commands or single shot directed speech. command_and_search Best for short queries such as voice commands or voice search. phone_call Best for audio that originated from a
|
|
259
|
+
* phone call (typically recorded at an 8khz sampling rate). video Best for audio that originated from video or includes multiple speakers. Ideally the audio is recorded at a 16khz or
|
|
260
|
+
* greater sampling rate. This is a premium model that costs more than the standard rate. default Best for audio that is not one of the specific audio models. For example, long-form
|
|
261
|
+
* audio. Ideally the audio is high-fidelity, recorded at a 16khz or greater sampling rate. medical_conversation Best for audio that originated from a conversation between a medical
|
|
262
|
+
* provider and patient. medical_dictation Best for audio that originated from dictation notes by a medical provider.
|
|
263
|
+
*/
|
|
264
|
+
model?: string;
|
|
265
|
+
/**
|
|
266
|
+
* If set to `true`, the server will attempt to filter out profanities, replacing all but the initial character in each filtered word with asterisks, e.g. "f***". If set to `false` or
|
|
267
|
+
* omitted, profanities won't be filtered out.
|
|
268
|
+
*/
|
|
269
|
+
profanityFilter?: boolean;
|
|
270
|
+
/**
|
|
271
|
+
* Sample rate in Hertz of the audio data sent in all `RecognitionAudio` messages. Valid values are: 8000-48000. 16000 is optimal. For best results, set the sampling rate of the audio
|
|
272
|
+
* source to 16000 Hz. If that's not possible, use the native sample rate of the audio source (instead of re-sampling). This field is optional for FLAC and WAV audio files, but is
|
|
273
|
+
* required for all other audio formats. For details, see AudioEncoding.
|
|
274
|
+
*/
|
|
275
|
+
sampleRateHertz?: number;
|
|
276
|
+
/**
|
|
277
|
+
* Array of SpeechContext. A means to provide context to assist the speech recognition. For more information, see [speech
|
|
278
|
+
* adaptation](https://cloud.google.com/speech-to-text/docs/adaptation).
|
|
279
|
+
*/
|
|
280
|
+
speechContexts?: SpeechContext[];
|
|
281
|
+
/**
|
|
282
|
+
* Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable
|
|
283
|
+
* partial transcripts (stability > 0.8) and final transcripts.
|
|
284
|
+
*/
|
|
285
|
+
transcriptNormalization?: TranscriptNormalization;
|
|
286
|
+
/**
|
|
287
|
+
* Set to true to use an enhanced model for speech recognition. If `use_enhanced` is set to true and the `model` field is not set, then an appropriate enhanced model is chosen if an
|
|
288
|
+
* enhanced model exists for the audio. If `use_enhanced` is true and an enhanced version of the specified model does not exist, then the speech is recognized using the standard
|
|
289
|
+
* version of the specified model.
|
|
290
|
+
*/
|
|
291
|
+
useEnhanced?: boolean;
|
|
292
|
+
}
|
|
293
|
+
interface RecognitionMetadata {
|
|
294
|
+
/** Description of the content. Eg. "Recordings of federal supreme court hearings from 2012". */
|
|
295
|
+
audioTopic?: string;
|
|
296
|
+
/**
|
|
297
|
+
* The industry vertical to which this speech recognition request most closely applies. This is most indicative of the topics contained in the audio. Use the 6-digit NAICS code to
|
|
298
|
+
* identify the industry vertical - see https://www.naics.com/search/.
|
|
299
|
+
*/
|
|
300
|
+
industryNaicsCodeOfAudio?: number;
|
|
301
|
+
/** The use case most closely describing the audio content to be recognized. */
|
|
302
|
+
interactionType?: string;
|
|
303
|
+
/** The audio type that most closely describes the audio being recognized. */
|
|
304
|
+
microphoneDistance?: string;
|
|
305
|
+
/** Obfuscated (privacy-protected) ID of the user, to identify number of unique users using the service. */
|
|
306
|
+
obfuscatedId?: string;
|
|
307
|
+
/** The original media the speech was recorded on. */
|
|
308
|
+
originalMediaType?: string;
|
|
309
|
+
/**
|
|
310
|
+
* Mime type of the original audio file. For example `audio/m4a`, `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`. A list of possible audio mime types is maintained at
|
|
311
|
+
* http://www.iana.org/assignments/media-types/media-types.xhtml#audio
|
|
312
|
+
*/
|
|
313
|
+
originalMimeType?: string;
|
|
314
|
+
/** The device used to make the recording. Examples 'Nexus 5X' or 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or 'Cardioid Microphone'. */
|
|
315
|
+
recordingDeviceName?: string;
|
|
316
|
+
/** The type of device the speech was recorded with. */
|
|
317
|
+
recordingDeviceType?: string;
|
|
318
|
+
}
|
|
319
|
+
interface RecognizeRequest {
|
|
320
|
+
/** Required. The audio data to be recognized. */
|
|
321
|
+
audio?: RecognitionAudio;
|
|
322
|
+
/** Required. Provides information to the recognizer that specifies how to process the request. */
|
|
323
|
+
config?: RecognitionConfig;
|
|
324
|
+
}
|
|
325
|
+
interface RecognizeResponse {
|
|
326
|
+
/** Sequential list of transcription results corresponding to sequential portions of audio. */
|
|
327
|
+
results?: SpeechRecognitionResult[];
|
|
328
|
+
/** When available, billed audio seconds for the corresponding request. */
|
|
329
|
+
totalBilledTime?: string;
|
|
330
|
+
}
|
|
331
|
+
interface SpeakerDiarizationConfig {
|
|
332
|
+
/** If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_tag provided in the WordInfo. */
|
|
333
|
+
enableSpeakerDiarization?: boolean;
|
|
334
|
+
/**
|
|
335
|
+
* Maximum number of speakers in the conversation. This range gives you more flexibility by allowing the system to automatically determine the correct number of speakers. If not set,
|
|
336
|
+
* the default value is 6.
|
|
337
|
+
*/
|
|
338
|
+
maxSpeakerCount?: number;
|
|
339
|
+
/**
|
|
340
|
+
* 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. If not set,
|
|
341
|
+
* the default value is 2.
|
|
342
|
+
*/
|
|
343
|
+
minSpeakerCount?: number;
|
|
344
|
+
/** Output only. Unused. */
|
|
345
|
+
speakerTag?: number;
|
|
346
|
+
}
|
|
347
|
+
interface SpeechAdaptation {
|
|
348
|
+
/**
|
|
349
|
+
* A collection of custom classes. To specify the classes inline, leave the class' `name` blank and fill in the rest of its fields, giving it a unique `custom_class_id`. Refer to the
|
|
350
|
+
* inline defined class in phrase hints by its `custom_class_id`.
|
|
351
|
+
*/
|
|
352
|
+
customClasses?: CustomClass[];
|
|
353
|
+
/** A collection of phrase set resource names to use. */
|
|
354
|
+
phraseSetReferences?: string[];
|
|
355
|
+
/** A collection of phrase sets. To specify the hints inline, leave the phrase set's `name` blank and fill in the rest of its fields. Any phrase set can use any custom class. */
|
|
356
|
+
phraseSets?: PhraseSet[];
|
|
357
|
+
}
|
|
358
|
+
interface SpeechContext {
|
|
359
|
+
/**
|
|
360
|
+
* 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
|
|
361
|
+
* of false positive recognition as well. Negative boost values would correspond to anti-biasing. Anti-biasing is not enabled, so negative boost will simply be ignored. Though `boost`
|
|
362
|
+
* can accept a wide range of positive values, most use cases are best served with values between 0 and 20. We recommend using a binary search approach to finding the optimal value for
|
|
363
|
+
* your use case.
|
|
364
|
+
*/
|
|
365
|
+
boost?: number;
|
|
366
|
+
/**
|
|
367
|
+
* A list of strings containing words and phrases "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words
|
|
368
|
+
* 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. See [usage
|
|
369
|
+
* limits](https://cloud.google.com/speech-to-text/quotas#content). List items can also be set to classes for groups of words that represent common concepts that occur in natural
|
|
370
|
+
* language. For example, rather than providing phrase hints for every month of the year, using the $MONTH class improves the likelihood of correctly transcribing audio that includes
|
|
371
|
+
* months.
|
|
372
|
+
*/
|
|
373
|
+
phrases?: string[];
|
|
374
|
+
}
|
|
375
|
+
interface SpeechRecognitionAlternative {
|
|
376
|
+
/**
|
|
377
|
+
* 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
|
|
378
|
+
* alternative of a non-streaming result or, of a streaming result where `is_final=true`. This field is not guaranteed to be accurate and users should not rely on it to be always
|
|
379
|
+
* provided. The default of 0.0 is a sentinel value indicating `confidence` was not set.
|
|
380
|
+
*/
|
|
381
|
+
confidence?: number;
|
|
382
|
+
/**
|
|
383
|
+
* Transcript text representing the words that the user spoke. In languages that use spaces to separate words, the transcript might have a leading space if it isn't the first result.
|
|
384
|
+
* You can concatenate each result to obtain the full transcript without using a separator.
|
|
385
|
+
*/
|
|
386
|
+
transcript?: string;
|
|
387
|
+
/** A list of word-specific information for each recognized word. Note: When `enable_speaker_diarization` is true, you will see all the words from the beginning of the audio. */
|
|
388
|
+
words?: WordInfo[];
|
|
389
|
+
}
|
|
390
|
+
interface SpeechRecognitionResult {
|
|
391
|
+
/**
|
|
392
|
+
* May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`). These alternatives are ordered in terms of accuracy, with the top (first)
|
|
393
|
+
* alternative being the most probable, as ranked by the recognizer.
|
|
394
|
+
*/
|
|
395
|
+
alternatives?: SpeechRecognitionAlternative[];
|
|
396
|
+
/**
|
|
397
|
+
* 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
|
|
398
|
+
* from '1' to 'N'.
|
|
399
|
+
*/
|
|
400
|
+
channelTag?: number;
|
|
401
|
+
/**
|
|
402
|
+
* 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
|
|
403
|
+
* being spoken in the audio.
|
|
404
|
+
*/
|
|
405
|
+
languageCode?: string;
|
|
406
|
+
/** Time offset of the end of this result relative to the beginning of the audio. */
|
|
407
|
+
resultEndTime?: string;
|
|
408
|
+
}
|
|
409
|
+
interface Status {
|
|
410
|
+
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
411
|
+
code?: number;
|
|
412
|
+
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
413
|
+
details?: Array<{ [P in string]: any }>;
|
|
414
|
+
/**
|
|
415
|
+
* A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the
|
|
416
|
+
* client.
|
|
417
|
+
*/
|
|
418
|
+
message?: string;
|
|
419
|
+
}
|
|
420
|
+
interface TranscriptNormalization {
|
|
421
|
+
/**
|
|
422
|
+
* 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
|
|
423
|
+
* be applied because we will always process the first entry before it. At most 100 entries.
|
|
424
|
+
*/
|
|
425
|
+
entries?: Entry[];
|
|
426
|
+
}
|
|
427
|
+
interface TranscriptOutputConfig {
|
|
428
|
+
/** Specifies a Cloud Storage URI for the recognition results. Must be specified in the format: `gs://bucket_name/object_name`, and the bucket must already exist. */
|
|
429
|
+
gcsUri?: string;
|
|
430
|
+
}
|
|
431
|
+
interface WordInfo {
|
|
432
|
+
/**
|
|
433
|
+
* 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
|
|
434
|
+
* alternative of a non-streaming result or, of a streaming result where `is_final=true`. This field is not guaranteed to be accurate and users should not rely on it to be always
|
|
435
|
+
* provided. The default of 0.0 is a sentinel value indicating `confidence` was not set.
|
|
436
|
+
*/
|
|
437
|
+
confidence?: number;
|
|
438
|
+
/**
|
|
439
|
+
* 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=true` and only in the top
|
|
440
|
+
* hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
|
|
441
|
+
*/
|
|
442
|
+
endTime?: string;
|
|
443
|
+
/**
|
|
444
|
+
* Output only. A distinct integer value is assigned for every speaker within the audio. This field specifies which one of those speakers was detected to have spoken this word. Value
|
|
445
|
+
* ranges from '1' to diarization_speaker_count. speaker_tag is set if enable_speaker_diarization = 'true' and only in the top alternative.
|
|
446
|
+
*/
|
|
447
|
+
speakerTag?: number;
|
|
448
|
+
/**
|
|
449
|
+
* 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=true` and only in the top
|
|
450
|
+
* hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
|
|
451
|
+
*/
|
|
452
|
+
startTime?: string;
|
|
453
|
+
/** The word corresponding to this set of information. */
|
|
454
|
+
word?: string;
|
|
455
|
+
}
|
|
456
|
+
interface OperationsResource {
|
|
457
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
458
|
+
get(request?: {
|
|
459
|
+
/** V1 error format. */
|
|
460
|
+
"$.xgafv"?: string;
|
|
461
|
+
/** OAuth access token. */
|
|
462
|
+
access_token?: string;
|
|
463
|
+
/** Data format for response. */
|
|
464
|
+
alt?: string;
|
|
465
|
+
/** JSONP */
|
|
466
|
+
callback?: string;
|
|
467
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
468
|
+
fields?: string;
|
|
469
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
470
|
+
key?: string;
|
|
471
|
+
/** The name of the operation resource. */
|
|
472
|
+
name: string;
|
|
473
|
+
/** OAuth 2.0 token for the current user. */
|
|
474
|
+
oauth_token?: string;
|
|
475
|
+
/** Returns response with indentations and line breaks. */
|
|
476
|
+
prettyPrint?: boolean;
|
|
477
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
478
|
+
quotaUser?: string;
|
|
479
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
480
|
+
upload_protocol?: string;
|
|
481
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
482
|
+
uploadType?: string;
|
|
483
|
+
}): Request<Operation>;
|
|
484
|
+
/**
|
|
485
|
+
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
|
|
486
|
+
* to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as
|
|
487
|
+
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
488
|
+
* ensure the name binding is the parent resource, without the operations collection id.
|
|
489
|
+
*/
|
|
490
|
+
list(request?: {
|
|
491
|
+
/** V1 error format. */
|
|
492
|
+
"$.xgafv"?: string;
|
|
493
|
+
/** OAuth access token. */
|
|
494
|
+
access_token?: string;
|
|
495
|
+
/** Data format for response. */
|
|
496
|
+
alt?: string;
|
|
497
|
+
/** JSONP */
|
|
498
|
+
callback?: string;
|
|
499
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
500
|
+
fields?: string;
|
|
501
|
+
/** The standard list filter. */
|
|
502
|
+
filter?: string;
|
|
503
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
504
|
+
key?: string;
|
|
505
|
+
/** The name of the operation's parent resource. */
|
|
506
|
+
name?: string;
|
|
507
|
+
/** OAuth 2.0 token for the current user. */
|
|
508
|
+
oauth_token?: string;
|
|
509
|
+
/** The standard list page size. */
|
|
510
|
+
pageSize?: number;
|
|
511
|
+
/** The standard list page token. */
|
|
512
|
+
pageToken?: string;
|
|
513
|
+
/** Returns response with indentations and line breaks. */
|
|
514
|
+
prettyPrint?: boolean;
|
|
515
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
516
|
+
quotaUser?: string;
|
|
517
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
518
|
+
upload_protocol?: string;
|
|
519
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
520
|
+
uploadType?: string;
|
|
521
|
+
}): Request<ListOperationsResponse>;
|
|
522
|
+
}
|
|
523
|
+
interface CustomClassesResource {
|
|
524
|
+
/** Create a custom class. */
|
|
525
|
+
create(request: {
|
|
526
|
+
/** V1 error format. */
|
|
527
|
+
"$.xgafv"?: string;
|
|
528
|
+
/** OAuth access token. */
|
|
529
|
+
access_token?: string;
|
|
530
|
+
/** Data format for response. */
|
|
531
|
+
alt?: string;
|
|
532
|
+
/** JSONP */
|
|
533
|
+
callback?: string;
|
|
534
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
535
|
+
fields?: string;
|
|
536
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
537
|
+
key?: string;
|
|
538
|
+
/** OAuth 2.0 token for the current user. */
|
|
539
|
+
oauth_token?: string;
|
|
540
|
+
/**
|
|
541
|
+
* Required. The parent resource where this custom class will be created. Format: `projects/{project}/locations/{location}/customClasses` Speech-to-Text supports three locations:
|
|
542
|
+
* `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional
|
|
543
|
+
* endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
|
|
544
|
+
*/
|
|
545
|
+
parent: string;
|
|
546
|
+
/** Returns response with indentations and line breaks. */
|
|
547
|
+
prettyPrint?: boolean;
|
|
548
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
549
|
+
quotaUser?: string;
|
|
550
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
551
|
+
upload_protocol?: string;
|
|
552
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
553
|
+
uploadType?: string;
|
|
554
|
+
/** Request body */
|
|
555
|
+
resource: CreateCustomClassRequest;
|
|
556
|
+
}): Request<CustomClass>;
|
|
557
|
+
create(request: {
|
|
558
|
+
/** V1 error format. */
|
|
559
|
+
"$.xgafv"?: string;
|
|
560
|
+
/** OAuth access token. */
|
|
561
|
+
access_token?: string;
|
|
562
|
+
/** Data format for response. */
|
|
563
|
+
alt?: string;
|
|
564
|
+
/** JSONP */
|
|
565
|
+
callback?: string;
|
|
566
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
567
|
+
fields?: string;
|
|
568
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
569
|
+
key?: string;
|
|
570
|
+
/** OAuth 2.0 token for the current user. */
|
|
571
|
+
oauth_token?: string;
|
|
572
|
+
/**
|
|
573
|
+
* Required. The parent resource where this custom class will be created. Format: `projects/{project}/locations/{location}/customClasses` Speech-to-Text supports three locations:
|
|
574
|
+
* `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional
|
|
575
|
+
* endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
|
|
576
|
+
*/
|
|
577
|
+
parent: string;
|
|
578
|
+
/** Returns response with indentations and line breaks. */
|
|
579
|
+
prettyPrint?: boolean;
|
|
580
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
581
|
+
quotaUser?: string;
|
|
582
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
583
|
+
upload_protocol?: string;
|
|
584
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
585
|
+
uploadType?: string;
|
|
586
|
+
},
|
|
587
|
+
body: CreateCustomClassRequest): Request<CustomClass>;
|
|
588
|
+
/** Delete a custom class. */
|
|
589
|
+
delete(request?: {
|
|
590
|
+
/** V1 error format. */
|
|
591
|
+
"$.xgafv"?: string;
|
|
592
|
+
/** OAuth access token. */
|
|
593
|
+
access_token?: string;
|
|
594
|
+
/** Data format for response. */
|
|
595
|
+
alt?: string;
|
|
596
|
+
/** JSONP */
|
|
597
|
+
callback?: string;
|
|
598
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
599
|
+
fields?: string;
|
|
600
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
601
|
+
key?: string;
|
|
602
|
+
/**
|
|
603
|
+
* Required. The name of the custom class to delete. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}` Speech-to-Text supports three locations:
|
|
604
|
+
* `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional
|
|
605
|
+
* endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
|
|
606
|
+
*/
|
|
607
|
+
name: string;
|
|
608
|
+
/** OAuth 2.0 token for the current user. */
|
|
609
|
+
oauth_token?: string;
|
|
610
|
+
/** Returns response with indentations and line breaks. */
|
|
611
|
+
prettyPrint?: boolean;
|
|
612
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
613
|
+
quotaUser?: string;
|
|
614
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
615
|
+
upload_protocol?: string;
|
|
616
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
617
|
+
uploadType?: string;
|
|
618
|
+
}): Request<{}>;
|
|
619
|
+
/** Get a custom class. */
|
|
620
|
+
get(request?: {
|
|
621
|
+
/** V1 error format. */
|
|
622
|
+
"$.xgafv"?: string;
|
|
623
|
+
/** OAuth access token. */
|
|
624
|
+
access_token?: string;
|
|
625
|
+
/** Data format for response. */
|
|
626
|
+
alt?: string;
|
|
627
|
+
/** JSONP */
|
|
628
|
+
callback?: string;
|
|
629
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
630
|
+
fields?: string;
|
|
631
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
632
|
+
key?: string;
|
|
633
|
+
/** Required. The name of the custom class to retrieve. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}` */
|
|
634
|
+
name: string;
|
|
635
|
+
/** OAuth 2.0 token for the current user. */
|
|
636
|
+
oauth_token?: string;
|
|
637
|
+
/** Returns response with indentations and line breaks. */
|
|
638
|
+
prettyPrint?: boolean;
|
|
639
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
640
|
+
quotaUser?: string;
|
|
641
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
642
|
+
upload_protocol?: string;
|
|
643
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
644
|
+
uploadType?: string;
|
|
645
|
+
}): Request<CustomClass>;
|
|
646
|
+
/** List custom classes. */
|
|
647
|
+
list(request?: {
|
|
648
|
+
/** V1 error format. */
|
|
649
|
+
"$.xgafv"?: string;
|
|
650
|
+
/** OAuth access token. */
|
|
651
|
+
access_token?: string;
|
|
652
|
+
/** Data format for response. */
|
|
653
|
+
alt?: string;
|
|
654
|
+
/** JSONP */
|
|
655
|
+
callback?: string;
|
|
656
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
657
|
+
fields?: string;
|
|
658
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
659
|
+
key?: string;
|
|
660
|
+
/** OAuth 2.0 token for the current user. */
|
|
661
|
+
oauth_token?: string;
|
|
662
|
+
/**
|
|
663
|
+
* The maximum number of custom classes to return. The service may return fewer than this value. If unspecified, at most 50 custom classes will be returned. The maximum value is
|
|
664
|
+
* 1000; values above 1000 will be coerced to 1000.
|
|
665
|
+
*/
|
|
666
|
+
pageSize?: number;
|
|
667
|
+
/**
|
|
668
|
+
* A page token, received from a previous `ListCustomClass` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCustomClass`
|
|
669
|
+
* must match the call that provided the page token.
|
|
670
|
+
*/
|
|
671
|
+
pageToken?: string;
|
|
672
|
+
/**
|
|
673
|
+
* Required. The parent, which owns this collection of custom classes. Format: `projects/{project}/locations/{location}/customClasses` Speech-to-Text supports three locations:
|
|
674
|
+
* `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional
|
|
675
|
+
* endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
|
|
676
|
+
*/
|
|
677
|
+
parent: string;
|
|
678
|
+
/** Returns response with indentations and line breaks. */
|
|
679
|
+
prettyPrint?: boolean;
|
|
680
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
681
|
+
quotaUser?: string;
|
|
682
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
683
|
+
upload_protocol?: string;
|
|
684
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
685
|
+
uploadType?: string;
|
|
686
|
+
}): Request<ListCustomClassesResponse>;
|
|
687
|
+
/** Update a custom class. */
|
|
688
|
+
patch(request: {
|
|
689
|
+
/** V1 error format. */
|
|
690
|
+
"$.xgafv"?: string;
|
|
691
|
+
/** OAuth access token. */
|
|
692
|
+
access_token?: string;
|
|
693
|
+
/** Data format for response. */
|
|
694
|
+
alt?: string;
|
|
695
|
+
/** JSONP */
|
|
696
|
+
callback?: string;
|
|
697
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
698
|
+
fields?: string;
|
|
699
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
700
|
+
key?: string;
|
|
701
|
+
/** The resource name of the custom class. */
|
|
702
|
+
name: string;
|
|
703
|
+
/** OAuth 2.0 token for the current user. */
|
|
704
|
+
oauth_token?: string;
|
|
705
|
+
/** Returns response with indentations and line breaks. */
|
|
706
|
+
prettyPrint?: boolean;
|
|
707
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
708
|
+
quotaUser?: string;
|
|
709
|
+
/** The list of fields to be updated. */
|
|
710
|
+
updateMask?: string;
|
|
711
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
712
|
+
upload_protocol?: string;
|
|
713
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
714
|
+
uploadType?: string;
|
|
715
|
+
/** Request body */
|
|
716
|
+
resource: CustomClass;
|
|
717
|
+
}): Request<CustomClass>;
|
|
718
|
+
patch(request: {
|
|
719
|
+
/** V1 error format. */
|
|
720
|
+
"$.xgafv"?: string;
|
|
721
|
+
/** OAuth access token. */
|
|
722
|
+
access_token?: string;
|
|
723
|
+
/** Data format for response. */
|
|
724
|
+
alt?: string;
|
|
725
|
+
/** JSONP */
|
|
726
|
+
callback?: string;
|
|
727
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
728
|
+
fields?: string;
|
|
729
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
730
|
+
key?: string;
|
|
731
|
+
/** The resource name of the custom class. */
|
|
732
|
+
name: string;
|
|
733
|
+
/** OAuth 2.0 token for the current user. */
|
|
734
|
+
oauth_token?: string;
|
|
735
|
+
/** Returns response with indentations and line breaks. */
|
|
736
|
+
prettyPrint?: boolean;
|
|
737
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
738
|
+
quotaUser?: string;
|
|
739
|
+
/** The list of fields to be updated. */
|
|
740
|
+
updateMask?: string;
|
|
741
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
742
|
+
upload_protocol?: string;
|
|
743
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
744
|
+
uploadType?: string;
|
|
745
|
+
},
|
|
746
|
+
body: CustomClass): Request<CustomClass>;
|
|
747
|
+
}
|
|
748
|
+
interface PhraseSetsResource {
|
|
749
|
+
/**
|
|
750
|
+
* Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call
|
|
751
|
+
* that includes the PhraseSet.
|
|
752
|
+
*/
|
|
753
|
+
create(request: {
|
|
754
|
+
/** V1 error format. */
|
|
755
|
+
"$.xgafv"?: string;
|
|
756
|
+
/** OAuth access token. */
|
|
757
|
+
access_token?: string;
|
|
758
|
+
/** Data format for response. */
|
|
759
|
+
alt?: string;
|
|
760
|
+
/** JSONP */
|
|
761
|
+
callback?: string;
|
|
762
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
763
|
+
fields?: string;
|
|
764
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
765
|
+
key?: string;
|
|
766
|
+
/** OAuth 2.0 token for the current user. */
|
|
767
|
+
oauth_token?: string;
|
|
768
|
+
/**
|
|
769
|
+
* Required. The parent resource where this phrase set will be created. Format: `projects/{project}/locations/{location}/phraseSets` Speech-to-Text supports three locations:
|
|
770
|
+
* `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional
|
|
771
|
+
* endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
|
|
772
|
+
*/
|
|
773
|
+
parent: string;
|
|
774
|
+
/** Returns response with indentations and line breaks. */
|
|
775
|
+
prettyPrint?: boolean;
|
|
776
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
777
|
+
quotaUser?: string;
|
|
778
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
779
|
+
upload_protocol?: string;
|
|
780
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
781
|
+
uploadType?: string;
|
|
782
|
+
/** Request body */
|
|
783
|
+
resource: CreatePhraseSetRequest;
|
|
784
|
+
}): Request<PhraseSet>;
|
|
785
|
+
create(request: {
|
|
786
|
+
/** V1 error format. */
|
|
787
|
+
"$.xgafv"?: string;
|
|
788
|
+
/** OAuth access token. */
|
|
789
|
+
access_token?: string;
|
|
790
|
+
/** Data format for response. */
|
|
791
|
+
alt?: string;
|
|
792
|
+
/** JSONP */
|
|
793
|
+
callback?: string;
|
|
794
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
795
|
+
fields?: string;
|
|
796
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
797
|
+
key?: string;
|
|
798
|
+
/** OAuth 2.0 token for the current user. */
|
|
799
|
+
oauth_token?: string;
|
|
800
|
+
/**
|
|
801
|
+
* Required. The parent resource where this phrase set will be created. Format: `projects/{project}/locations/{location}/phraseSets` Speech-to-Text supports three locations:
|
|
802
|
+
* `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional
|
|
803
|
+
* endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
|
|
804
|
+
*/
|
|
805
|
+
parent: string;
|
|
806
|
+
/** Returns response with indentations and line breaks. */
|
|
807
|
+
prettyPrint?: boolean;
|
|
808
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
809
|
+
quotaUser?: string;
|
|
810
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
811
|
+
upload_protocol?: string;
|
|
812
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
813
|
+
uploadType?: string;
|
|
814
|
+
},
|
|
815
|
+
body: CreatePhraseSetRequest): Request<PhraseSet>;
|
|
816
|
+
/** Delete a phrase set. */
|
|
817
|
+
delete(request?: {
|
|
818
|
+
/** V1 error format. */
|
|
819
|
+
"$.xgafv"?: string;
|
|
820
|
+
/** OAuth access token. */
|
|
821
|
+
access_token?: string;
|
|
822
|
+
/** Data format for response. */
|
|
823
|
+
alt?: string;
|
|
824
|
+
/** JSONP */
|
|
825
|
+
callback?: string;
|
|
826
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
827
|
+
fields?: string;
|
|
828
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
829
|
+
key?: string;
|
|
830
|
+
/** Required. The name of the phrase set to delete. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}` */
|
|
831
|
+
name: string;
|
|
832
|
+
/** OAuth 2.0 token for the current user. */
|
|
833
|
+
oauth_token?: string;
|
|
834
|
+
/** Returns response with indentations and line breaks. */
|
|
835
|
+
prettyPrint?: boolean;
|
|
836
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
837
|
+
quotaUser?: string;
|
|
838
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
839
|
+
upload_protocol?: string;
|
|
840
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
841
|
+
uploadType?: string;
|
|
842
|
+
}): Request<{}>;
|
|
843
|
+
/** Get a phrase set. */
|
|
844
|
+
get(request?: {
|
|
845
|
+
/** V1 error format. */
|
|
846
|
+
"$.xgafv"?: string;
|
|
847
|
+
/** OAuth access token. */
|
|
848
|
+
access_token?: string;
|
|
849
|
+
/** Data format for response. */
|
|
850
|
+
alt?: string;
|
|
851
|
+
/** JSONP */
|
|
852
|
+
callback?: string;
|
|
853
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
854
|
+
fields?: string;
|
|
855
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
856
|
+
key?: string;
|
|
857
|
+
/**
|
|
858
|
+
* Required. The name of the phrase set to retrieve. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}` Speech-to-Text supports three locations: `global`,
|
|
859
|
+
* `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional
|
|
860
|
+
* endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
|
|
861
|
+
*/
|
|
862
|
+
name: string;
|
|
863
|
+
/** OAuth 2.0 token for the current user. */
|
|
864
|
+
oauth_token?: string;
|
|
865
|
+
/** Returns response with indentations and line breaks. */
|
|
866
|
+
prettyPrint?: boolean;
|
|
867
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
868
|
+
quotaUser?: string;
|
|
869
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
870
|
+
upload_protocol?: string;
|
|
871
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
872
|
+
uploadType?: string;
|
|
873
|
+
}): Request<PhraseSet>;
|
|
874
|
+
/** List phrase sets. */
|
|
875
|
+
list(request?: {
|
|
876
|
+
/** V1 error format. */
|
|
877
|
+
"$.xgafv"?: string;
|
|
878
|
+
/** OAuth access token. */
|
|
879
|
+
access_token?: string;
|
|
880
|
+
/** Data format for response. */
|
|
881
|
+
alt?: string;
|
|
882
|
+
/** JSONP */
|
|
883
|
+
callback?: string;
|
|
884
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
885
|
+
fields?: string;
|
|
886
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
887
|
+
key?: string;
|
|
888
|
+
/** OAuth 2.0 token for the current user. */
|
|
889
|
+
oauth_token?: string;
|
|
890
|
+
/**
|
|
891
|
+
* The maximum number of phrase sets to return. The service may return fewer than this value. If unspecified, at most 50 phrase sets will be returned. The maximum value is 1000;
|
|
892
|
+
* values above 1000 will be coerced to 1000.
|
|
893
|
+
*/
|
|
894
|
+
pageSize?: number;
|
|
895
|
+
/**
|
|
896
|
+
* A page token, received from a previous `ListPhraseSet` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPhraseSet` must
|
|
897
|
+
* match the call that provided the page token.
|
|
898
|
+
*/
|
|
899
|
+
pageToken?: string;
|
|
900
|
+
/**
|
|
901
|
+
* Required. The parent, which owns this collection of phrase set. Format: `projects/{project}/locations/{location}` Speech-to-Text supports three locations: `global`, `us` (US
|
|
902
|
+
* North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional
|
|
903
|
+
* endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
|
|
904
|
+
*/
|
|
905
|
+
parent: string;
|
|
906
|
+
/** Returns response with indentations and line breaks. */
|
|
907
|
+
prettyPrint?: boolean;
|
|
908
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
909
|
+
quotaUser?: string;
|
|
910
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
911
|
+
upload_protocol?: string;
|
|
912
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
913
|
+
uploadType?: string;
|
|
914
|
+
}): Request<ListPhraseSetResponse>;
|
|
915
|
+
/** Update a phrase set. */
|
|
916
|
+
patch(request: {
|
|
917
|
+
/** V1 error format. */
|
|
918
|
+
"$.xgafv"?: string;
|
|
919
|
+
/** OAuth access token. */
|
|
920
|
+
access_token?: string;
|
|
921
|
+
/** Data format for response. */
|
|
922
|
+
alt?: string;
|
|
923
|
+
/** JSONP */
|
|
924
|
+
callback?: string;
|
|
925
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
926
|
+
fields?: string;
|
|
927
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
928
|
+
key?: string;
|
|
929
|
+
/** The resource name of the phrase set. */
|
|
930
|
+
name: string;
|
|
931
|
+
/** OAuth 2.0 token for the current user. */
|
|
932
|
+
oauth_token?: string;
|
|
933
|
+
/** Returns response with indentations and line breaks. */
|
|
934
|
+
prettyPrint?: boolean;
|
|
935
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
936
|
+
quotaUser?: string;
|
|
937
|
+
/** The list of fields to be updated. */
|
|
938
|
+
updateMask?: string;
|
|
939
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
940
|
+
upload_protocol?: string;
|
|
941
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
942
|
+
uploadType?: string;
|
|
943
|
+
/** Request body */
|
|
944
|
+
resource: PhraseSet;
|
|
945
|
+
}): Request<PhraseSet>;
|
|
946
|
+
patch(request: {
|
|
947
|
+
/** V1 error format. */
|
|
948
|
+
"$.xgafv"?: string;
|
|
949
|
+
/** OAuth access token. */
|
|
950
|
+
access_token?: string;
|
|
951
|
+
/** Data format for response. */
|
|
952
|
+
alt?: string;
|
|
953
|
+
/** JSONP */
|
|
954
|
+
callback?: string;
|
|
955
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
956
|
+
fields?: string;
|
|
957
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
958
|
+
key?: string;
|
|
959
|
+
/** The resource name of the phrase set. */
|
|
960
|
+
name: string;
|
|
961
|
+
/** OAuth 2.0 token for the current user. */
|
|
962
|
+
oauth_token?: string;
|
|
963
|
+
/** Returns response with indentations and line breaks. */
|
|
964
|
+
prettyPrint?: boolean;
|
|
965
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
966
|
+
quotaUser?: string;
|
|
967
|
+
/** The list of fields to be updated. */
|
|
968
|
+
updateMask?: string;
|
|
969
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
970
|
+
upload_protocol?: string;
|
|
971
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
972
|
+
uploadType?: string;
|
|
973
|
+
},
|
|
974
|
+
body: PhraseSet): Request<PhraseSet>;
|
|
975
|
+
}
|
|
976
|
+
interface LocationsResource {
|
|
977
|
+
customClasses: CustomClassesResource;
|
|
978
|
+
phraseSets: PhraseSetsResource;
|
|
979
|
+
}
|
|
980
|
+
interface ProjectsResource {
|
|
981
|
+
locations: LocationsResource;
|
|
982
|
+
}
|
|
983
|
+
interface SpeechResource {
|
|
984
|
+
/**
|
|
985
|
+
* Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which
|
|
986
|
+
* contains a `LongRunningRecognizeResponse` message. For more information on asynchronous speech recognition, see the
|
|
987
|
+
* [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
|
|
988
|
+
*/
|
|
989
|
+
longrunningrecognize(request: {
|
|
990
|
+
/** V1 error format. */
|
|
991
|
+
"$.xgafv"?: string;
|
|
992
|
+
/** OAuth access token. */
|
|
993
|
+
access_token?: string;
|
|
994
|
+
/** Data format for response. */
|
|
995
|
+
alt?: string;
|
|
996
|
+
/** JSONP */
|
|
997
|
+
callback?: string;
|
|
998
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
999
|
+
fields?: string;
|
|
1000
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1001
|
+
key?: string;
|
|
1002
|
+
/** OAuth 2.0 token for the current user. */
|
|
1003
|
+
oauth_token?: string;
|
|
1004
|
+
/** Returns response with indentations and line breaks. */
|
|
1005
|
+
prettyPrint?: boolean;
|
|
1006
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1007
|
+
quotaUser?: string;
|
|
1008
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1009
|
+
upload_protocol?: string;
|
|
1010
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1011
|
+
uploadType?: string;
|
|
1012
|
+
/** Request body */
|
|
1013
|
+
resource: LongRunningRecognizeRequest;
|
|
1014
|
+
}): Request<Operation>;
|
|
1015
|
+
longrunningrecognize(request: {
|
|
1016
|
+
/** V1 error format. */
|
|
1017
|
+
"$.xgafv"?: string;
|
|
1018
|
+
/** OAuth access token. */
|
|
1019
|
+
access_token?: string;
|
|
1020
|
+
/** Data format for response. */
|
|
1021
|
+
alt?: string;
|
|
1022
|
+
/** JSONP */
|
|
1023
|
+
callback?: string;
|
|
1024
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1025
|
+
fields?: string;
|
|
1026
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1027
|
+
key?: string;
|
|
1028
|
+
/** OAuth 2.0 token for the current user. */
|
|
1029
|
+
oauth_token?: string;
|
|
1030
|
+
/** Returns response with indentations and line breaks. */
|
|
1031
|
+
prettyPrint?: boolean;
|
|
1032
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1033
|
+
quotaUser?: string;
|
|
1034
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1035
|
+
upload_protocol?: string;
|
|
1036
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1037
|
+
uploadType?: string;
|
|
1038
|
+
},
|
|
1039
|
+
body: LongRunningRecognizeRequest): Request<Operation>;
|
|
1040
|
+
/** Performs synchronous speech recognition: receive results after all audio has been sent and processed. */
|
|
1041
|
+
recognize(request: {
|
|
1042
|
+
/** V1 error format. */
|
|
1043
|
+
"$.xgafv"?: string;
|
|
1044
|
+
/** OAuth access token. */
|
|
1045
|
+
access_token?: string;
|
|
1046
|
+
/** Data format for response. */
|
|
1047
|
+
alt?: string;
|
|
1048
|
+
/** JSONP */
|
|
1049
|
+
callback?: string;
|
|
1050
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1051
|
+
fields?: string;
|
|
1052
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1053
|
+
key?: string;
|
|
1054
|
+
/** OAuth 2.0 token for the current user. */
|
|
1055
|
+
oauth_token?: string;
|
|
1056
|
+
/** Returns response with indentations and line breaks. */
|
|
1057
|
+
prettyPrint?: boolean;
|
|
1058
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1059
|
+
quotaUser?: string;
|
|
1060
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1061
|
+
upload_protocol?: string;
|
|
1062
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1063
|
+
uploadType?: string;
|
|
1064
|
+
/** Request body */
|
|
1065
|
+
resource: RecognizeRequest;
|
|
1066
|
+
}): Request<RecognizeResponse>;
|
|
1067
|
+
recognize(request: {
|
|
1068
|
+
/** V1 error format. */
|
|
1069
|
+
"$.xgafv"?: string;
|
|
1070
|
+
/** OAuth access token. */
|
|
1071
|
+
access_token?: string;
|
|
1072
|
+
/** Data format for response. */
|
|
1073
|
+
alt?: string;
|
|
1074
|
+
/** JSONP */
|
|
1075
|
+
callback?: string;
|
|
1076
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1077
|
+
fields?: string;
|
|
1078
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1079
|
+
key?: string;
|
|
1080
|
+
/** OAuth 2.0 token for the current user. */
|
|
1081
|
+
oauth_token?: string;
|
|
1082
|
+
/** Returns response with indentations and line breaks. */
|
|
1083
|
+
prettyPrint?: boolean;
|
|
1084
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1085
|
+
quotaUser?: string;
|
|
1086
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1087
|
+
upload_protocol?: string;
|
|
1088
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1089
|
+
uploadType?: string;
|
|
1090
|
+
},
|
|
1091
|
+
body: RecognizeRequest): Request<RecognizeResponse>;
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
const operations: OperationsResource;
|
|
1095
|
+
|
|
1096
|
+
const projects: ProjectsResource;
|
|
1097
|
+
|
|
1098
|
+
const speech: SpeechResource;
|
|
1099
|
+
}
|
|
1100
|
+
}
|