mirror of
https://github.com/dergigi/boris.git
synced 2026-01-11 02:44:42 +01:00
fix(tts): remove self-assignment in rate-change handler; keep current lang without no-op
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user