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
b2225d85
Commit
b2225d85
authored
Feb 15, 2018
by
Yoann HOUPERT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patch escaped character
parent
6737253b
Pipeline
#11170
passed with stage
in 3 minutes and 15 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
lib/webserver/routes.js
lib/webserver/routes.js
+6
-4
No files found.
lib/webserver/routes.js
View file @
b2225d85
...
...
@@ -56,20 +56,22 @@ const routesFactory = config => {
if
(
json
.
status
===
5
)
{
return
res
.
status
(
interalServerCode
).
json
({
module
:
'
Offline transcription
'
,
error
:
'
Error during audio transcription
'
});
}
const
transcription
=
JSON
.
parse
(
json
.
transcript
).
transcript
;
const
jsonStr
=
json
.
transcript
.
transcription
;
const
transcription
=
JSON
.
parse
(
json
.
transcript
.
transcription
);
let
jsonResponse
=
{};
// Depend on the offline server
try
{
jsonResponse
=
{
status
:
0
,
hypotheses
:
JSON
.
parse
(
transcription
)
,
hypotheses
:
transcription
.
hypotheses
,
id
:
uuidv1
()
};
}
catch
(
err
)
{
jsonResponse
=
{
status
:
0
,
hypotheses
:
[{
utterance
:
transcription
utterance
:
jsonStr
}],
id
:
uuidv1
()
};
...
...
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