Thanks to visit codestin.com
Credit goes to github.com

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,こんにちは~

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 note type installed for Anki. Here is the note type, when you imported it, you will see "Cloze Multi Choice Audio" note type in your Anki > Tools > Manage Note Types. Then you can proceed with the below Anki CSV format.

Text,HelperText,TextA,TextB,TextC,TextD
ฉันชอบ{{c1::ฟัง}}เพลง,I like to listen to music,ฟัง,เล่น,ดู,อ่าน
  laverna anki --profile Talha --voice th --file ./testdata/anki-th-example.csv

Now you will see a new result as below CSV file, all of your media is generated and inserted into Anki, however in order to create a deck in Anki, you need to import CSV below. And carefully choose comma delimiter with note type "Cloze Multi Choice Audio"

ฉันชอบ{{c1::ฟัง}}เพลง,I like to listen to music,ฟัง,เล่น,ดู,อ่าน,[sound:a.mp3],[sound:b.mp3],[sound:c.mp3],[sound:d.mp3],[sound:e.mp3]

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

Packages

No packages published

Languages