首页 > 解决方案 > sox 在节点 js 中以错误代码 1 退出

问题描述

我想使用 Google Cloud Speech to text 进行实时流式传输
我正在 Google Cloud Speech to text document 上运行一些示例代码,
但出现此错误

sox has exited with error code 1.
Enable debugging with the environment variable DEBUG=record.

我尝试过的事情

操作系统: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"  
  }  

Codesandbox:简单的源代码

标签: javascriptnode.jssox

解决方案


你在窗户上工作吗?

尝试从以下位置安装 sox:

choco install sox.portable

推荐阅读