【发布时间】:2020-02-02 06:56:21
【问题描述】:
您好,我正在尝试不使用 json 方法并使用凭据选项来启动 gcloud 语音客户端。
const speech = require('@google-cloud/speech');
const client = new speech.SpeechClient({credentials:{private_key : "", client_email: ""}}});
但这给了我错误:3 INVALID_ARGUMENT:请求包含无效参数错误。
我以同样的方式使用了对话流和其他服务,并且工作正常,如果我在这里遗漏了什么,请告知。
【问题讨论】:
标签: google-speech-api google-speech-to-text-api