我正在尝试使用谷歌语音API将音频文件转换为文本,但面临文档的一些问题.我已启用语音API并创建了服务帐户文件.我还激活了服务帐户凭据.然后我编写了以下命令来使用我的服务帐户检索授权令牌.
gcloud auth application-default print-access-token
我不明白为什么会这样,因为我已经在我的计算引擎中创建了一个VM实例.任何人都可以解释我在哪里出错吗?此外,有没有其他方法来验证我的帐户并调用谷歌语音API?
我试图通过aws精确点将电子邮件发送到特定的电子邮件地址.我的电子邮件地址已经过验证.但是,每当我尝试发送电子邮件时,它都会向我显示"无法向其提交电子邮件"的错误.我不明白我在哪里弄错了.
我是Google Cloud Platform的新手.我已经在datalab上训练了我的模型,并将模型文件夹保存在我的存储桶中的云存储中.通过右键单击文件 - >另存为链接,我可以将存储桶中的现有文件下载到本地计算机.但是当我尝试按照上面相同的步骤下载文件夹时,我没有得到文件夹,而是它的图像.无论如何我可以下载整个文件夹及其内容吗?是否有任何gsutil命令将文件夹从云存储复制到本地目录?
我一直在尝试使用 Amazon Cognito 中的 getAttributeVerificationCode Api 验证用户电子邮件。这是我的代码。
cognitoUser.getAttributeVerificationCode('email', {
onSuccess: function (result) {
// console.log("type",typeof params.AttributeName);
console.log('call result: ' + result)
response = {
statusCode: 200,
body: JSON.stringify({ message: 'onSuccess' }),
headers: {
'Content-Type': 'application/json'
}
}
callback(null, response)
},
onFailure: function (err) {
// console.log(err)
response = {
statusCode: 200,
body: JSON.stringify({ message: err.message }),
headers: {
'Content-Type': 'application/json'
}
}
callback(null, response)
},
inputVerificationCode: function () {
// var verificationCode = prompt('Please input verification code: ' ,'');
// …Run Code Online (Sandbox Code Playgroud)