Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linstt-controller
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LINAGORA
L
LGS
Labs
linstt-controller
Commits
b0afd9af
Commit
b0afd9af
authored
Dec 12, 2017
by
Yoann HOUPERT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add config process manager enhancer
parent
0706f944
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
.env
.env
+3
-1
docker-compose.yml
docker-compose.yml
+1
-0
lib/webserver/routes.js
lib/webserver/routes.js
+1
-2
No files found.
.env
View file @
b0afd9af
MODELS_PATH=./models/
YAML=/opt/models/gmm_hmm3.yaml
NB_WORKERS=2
NORM=--norm
\ No newline at end of file
NORM=--norm
NB_PROCESS=2
\ No newline at end of file
docker-compose.yml
View file @
b0afd9af
...
...
@@ -21,6 +21,7 @@ services:
env_file
:
.env
environment
:
-
NORM
-
NB_PROCESS
kaldi
:
image
:
linagora/kaldi
...
...
lib/webserver/routes.js
View file @
b0afd9af
...
...
@@ -23,10 +23,9 @@ const routesFactory = config => {
const
routes
=
require
(
'
express
'
).
Router
();
const
enhancer
=
require
(
'
../controller/speech-enhancement
'
)(
config
.
speechEnhancement
);
const
stt
=
require
(
'
../controller/speech-to-text
'
)(
config
.
gstreamer
);
const
checker
=
require
(
'
../util/checker
'
);
routes
.
post
(
'
/api/transcript
'
,
(
req
,
res
)
=>
{
if
(
!
req
.
body
)
{
if
(
!
req
.
body
)
{
return
res
.
status
(
400
).
send
(
'
No files were uploaded.
'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment