  updateStatus("已连接，准备录音...", "connected");
                    addLog("WebSocket连接已建立");

                    player = new AudioPlayer(updateStatus, websocket);
                    recorder = new WebRecorder(websocket);

                    const started = await recorder.start();
                    if (started) {
                        updateStatus("录音中...", "recording");
                        startBtn.disabled = true;
                        stopBtn.disabled = false;
  