【发布时间】:2017-03-03 04:36:24
【问题描述】:
当我尝试执行下面的代码时,我收到以下错误:
(node:3784) UnhandledPromiseRejectionWarning: UnhandledPromiseRejectionWarning: Unhandled Promise Rejection (rejection id: 1): Error: 语音识别惨遭失败: socket hang up
var fs = require('fs');
var bing = require('bingspeech-api-client');
var audioStream = fs.createReadStream('d:\\node.wav');
var subscriptionKey = 'xxxxxxxxxxxxxxxxx';
var client = new bing.BingSpeechClient(subscriptionKey);
client.recognizeStream(audioStream)
.then(response => console.log(response.results[0].name));
请帮帮我。
【问题讨论】:
-
嗨 Adhit,你有任何更新吗?
-
我用 ibm watson 完成了这个模块。今天我要调查这些事情,我会让你尽快知道。
-
还是一样的错误加里
标签: node.js speech-to-text bing-speech