Commit adf5ed37 authored by Yoann HOUPERT's avatar Yoann HOUPERT

allow to manage accousticScore

parent 6eeb79a8
Pipeline #10739 passed with stage
in 42 seconds
......@@ -56,14 +56,10 @@ 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 jsonResponse = {
status: 0,
hypotheses: [{
utterance: transcription
}],
hypotheses: JSON.parse(transcription),
id: uuidv1()
};
......
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