From 9aa3a4d0226943e5b3d0fee54f697164ec90cfa2 Mon Sep 17 00:00:00 2001
From: 北念 <lzr265946@alibaba-inc.com>
Date: 星期二, 31 十月 2023 19:52:55 +0800
Subject: [PATCH] add paraformer-16k-en finetune pipeline

---
 funasr/runtime/html5/static/wsconnecter.js |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/funasr/runtime/html5/static/wsconnecter.js b/funasr/runtime/html5/static/wsconnecter.js
index 2873022..ee0bcca 100644
--- a/funasr/runtime/html5/static/wsconnecter.js
+++ b/funasr/runtime/html5/static/wsconnecter.js
@@ -72,7 +72,22 @@
 			"is_speaking":  true,
 			"chunk_interval":10,
 			"mode":getAsrMode(),
+			
 		};
+		if(isfilemode)
+		{
+			request.wav_format=file_ext;
+			if(file_ext=="wav")
+			{
+				request.wav_format="PCM";
+				request.audio_fs=file_sample_rate;
+			}
+		}
+		var hotwords=getHotwords();
+		if(hotwords.length>0)
+		{
+			request.hotwords=hotwords;
+		}
 		console.log(request);
 		speechSokt.send( JSON.stringify(request) );
 		console.log("杩炴帴鎴愬姛");

--
Gitblit v1.9.1