Google Speech API Streaming Node.js'无效' audio_content'错误

时间:2017-07-10 09:01:28

标签: node.js windows audio-streaming google-speech-api google-cloud-sdk

我对编程非常陌生。

我在Windows 10上运行Google SDK。下载并安装了运行https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/master/speech/recognize.js

的先决条件

我以前遇到过sox的问题,但是由于另一个线程而得到了解决。目前,当我要求识别.js听时,会发生这种情况 -

C:\Program Files (x86)\Google\Cloud SDK\nodejs-docs-samples\speech>node recognize.js listen
Listening, press Ctrl+C to stop.
{ Error: Invalid 'audio_content': contains no audio data.
at ClientDuplexStream._emitStatusIfDone (C:\Program Files (x86)\Google\Cloud SDK\nodejs-docs-samples\speech\node_modules\grpc\src\node\src\client.js:270:19)
at ClientDuplexStream._readsDone (C:\Program Files (x86)\Google\Cloud SDK\nodejs-docs-samples\speech\node_modules\grpc\src\node\src\client.js:236:8)
at readCallback (C:\Program Files (x86)\Google\Cloud SDK\nodejs-docs-samples\speech\node_modules\grpc\src\node\src\client.js:311:12)
code: 3,
metadata: Metadata { _internal_repr: { 'content-disposition': [Object] } } }

0 个答案:

没有答案