使用WebSocket在Watson语音到文本上出错

时间:2017-01-12 19:52:42

标签: ibm-cloud ibm-watson watson-conversation watson

当我尝试将麦克风输入提供给它时​​,我从Watson Speech to Text收到此错误事件。使用基于此TJBot代码https://github.com/ibmtjbot/tjbot/tree/master/recipes/conversation

的NodeJS应用程序

这是我得到的错误对象

=== Watson Speech to Text : An Error has occurred =====
_Event {
  type: 'error',
  isTrusted: false,
  _yaeti: true,
  target: 
   W3CWebSocket {
     _listeners: {},
     addEventListener: [Function: _addEventListener],
     removeEventListener: [Function: _removeEventListener],
     dispatchEvent: [Function: _dispatchEvent],
     _url: 'wss://stream.watsonplatform.net/speech-to-text/api/v1/recognize?model=en-US_BroadbandModel',
     _readyState: 3,
     _protocol: undefined,
     _extensions: '',
     _bufferedAmount: 0,
     _binaryType: 'arraybuffer',
     _connection: undefined,
     _client: 
      WebSocketClient {
        domain: null,
        _events: {},
        _eventsCount: 0,
        _maxListeners: undefined,
        config: [Object],
        _req: null,
        protocols: [],
        origin: null,
        url: [Object],
        secure: true,
        base64nonce: 'XU/MDifsB9QqtrWn4vPFgw==' },
     onerror: [Function],
     onopen: [Function],
     onclose: [Function],
     onmessage: [Function] },
  cancelable: true,
  stopImmediatePropagation

:[功能]} 按+ C退出。

直到几个小时前它才能正常工作但突然停止工作。对这个错误的含义有什么看法吗?

1 个答案:

答案 0 :(得分:0)

我刚发现我的凭据错了。似乎在迁移到DIEGO期间,VCAP_SERVICES的凭据已被删除或类似。我在Bluemix上再次将服务连接到应用程序并重新创建了凭据

相关问题