Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lbesnard/lingoanki
automates the creation of Anki flashcards from transcripts extracted from audio recordings (Perfect for Assimil Courses and Podcasts)
https://github.com/lbesnard/lingoanki
anki anki-flashcards assimil flashcards language-learning
Last synced: 15 days ago
JSON representation
automates the creation of Anki flashcards from transcripts extracted from audio recordings (Perfect for Assimil Courses and Podcasts)
- Host: GitHub
- URL: https://github.com/lbesnard/lingoanki
- Owner: lbesnard
- License: gpl-3.0
- Created: 2024-09-18T00:57:06.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-21T00:11:15.000Z (16 days ago)
- Last Synced: 2024-10-21T03:33:38.016Z (16 days ago)
- Topics: anki, anki-flashcards, assimil, flashcards, language-learning
- Language: Python
- Homepage:
- Size: 145 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LingoAnki
This script automates the creation of Anki flashcards from transcripts extracted from audio recordings. It processes
both individual words and sentences, generating transcriptions and translations, and attaching audio to each flashcard.Features:
- Uses Whisper for transcription and Google Text-to-Speech (TTS) for generating audio.
- Translates words and sentences using GoogleTranslator or ChatGptTranslator.
- Organizes flashcards into two Anki subdecks: one for words and one for sentences.
- Supports multiple languages.## Installation
```bash
curl -f https://raw.githubusercontent.com/lbesnard/LingoAnki/refs/heads/main/install.sh | bash
```## Installation with Poetry
Clone the repo
```bash
pip install poetry
poetry install
```## Example:
```bash
usage: lingoAnki [-h] [--ankideck ANKIDECK] [--input-language INPUT_LANGUAGE] [--target-language TARGET_LANGUAGE] [--output-folder OUTPUT_FOLDER] [--check-sentences] [--model [MODEL]] [--select-files] audio_dirAutomates the creation of Anki flashcards from transcripts extracted from audio recordings.
positional arguments:
audio_dir Directory containing the input audio files to processoptions:
-h, --help show this help message and exit
--ankideck ANKIDECK, -a ANKIDECK
Anki main Deck name
--input-language INPUT_LANGUAGE, -il INPUT_LANGUAGE
Language Code input to parse (en,bo,fr ...)
--target-language TARGET_LANGUAGE, -tl TARGET_LANGUAGE
Language Code output (en,fr ...)
--output-folder OUTPUT_FOLDER, -o OUTPUT_FOLDER
Output folder
--check-sentences, -c
Manually review and modify the transcription
--model [MODEL], -m [MODEL]
Choose a model from the list or use default.
--select-files, -s If set, allows you to select files interactively for processing.
```## When to use
It is especially useful to convert Audio lessons, for example converting all the
audio files from an Assimil course into flashcards. This script is mainly
intended for thisBut one could use this script as well to convert podcasts.