function stopSpeaking()

in static/js/chat.js [436:444]


function stopSpeaking() {
    spokenTextQueue = [];
    avatarSynthesizer.stopSpeakingAsync().then(() => {
         isSpeaking = false;
         console.log("Stop speaking request sent.");
    }).catch((error) => {
         console.log("Error stopping speaking: " + error);
    });
}