The node.js micro service for Tarteel's voice recognition and follow along features.
Note that you'll need API keys for Iqra and Google Cloud voice to run it locally. Contact one of the admins to receive them
Clone the repository then:
yarn install
yarn build # Build the code
yarn run test # Run test suite
yarn dev # Start the dev server
You may replace yarn
with npm
if you prefer.
- Update
KEY_FILE_PATH
inconfig/audioConstants.js
to point to your GCP credentials. - Update the
.env
with the required credentials:
cp .example.env .env
If you run across an error like so:
[nodemon] Internal watch failed: ENOSPC: System limit for number of file watchers reached...
Run the following:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
If you get an address usage error
Error: listen EADDRINUSE: address already in use :::5000
Run
lsof -ti:3000 | xargs kill; lsof -ti:5000 | xargs kill
If you get an inspector address usage error
Starting inspector on 127.0.0.1:9229 failed: address already in use
change the --inspect
flag in the watch:server
script in package.json
to another port number.