Skip to content

mrwormhole/laverna

Repository files navigation

Laverna

Version CI Godoc Report Card License Codecov

the goddess of the thieves, helps you steal translation speeches from the G-daddy monopoly.

goddess-of-thieves

Installation

Grab Binaries

You can find the binaries through GitHub releases.

Install Via Go

  go install github.com/mrwormhole/laverna@latest

Sample Usage

Basic

Let's create example CSV

speed,voice,text
normal,th,สวัสดีครับ
slower,en,Hello there
slowest,ja,こんにちは~

Running below command will generate audios in the same directory.

  laverna run --file example.csv

Anki

Make sure you have Laverna Anki Addon installed first. Then you can proceed with the below CSV format.

Text,HelperText,TextA,TextB,TextC,TextD
ฉันชอบ{{c1::ฟัง}}เพลง,I like to listen to music,ฟัง,เล่น,ดู,อ่าน
เขา{{c1::เล่น}}ฟุตบอลทุกวัน,He plays football every day,เล่น,ฟัง,ดู,อ่าน
คุณ{{c1::อ่าน}}หนังสือนี้ไหม,Do you read this book,อ่าน,ฟัง,เล่น,ดู
  laverna anki --profile Talha --deck my-thai-deck --voice th --file ./testdata/anki-th-example.csv

Now your new deck is created in Anki with the audio.

anki-front-card

anki-back-card

Shell Completions

Output shell completion script for bash, zsh, fish, or Powershell. Source the output to enable completion.

Bash / Zsh

source <(laverna completion bash) or source <(laverna completion zsh)

Fish

laverna completion fish > ~/.config/fish/completions/laverna.fish

About

Language is your oyster 🐣

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors