Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/netr/haki

Anki Card Creator
https://github.com/netr/haki

anki golang

Last synced: 6 days ago
JSON representation

Anki Card Creator

Awesome Lists containing this project

README

        

# Anki Card Creator

This tool uses the AnkiConnect API and AI APIs to create Anki cards efficiently. The motivation behind this tool is to make the process of creating Anki cards a lot easier and faster. When you're reading a book and want to create Anki cards for the new words you come across, you can use this tool to create the cards in a few seconds and continue reading.

## Installation

```bash
go install github.com/netr/haki@latest
```

## Features / Commands

### Vocabulary Cards
```bash
haki vocab --word "cacophony"
```

- [x] Automatically fetches the definition and example sentence.
- [x] Creates a TTS of the word using OpenAI's tts-1 model.
- [ ] Automatically fetch the pronunciation of the word.

## Development

### Git Hooks

To set up the Git hooks for this project:

1. Navigate to the project root.
2. Run the following commands:
```bash
ln -s ../../hooks/pre-commit .git/hooks/pre-commit
ln -s ../../hooks/pre-push .git/hooks/pre-push
chmod +x .git/hooks/pre-commit .git/hooks/pre-push
```