Skip to content

Commit

Permalink
fix version, advertise my other project
Browse files Browse the repository at this point in the history
  • Loading branch information
erkexzcx committed Oct 15, 2023
1 parent 0cf71e1 commit 93b35a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ RoboRock vacuum robot voice generator, using OpenAI ChatGPT for text-lines gener

Project is inspired (and somewhat based on) https://github.com/arner/roborock-glados ideas and instructions.

I highly recommend using this project in combination with my other project, which allows RoboRock vacuum to speak different voice-lines for each command: https://github.com/erkexzcx/rrmultivoice

# Get started

## 0. Understand cappabilities
Expand Down
8 changes: 7 additions & 1 deletion cmd/rrvoicegen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
)

var (
//lint:ignore U1000 Ignore will be set by build command
version string

flagCSV = flag.String("csv", "custom.csv", "Path to CSV file.")
Expand All @@ -26,11 +25,18 @@ var (
flagPollyEngine = flag.String("polly_engine", "standard", "Polly engine (see https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html)")
flagPollyLang = flag.String("polly_lang", "en-US", "Polly language (see https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html)")
flagPollyVoice = flag.String("polly_voice", "Matthew", "Polly voice (see https://docs.aws.amazon.com/polly/latest/dg/voicelist.html)")

flagVersion = flag.Bool("version", false, "prints version of the application")
)

func main() {
flag.Parse()

if *flagVersion {
fmt.Println("Version:", version)
return
}

// Read the entire CSV file into memory
data, err := os.ReadFile(*flagCSV)
if err != nil {
Expand Down

0 comments on commit 93b35a4

Please sign in to comment.