Agent Zero AI framework
speech chunking fix
frdel7e4cf39c8f2f
diff --git a/webui/components/chat/speech/speech-store.js b/webui/components/chat/speech/speech-store.jsindex 38821e4b3..148e729f0 100644--- a/webui/components/chat/speech/speech-store.js+++ b/webui/components/chat/speech/speech-store.js@@ -303,8 +303,8 @@ const model = {for (const line of lines) {if (!line.trim()) continue;// Process each line into sentence tokens and add to chunks- const sentenceStr = sentenceTokens(line.trim()).join(" ");- initialChunks.push(sentenceStr);+ const sentences = sentenceTokens(line.trim());+ initialChunks.push(...sentences);}// Step 2: Merge short chunks until they meet minimum length criteria