From 5e5a88bc65ef8a1996ffe22c34e0569f61ae5ef3 Mon Sep 17 00:00:00 2001 From: huangmingming <huangmingming@deepscience.cn> Date: 星期日, 29 一月 2023 17:53:49 +0800 Subject: [PATCH] add readme, generate protobuf file --- funasr/runtime/python/grpc/Readme.md | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/funasr/runtime/python/grpc/Readme.md b/funasr/runtime/python/grpc/Readme.md new file mode 100644 index 0000000..5da42a6 --- /dev/null +++ b/funasr/runtime/python/grpc/Readme.md @@ -0,0 +1,16 @@ +## using paraformer with grpc + +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. + + + +Step 1) Generate protobuf file for grpc +``` +python -m grpc_tools.protoc --proto_path=./proto -I ./proto --python_out=. --grpc_python_out=./ ./proto/paraformer.proto +``` + +Step 2) start grpc server + + +Step 3) start grpc client \ No newline at end of file -- Gitblit v1.9.1