mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user