Play Only One in the Group

AnkiWeb addon 693487362

Wraps grouped fields in a custom tag so autoplay plays only one audio, with shortcuts to replay or cycle forward/backward through the group.
AI-generated summary; may contain mistakes.

review-flowshortcutscard-templates

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
1 (πŸ‘ 1 Β· πŸ‘Ž 0)
Updated
2022-11-02
Anki versions
2.1.54~
License
Not found (this does not mean that the addon has no license)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JavaScript, CSS
Description language
en

Maintenance

abandoned

  • Last update or commit: 2022-11-02 (1460 days before the snapshot).
  • Commits in the last year: 0.
  • Issues: 0 open, 0 closed.
  • Pull requests: 0 open, 0 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.522.1.54+2022-11-02
History across monthly snapshots

Loading…

Similar addons

Answer Button Sounds has 1 fork β†’

Plays a distinct beep for each answer, keeping it playing and delaying the next card's audio so the sound isn't cut off, with a toggle for this behavior.

review-flow

21 votes 45% approval πŸ‘ 14 Β· πŸ‘Ž 7 Anki 2.1.20~ Updated 2020-02-20
Disable autoplay in webview

Disables autoplay of HTML audio and video tags in Anki's editor and browser webviews, with settings to re-enable it globally or per webview.

formatting

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.1~ Updated 2025-02-04

Description

An Anki Addon that allows to play only one item in a group during autoplaying Wrap a group of fields in a custom tag in order to play only one item in the group. In the sample below, there are seven audios on the card, which are all wrapped in an only-one tag. If autoplay is enabled (this is the default case), only the first audio - hobby1 will be played. And if you press 'R' or 'F5', this audio will be replayed. But if you press 'N', the next audio in the group - hobby2 will be played, once again 'N' and hobby3, and so on, until the last audio hobby7, then back to the first one - hobby1. Instead, if you press 'P', there will a reversed playing order - hobby1, hobby7, hobby6, ..., hobby3, hobby2, hobby1, ... BTW, at any time if you press 'R' or 'F5', the audio last time played will be replayed, that may be any of hobby1, hobb2, ..., hobby7. <only-one> hobby1:{{hobby1}}<br/> hobby2:{{hobby2}}<br/> hobby3:{{hobby3}}<br/> hobby4:{{hobby4}}<br/> hobby5:{{hobby5}}<br/> hobby6:{{hobby6}}<br/> hobby7:{{hobby7}}<br/> </only-one> P.S. I have added a shortcut Ctrl+R for replay on the review page, because each time when I am dictating in an input box, 'R' cannot be used, and F5 is not convenient. Changelog:
  • 2022-11-02: Added * and - as shortcuts for the finish and cancel of voice recording. <br> Thanks to the praise in the feedback on 2022/10/28. But it is a pity that it is impossible to make it usable in anki version 2.1.49 because the addon uses some features that are only available since anki version 2.1.52. For the sample deck, I don't know how to make one now and I have not enough time for it at present, maybe in the future I can try to learn how to achieve it.
  • 2022-09-30: Adapt to both Qt5 and Qt6.
  • 2022-09-28:
    1. Shortcuts updated: V - Record Own Voice; Shift+V - Replay Own Voice
    2. On Mac, when recording own voice, enable by pressing the space key to end recording
    3. On Mac, when recording own voice, enable by pressing 'Q' to cancel recording
    4. Shortcut added: G - Replay Own Voice
  • 2022-09-28: Shortcuts updated: J - Replay Audio; K - Pause Audio; L - Audio -5s; ";" or Γ– - Audio +5s
  • 2022-09-28: Set the item in an Only One Group as current after it is clicked by the user to play.

README

play-only-one-in-the-group

An Anki Addon that allows to play only one item in a group during autoplaying Wrap a group of fields in a custom tag in order to play only one item in the group.

In the sample below, there are seven audios on the card, which are all wrapped in an only-one tag. If autoplay is enabled (this is the default case), only the first audio - hobby1 will be played. And if you press 'R' or 'F5', this audio will be replayed. But if you press 'N', the next audio in the group - hobby2 will be played, once again 'N' and hobby3, and so on, until the last audio hobby7, then back to the first one - hobby1. Instead, if you press 'P', there will a reversed playing order - hobby1, hobby7, hobby6, ..., hobby3, hobby2, hobby1, ... BTW, at any time if you press 'R' or 'F5', the audio last time played will be replayed, that may be any of hobby1, hobb2, ..., hobby7.

<only-one>
    hobby1:{{hobby1}}<br/>
    hobby2:{{hobby2}}<br/>
    hobby3:{{hobby3}}<br/>
    hobby4:{{hobby4}}<br/>
    hobby5:{{hobby5}}<br/>
    hobby6:{{hobby6}}<br/>
    hobby7:{{hobby7}}<br/>
</only-one>

P.S. I have added a shortcut Ctrl+R for replay on the review page, because each time when I am dictating in an input box, 'R' cannot be used, and F5 is not convenient.