mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Move stop system TTS to reset function
This commit is contained in:
@@ -25,7 +25,6 @@ let ttsProvider
|
|||||||
let ttsProviderName
|
let ttsProviderName
|
||||||
|
|
||||||
async function onNarrateOneMessage() {
|
async function onNarrateOneMessage() {
|
||||||
cancelTtsPlay();
|
|
||||||
const context = getContext();
|
const context = getContext();
|
||||||
const id = $(this).closest('.mes').attr('mesid');
|
const id = $(this).closest('.mes').attr('mesid');
|
||||||
const message = context.chat[id];
|
const message = context.chat[id];
|
||||||
@@ -131,6 +130,9 @@ async function moduleWorker() {
|
|||||||
|
|
||||||
|
|
||||||
function resetTtsPlayback() {
|
function resetTtsPlayback() {
|
||||||
|
// Stop system TTS utterance
|
||||||
|
cancelTtsPlay();
|
||||||
|
|
||||||
// Clear currently processing jobs
|
// Clear currently processing jobs
|
||||||
currentTtsJob = null;
|
currentTtsJob = null;
|
||||||
currentAudioJob = null;
|
currentAudioJob = null;
|
||||||
|
Reference in New Issue
Block a user