Skip to content

Commit 93b35a4

Browse files
committed
fix version, advertise my other project
1 parent 0cf71e1 commit 93b35a4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Diff for: README.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ RoboRock vacuum robot voice generator, using OpenAI ChatGPT for text-lines gener
44

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

7+
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
8+
79
# Get started
810

911
## 0. Understand cappabilities

Diff for: cmd/rrvoicegen/main.go

+7-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import (
1717
)
1818

1919
var (
20-
//lint:ignore U1000 Ignore will be set by build command
2120
version string
2221

2322
flagCSV = flag.String("csv", "custom.csv", "Path to CSV file.")
@@ -26,11 +25,18 @@ var (
2625
flagPollyEngine = flag.String("polly_engine", "standard", "Polly engine (see https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html)")
2726
flagPollyLang = flag.String("polly_lang", "en-US", "Polly language (see https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html)")
2827
flagPollyVoice = flag.String("polly_voice", "Matthew", "Polly voice (see https://docs.aws.amazon.com/polly/latest/dg/voicelist.html)")
28+
29+
flagVersion = flag.Bool("version", false, "prints version of the application")
2930
)
3031

3132
func main() {
3233
flag.Parse()
3334

35+
if *flagVersion {
36+
fmt.Println("Version:", version)
37+
return
38+
}
39+
3440
// Read the entire CSV file into memory
3541
data, err := os.ReadFile(*flagCSV)
3642
if err != nil {

0 commit comments

Comments
 (0)