mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
TTS: force speak on first message in new chat
This commit is contained in:
@@ -122,6 +122,12 @@ async function moduleWorker() {
|
|||||||
) {
|
) {
|
||||||
currentMessageNumber = context.chat.length ? context.chat.length : 0
|
currentMessageNumber = context.chat.length ? context.chat.length : 0
|
||||||
saveLastValues()
|
saveLastValues()
|
||||||
|
|
||||||
|
// Force to speak on the first message in the new chat
|
||||||
|
if (context.chat.length === 1) {
|
||||||
|
lastMessageHash = -1;
|
||||||
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -771,7 +777,7 @@ export async function initVoiceMap(){
|
|||||||
// Clear existing voiceMap state
|
// Clear existing voiceMap state
|
||||||
$('#tts_voicemap_block').empty()
|
$('#tts_voicemap_block').empty()
|
||||||
voiceMapEntries = []
|
voiceMapEntries = []
|
||||||
|
|
||||||
// Get characters in current chat
|
// Get characters in current chat
|
||||||
const characters = getCharacters()
|
const characters = getCharacters()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user