return timestamps for WebAssembly (#737)

This commit is contained in:
Fangjun Kuang
2024-04-05 20:24:27 +08:00
committed by GitHub
parent dbff2eaadb
commit c1c0f5bafd
20 changed files with 89 additions and 35 deletions

View File

@@ -88,7 +88,7 @@ ai.on('data', data => {
}
const isEndpoint = recognizer.isEndpoint(stream);
const text = recognizer.getResult(stream);
const text = recognizer.getResult(stream).text;
if (text.length > 0 && lastText != text) {
lastText = text;