Commit f3dbc9e6 authored by Yoann HOUPERT's avatar Yoann HOUPERT

initial commit

parents
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Typescript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
tmp/
nohup.out
models/
This diff is collapsed.
# linstt-poc-socgen
This is the repository for the linstt-poc-socgen project.
## Install Docker and Docker Compose
You will need to have Docker and Docker Compose installed on your machine. If they are already installed, you can skip this part.
Otherwise, you can install them referring to [https://docs.docker.com/engine/installation/](https://docs.docker.com/engine/installation/ "Install Docker"), and to [https://docs.docker.com/compose/install/](https://docs.docker.com/compose/install/ "Install Docker Compose").
## Get all the docker images
### Kaldi-gstreamer
**TODO**
### Speech Enhancement
**TODO**
### Controller
**TODO**
## Clone linstt-poc-socgen
Run `git clone https://ci.linagora.com/linagora/lgs/labs/linstt-poc-socgen`
You can build the docker image of linstt-poc-socgen running `docker build -t linagora/linstt-poc-socgen .` in the linstt-poc-socgen directory, but if you don't do it, the image will be built the first time you run `docker-compose up`.
Note that if you have an old docker image tagged `linagora/linstt-poc-socgen` on your machine, the image will never be built when you run `docker-compose up`, and the old image will be used. In order to have the latest version of the image, you must build it now. Every time you change some code in linstt-poc-socgen, you will need to build the image, because docker compose will use `linagora/linstt-poc-socgen` image if it exists. If you want the image to be built every time you run `docker-compose up`, remove the `image: linagora/linstt-poc-socgen` line in docker-compose.yml
## Environment variables
**TODO**
## Run linstt-poc-socgen
Be sure that you are in the linstt-poc-socgen directory, and run `docker-compose up`. You can set environment variables in the same command line, as explained above.
/*
* Copyright (c) 2017 Linagora.
*
* This file is part of linstt-poc-socgen
* (see https://ci.linagora.com/linagora/lgs/labs/linstt-poc-socgen).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
const app = require('express')();
const config = require('./config.json');
const routes = require('./lib/webserver/routes');
console.log('starting routes linstt-poc-socgen...');
app.use('/', routes.routesFactory());
app.listen(config.api, () => {
console.log('App listening on port 3000');
});
console.log('routes started linstt-poc-socgen...');
{
"api": 3000,
"orchestrator": {
"gstreamerURL": "ws://localhost:3001/kaldi",
"speechEnhancementURL": "ws://localhost:3002/enhancement"
}
}
\ No newline at end of file
/*
* Copyright (c) 2017 Linagora.
*
* This file is part of linstt-poc-socgen
* (see https://ci.linagora.com/linagora/lgs/labs/linstt-poc-socgen).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
const routesFactory = () => {
/* eslint new-cap: ["error", { "capIsNew": false }] */
const routes = require('express').Router();
routes.post('/api/transcript', (req, res) => {
console.log('first routes');
res.status(200).json({message: 'transcript call'});
});
return routes;
};
module.exports = {
routesFactory
};
{
"name": "linstt-poc-socgen",
"version": "0.0.1",
"description": "An orchestrator for socgen",
"main": "app.js",
"scripts": {
"start": "node app.js",
"test": "xo && jest",
"test:watch": "jest --watch",
"ci": "yarn && xo && jest --runInBand"
},
"dependencies": {
"body-parser": "^1.18.2",
"express": "^4.16.2",
"xmlhttprequest": "1.8.0"
},
"devDependencies": {
"jest": "20.0.0",
"xo": "0.18.2",
"sinon": "^4.0.2"
},
"xo": {
"space": true
},
"repository": {
"type": "git",
"url": "https://ci.linagora.com/linagora/lgs/labs/linstt-poc-socgen.git"
},
"author": "Linagora Folks",
"license": "AGPL-3.0"
}
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment