English Version
Overview
The Bluetooth Anti-Lag Add-on is designed to eliminate the audio lag experienced when using Anki with a Bluetooth headset, specifically the lag that occurs at the start of audio playback on Anki cards. Bluetooth headsets enter a sleep mode when not receiving an audio signal, and when they receive an audio signal again, it takes about a second for the headset to fully wake up and start playing the audio. By looping a silent audio while Anki is running, this add-on maintains the connection with the headset and prevents this lag.
How to use
After installing the add-on, silent audio playback automatically begins when you start Anki. The playback continues for as long as Anki is running, preventing interruptions to the Bluetooth connection and avoiding audio lag.
Mechanism
- The Python script of the add-on is stored in Anki’s
add-on folder.
-
When Anki starts, the Python script of the add-on is executed.
-
The script begins playing a silent audio as soon as Anki starts. This audio uses the
5-minutes-of-silence.mp3file located in theAudiosubfolder of the add-on folder.
Note
This add-on uses Anki’s built-in player for audio playback. When the add-on is enabled, audio will be looped for as long as Anki is running.
日本語版
概要
Bluetooth Anti-Lag Add-onは、Bluetoothヘッドセットを使用してAnkiを利用する際に発生するオーディオラグを解消するためのアドオンです。特に、Ankiカードのオーディオ再生開始時のラグを軽減します。Bluetoothヘッドセットはオーディオ信号の受信がないときにスリープモードに入り、再度オーディオ信号を受け取ると、ヘッドセットが完全に起動しオーディオを再生するまでに約1秒の時間がかかります。このアドオンでは、Ankiの起動中、無音のオーディオをループ再生することでヘッドセットとの接続を維持し、ラグを防止します。
使い方
アドオンをインストール後、Ankiを起動すると無音の音声の再生が自動的に始まります。再生はAnkiが起動している間ずっと続き、Bluetooth接続が途切れることなく、オーディオのラグを回避します。
仕組み
-
アドオンのPythonスクリプトはAnkiのアドオンフォルダに保存されます。
-
Anki起動時、アドオンのPythonスクリプトが実行されます。
-
スクリプトはAnkiの起動と同時に無音の音声を再生します。この音声はアドオンフォルダ内の
Audioサブフォルダにある5-minutes-of-silence.mp3ファイルを使用します。
注意
このアドオンはAnkiの内蔵プレーヤーを利用して音声を再生します。アドオンを有効にすると、Ankiが起動している限り、音声はループ再生され続けます。
Liên kết hỗ trợ
Reviews (1)
👍 2025-09-01
Perfect! This solved my problem where around the first 0.5s of audio was always “cut”. I don’t use Bluetooth speakers, but it seems my laptop’s audio driver uses a similar deep sleep/low power state. Anyway, this add-on solved it for me. MANY THANKS!