Giter Site home page Giter Site logo

envirocar-voice-model-delivery-api's Introduction

enviroCar Voice Model Delivery API โš™

Voice-Model delivery API created for enviroCar: Voice Command wake-word detection feature, responsible for providing Language Models remotely.

Stack:

  • NodeJS
  • ExpressJS
  • Winston

Installation

  • Install dependencies
    npm i
  • Create .env (take reference from .env-sample)
  • Create assets folder in the project directory and add model files in it. Latest released model file must contain the word latest (Case Insensitive) in it's filename, so that it is served at /latest endpoint. Eg: Vosk-Model-Latest.7z

Deploy

  • Start server
    npm run start

OR

  • Build docker image
    docker build . -t <TAG>
  • Run container
    docker run -d --name <CONTAINER_NAME> -p <HOST_PORT>:8000 --mount type=bind,source=$(pwd)/assets,target=/usr/src/app/assets <IMAGE_TAG>

Endpoints

Endpoint Request Type Description
/latest GET Returns the latest model file
/models GET Returns a JSON list of available models
/models/:name GET Returns model file with the filename name if it exists else returns a 404. Eg: <address>/models/Vosk-Model-Latest.7z returns Vosk-Model-Latest.7z model file
/refresh GET Refreshes the models list and returns the operation result (Useful when new models are added)

Logs

Logs are collected for every request and saved in two files in the project root dirctory:

  • app.log
  • error.log

envirocar-voice-model-delivery-api's People

Contributors

devayushdubey avatar sebadro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.