audio-2-text icon indicating copy to clipboard operation
audio-2-text copied to clipboard

Code should be compatible with Google Cloud Storage API 2.x

Open y26805 opened this issue 4 years ago • 0 comments

I tried to run the code on Cloud Functions but it didn't work... Upon some investigation I found out that there has been a breaking change in Cloud Storage's API 2.x

Instead of https://github.com/jlaham/audio-2-text/blob/8cd615f436ac7dc3090260a0316df44c7312e852/index.js#L11

it should be

const {Storage} = require('@google-cloud/storage');

(as shown also in the official documentation on npm)

y26805 avatar Aug 27 '19 07:08 y26805