Skip to content

Commit

Permalink
Added the TODO comment suggested by Alex & Rebecca (#64)
Browse files Browse the repository at this point in the history
* Added the TODO comment suggested by Alex & Rebecca

* Removed the duplicate import comments
  • Loading branch information
happyhuman authored and Ace Nassri committed Nov 17, 2022
1 parent 8f08faa commit 1f9613b
Showing 1 changed file with 24 additions and 10 deletions.
34 changes: 24 additions & 10 deletions speech/recognize.v1p1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 1f9613b

Please sign in to comment.