DG: Error: write EPIPE - Node SDK #144
-
I'm running a script in which I reference audio files in a local directory, create a buffer using Here is my code:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Try using this code, which is based on the code from our guide // Sending a Buffer of the file
fs.readFile('./' + pathToAudio, function (err, buffer) {
const audioSource = { buffer: buffer, mimetype:'audio/m4a' };
}); i'm not sure why it would be different using |
Beta Was this translation helpful? Give feedback.
-
@jakejenn21 I just tried your code using a file that is ~53MB and it worked okay so I'm not sure what is happening here. What environment are you running in? What version of Node are you on and what version of the Deepgram SDK are you using? When you log into your Deepgram console do you see those calls making it through? |
Beta Was this translation helpful? Give feedback.
-
@briancbarrow @lukeocodes Thanks for your comments, I found this error after commenting out the options. My keywords array had some inconsistencies. More descriptive error handling + stack trace would've helped. |
Beta Was this translation helpful? Give feedback.
@briancbarrow @lukeocodes Thanks for your comments, I found this error after commenting out the options. My keywords array had some inconsistencies. More descriptive error handling + stack trace would've helped.