From f2413d66f54c95d50b02f0ebdf614fee2bf4cc8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=B8=E9=9B=81?= Date: Wed, 17 May 2023 18:28:59 +0800 Subject: [PATCH] websocket online vad endpoint --- funasr/runtime/html5/readme_cn.md | 4 +++- funasr/runtime/html5/static/wsconnecter.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/funasr/runtime/html5/readme_cn.md b/funasr/runtime/html5/readme_cn.md index 612dc2064..d1a56eb46 100644 --- a/funasr/runtime/html5/readme_cn.md +++ b/funasr/runtime/html5/readme_cn.md @@ -103,7 +103,9 @@ http { } } ``` - +### 修改wsconnecter.js里asr接口地址 +wsconnecter.js里配置online asr服务地址路径,这里配置的是wss端口 +var Uri = "wss://xxx:xxx/wss/" ## Acknowledge 1. This project is maintained by [FunASR community](https://github.com/alibaba-damo-academy/FunASR). 2. We acknowledge [AiHealthx](http://www.aihealthx.com/) for contributing the html5 demo. \ No newline at end of file diff --git a/funasr/runtime/html5/static/wsconnecter.js b/funasr/runtime/html5/static/wsconnecter.js index 4b22e8f08..594652d7f 100644 --- a/funasr/runtime/html5/static/wsconnecter.js +++ b/funasr/runtime/html5/static/wsconnecter.js @@ -5,7 +5,7 @@ /* 2021-2023 by zhaoming,mali aihealthx.com */ function WebSocketConnectMethod( config ) { //定义socket连接方法类 - var Uri = "wss://111.205.137.58:5821/wss/" //设置wss asr online接口地址 如 wss://X.X.X.X:port/wss/ + var Uri = "wss://30.220.136.139:5921/" // var Uri = "wss://30.221.177.46:5921/" //设置wss asr online接口地址 如 wss://X.X.X.X:port/wss/ var speechSokt; var connKeeperID;