From c8bc77e4c0480b7a85682916cba21aa551df35fd Mon Sep 17 00:00:00 2001
From: lyblsgo <wucong.lyb@alibaba-inc.com>
Date: 星期一, 16 十月 2023 12:51:32 +0800
Subject: [PATCH] update docker image id

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

diff --git a/funasr/runtime/html5/static/wsconnecter.js b/funasr/runtime/html5/static/wsconnecter.js
index cc6129f..ee0bcca 100644
--- a/funasr/runtime/html5/static/wsconnecter.js
+++ b/funasr/runtime/html5/static/wsconnecter.js
@@ -77,6 +77,11 @@
 		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)

--
Gitblit v1.9.1