# Interval between audio playbacks during autoplay

**URL:** <https://forums.ankiweb.net/t/interval-between-audio-playbacks-during-autoplay/2308>\
**Category:** Suggestions\
**Created:** [August 14, 2020, 7:26pm UTC](https://forums.ankiweb.net/t/interval-between-audio-playbacks-during-autoplay/2308 "2020-08-14T19:26:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![barro350](https://avatars.discourse-cdn.com/v4/letter/b/b782af/32.png) [@barro350](https://forums.ankiweb.net/u/barro350)\
**Post date:** [August 14, 2020, 7:26pm UTC](https://forums.ankiweb.net/t/interval-between-audio-playbacks-during-autoplay/2308/1 "2020-08-14T19:26:55Z")

</div>

OS: Windows 10

Every card in my deck contains several short audio files. When reviewing cards, I let audio files play automatically.

After I upgraded Anki from v2.1.17 to v2.1.30, I noticed that the interval between the timings in which one audio file ends and the next one starts has been greatly shortened. (I don’t know the exact length of the interval, but roughly, from ~400 ms to ~100 ms.) Perhaps this is related to the fact that the desktop version of Anki now uses `mpv` instead of `mplayer`.

Since in AnkiDroid this interval is still close to 400 ms rather than 100 ms, I think it would be great if a user can control the interval between audio playbacks for autoplay. That would make the user experiences with automatic audio playback across the desktop and mobile versions more consistent.

---

<div class="post-metadata">

**Author:** ![kelciour](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kelciour/32/14770_2.png) [@kelciour](https://forums.ankiweb.net/u/kelciour)\
**Post date:** [August 14, 2020, 10:04pm UTC](https://forums.ankiweb.net/t/interval-between-audio-playbacks-during-autoplay/2308/2 "2020-08-14T22:04:28Z")

</div>

Create `mpv.conf` in `%APPDATA%\Anki2` with `audio-wait-open=0.3` and restart Anki.

[https://mpv.io/manual/master/#options-audio-wait-open](https://mpv.io/manual/master/#options-audio-wait-open)

As an alternative and without restarting Anki, open the Debug Console in Anki, copy-paste the following lines and press Ctrl+Return.

```
import os

from aqt import mw
from aqt.sound import mpvManager

with open(os.path.join(mw.pm.base, 'mpv.conf'), 'a') as f:
    f.write('{}\n'.format("audio-wait-open=0.3"))
mpvManager.shutdown()
print('audio-wait-open:', mpvManager.get_property('audio-wait-open'))

```

[https://docs.ankiweb.net/#/misc?id=debug-console](https://docs.ankiweb.net/#/misc?id=debug-console)

---

<div class="post-metadata">

**Author:** ![barro350](https://avatars.discourse-cdn.com/v4/letter/b/b782af/32.png) [@barro350](https://forums.ankiweb.net/u/barro350)\
**Post date:** [August 15, 2020, 2:36pm UTC](https://forums.ankiweb.net/t/interval-between-audio-playbacks-during-autoplay/2308/3 "2020-08-15T14:36:58Z")

</div>

Thanks, it works perfectly!
