fix: task/appt voice creation — non-greedy trigger strip, bare-date extraction, noon/midnight, book trigger, 900ms TTS mic gap

This commit is contained in:
2026-05-31 19:47:41 +00:00
parent 5b599b1617
commit cfdbd57bce
2 changed files with 60 additions and 22 deletions
+2 -2
View File
@@ -1938,7 +1938,7 @@ async function speak(text) {
isSpeaking = false;
reactor?.classList.remove('speaking');
// onend will fire from the abort we did before TTS, and restart cleanly
if (isListening) _scheduleRecStart(400);
if (isListening) _scheduleRecStart(900);
};
try {
const res = await fetch('/api/tts', {
@@ -1971,7 +1971,7 @@ function _speakFallback(text) {
utter.onend = () => {
reactor?.classList.remove('speaking');
isSpeaking = false;
if (isListening) _scheduleRecStart(400);
if (isListening) _scheduleRecStart(900);
};
synth.speak(utter);
}