AnKing-Note-Types icon indicating copy to clipboard operation
AnKing-Note-Types copied to clipboard

TTS reads answers aloud before flipping card over

Open Furlanese opened this issue 11 months ago • 1 comments

Which Note Type (and version) is this about?

Latest version of AnKing note types addon, AnKing Overhaul note type, AnkiHub AnKing deck (last synced on Anki Hub Feb 25 2024)

Problem description

Please consult the bug post I made on the AnkiDroid issue page for further information: https://github.com/ankidroid/Anki-Android/issues/15826

With Ankidroids latest 2.17.0+ updates more desktop Anki code is being used on the mobile app, making the text-to-speech of Anking Note Types addon function on the android version of Anki. After the 2.17.1 update (and persisting to the current 2.17.5 update) a bug has been found that the team at Ankidroid have been unable to understand.

All clozes that have formatting within the cloze field (eg.<i></i>) cause the TTS to read the answer aloud before you flip the card over (it also speaks out some cloze syntax).

Expected behavior The TTS should only read out "blank" or whatever is written as a cloze hint. Ex. What is the etiology of <b>Lyme disease</b>? <div>{{c1::<i>Borrelia burgdorferi</i>}}</div> TTS reads, "What is the etiology of Lyme disease? Blank."

Actual behavior The TTS reads out the answer alongside other syntax characters before you flip over the card. Ex. What is the etiology of <b>Lyme disease</b>? <div>{{c1::<i>Borrelia burgdorferi</i>}}</div> TTS reads, "What is the etiology of Lyme disease? Borrelia burgdorferi data ordinal equals one greater than blank."

Checklist

  • [x] I've restarted Anki to see if it helps
  • [x] I've verified that I use the latest version of the note type by redownloading it from AnkiWeb
  • [x] I've tried to disable add-ons to see if there are any interactions present
  • [x] I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

What Anki version are you using?

AnkiDroid Version = 2.17.5 (1c1aa94ec466f37d33fd2f75020d9f9021ac811e)

Backend Version = 0.1.34-anki23.12.1 (23.12.1 1a1d4d5419c6b57ef3baf99c9d2d9cf85d36ae0a)

Android Version = 13 (SDK 33)

ProductFlavor = play

Manufacturer = Google

Model = Pixel 6a

Hardware = bluejay

Webview User Agent = Mozilla/5.0 (Linux; Android 13; Pixel 6a Build/TQ3A.230901.001.C2; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/122.0.6261.105 Mobile Safari/537.36

ACRA UUID = 77a11564-258e-4870-adc2-7d2012334386

Crash Reports Enabled = true

Furlanese avatar Mar 10 '24 02:03 Furlanese

TTS isn't controlled from the addon. If this is happening when there is formatting in the cloze, then it probably needs to be fixed on the Ankidroid side

AnKingMed avatar Mar 10 '24 22:03 AnKingMed