'commit'
This commit is contained in:
@@ -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'}
|
||||
|
Reference in New Issue
Block a user