If I try to run this script while using SoX 14.4.2, I get an error:
events.js:189
throw err; // Unhandled 'error' event
^
Error [ERR_UNHANDLED_ERROR]: Unhandled error. ('sox has exited with error code 1.\n\nEnable debugging with the environment variable DEBUG=record.')
at Socket.emit (events.js:187:17)
at ChildProcess.cp.on.code (C:\repositories\speech-to-text\node_modules\node-record-lpcm16\index.js:68:11)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Socket.stream.socket.on (internal/child_process.js:389:11)
at Socket.emit (events.js:198:13)
at Pipe._handle.close (net.js:606:12)
If I try to use SoX 14.4.1 instead, the script works.
However, once I call recording.stop() - the same error as the one above, occurs.
How can I fix the problem?
It is certainly not a problem with SoX, as in the past, I made a prototype with which I used this package with SoX 14.4.1 and it worked very nice.
I added
node_modules/node-record-lpcm16/examples/speech-to-text.js
:If I try to run this script while using SoX 14.4.2, I get an error:
If I try to use SoX 14.4.1 instead, the script works.
However, once I call
recording.stop()
- the same error as the one above, occurs.How can I fix the problem?
It is certainly not a problem with SoX, as in the past, I made a prototype with which I used this package with SoX 14.4.1 and it worked very nice.