我做了一个简单的音频创建web应用程序使用Node.js服务器。我想要创建音频使用云文本到语音API,然后上传到云存储音频。
(我使用Windows 10,Windows子系统用于Linux,Debian10.3和Google浏览器。)
这是Node.js服务器中的代码。
const client = new textToSpeech.TextToSpeechClient();
async function quickStart() {
// The text to synthesize
const text = 'he
我正在尝试编写一个云函数,只导出添加到我的“评论”子集中的新文档。这个云函数的触发器是: cloud Firestore。但是,我的云函数通过控制台部署失败。有没有人能帮我了解一下我的云函数出了什么问题? 错误消息: Deployment failure:
Build failed: /workspace/index.js:26
}
^
SyntaxError: missing ) after argument list
at new Script (vm.js:83:7)
at checkScriptSyntax (internal/bootstrap/
我正试图从我的应用程序中调用一个云函数来更新一些文档,但是有些东西不起作用。
我不认为问题在我的应用程序代码,可能是在我的node.js云功能。
app代码
val functions = FirebaseFunctions.getInstance()
val db = FirebaseFirestore.getInstance()
val dataHashMap = hashMapOf(
"db" to db
)
functions
.getHttpsCallable("changeDocument")
.call(dataHashM