New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] JS API: AnkiDroidJS.ankiTtsSpeak(text) should strip/ignore html #13107
Comments
Related: the ankiTtsSpeak() will continue reading text it was given when going back to the deck list, unlike the html tags which will stop reading of going back to the deck list |
Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically |
I don't really use AnkiDroid anymore since I started running Anki desktop on my phone (via Termux and proot-distro). As far as I know it's still an issue, but not for me |
With 2.17 standard Anki TTS tags will be supported, which should handle this correctly. I'm not sure what the AD devs want to do with the AnkiDroid-specific TTS tags. |
Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically |
Just so you're aware of a user request, I expect this is blocked on TTS We're going to be deprecating We're still going to support TTS via This seems like a reasonable request: a user wants an API for TTS to read out field contents in the same way that
|
Then JS API for TTS also needs to be upgraded. |
Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically |
Please tag "keep open" |
I will create PR to fix this issue later which update JS API. |
I'm attempting to make a replay tts button on a template:
Reproduction Steps
Test front 1 2 3
and ignore the b html tags. The replay button using the JS API will incorrectly read out the element:Test front 1 less than sign b greater than sign 2 less than sign slash b greater than sign 3
Expected Result
The same behavior as when using the tts HTML tags: embedded HTML elements shouldn't be read by
ankiTtsSpeak()
.Actual Result
embedded HTML elements are read
Debug info
Refer to the support page if you are unsure where to get the "debug info".
AnkiDroid Version = 2.16alpha92
Android Version = 11
Manufacturer = Google
Model = Pixel 2
Hardware = walleye
Webview User Agent = Mozilla/5.0 (Linux; Android 11; Pixel 2 Build/RP1A.201005.004.A1; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/106.0.5249.126 Mobile Safari/537.36
ACRA UUID = edb11ce0-7c90-482d-9915-9e02591297f0
New schema = false
Scheduler = std2
Crash Reports Enabled = true
DatabaseV2 Enabled = true
Research
Enter an [x] character to confirm the points below:
The text was updated successfully, but these errors were encountered: