How should the audio playing/replaying work?

472 views
Skip to first unread message

ospalh

unread,
Apr 16, 2014, 5:56:06 AM4/16/14
to anki-a...@googlegroups.com
I am thoroughly  confused about when what audio files are played and when they should be played, depending on whether the "repalyq" option ("When answer shown, replay both question and answer audio" in Anki desktop)  is checked or not.

It looks like that Anki desktop always skips audio from {{FrontSide}} when the answer is shown the first time. And it also looks like that the content of {{FrontSide}} is skipped when the replayq is on.

So, when you have a question with audio, and have {{FrontSide}} on the answer side, then with repalyq off, when you replay, the question audio from the question side is skipped, but the question audio from the {{FrontSide}} is played, and when you have replayq on, the question audio from the question side is played, but the question audio from the {{FrontSide}} is skipped. Either way, the audio is played exactly once, and to a user toggling the setting has no effect. ???

Also, i find it a bad idea that different things happen audio-wise when the answer is shown compared to when you hit the r-for-replay button. (Question audio, whether from the question side or through {{FrontSide}}, is skipped or played, respectively). The text of the setting suggest something different, that is, that the audio is played when the question is shown, too.

So, how should AnkiDroid handle this? What is the Right Thing?

(It looks like the hr with id=answer makes no difference for the audio in Anki desktop.)

what when.apkg

Tim

unread,
Apr 16, 2014, 6:13:30 AM4/16/14
to anki-a...@googlegroups.com
On Desktop, the behavior is supposed to work differently for autoplay than it is for pushing the "r button". I'm fairly certain this is what's supposed to happen, and we should do the same thing on AnkiDroid, with the exception that we also embed physical play buttons:

Autoplay: 
question shown: play all audio from question side. Ignore "replayq" preference.
answer shown: play all audio from answer side except for any audio contained in the {{FrontSide}} field. Ignore "replayq" preference.

"r button" replay: 
case 1: "replayq" off:
question shown: play all audio from question side.
answer shown: play all audio from answer side except for any audio contained in the {{FrontSide}} field. 

case 1: "replayq" on:
question shown: play all audio from question side.
answer shown: play all audio from question side, and then play all audio from answer side except for any audio contained in the {{FrontSide}} field. 

After the suggested modifications to PR #284, I believe AnkiDroid and Anki Desktop should behave identically, except for a bug where the question audio is cutoff by the answer audio before it finishes playing in the final case mentioned above.
Reply all
Reply to author
Forward
0 new messages