lyblsgo
2023-04-21 7bfc4a84fc2d882f34928a033a6d5b60ff72fe19
funasr/runtime/python/grpc/Readme.md
@@ -1,8 +1,6 @@
# Using paraformer with grpc
# Using funasr with grpc-python
We can send streaming audio data to server in real-time with grpc client every 10 ms e.g., and get transcribed text when stop speaking.
The audio data is in streaming, the asr inference process is in offline.
## For the Server
@@ -28,9 +26,7 @@
Install [`funasr_onnx`](https://github.com/alibaba-damo-academy/FunASR/tree/main/funasr/runtime/python/onnxruntime).
```
cd funasr/runtime/python/onnxruntime
python setup.py build
python setup.py install
pip install funasr_onnx -i https://pypi.Python.org/simple
```
Export the model, more details ref to [export docs](https://github.com/alibaba-damo-academy/FunASR/tree/main/funasr/runtime/python/onnxruntime).
@@ -65,6 +61,7 @@
### Install the requirements
```shell
git clone https://github.com/alibaba/FunASR.git && cd FunASR
cd funasr/runtime/python/grpc
pip install -r requirements_client.txt
```
@@ -86,8 +83,8 @@
## Workflow in desgin
![avatar](proto/workflow.png)
<div align="left"><img src="proto/workflow.png" width="400"/>
## Reference
We borrow from or refer to some code as: