@@ -31,9 +31,13 @@ function syncRecognizeModelSelection(
31
31
languageCode
32
32
) {
33
33
// [START speech_transcribe_model_selection]
34
- // Imports the Google Cloud client library
35
- const fs = require ( 'fs' ) ;
34
+ // Imports the Google Cloud client library for Beta API
35
+ /**
36
+ * TODO(developer): Update client library import to use new
37
+ * version of API when desired features become available
38
+ */
36
39
const speech = require ( '@google-cloud/speech' ) . v1p1beta1 ;
40
+ const fs = require ( 'fs' ) ;
37
41
38
42
// Creates a client
39
43
const client = new speech . SpeechClient ( ) ;
@@ -86,7 +90,11 @@ function syncRecognizeModelSelectionGCS(
86
90
languageCode
87
91
) {
88
92
// [START speech_transcribe_model_selection_gcs]
89
- // Imports the Google Cloud client library
93
+ // Imports the Google Cloud client library for Beta API
94
+ /**
95
+ * TODO(developer): Update client library import to use new
96
+ * version of API when desired features become available
97
+ */
90
98
const speech = require ( '@google-cloud/speech' ) . v1p1beta1 ;
91
99
92
100
// Creates a client
@@ -139,9 +147,13 @@ function syncRecognizeWithAutoPunctuation(
139
147
languageCode
140
148
) {
141
149
// [START speech_transcribe_file_with_auto_punctuation]
142
- // Imports the Google Cloud client library
143
- const fs = require ( 'fs' ) ;
150
+ // Imports the Google Cloud client library for Beta API
151
+ /**
152
+ * TODO(developer): Update client library import to use new
153
+ * version of API when desired features become available
154
+ */
144
155
const speech = require ( '@google-cloud/speech' ) . v1p1beta1 ;
156
+ const fs = require ( 'fs' ) ;
145
157
146
158
// Creates a client
147
159
const client = new speech . SpeechClient ( ) ;
@@ -191,9 +203,13 @@ function syncRecognizeWithMetaData(
191
203
languageCode
192
204
) {
193
205
// [START speech_transcribe_file_with_metadata]
194
- // Imports the Google Cloud client library
195
- const fs = require ( 'fs' ) ;
206
+ // Imports the Google Cloud client library for Beta API
207
+ /**
208
+ * TODO(developer): Update client library import to use new
209
+ * version of API when desired features become available
210
+ */
196
211
const speech = require ( '@google-cloud/speech' ) . v1p1beta1 ;
212
+ const fs = require ( 'fs' ) ;
197
213
198
214
// Creates a client
199
215
const client = new speech . SpeechClient ( ) ;
@@ -252,15 +268,13 @@ function syncRecognizeWithEnhancedModel(
252
268
languageCode
253
269
) {
254
270
// [START speech_transcribe_file_with_enhanced_model]
255
- // Imports the Google Cloud client library
256
- const fs = require ( 'fs' ) ;
257
-
258
271
// Imports the Google Cloud client library for Beta API
259
272
/**
260
273
* TODO(developer): Update client library import to use new
261
274
* version of API when desired features become available
262
275
*/
263
276
const speech = require ( '@google-cloud/speech' ) . v1p1beta1 ;
277
+ const fs = require ( 'fs' ) ;
264
278
265
279
// Creates a client
266
280
const client = new speech . SpeechClient ( ) ;
0 commit comments