Skip to content

Commit f8c5509

Browse files
fix: better support for fallback mode (#918)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 468790263 Source-Link: googleapis/googleapis@873ab45 Source-Link: googleapis/googleapis-gen@cb6f37a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I2ZjM3YWVmZjJhMzQ3MmU0MGE3YmJhY2U4YzY3ZDc1ZTI0YmVlNSJ9
1 parent b1f2f01 commit f8c5509

36 files changed

+440
-350
lines changed

packages/google-cloud-speech/samples/generated/v1/adaptation.create_custom_class.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent, customClassId, customClass) {
2424
// [START speech_v1_generated_Adaptation_CreateCustomClass_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1/adaptation.create_phrase_set.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent, phraseSetId, phraseSet) {
2424
// [START speech_v1_generated_Adaptation_CreatePhraseSet_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1/adaptation.delete_custom_class.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START speech_v1_generated_Adaptation_DeleteCustomClass_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1/adaptation.delete_phrase_set.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START speech_v1_generated_Adaptation_DeletePhraseSet_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1/adaptation.get_custom_class.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START speech_v1_generated_Adaptation_GetCustomClass_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1/adaptation.get_phrase_set.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START speech_v1_generated_Adaptation_GetPhraseSet_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1/adaptation.list_custom_classes.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent) {
2424
// [START speech_v1_generated_Adaptation_ListCustomClasses_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1/adaptation.list_phrase_set.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent) {
2424
// [START speech_v1_generated_Adaptation_ListPhraseSet_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1/adaptation.update_custom_class.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(customClass) {
2424
// [START speech_v1_generated_Adaptation_UpdateCustomClass_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1/adaptation.update_phrase_set.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(phraseSet) {
2424
// [START speech_v1_generated_Adaptation_UpdatePhraseSet_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1/snippet_metadata.google.cloud.speech.v1.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"segments": [
2323
{
2424
"start": 25,
25-
"end": 69,
25+
"end": 72,
2626
"type": "FULL"
2727
}
2828
],
@@ -70,7 +70,7 @@
7070
"segments": [
7171
{
7272
"start": 25,
73-
"end": 56,
73+
"end": 59,
7474
"type": "FULL"
7575
}
7676
],
@@ -110,7 +110,7 @@
110110
"segments": [
111111
{
112112
"start": 25,
113-
"end": 72,
113+
"end": 75,
114114
"type": "FULL"
115115
}
116116
],
@@ -158,7 +158,7 @@
158158
"segments": [
159159
{
160160
"start": 25,
161-
"end": 62,
161+
"end": 65,
162162
"type": "FULL"
163163
}
164164
],
@@ -202,7 +202,7 @@
202202
"segments": [
203203
{
204204
"start": 25,
205-
"end": 51,
205+
"end": 54,
206206
"type": "FULL"
207207
}
208208
],
@@ -242,7 +242,7 @@
242242
"segments": [
243243
{
244244
"start": 25,
245-
"end": 69,
245+
"end": 72,
246246
"type": "FULL"
247247
}
248248
],
@@ -290,7 +290,7 @@
290290
"segments": [
291291
{
292292
"start": 25,
293-
"end": 51,
293+
"end": 54,
294294
"type": "FULL"
295295
}
296296
],
@@ -330,7 +330,7 @@
330330
"segments": [
331331
{
332332
"start": 25,
333-
"end": 72,
333+
"end": 75,
334334
"type": "FULL"
335335
}
336336
],
@@ -378,7 +378,7 @@
378378
"segments": [
379379
{
380380
"start": 25,
381-
"end": 62,
381+
"end": 65,
382382
"type": "FULL"
383383
}
384384
],
@@ -422,7 +422,7 @@
422422
"segments": [
423423
{
424424
"start": 25,
425-
"end": 56,
425+
"end": 59,
426426
"type": "FULL"
427427
}
428428
],
@@ -462,7 +462,7 @@
462462
"segments": [
463463
{
464464
"start": 25,
465-
"end": 56,
465+
"end": 59,
466466
"type": "FULL"
467467
}
468468
],
@@ -506,7 +506,7 @@
506506
"segments": [
507507
{
508508
"start": 25,
509-
"end": 61,
509+
"end": 64,
510510
"type": "FULL"
511511
}
512512
],
@@ -554,7 +554,7 @@
554554
"segments": [
555555
{
556556
"start": 25,
557-
"end": 66,
557+
"end": 69,
558558
"type": "FULL"
559559
}
560560
],

packages/google-cloud-speech/samples/generated/v1/speech.long_running_recognize.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(config, audio) {
2424
// [START speech_v1_generated_Speech_LongRunningRecognize_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1/speech.recognize.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(config, audio) {
2424
// [START speech_v1_generated_Speech_Recognize_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1/speech.streaming_recognize.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main() {
2424
// [START speech_v1_generated_Speech_StreamingRecognize_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.create_custom_class.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent, customClassId, customClass) {
2424
// [START speech_v1p1beta1_generated_Adaptation_CreateCustomClass_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.create_phrase_set.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent, phraseSetId, phraseSet) {
2424
// [START speech_v1p1beta1_generated_Adaptation_CreatePhraseSet_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.delete_custom_class.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START speech_v1p1beta1_generated_Adaptation_DeleteCustomClass_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.delete_phrase_set.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START speech_v1p1beta1_generated_Adaptation_DeletePhraseSet_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.get_custom_class.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START speech_v1p1beta1_generated_Adaptation_GetCustomClass_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.get_phrase_set.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START speech_v1p1beta1_generated_Adaptation_GetPhraseSet_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.list_custom_classes.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent) {
2424
// [START speech_v1p1beta1_generated_Adaptation_ListCustomClasses_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.list_phrase_set.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent) {
2424
// [START speech_v1p1beta1_generated_Adaptation_ListPhraseSet_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.update_custom_class.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(customClass) {
2424
// [START speech_v1p1beta1_generated_Adaptation_UpdateCustomClass_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.update_phrase_set.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(phraseSet) {
2424
// [START speech_v1p1beta1_generated_Adaptation_UpdatePhraseSet_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

0 commit comments

Comments
 (0)