victordibia/tjwave

Error: Session timed out

Opened this issue · 0 comments

After giving input data from my mic ,I get this error and no transcription.What is the reason behind this ?
{ Error: Session timed out.
at emitError (/home/masood/node_modules/watson-developer-cloud/speech-to-text/recognize_stream.js:145:13)
at W3CWebSocket.socket.onmessage (/home/masood/node_modules/watson-developer-cloud/speech-to-text/recognize_stream.js:165:7)
at W3CWebSocket._dispatchEvent [as dispatchEvent] (/home/masood/node_modules/yaeti/lib/EventTarget.js:107:17)
at W3CWebSocket.onMessage (/home/masood/node_modules/websocket/lib/W3CWebSocket.js:234:14)
at WebSocketConnection. (/home/masood/node_modules/websocket/lib/W3CWebSocket.js:205:19)
at emitOne (events.js:96:13)
at WebSocketConnection.emit (events.js:188:7)
at WebSocketConnection.processFrame (/home/masood/node_modules/websocket/lib/WebSocketConnection.js:547:26)
at /home/masood/node_modules/websocket/lib/WebSocketConnection.js:321:40
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
raw:
_Event {
type: 'message',
isTrusted: false,
_yaeti: true,
data: '{\n "error": "Session timed out."\n}',
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&customization_id=0fd60c50-5520-11e7-aeaf-57afcb850a3a',
_readyState: 1,
_protocol: undefined,
_extensions: [],
_bufferedAmount: 0,
_binaryType: 'arraybuffer',
_connection: [Object],
_client: [Object],
onerror: [Function],
onopen: [Function],
onclose: [Function],
onmessage: [Function] },
cancelable: true,
stopImmediatePropagation: [Function] } }
setting up mic

=== Watson Speech to Text : An Error has occurred =====
=== Attempting to reconnect mic
{ Error: Session timed out.
at emitError (/home/masood/node_modules/watson-developer-cloud/speech-to-text/recognize_stream.js:145:13)
at W3CWebSocket.socket.onmessage (/home/masood/node_modules/watson-developer-cloud/speech-to-text/recognize_stream.js:165:7)
at W3CWebSocket._dispatchEvent [as dispatchEvent] (/home/masood/node_modules/yaeti/lib/EventTarget.js:107:17)
at W3CWebSocket.onMessage (/home/masood/node_modules/websocket/lib/W3CWebSocket.js:234:14)
at WebSocketConnection. (/home/masood/node_modules/websocket/lib/W3CWebSocket.js:205:19)
at emitOne (events.js:96:13)
at WebSocketConnection.emit (events.js:188:7)
at WebSocketConnection.processFrame (/home/masood/node_modules/websocket/lib/WebSocketConnection.js:547:26)
at /home/masood/node_modules/websocket/lib/WebSocketConnection.js:321:40
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
raw:
_Event {
type: 'message',
isTrusted: false,
_yaeti: true,
data: '{\n "error": "Session timed out."\n}',
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&customization_id=0fd60c50-5520-11e7-aeaf-57afcb850a3a',
_readyState: 1,
_protocol: undefined,
_extensions: [],
_bufferedAmount: 0,
_binaryType: 'arraybuffer',
_connection: [Object],
_client: [Object],
onerror: [Function],
onopen: [Function],
onclose: [Function],
onmessage: [Function] },
cancelable: true,
stopImmediatePropagation: [Function] } }
setting up mic
=== Watson Speech to Text : An Error has occurred =====
=== Attempting to reconnect mic
{ Error: Session timed out.
at emitError (/home/masood/node_modules/watson-developer-cloud/speech-to-text/recognize_stream.js:145:13)
at W3CWebSocket.socket.onmessage (/home/masood/node_modules/watson-developer-cloud/speech-to-text/recognize_stream.js:165:7)
at W3CWebSocket._dispatchEvent [as dispatchEvent] (/home/masood/node_modules/yaeti/lib/EventTarget.js:107:17)
at W3CWebSocket.onMessage (/home/masood/node_modules/websocket/lib/W3CWebSocket.js:234:14)
at WebSocketConnection. (/home/masood/node_modules/websocket/lib/W3CWebSocket.js:205:19)
at emitOne (events.js:96:13)
at WebSocketConnection.emit (events.js:188:7)
at WebSocketConnection.processFrame (/home/masood/node_modules/websocket/lib/WebSocketConnection.js:547:26)
at /home/masood/node_modules/websocket/lib/WebSocketConnection.js:321:40
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
raw:
_Event {
type: 'message',
isTrusted: false,
_yaeti: true,
data: '{\n "error": "Session timed out."\n}',
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&customization_id=0fd60c50-5520-11e7-aeaf-57afcb850a3a',
_readyState: 1,
_protocol: undefined,
_extensions: [],
_bufferedAmount: 0,
_binaryType: 'arraybuffer',
_connection: [Object],
_client: [Object],
onerror: [Function],
onopen: [Function],
onclose: [Function],
onmessage: [Function] },
cancelable: true,
stopImmediatePropagation: [Function] } }