the goddess of the thieves, helps you steal translation speeches from the G-daddy monopoly.
You can find the binaries through GitHub releases.
go install github.com/mrwormhole/laverna@latest
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
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]
Output shell completion script for bash, zsh, fish, or Powershell. Source the output to enable completion.
source <(laverna completion bash)
or source <(laverna completion zsh)
laverna completion fish > ~/.config/fish/completions/laverna.fish