1

我对编程很陌生。

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

我以前遇到过 sox 的问题,但多亏了另一个线程,我才解决了这个问题。目前,当我要求recognize.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] } } }
4

0 回答 0