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

@@ -34,8 +34,8 @@ let stop = Date.now();
const elapsed_seconds = (stop - start) / 1000;
const duration = audio.samples.length / audio.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))