Sound file clipped

  1. Maybe try to turn off ‘audio enhancements’ if they’re enable.

    Audio tracks get clipped at the end - #8 by vvvpellit

  2. Maybe try to set gapless-audio=no for mpv or install the latest Anki version with the same change. It could be installed in a separate folder.

    Audio tracks get clipped at the end - #5 by kelciour

    2.1.45 Release Candidate

  3. Maybe tell mpv to dynamically add a bit of silence at the end, the same way as gapless-audio=no.

    mpv.conf

    af=lavfi=[apad=pad_dur=5]

    debug console

    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('af=lavfi=[apad=pad_dur=5]\n')
    print('[af] before:', mpvManager.get_property('af'))
    # restart mpv to apply new settings
    mpvManager.shutdown()
    print('[af]  after:', mpvManager.get_property('af'))
    
3 Likes