This commit is contained in:
2025-09-05 21:36:42 +08:00
parent 8d5d1ce48d
commit ae78c41f86
3 changed files with 30 additions and 37 deletions

View File

@@ -11,21 +11,6 @@ const statusDiv = document.getElementById('status');
const resultDiv = document.getElementById('result');
const resultContent = document.getElementById('resultContent');
// 语言切换时自动填充示例文本
// 移除语言切换事件监听
// languageSelect.addEventListener('change', () => {
// if (languageSelect.value === 'chinese') {
// textInput.value = '窗前明月光,疑是地上霜。';
// } else {
// textInput.value = 'Nice to meet you.';
// }
// });
// 移除页面加载事件监听
// window.addEventListener('load', () => {
// textInput.value = '窗前明月光,疑是地上霜。';
// stopBtn.disabled = true;
// });
// 开始录音
recordBtn.addEventListener('click', async () => {