 return;

        if (ttsChatLineActiveIx.value !== undefined) {
          tts.cancel();
          if (ttsChatLineActiveIx.value === ix) {
            ttsChatLineActiveIx.value = undefined;
            return;
          }
        }

        ttsChatLineActiveIx.value = ix;
        let ttsUtter = new SpeechSynthesisUtterance(msg);
        ttsUtter.voice = voice;
        ttsUtter.onend = e => {
          ttsChatLineActiveIx.value = undefined;
        };
        tts.speak(ttsUtter);
      }

