cessing = false;
      let isRecording = false;
      let source;
      let mediaStream;
      let audioCtx;
      let nextStartTime = 0;

      const form = document.querySelector("form");
      const input = document.getElementById("input");
      form.addEventListener("submit", function (event) {
        // Prevent the default form submission behavior.
        event.preventDefault();

        if (input.value.trim() !== "") {
          socket.emit("contentUpdateText", input.value);
        }

        form