Aakash
Aakash
CDCloudflare Developers
Created by Aakash on 3/28/2025 in #workers-help
Not able to use @google-cloud/speech
I am not able to use @google-cloud/speech package when i import it and just initialize class like below import speech from '@google-cloud/speech' // Initialize Google Speech Client const client = new createClient.SpeechClient({ credentials: { client_email: env.GOOGLE_CLIENT_EMAIL, private_key: env.GOOGLE_PRIVATE_KEY } }); Error service core:user:voice-call-handler-dev: Uncaught TypeError: Cannot convert object to primitive value at null.<anonymous> (index.js:18912:101) in isEnabled at null.<anonymous> (index.js:18915:35) in refresh at null.<anonymous> (index.js:18956:13) in ../node_modules/.pnpm/[email protected]/node_modules/google-logging-utils/build/src/colours.js at null.<anonymous> (index.js:19:51) in require2 at null.<anonymous> (index.js:19013:21) in ../node_modules/.pnpm/[email protected]/node_modules/google-logging-utils/build/src/logging-utils.js at null.<anonymous> (index.js:19:51) in require2 at null.<anonymous> (index.js:19269:18) in ../node_modules/.pnpm/[email protected]/node_modules/google-logging-utils/build/src/index.js at null.<anonymous> (index.js:19:51) in __require2 at null.<anonymous> (index.js:19318:18) in ../node_modules/.pnpm/[email protected]/node_modules/gcp-metadata/build/src/index.js
1 replies