refac: tts details tags

This commit is contained in:
Timothy Jaeryang Baek
2025-05-23 13:40:33 +04:00
parent 55a6fae9db
commit dd8e742c2d
3 changed files with 14 additions and 11 deletions
@@ -212,6 +212,8 @@
speaking = true;
const content = removeAllDetails(content);
if ($config.audio.tts.engine === '') {
let voices = [];
const getVoicesLoop = setInterval(() => {
@@ -228,7 +230,7 @@
console.log(voice);
const speak = new SpeechSynthesisUtterance(message.content);
const speak = new SpeechSynthesisUtterance(content);
speak.rate = $settings.audio?.tts?.playbackRate ?? 1;
console.log(speak);
@@ -251,7 +253,7 @@
loadingSpeech = true;
const messageContentParts: string[] = getMessageContentParts(
message.content,
content,
$config?.audio?.tts?.split_on ?? 'punctuation'
);