Add JavaScript API (node-addon) for FireRedAsr (#1873)

This commit is contained in:
Fangjun Kuang
2025-02-17 12:24:52 +08:00
committed by GitHub
parent 1d49dd2fb0
commit 050df2a357
27 changed files with 134 additions and 46 deletions

View File

@@ -44,8 +44,8 @@ console.log('Done')
const elapsed_seconds = (stop - start) / 1000;
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('Wave duration', duration.toFixed(3), 'seconds')
console.log('Elapsed', elapsed_seconds.toFixed(3), 'seconds')
console.log(
`RTF = ${elapsed_seconds.toFixed(3)}/${duration.toFixed(3)} =`,
real_time_factor.toFixed(3))