Anki Audio Binaries

0.1.0 · active · verified Sun Apr 12

Anki-audio is a Python package that bundles and distributes essential audio binaries (mpv and LAME) required by the Anki spaced repetition software for playing and recording audio. This library ensures that Anki has access to the necessary tools for multimedia functionality. The current version is 0.1.0, and releases are tied to Anki's development and binary requirements.

Warnings

Install

Quickstart

This quickstart demonstrates how to verify that the `mpv` and `lame` executables, typically provided by `anki-audio`, are accessible on your system's PATH. Anki relies on these binaries for audio playback and recording.

import shutil
import os

print("Checking for Anki audio binaries after installation:")

mpv_path = shutil.which("mpv")
lame_path = shutil.which("lame")

if mpv_path:
    print(f"mpv executable found at: {mpv_path}")
else:
    print("mpv executable NOT found on PATH. Anki audio playback may fail.")

if lame_path:
    print(f"lame executable found at: {lame_path}")
else:
    print("lame executable NOT found on PATH. Anki audio recording/processing may fail.")

print("\nFor Anki to use these, ensure Anki is configured to find them or that they are correctly on your system's PATH.")
print("Typically, Anki automatically detects these if they are installed correctly via 'anki-audio'.")

view raw JSON →