Closed dennisblokland closed 7 years ago
Also it seems you are using some API for getting PCM data (that createPCMStream). You need to point which exactly API you are using.
sorry forgot about that.. its discord.js and this is the function
Ok, you need to get buffer of data to pass it to decoder, you are trying to pass the stream object instead. You should read data from the stream and pass to the decoder in a loop manually.
/usr/bin/nodejs[2396]: ../src/node_buffer.cc:197:char* node::Buffer::Data(v8::Local<v8::Value>): Assertion
val->IsUint8Array()' failed. 1: node::Abort() [node] 2: node::Assert(char const const () [4]) [node] 3: 0x556e0f2d54ac [node] 4: 0x7fee85c94ed3 [/home/dennis/discord-bot/node_modules/pocketsphinx/build/Release/PocketSphinx.node] 5: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfoi get this error. while using this peace of code:
` var readable = receiver.createPCMStream(user)
the createPCMStream returns a readable stream.
im running node v6.9.5