Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion functions/ocr/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Vision = require('@google-cloud/vision');
const vision = new Vision.ImageAnnotatorClient();

// Get a reference to the Translate API component
const {Translate} = require('@google-cloud/translate');
const {Translate} = require('@google-cloud/translate').v2;
const translate = new Translate();

// [END functions_ocr_setup]
Expand Down
2 changes: 1 addition & 1 deletion functions/ocr/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"dependencies": {
"@google-cloud/pubsub": "^1.0.0",
"@google-cloud/storage": "^4.0.0",
"@google-cloud/translate": "^4.0.0",
"@google-cloud/translate": "^5.0.0",
"@google-cloud/vision": "^1.0.0",
"nconf": "^0.10.0"
},
Expand Down
2 changes: 1 addition & 1 deletion functions/speech-to-speech/functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const voiceSsmlGender = 'NEUTRAL';

// Declare the API clients as global variables to allow them to initiaze at cold start.
const {SpeechClient} = require('@google-cloud/speech');
const {Translate} = require('@google-cloud/translate');
const {Translate} = require('@google-cloud/translate').v2;
const {TextToSpeechClient} = require('@google-cloud/text-to-speech');
const {Storage} = require('@google-cloud/storage');

Expand Down
2 changes: 1 addition & 1 deletion functions/speech-to-speech/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@google-cloud/speech": "^3.0.0",
"@google-cloud/storage": "^4.0.0",
"@google-cloud/text-to-speech": "^1.0.0",
"@google-cloud/translate": "^4.0.0",
"@google-cloud/translate": "^5.0.0",
"uuid": "^3.3.2",
"firebase-admin": "^8.0.0",
"firebase-functions": "^3.0.0"
Expand Down