Laverna

the goddess of the thieves, helps you steal translation speeches from the G-daddy monopoly.
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,こんにちは~
or you could do YAML
- speed: normal
voice: th
text: "สวัสดีครับ"
- speed: slower
voice: en
text: "Hello there"
- speed: slowest
voice: ja
text: "こんにちは~"
Running below command will generate audios in the same directory.
laverna run --file example.csv
or
laverna run --file example.yaml
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.


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