From 1f9613b9eb75c3727cf73745960f4ca183583ac0 Mon Sep 17 00:00:00 2001 From: Shahin Date: Fri, 27 Apr 2018 13:09:19 -0700 Subject: [PATCH] Added the TODO comment suggested by Alex & Rebecca (#64) * Added the TODO comment suggested by Alex & Rebecca * Removed the duplicate import comments --- speech/recognize.v1p1beta1.js | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/speech/recognize.v1p1beta1.js b/speech/recognize.v1p1beta1.js index f9b264c1ff..76232e5089 100644 --- a/speech/recognize.v1p1beta1.js +++ b/speech/recognize.v1p1beta1.js @@ -31,9 +31,13 @@ function syncRecognizeModelSelection( languageCode ) { // [START speech_transcribe_model_selection] - // Imports the Google Cloud client library - const fs = require('fs'); + // Imports the Google Cloud client library for Beta API + /** + * TODO(developer): Update client library import to use new + * version of API when desired features become available + */ const speech = require('@google-cloud/speech').v1p1beta1; + const fs = require('fs'); // Creates a client const client = new speech.SpeechClient(); @@ -86,7 +90,11 @@ function syncRecognizeModelSelectionGCS( languageCode ) { // [START speech_transcribe_model_selection_gcs] - // Imports the Google Cloud client library + // Imports the Google Cloud client library for Beta API + /** + * TODO(developer): Update client library import to use new + * version of API when desired features become available + */ const speech = require('@google-cloud/speech').v1p1beta1; // Creates a client @@ -139,9 +147,13 @@ function syncRecognizeWithAutoPunctuation( languageCode ) { // [START speech_transcribe_file_with_auto_punctuation] - // Imports the Google Cloud client library - const fs = require('fs'); + // Imports the Google Cloud client library for Beta API + /** + * TODO(developer): Update client library import to use new + * version of API when desired features become available + */ const speech = require('@google-cloud/speech').v1p1beta1; + const fs = require('fs'); // Creates a client const client = new speech.SpeechClient(); @@ -191,9 +203,13 @@ function syncRecognizeWithMetaData( languageCode ) { // [START speech_transcribe_file_with_metadata] - // Imports the Google Cloud client library - const fs = require('fs'); + // Imports the Google Cloud client library for Beta API + /** + * TODO(developer): Update client library import to use new + * version of API when desired features become available + */ const speech = require('@google-cloud/speech').v1p1beta1; + const fs = require('fs'); // Creates a client const client = new speech.SpeechClient(); @@ -252,15 +268,13 @@ function syncRecognizeWithEnhancedModel( languageCode ) { // [START speech_transcribe_file_with_enhanced_model] - // Imports the Google Cloud client library - const fs = require('fs'); - // Imports the Google Cloud client library for Beta API /** * TODO(developer): Update client library import to use new * version of API when desired features become available */ const speech = require('@google-cloud/speech').v1p1beta1; + const fs = require('fs'); // Creates a client const client = new speech.SpeechClient();