AnkiWeb
- Rating
- 0 (👍 0 · 👎 0)
- Updated
- 2025-07-28
- Anki versions
- 25.02.7~
- Description language
- zh
AnkiWeb addon 733203228
Plays locally generated Kokoro TTS audio through Kokoro-FastAPI, configured with a URL and language-voice mappings, reducing Linux cloud TTS latency and network/profile restart issues.
Open on AnkiWeb GitHub Ask about alternatives
stale
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.1 | 25.02.7+ | 2025-07-28 |
Loading…
Generates Anki audio via a local Kokoro text-to-speech service and other OpenAI-compatible TTS models, supporting multiple languages.
Synthesizes Japanese audio at review time via a local VOICEVOX server, with central preset routing, text cleanup rules, caching, and optional audio export.
Scans existing cards for broken Cambridge Dictionary audio links and replaces them with embedded Google or Microsoft Edge TTS audio, leaving working audio untouched, with full-scan and single-card test options.
Plays audio from a local dictionary, then online gTTS, then offline Piper TTS, with cycling, smart caching, and failover.
Fetches examples from massif.la, connects to a local TTS server to generate audio, and updates hardcoded deck fields with text and audio via hotkeys, mainly for personal use.
Pronounces selected text or a fallback field via Alt+C using Azure/Edge neural voices, automatic language detection, and local audio caching.
This is an Anki addon.
Function: It allows TTS playback of local audio generated by Kokoro.
1. Kokoro-FastAPI Service: https://github.com/remsky/Kokoro-FastAPI
2. Addon Configuration:
Unlike other operating systems that have built-in TTS engines, Linux can only achieve TTS by downloading audio files from cloud services through addons, such as:
I primarily study on Linux and frequently encounter issues with these solutions, including:
This has often been a painful experience. Recently, after encountering Kokoro, I explored this solution. It's essentially a modification of gTTS, replacing its original audio download process from Google Translate with local service requests to Kokoro-FastAPI. This resolves the issues of high latency and network interruptions, and incidentally, also solves the profile-switching problem.
这是一个anki扩展
作用是让 tts 播放 Kokoro 生成的本地音频
准备好 Kokoro-FastAPI 服务 https://github.com/remsky/Kokoro-FastAPI
扩展配置
Linux不像其他操作系统有内置的TTS引擎,所以只能通过扩展从云服务下载音频文件来实现TTS,比如:
我平时主要在Linux上学习,使用这些的方案,经常会碰到的问题是:
所以常常是苦不堪言,最近接触到 Kokoro 后,才探索出这个方案,其实就是基于 gTTS 修改,将其原来从 Google Translate 下载音频的部分换成从 Kokoro-FastAPI 的本地服务,解决了高延迟和网络中断的问题,顺便把切换用户的问题也解决了。