You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TTS running before translation on some occassions #221
An issue sometimes occurs when combining TTS, translation and animation.
This is a sporadic bug, it does not occur every time but appears to be based on how quickly the translation is returned.
Requirements:
Presentation mode.
Animated TTS block.
Experimental Google translate is on.
The TTS will speak the original un-translated text but use the voice for the translated language. It sounds like someone doing an impression of a foreign accent.
The expected behaviour, which will sometimes occur, is for the TTS to wait for the translation to complete and then read the translation.
<!--
author: ...
language: en
narrator: UK English Female
mode: Presentation
-->
# Issue
## Demo
Material that is always visible works correctly
--{{0}}--
Material that is always visible works correctly
{{|>}}
Material that is manually triggered works correctly
--{{1}}--
Material that appears in an animation block appears correctly in the original language and is read out correctly by the TTS.
{{1}}
Material that appears in an animation block appears correctly in the original language and is read out correctly by the TTS.
{{2}}
> Now use the translation function to change the language.
--{{3}}--
Material that appears in an animation block appears correctly but is read out as per the original language.
{{3}}
Material that appears in an animation block appears correctly but is read out as per the original language but with a different voice.
Thanks for submitting ... We already use a delay to give the TTS some time before passing the translated text, like at the starting of a new page ... However, this does not seem to work for all browsers, probably also based on the CPU we will have to check if the translation (google) is ready before retrieving the text ... I will have to dive deeper into this, since the google-translation-api does not offer a lot ... ;-)
Activity
andre-dietrich commentedon Jan 11, 2025
Thanks for submitting ... We already use a delay to give the TTS some time before passing the translated text, like at the starting of a new page ... However, this does not seem to work for all browsers, probably also based on the CPU we will have to check if the translation (google) is ready before retrieving the text ... I will have to dive deeper into this, since the google-translation-api does not offer a lot ... ;-)