| | |
| | | ## paraformer grpc onnx server in c++ |
| | | |
| | | |
| | | #### Step 1. Build ../onnxruntime as it's document |
| | | ``` |
| | | #put onnx-lib & onnx-asr-model & vocab.txt into /path/to/asrmodel(eg: /data/asrmodel) |
| | | #put onnx-lib & onnx-asr-model into /path/to/asrmodel(eg: /data/asrmodel) |
| | | ls /data/asrmodel/ |
| | | onnxruntime-linux-x64-1.14.0 speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch |
| | | |
| | | file /data/asrmodel/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch/vocab.txt |
| | | UTF-8 Unicode text |
| | | #make sure you have config.yaml, am.mvn, model.onnx(or model_quant.onnx) under speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch |
| | | |
| | | ``` |
| | | |
| | | #### Step 2. Compile and install grpc v1.52.0 in case of grpc bugs |
| | |
| | | Usage: ./cmake/build/paraformer_server port thread_num /path/to/model_file quantize(true or false) |
| | | ./cmake/build/paraformer_server 10108 4 /data/asrmodel/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch false |
| | | ``` |
| | | |
| | | |
| | | |
| | | #### Step 5. Start grpc python paraformer client on PC with MIC |
| | | ``` |