diff --git a/dsLightRag/KeDaXunFei/__pycache__/XunFeiAudioEvaluator.cpython-310.pyc b/dsLightRag/KeDaXunFei/__pycache__/XunFeiAudioEvaluator.cpython-310.pyc index d4b7efa0..97074902 100644 Binary files a/dsLightRag/KeDaXunFei/__pycache__/XunFeiAudioEvaluator.cpython-310.pyc and b/dsLightRag/KeDaXunFei/__pycache__/XunFeiAudioEvaluator.cpython-310.pyc differ diff --git a/dsLightRag/Routes/XunFeiRoute.py b/dsLightRag/Routes/XunFeiRoute.py index bf4cead5..2955275f 100644 --- a/dsLightRag/Routes/XunFeiRoute.py +++ b/dsLightRag/Routes/XunFeiRoute.py @@ -19,7 +19,7 @@ sys.path.append(os.path.join(os.path.dirname(__file__), "..")) from Config.Config import XF_APPID, XF_APIKEY, XF_APISECRET @router.post("/save-audio") -async def save_audio(audio: UploadFile = File(...), txt: str = Form(...)): +async def save_audio(audio: UploadFile = File(...), txt: str = Form(...), language: str = Form("english")): # 添加语言参数,默认英文 """保存音频文件并评分""" temp_file = None try: @@ -59,8 +59,8 @@ async def save_audio(audio: UploadFile = File(...), txt: str = Form(...)): appid=XF_APPID, api_key=XF_APIKEY, api_secret=XF_APISECRET, - audio_file=mp3_temp_file, # 使用转换后的mp3文件 - language="english", + audio_file=mp3_temp_file, + language=language, # 使用动态参数 txt=txt ) results, eval_time = evaluator.run_evaluation() diff --git a/dsLightRag/Routes/__pycache__/XunFeiRoute.cpython-310.pyc b/dsLightRag/Routes/__pycache__/XunFeiRoute.cpython-310.pyc index e287f688..f36c697d 100644 Binary files a/dsLightRag/Routes/__pycache__/XunFeiRoute.cpython-310.pyc and b/dsLightRag/Routes/__pycache__/XunFeiRoute.cpython-310.pyc differ diff --git a/dsLightRag/static/XunFei/audio_evaluation_cn.html b/dsLightRag/static/XunFei/audio_evaluation_cn.html new file mode 100644 index 00000000..806d863c --- /dev/null +++ b/dsLightRag/static/XunFei/audio_evaluation_cn.html @@ -0,0 +1,499 @@ + + + + + + 中文朗读评测 + + + +
+

🎙️ 中文朗读评测

+ + +
+

📝 请朗读以下文本

+ +
+ +
+ +
+ +
00:00
+ +
准备就绪
+ +
+ + + + +
+ +
+ +

+ 录制时间: 0 秒 | + 文件大小: 0 KB +

+
+ +
+
+
+
+
上传进度: 0%
+
+ + +
+

📊 评测结果

+
+
+ -- + 总分 +
+
+ -- + 准确度 +
+
+ -- + 流利度 +
+
+ -- + 完整度 +
+
+
+

字词评分

+
等待评测结果...
+
+
+
+ + + + \ No newline at end of file diff --git a/dsLightRag/static/audio/audio_1d892f27addd473c9da65f7d6135b349.wav b/dsLightRag/static/audio/audio_1d892f27addd473c9da65f7d6135b349.wav new file mode 100644 index 00000000..1958a926 Binary files /dev/null and b/dsLightRag/static/audio/audio_1d892f27addd473c9da65f7d6135b349.wav differ diff --git a/dsLightRag/static/audio/audio_b6a8bad4000c4518873e53714420d78e.wav b/dsLightRag/static/audio/audio_b6a8bad4000c4518873e53714420d78e.wav new file mode 100644 index 00000000..5f36ed3e Binary files /dev/null and b/dsLightRag/static/audio/audio_b6a8bad4000c4518873e53714420d78e.wav differ diff --git a/dsLightRag/static/audio/audio_f32a090081d343c19b15f65f3d5841d1.wav b/dsLightRag/static/audio/audio_f32a090081d343c19b15f65f3d5841d1.wav new file mode 100644 index 00000000..3209b7c4 Binary files /dev/null and b/dsLightRag/static/audio/audio_f32a090081d343c19b15f65f3d5841d1.wav differ