29 1
Sign in to rate

Control Audio Playback (Pause, Skip backwards/forwards, Stop Audio)

<10kB. Updated 2018-09-10.

Description

This add-on is quite simple and easy to use. It gives you increased control over audio playback. It is particularly useful if you have long audio recordings, such as music or language/vocab cards with sample sentences. Functions -> To pause playback, press "5" (for left handed use) or "n" (for right handed use). -> To skip backwards by five seconds, press "6" -> To skip forward by five seconds, press "7" -> To stop the audio (for that card), press "8" (for left handed use) or "m" (for right handed use). If you want to use a different button/key for any of these commands you can can modify the add-on by opening the add-on in a text editor. Important If you are on a Mac or Linux machine, then Anki uses the mpv player. If you are on a Windows machine, Anki uses mplayer. Each player handles "pausing" differently. For Mac and Linux, when you "pause" it locks the player from receiving any more commands. You have to press pause a second time for it to unpause. So, if your sound suddenly stops working or you can't get audio to replay, you might need to press "pause" a second time so that the player "unpauses" and can start processing commands again. In Windows machines, this does not happen. This is because of the how the media player handles pausing, not because of the add-on. Known or Possible Issues -> One user reported that skipping backwards was only going backwards by one second. It seemed to maybe be specific to his machine. He modified the add-on to go from "-5" to "-15" and it seemed to work. ->While this is very simple and stable add-on, I do not know what will happen if another add-on tries to also map a function to any of these keys. Particularly, I am not familiar with all the add-ons available for possible use, so I do not know which add-ons this may or may not conflict with. Versions v.1: pause audio only v.2: updated to work with 2.0.24+ v.3: updated to include skipping forward, skipping backwards and stopping audio (contributed by Andy) v.4: expanded right handed use functions. v.5: updated to work with 2.1 alpha and beta testing (thanks dae) v.6: updated to work with 2.1.13+ beta v.7: updated to work with 2.1.18+ beta (thanks dae) v.8: updated to work with 2.1.4+ stable release (thanks Nick) If you have any problems with this add-on, please email me at mnhende2 (at) aucegypt (dot) edu. Also, if you are python programmer or Anki add-on developer and have ideas to expand the functionality of this add-on, such as adding in buttons instead of keybindings or other ideas, feel free to contact me.

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

To download this add-on, please copy and paste the following code into Anki 2.1:

1591259314

If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

This add-on previously supported Anki 2.0. You can download the last version supporting 2.0 here. As Anki 2.0 has been discontinued, no support is available for this version.

All Anki 2.1.x Add-Ons Ask a Question

Reviews

on 1577475230
não está funcionando muito bem. Eu gostaria de reproduzio o audio varias vezes.
on 1576961330
Great!
on 1574272621
ready
on 1572323371
I need it!
on 1570992404
Thank you so much
on 1568106486
Very helpful! Thanks.
on 1567990844
good
on 1561608389
Good
on 1553796314
1591259314
on 1552405725
helpful
on 1545402486
Very good
on 1534472204
works, just what I needed, thanks!
on 1505779200
Great!

It'd be awesome if I can control the playback speed, i.e. speed up or slow down the audio!
on 1461888000
love it

it very useful for listen
on 1455321600
s

on 1435104000
Help me

past :
I have a problem , copy code and paste in the correct place but open error box ( code is incorrect )
why?

answer : I cand solve problem , it is very easy , I should Turn off VPN or Proxy ,

:-)
on 1419206400
Remarks

A brillant addon !

1. Would it be possible to stop all the sounds when there are several sounds on a same card ?

2. One thing "is" missing (if it is at least possible it exists): an option to let you disable the automatic playback of the sound, attributing a keyboard shortcut to play the sound if and when you want.

Thanks a lot whatever.
on 1409616000
Very helpful to break down long audio

on 1397520000
Love it. Does what is says.

This is a nice feature. Thanks.