我希望使用实时播放文本
我在上运行一些示例代码
但是这个错误会发生
sox has exited with error code 1.
Enable debugging with the environment variable DEBUG=record.我试过的东西
recordProgram值在记录选项(recordProgram:'rec‘=> 'sox'),但它不工作。-t、raw添加到node_modules/node-record-lpcm16/index.js中的cmdArgs的解决方案,但是我无法应用它,因为现在的代码是不同的。操作系统: window10
language: node js
dependencies: {
"@google-cloud/speech": "^4.1.5",
"express": "^4.17.1",
"node-microphone": "^0.1.5",
"node-record-lpcm16": "^1.0.1"
} 代码框:简单源代码
发布于 2022-02-28 20:36:28
你在修窗户吗?
尝试从以下位置安装sox:
choco install sox.portablehttps://stackoverflow.com/questions/65325947
复制相似问题