Closed KatieProchilo closed 5 years ago
NOTE: Whoever works on this should ask me for AnnouncersTest.wav
and its transcription for easy repro.
Not only are there multiple partial responses for a single recording, but the partial responses are inconsistent. For example, without changes to the code, here are partial transcriptions from two separate runs:
miracle spherical diabolical denizens of the deep who held stall
miracle spherical diabolical denizens of the deep who held stall around the corner of the quote
So, did some digging into the SDK. We should be looking into the result from CRIS. We should only parse the response if result.reason == 0
and if (e.result.json).NBest[0]
is not undefined.
Add this code to recognizer.recognized
in TranscriptionService
.
console.log(e.result.reason);
console.log(JSON.parse(e.result.json).NBest[0]);
fixed by #84
transcription.txt
.test_results.json
there were 2 results:Any single .wav file should produce exactly one result.