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-offline-decoding
Commits
bd05d6f7
Commit
bd05d6f7
authored
Jan 23, 2018
by
Yoann HOUPERT
Browse files
add Dockerisation of offline decoding
parent
0fb8ac2d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
modules/server/master_server.py
modules/server/master_server.py
+2
-0
modules/worker_offline/worker.cfg
modules/worker_offline/worker.cfg
+2
-2
modules/worker_offline/worker_offline.py
modules/worker_offline/worker_offline.py
+3
-0
No files found.
modules/server/master_server.py
View file @
bd05d6f7
...
@@ -27,6 +27,8 @@ TEMP_FILE_PATH = server_settings.get('machine_params', 'temp_file_location')
...
@@ -27,6 +27,8 @@ TEMP_FILE_PATH = server_settings.get('machine_params', 'temp_file_location')
KEEP_TEMP_FILE
=
True
if
server_settings
.
get
(
'server_params'
,
'keep_temp_files'
)
==
'true'
else
False
KEEP_TEMP_FILE
=
True
if
server_settings
.
get
(
'server_params'
,
'keep_temp_files'
)
==
'true'
else
False
LOGGING_LEVEL
=
logging
.
DEBUG
if
server_settings
.
get
(
'server_params'
,
'debug'
)
==
'true'
else
logging
.
INFO
LOGGING_LEVEL
=
logging
.
DEBUG
if
server_settings
.
get
(
'server_params'
,
'debug'
)
==
'true'
else
logging
.
INFO
if
"OFFLINE_PORT"
in
os
.
environ
:
SERVER_PORT
=
os
.
environ
[
'OFFLINE_PORT'
]
class
Application
(
tornado
.
web
.
Application
):
class
Application
(
tornado
.
web
.
Application
):
def
__init__
(
self
):
def
__init__
(
self
):
...
...
modules/worker_offline/worker.cfg
View file @
bd05d6f7
[server_params]
[server_params]
server_ip :
10.31.4.100
server_ip :
offline-server
server_port : 8888
server_port : 8888
server_target : /worker/ws/speech
server_target : /worker/ws/speech
[worker_params]
[worker_params]
temp_file_location : wavs/
temp_file_location : wavs/
decoder_command : "./scripts/decode.sh systems/models"
decoder_command : "./scripts/decode.sh systems/models"
preprocessing : true
preprocessing : true
\ No newline at end of file
modules/worker_offline/worker_offline.py
View file @
bd05d6f7
...
@@ -28,6 +28,9 @@ DECODER_COMMAND = worker_settings.get('worker_params', 'decoder_command')
...
@@ -28,6 +28,9 @@ DECODER_COMMAND = worker_settings.get('worker_params', 'decoder_command')
TEMP_FILE_PATH
=
worker_settings
.
get
(
'worker_params'
,
'temp_file_location'
)
TEMP_FILE_PATH
=
worker_settings
.
get
(
'worker_params'
,
'temp_file_location'
)
PREPROCESSING
=
True
if
worker_settings
.
get
(
'worker_params'
,
'preprocessing'
)
==
'true'
else
False
PREPROCESSING
=
True
if
worker_settings
.
get
(
'worker_params'
,
'preprocessing'
)
==
'true'
else
False
if
"OFFLINE_PORT"
in
os
.
environ
:
SERVER_PORT
=
os
.
environ
[
'OFFLINE_PORT'
]
class
NoRouteException
(
Exception
):
class
NoRouteException
(
Exception
):
pass
pass
class
ConnexionRefusedException
(
Exception
):
class
ConnexionRefusedException
(
Exception
):
...
...
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