This commit is contained in:
游雁 2023-07-26 14:53:36 +08:00
parent c2c7fc79ba
commit 38378d2808
2 changed files with 3 additions and 3 deletions

View File

@ -11,6 +11,6 @@ if __name__ == '__main__':
punc_model='damo/punc_ct-transformer_zh-cn-common-vocab272727-pytorch',
output_dir=output_dir,
)
rec_result = inference_pipeline(audio_in=audio_in, batch_size_token=5000)
rec_result = inference_pipeline(audio_in=audio_in, batch_size_token=5000, batch_size_token_threshold_s=40)
print(rec_result)

View File

@ -26,7 +26,7 @@ python funasr_wss_server.py --port 10095
python funasr_wss_client.py --host "127.0.0.1" --port 10095 --mode 2pass --chunk_size "5,10,5"
#python funasr_wss_client.py --host "127.0.0.1" --port 10095 --mode 2pass --chunk_size "8,8,4" --audio_in "./data/wav.scp"
```
更多例子可以参考([点击此处](https://alibaba-damo-academy.github.io/FunASR/en/runtime/websocket_python.html#id2)
更多例子可以参考([点击此处](runtime/websocket_python.html#id2)
<a name="cpp版本示例"></a>
#### c++版本示例
@ -45,7 +45,7 @@ sudo bash funasr-runtime-deploy-offline-cpu-zh.sh install --workspace ./funasr-r
```shell
python3 funasr_wss_client.py --host "127.0.0.1" --port 10095 --mode offline --audio_in "../audio/asr_example.wav"
```
更多例子参考([点击此处](https://github.com/alibaba-damo-academy/FunASR/blob/main/funasr/runtime/docs/SDK_tutorial_zh.md)
更多例子参考([点击此处](funasr/runtime/docs/SDK_tutorial_zh.md)
### 工业模型egs