laverna

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2025 License: BSD-3-Clause Imports: 10 Imported by: 0

README

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 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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package synthesize implements an algorithm for synthesizing text to audio.
Package synthesize implements an algorithm for synthesizing text to audio.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL