Fix audio click at end of speech synthesis

Append trailing spaces so the audio session stays open briefly before
closing, preventing the hardware click/pop on webkit/macOS.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nmemmert
2026-06-23 08:12:59 -04:00
parent 01de7281a8
commit 7b350d3683
+1 -1
View File
@@ -1166,7 +1166,7 @@ const App = () => {
if (!window.speechSynthesis) return;
window.speechSynthesis.cancel();
const lang = strongsNum?.startsWith('H') ? 'he-IL' : 'el-GR';
const utt = new SpeechSynthesisUtterance(word);
const utt = new SpeechSynthesisUtterance(word + '   ');
utt.lang = lang;
// prefer a matching voice if available
const voices = window.speechSynthesis.getVoices();