mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-28 01:53:53 +08:00
Merge pull request #2907 from xinnan-tech/live2d-actions
update:增加版本号,解决html引用文件缓存问题
This commit is contained in:
@@ -204,7 +204,7 @@ export class AudioRecorder {
|
|||||||
if (this.isRecording) return false;
|
if (this.isRecording) return false;
|
||||||
try {
|
try {
|
||||||
// Check if WebSocketHandler instance exists
|
// Check if WebSocketHandler instance exists
|
||||||
const { getWebSocketHandler } = await import('../network/websocket.js');
|
const { getWebSocketHandler } = await import('../network/websocket.js?v=0127');
|
||||||
const wsHandler = getWebSocketHandler();
|
const wsHandler = getWebSocketHandler();
|
||||||
// If machine is speaking, send abort message
|
// If machine is speaking, send abort message
|
||||||
if (wsHandler && wsHandler.isRemoteSpeaking && wsHandler.currentSessionId) {
|
if (wsHandler && wsHandler.isRemoteSpeaking && wsHandler.currentSessionId) {
|
||||||
|
|||||||
@@ -453,7 +453,7 @@ class UIController {
|
|||||||
|
|
||||||
if (isConnected) {
|
if (isConnected) {
|
||||||
// Check microphone availability (check again after connection)
|
// Check microphone availability (check again after connection)
|
||||||
const { checkMicrophoneAvailability } = await import('../core/audio/recorder.js');
|
const { checkMicrophoneAvailability } = await import('../core/audio/recorder.js?v=0127');
|
||||||
const micAvailable = await checkMicrophoneAvailability();
|
const micAvailable = await checkMicrophoneAvailability();
|
||||||
|
|
||||||
if (!micAvailable) {
|
if (!micAvailable) {
|
||||||
|
|||||||
Reference in New Issue
Block a user