mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-22 01:27:55 +00:00
bugfix: azure stt results need to be ordered by confidence level before processing (#92)
This commit is contained in:
@@ -356,7 +356,7 @@ class TaskGather extends Task {
|
||||
if ('microsoft' === this.vendor) {
|
||||
const final = evt.RecognitionStatus === 'Success';
|
||||
if (final) {
|
||||
const nbest = evt.NBest;
|
||||
const nbest = evt.NBest.sort((a, b) => b.Confidence - a.Confidence);
|
||||
evt = {
|
||||
is_final: true,
|
||||
alternatives: [
|
||||
|
||||
Reference in New Issue
Block a user