Skip to content

feat: add profile set command to update default voice/lang#8

Merged
ppikrorngarn merged 2 commits into
mainfrom
feature/profile-set-command
Jul 2, 2026
Merged

feat: add profile set command to update default voice/lang#8
ppikrorngarn merged 2 commits into
mainfrom
feature/profile-set-command

Conversation

@ppikrorngarn

Copy link
Copy Markdown
Owner

Summary

Adds a new profile set subcommand that lets users update the default voice and/or language of an existing profile without having to delete and recreate it.

Usage

# Set default voice
ttscli profile set gcp:default --voice en-US-Chirp3-HD-Kore

# Set both voice and lang
ttscli profile set gcp:default --voice en-US-Chirp3-HD-Kore --lang en-US

# Short flags
ttscli profile set gcp:default -v en-US-Chirp3-HD-Kore -l en-US

Changes

  • internal/cli/cli.go — added ProfileSet constant, DefaultLang field on Config, and parser for profile set with --voice/--lang flags (at least one required)
  • internal/app/command_profile.go — added runProfileSet handler that loads config, updates profile.Defaults, saves, and prints confirmation

Testing

All existing tests pass (go test ./...).

@ppikrorngarn ppikrorngarn merged commit 881eb10 into main Jul 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant