diff --git a/dsLightRag/static/XunFei/audio_evaluation.html b/dsLightRag/static/XunFei/audio_evaluation.html
index f26c2ce6..8272a3ab 100644
--- a/dsLightRag/static/XunFei/audio_evaluation.html
+++ b/dsLightRag/static/XunFei/audio_evaluation.html
@@ -433,23 +433,7 @@
🎙️ 英语朗读评测
-
-
-
-
-
-
+
📝 请朗读以下文本
@@ -553,7 +537,7 @@
this.timer = document.getElementById('timer');
this.duration = document.getElementById('duration');
this.fileSize = document.getElementById('fileSize');
- this.audioFormat = document.getElementById('audioFormat');
+ this.audioFormat = "WebM";
this.volumeSlider = document.getElementById('volumeSlider');
this.volumeValue = document.getElementById('volumeValue');
this.uploadProgress = document.getElementById('uploadProgress');
@@ -582,13 +566,6 @@
this.stopBtn.addEventListener('click', () => this.stopRecording());
this.playBtn.addEventListener('click', () => this.playRecording());
this.uploadBtn.addEventListener('click', () => this.uploadRecording());
-
- this.volumeSlider.addEventListener('input', (e) => {
- this.volumeValue.textContent = e.target.value + '%';
- if (this.audioContext && this.audioContext.destination) {
- this.audioContext.destination.volume.value = e.target.value / 100;
- }
- });
}
async startRecording() {
@@ -699,7 +676,7 @@
}
getMimeType() {
- const format = this.audioFormat.value;
+ const format = "webm";
const supportedTypes = {
'webm': 'audio/webm;codecs=opus',
'mp4': 'audio/mp4',
@@ -759,7 +736,7 @@
this.uploadProgress.classList.add('show');
const formData = new FormData();
- const format = this.audioFormat.value;
+ const format = "webm";
const extensions = {'webm': 'webm', 'mp4': 'mp4', 'wav': 'wav'};
const fileName = `recording_${Date.now()}.${extensions[format]}`;