linto-ai / linto-wakemeup

Wake me up is a collaborative interface to make audio sample acquisition and validation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wake me up

Wake me up is a collaborative interface to make audio sample aquisition and validation. Datas are collected anonymously, and can be used to feed audio corpus, and train language models.

Download & Setup project

cd your/project/folder
git clone git@github.com:linto-ai/linto-wakemeup.git
cd wake-me-up/webserver && npm i
cd ../vue_app && npm i

Setup environment variables

1/ Front-end settings

Once you've downloaded the source code, go to your wake-me-up/vue_app folder and setup environment variables to make it work with your development and/or production environment.

There are 2 files to update :

  • wake-me-up/vue_app/.env.development
VUE_APP_URL=http://localhost:3003
VUE_APP_WAKEWORD=your_wake_word

Set VUE_APP_URL to make it match with your development environment

  • wake-me-up/vue_app/.env.production
VUE_APP_URL=https://wakemeup.linto.ai
VUE_APP_WAKEWORD=linto

Set VUE_APP_URL to make it match with your production environment

2/ Back-end settings

You will have to create the .env file that will be used to setup the the interface configuration. Make a copy of the .envdefault file to create your .env file

cd wake-me-up/webmserver
cp .envdefault .env

Once you have created your .env file, set the environment variables to match with your working environment.

# Webserver
NODE_ENV=production
HTTP_PORT=3003

# WAKEWORD
WAKEWORD=LinTO

Building static files

Development mode

cd wake-me-up/vue_app
npm run buil-dev

Production mode

cd wake-me-up/vue_app
npm run buil-app

Start the server

Development mode

cd wake-me-up/webserver
npm run start-dev

Production mode

cd wake-me-up/webserver
npm run start

Your application should be running on the port you've setted up (exemple: http://localhost:3003)

Lauch application with docker

If you want to run your application with the Docker image, follow the previous instructions. Instead of setting up the /webserver/.env file, you will have to setup the /.docker_env file.

cd wake-me-up

Edit the /.docker_env file. (cf. "2/ Back-end settings")

Once you've setted up the .docker_env file, lauch the project with the following command

cd wake-me-up
docker-compose up --build

Your application should be running on the port you've setted up

About

Wake me up is a collaborative interface to make audio sample acquisition and validation.

License:GNU Affero General Public License v3.0


Languages

Language:Vue 53.6%Language:SCSS 22.5%Language:JavaScript 15.8%Language:CSS 7.9%Language:HTML 0.2%Language:Dockerfile 0.1%