fix: ajout de protection anti-mauvais chargement de voix

This commit is contained in:
2026-08-09 02:29:37 +02:00
parent dab95812cc
commit 84cd04a4cf
4 changed files with 68 additions and 10 deletions

View File

@@ -9,7 +9,7 @@ import { roleState } from "./role.js";
import { render, drawBlind } from "./canvas.js";
import { setupMovement } from "./movement.js";
import { showGameOver, showVictory, updateTimerDisplay } from "./ui.js";
import { speakInstruction} from "guideVoice.js";
import { speakInstruction} from "./guideVoice.js";
setupMovement();
@@ -51,5 +51,6 @@ socket.on("timer", (timeLeft) => {
});
socket.on("instruction", (data) => {
console.log("Payload recu", data);
speakInstruction(data.texte);
})