| | |
| | | ## Run the demo |
| | | |
| | | ```shell |
| | | tester /path/models_dir /path/wave_file quantize(true or false) |
| | | funasr-onnx-offline /path/models_dir /path/wave_file quantize(true or false) use_vad(true or false) |
| | | ``` |
| | | |
| | | The structure of /path/models_dir |
| | | ``` |
| | | config.yaml, am.mvn, model.onnx(or model_quant.onnx) |
| | | config.yaml, am.mvn, model.onnx(or model_quant.onnx), (vad_model.onnx, vad.mvn if you use vad) |
| | | ``` |
| | | |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | printf("no return data!"); |
| | | printf("no return data!\n"); |
| | | } |
| | | |
| | | printf("Audio length %lfs.\n", (double)snippet_time); |