Tried to deploly voskjshttp.js to heroku getting Error #5
Replies: 2 comments 1 reply
-
Hi Tay It seems to me that the issue is caused by the fact VoskJs is NOT able to open the Model directory Are you loaded the model directory files on the Heroku dyno? BTW, I'm not familiar with heroku but please note the heroku file system is "ephemeral": so programs probably can NOT write files (if i well remenber).
Last but not least, please note VoskJs is in a very draft stage and APIs could change. |
Beta Was this translation helpful? Give feedback.
-
I'm not familiar with misty robot but probably you have many options, depending to which architecture you want to build. Do you really need a server ? Is it ok to use am ASR on the cloud? Do you want a low latency offline ASR? Do you want to experiment with Coqui STT (successor of DeepSpeech), see my project: Stars on github are appreciated :) |
Beta Was this translation helpful? Give feedback.
-
Heroku log:
ERROR (VoskAPI:ReadConfigFile():parse-options.cc:462) Cannot open config file: ./models/model-en/mfcc.conf
terminate called after throwing an instance of 'kaldi::KaldiFatalError'
what(): kaldi::KaldiFatalError
Project objective
Hi solyaris , thanks for the hard work and documentation , this is my first time using voskjs. I'm current doing my graduation project using misty robot would like to give credit to you in my paper , i would like to deploly the nodejs http server file with the model onto Heroku . From misty robot i will send a external GET request with the recorded voice wave file to the server for the objective of speech to text feature instead of using Google / Azure STT . Later on i will be doing running API for NLP for Question and awnswer.
Problem :
Currently my test of using node voskjshttp.js --model=./models/model-en to start up the sever is working i using the small language english model and doing a GET request from postman http://localhost:3000/transcript?speech=C:\Users\PCUser\OneDrive\Desktop\voskJs-master\voskJs-master\audio\2830-3980-0043.wav is working alright but with heroku i got a error as shown from the log above when deployed sucessfully.
I would appreciate if someone could assist me on finding out the problem. Thanks
Below is the repository with minimal code changes on port to deploy on heroku and also changed the name of the model folder to model-en
https://github.com/believeitcode/voskjs-misty
Beta Was this translation helpful? Give feedback.
All reactions