Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

[Bug] Automatic answer display function does not work

Open socialpercon opened this issue 3 years ago • 14 comments

Reproduction Steps

Automatic answer display function does not work

  1. Automatic answer display check
  2. 6seconds
  3. study deck 모질게토익테스트.zip
Expected Result

automatic answer

Actual Result

does not work

Debug info

Refer to the support page if you are unsure where to get the "debug info". AnkiDroid Version = 2.15.6

Android Version = 11

Manufacturer = samsung

Model = SM-G988N

Hardware = qcom

Webview User Agent = Mozilla/5.0 (Linux; Android 11; SM-G988N Build/RP1A.200720.012; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/98.0.4758.87 Mobile Safari/537.36

ACRA UUID =

Scheduler = std

Crash Reports Enabled = true

DatabaseV2 Enabled = true

Research

Enter an [x] character to confirm the points below:

  • [ ] I have read the support page and am reporting a bug or enhancement request specific to AnkiDroid
  • [ ] I have checked the manual and the FAQ and could not find a solution to my issue
  • [ ] I have searched for similar existing issues here and on the user forum
  • [ ] (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)

socialpercon avatar Feb 07 '22 03:02 socialpercon

Hello! 👋 Thanks for logging this issue. Please remember we are all volunteers here, so some patience may be required before we can get to the issue. Also remember that the fastest way to get resolution on an issue is to propose a change directly, https://github.com/ankidroid/Anki-Android/wiki/Contributing

welcome[bot] avatar Feb 07 '22 03:02 welcome[bot]

Hi, thanks for the report. Please fill in the "Debug Info" section so we can help you further

david-allison avatar Feb 07 '22 04:02 david-allison

Hi, thanks for the report. Please fill in the "Debug Info" section so we can help you further

Hi, updated debug info except uuid thanks for reply

socialpercon avatar Feb 07 '22 22:02 socialpercon

Edit by @david-allison: the durations/time limit were correct

@david-allison @socialpercon I tried this out on the 2.16alpha42, and while the automatic answer function is working, it is not working as intended. After setting the time limit 6 seconds, for the 3 cards in the deck, the times after which the cards were shown were 10,11,8 seconds respectively. Any idea what could be causing the time limit to malfunction?

viciousAegis avatar Feb 13 '22 18:02 viciousAegis

Do your cards have audio?

david-allison avatar Feb 13 '22 19:02 david-allison

Do your cards have audio?

Yep,2 of the cards have audio

viciousAegis avatar Feb 13 '22 20:02 viciousAegis

Should be: audio duration + 6 then.

david-allison avatar Feb 13 '22 20:02 david-allison

Should be: audio duration + 6 then.

Yep, works as intended then

viciousAegis avatar Feb 14 '22 05:02 viciousAegis

Edit by @david-allison: the durations/time limit were correct

@david-allison @socialpercon I tried this out on the 2.16alpha42, and while the automatic answer function is working, it is not working as intended. After setting the time limit 6 seconds, for the 3 cards in the deck, the times after which the cards were shown were 10,11,8 seconds respectively. Any idea what could be causing the time limit to malfunction?

My guess is that the problem is with the TTS settings. If TTS setting is turned off, it works properly. However, there are cards with audio and cards without audio, so I want to set up TTS.

socialpercon avatar Feb 15 '22 20:02 socialpercon

In brief: I have a similar problem but for me "automatic answer" only works if the "Set TTS language" is not set to "Don't speak" (I have tried with latest alpha version cf. the debug below)

In details: I am using a JS script to set the field for the front/back. Sometimes the front field is in English and sometimes it is in Dutch. As the language changes, I can't use the "set TTS language" features and I have set it to "don't speak" for both front and back. For TTS, I use instead AnkiDroidJS.ankiTtsSpeak() (cf. below). With these settings, the automatic answer doesn't work. The TTS is short (max 4sec) and I have tried with automatic show answer after 9 seconds and automatic next question after 15 seconds.

However, if I reactivate the "set TTS language" and set it to English and Dutch, then automatic answer works as expected (even with timeout set to 2 and 3 seconds)

AnkiDroidJS.ankiTtsSetLanguage(languageFront);
AnkiDroidJS.ankiTtsSpeak(textforTTS);

AnkiDroid Version = 2.16alpha55

Android Version = 10

Manufacturer = Xiaomi

Model = Redmi 7A

Hardware = qcom

Webview User Agent = Mozilla/5.0 (Linux; Android 10; Redmi 7A Build/QKQ1.191014.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/100.0.4896.79 Mobile Safari/537.36

ACRA UUID = 06e6dc69-fef2-4e49-a15a-2b41ca4d7007

Scheduler = std2

Crash Reports Enabled = true

DatabaseV2 Enabled = true

MagTun avatar Apr 09 '22 10:04 MagTun

Could you re-report this as a separate issue? I did some work on automatic display answer, and this should be fixable and testable now

david-allison avatar Apr 09 '22 10:04 david-allison

@david-allison Thank you, it's done.

MagTun avatar Apr 09 '22 10:04 MagTun

Hello 👋, this issue has been opened for more than 2 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

github-actions[bot] avatar Jun 08 '22 10:06 github-actions[bot]

Hello 👋, this issue has been opened for more than 2 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

github-actions[bot] avatar Aug 07 '22 11:08 github-actions[bot]

I think this still needs a good look

mikehardy avatar Aug 14 '22 13:08 mikehardy