I am trying to run the nodejs examples.
The single file example transcribes a short audio sample fine but crashes on a longer audio file.
The streaming example crashes when sctx = model.setupStream(150,16000); is called for a second time after the transcription.
In both cases the node process dies immediately on error. I can’t find a way to handle the error coming up from node-gyp and continue. I can only think to spawn a child process for the transcoder that can die. Messy.
- Any suggestions on handling errors coming from the module?
- Would the python client also suffer from this problem?
- What’s the first parameter in setupStream? Second parameter 16000 I presume is sample rate.
Error transcript for the single file sample (with a large audio file) follows
# model parameters hacked into index.js
nodejs index.js --audio name.wav
Loading model from file /models/output_graph.pbmm
TensorFlow: v1.12.0-10-ge232881
DeepSpeech: v0.4.1-0-g0e40db6
2019-01-24 23:21:22.334963: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
Loaded model in 0.005761s.
Running inference.
Transcription: ing to bat a morrow i could decide what to wear to night and lay ut my clothes
Inference took 2.202s.
nodejs: symbol lookup error: /media/stever/Data/projects/DeepSpeech/examples/ffmpeg_vad_streaming/node_modules/deepspeech/lib/binding/v0.4.1/linux-x64/node-v57/deepspeech.node: undefined symbol: _ZN2v87Isolate19CheckMemoryPressureEv