@@ -31,9 +31,13 @@ function syncRecognizeModelSelection(
3131 languageCode
3232) {
3333 // [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+ */
3639 const speech = require ( '@google-cloud/speech' ) . v1p1beta1 ;
40+ const fs = require ( 'fs' ) ;
3741
3842 // Creates a client
3943 const client = new speech . SpeechClient ( ) ;
@@ -86,7 +90,11 @@ function syncRecognizeModelSelectionGCS(
8690 languageCode
8791) {
8892 // [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+ */
9098 const speech = require ( '@google-cloud/speech' ) . v1p1beta1 ;
9199
92100 // Creates a client
@@ -139,9 +147,13 @@ function syncRecognizeWithAutoPunctuation(
139147 languageCode
140148) {
141149 // [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+ */
144155 const speech = require ( '@google-cloud/speech' ) . v1p1beta1 ;
156+ const fs = require ( 'fs' ) ;
145157
146158 // Creates a client
147159 const client = new speech . SpeechClient ( ) ;
@@ -191,9 +203,13 @@ function syncRecognizeWithMetaData(
191203 languageCode
192204) {
193205 // [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+ */
196211 const speech = require ( '@google-cloud/speech' ) . v1p1beta1 ;
212+ const fs = require ( 'fs' ) ;
197213
198214 // Creates a client
199215 const client = new speech . SpeechClient ( ) ;
@@ -252,15 +268,13 @@ function syncRecognizeWithEnhancedModel(
252268 languageCode
253269) {
254270 // [START speech_transcribe_file_with_enhanced_model]
255- // Imports the Google Cloud client library
256- const fs = require ( 'fs' ) ;
257-
258271 // Imports the Google Cloud client library for Beta API
259272 /**
260273 * TODO(developer): Update client library import to use new
261274 * version of API when desired features become available
262275 */
263276 const speech = require ( '@google-cloud/speech' ) . v1p1beta1 ;
277+ const fs = require ( 'fs' ) ;
264278
265279 // Creates a client
266280 const client = new speech . SpeechClient ( ) ;
0 commit comments