Remove portaudio-go in Go API examples. (#2317)

Replace the deprecated portaudio-go integration with malgo in the Go real-time 
speech recognition example and correct version string typos in the Node.js examples.

- Fixed “verison” typo in Node.js console logs.
- Swapped out portaudio-go for malgo in the Go microphone example, 
   introducing initRecognizer, callback-driven streaming, and sample conversion.
- Removed portaudio-go from go.mod.
This commit is contained in:
Fangjun Kuang
2025-06-26 11:33:50 +08:00
committed by GitHub
parent 074236ae80
commit 282211c01f
4 changed files with 57 additions and 46 deletions

View File

@@ -1,6 +1,6 @@
// Copyright (c) 2024 Xiaomi Corporation
const sherpa_onnx = require('sherpa-onnx-node');
console.log(`verison : ${sherpa_onnx.version}`);
console.log(`version : ${sherpa_onnx.version}`);
console.log(`git sha1: ${sherpa_onnx.gitSha1}`);
console.log(`git date: ${sherpa_onnx.gitDate}`);