Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/hooks/useVoiceChat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export function useVoiceChat() {
shouldAutoStartRecordingRef.current = false;
setTimeout(() => {
startRecording();
}, 500);
}, 150);
} else if (isMutedRef.current) {
shouldAutoStartRecordingRef.current = false;
}
Expand Down Expand Up @@ -235,7 +235,7 @@ export function useVoiceChat() {
if (audioRecorderRef.current && websocketRef.current?.isReady()) {
startRecording();
}
}, 300);
}, 100);
}
} else {
console.log(`[useVoiceChat] Audio in corso (chunks: ${audioPlayerRef.current?.getChunksCount() || 0}, playing: ${isPlaying}), mantengo mute fino a fine riproduzione`);
Expand Down Expand Up @@ -264,7 +264,7 @@ export function useVoiceChat() {
if (audioRecorderRef.current && websocketRef.current?.isReady()) {
startRecording();
}
}, 300);
}, 100);
}
} else {
// Agent non ha ancora finito, torna in processing
Expand All @@ -288,7 +288,7 @@ export function useVoiceChat() {
if (audioRecorderRef.current && websocketRef.current?.isReady()) {
startRecording();
}
}, 300);
}, 100);
}
}
break;
Expand All @@ -313,7 +313,7 @@ export function useVoiceChat() {
if (audioRecorderRef.current && websocketRef.current?.isReady()) {
startRecording();
}
}, 200);
}, 100);
}
break;
}
Expand Down
Loading