Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LINAGORA
L
LGS
Labs
linstt-controller
Commits
b0afd9af
Commit
b0afd9af
authored
Dec 12, 2017
by
Yoann HOUPERT
Browse files
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