If only a handful of audio wav files are provided to the tool, we'll see an issue like below:
(node:20560) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'replace' of undefined
at TranscriptionAnalysisService.cleanExpectedTranscription (C:\SBUX\d-ser-t\lib\TranscriptionAnalysisService.js:31:14)
at Object.exports.start (C:\SBUX\d-ser-t\lib\main.js:40:48)
at Object. (C:\SBUX\d-ser-t\lib\main.js:74:13)
at Module._compile (internal/modules/cjs/loader.js:774:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
at Module.load (internal/modules/cjs/loader.js:641:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:837:10)
at internal/main/run_main_module.js:17:11
The reason being is tool looks at the transcription file and tries to find corresponding audio file and when it doesn't, it breaks.
The work should go the other way around to avoid issues like this.
If only a handful of audio wav files are provided to the tool, we'll see an issue like below:
(node:20560) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'replace' of undefined at TranscriptionAnalysisService.cleanExpectedTranscription (C:\SBUX\d-ser-t\lib\TranscriptionAnalysisService.js:31:14) at Object.exports.start (C:\SBUX\d-ser-t\lib\main.js:40:48) at Object. (C:\SBUX\d-ser-t\lib\main.js:74:13)
at Module._compile (internal/modules/cjs/loader.js:774:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
at Module.load (internal/modules/cjs/loader.js:641:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:837:10)
at internal/main/run_main_module.js:17:11
The reason being is tool looks at the transcription file and tries to find corresponding audio file and when it doesn't, it breaks.
The work should go the other way around to avoid issues like this.