aliyun / alibabacloud-nls-nodejs-sdk

Apache License 2.0
6 stars 1 forks source link

error in test() function arguments #1

Open iqbalme opened 2 years ago

iqbalme commented 2 years ago

There is an error for test() function because console.log find arg[0] but there is no argument there, can you fix it?

Insswer commented 2 years ago

If you test cluster_run.js, you can run cmd like:

node test/cluster_run.js ./test_sr 0

arg[0] is the case you want to run. test_sr is for SpeechRecognizer, test_st is for SpeechTranscription. arg[1] is the worker number multiple by cpu cores and 0 will be just one worker. You should add APPKEY and TOKEN in test/test_xx.js. you can find these keys from aliyun website(https://www.aliyun.com).