Add streaming CTC ASR APIs for node-addon-api (#867)
This commit is contained in:
@@ -24,7 +24,6 @@ const config = {
|
||||
'numThreads': 2,
|
||||
'provider': 'cpu',
|
||||
'debug': 1,
|
||||
'modelType': 'zipformer',
|
||||
}
|
||||
};
|
||||
|
||||
@@ -53,5 +52,8 @@ const duration = wave.samples.length / wave.sampleRate;
|
||||
const real_time_factor = elapsed_seconds / duration;
|
||||
console.log('Wave duration', duration.toFixed(3), 'secodns')
|
||||
console.log('Elapsed', elapsed_seconds.toFixed(3), 'secodns')
|
||||
console.log('RTF', real_time_factor.toFixed(3))
|
||||
console.log('result', result.text)
|
||||
console.log(
|
||||
`RTF = ${elapsed_seconds.toFixed(3)}/${duration.toFixed(3)} =`,
|
||||
real_time_factor.toFixed(3))
|
||||
console.log(waveFilename)
|
||||
console.log('result\n', result)
|
||||
|
||||
Reference in New Issue
Block a user