This commit is contained in:
2025-09-06 10:29:48 +08:00
parent a12373b6d5
commit 4953e8712b
29 changed files with 65 additions and 44 deletions

View File

@@ -360,12 +360,11 @@
const fileName = `recording_${Date.now()}.webm`;
formData.append('audio', this.recordedBlob, fileName);
formData.append('txt', document.getElementById('readingText').value);
formData.append('language', 'chinese'); // 添加中文语言参数
try {
this.simulateUploadProgress();
const response = await fetch('/api/xunFei/save-audio', {
const response = await fetch('/api/xunFeiCn/save-audio', {
method: 'POST',
body: formData,
headers: {'Accept': 'application/json'}