fix(tts): remove self-assignment in rate-change handler; keep current lang without no-op

This commit is contained in:
Gigi
2025-10-21 22:48:01 +02:00
parent 144cf5cbd1
commit f39b926e7b

View File

@@ -254,7 +254,7 @@ export function useTextToSpeech(options: UseTTSOptions = {}): UseTTS {
// restart chunked from current global index
spokenTextRef.current = remainingText
charIndexRef.current = 0
langRef.current = langRef.current // keep lang
// keep current language selection; no change needed here
startSpeakingChunks(remainingText)
return
}