Fix node addon tests (#865)
* Install naudiodon2 manually. It is needed only when using a microphone. The CI tests don't need it.
This commit is contained in:
@@ -36,6 +36,9 @@ rm sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20.tar.bz2
|
||||
|
||||
node ./test_asr_streaming_transducer.js
|
||||
|
||||
# To run the test with microphone, you need to install the package naudiodon2
|
||||
npm install naudiodon2
|
||||
|
||||
node ./test_asr_streaming_transducer_microphone.js
|
||||
```
|
||||
|
||||
@@ -44,6 +47,10 @@ node ./test_asr_streaming_transducer_microphone.js
|
||||
```bash
|
||||
wget https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/silero_vad.onnx
|
||||
|
||||
|
||||
# To run the test with microphone, you need to install the package naudiodon2
|
||||
npm install naudiodon2
|
||||
|
||||
node ./test_vad_microphone.js
|
||||
```
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"naudiodon2": "^2.4.0",
|
||||
"perf_hooks": "*",
|
||||
"sherpa-onnx-node": "*"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user