move language to general section in config template
This commit is contained in:
@@ -25,6 +25,13 @@ func SaveDefaultConfig() error {
|
|||||||
# will be automatically migrated to the new [providers.X] format. Run 'hyprvoice configure'
|
# will be automatically migrated to the new [providers.X] format. Run 'hyprvoice configure'
|
||||||
# to update your config file structure.
|
# to update your config file structure.
|
||||||
|
|
||||||
|
# ─────────────────────────────────────────────────────────────────────────────
|
||||||
|
# General Settings
|
||||||
|
# ─────────────────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
|
[general]
|
||||||
|
language = "" # Language for transcription (ISO 639-1 code, e.g., en, es, de). Empty for auto-detect.
|
||||||
|
|
||||||
# Keywords help both transcription and LLM understand domain-specific terms
|
# Keywords help both transcription and LLM understand domain-specific terms
|
||||||
# Add names, technical terms, or brand names that might be misheard
|
# Add names, technical terms, or brand names that might be misheard
|
||||||
keywords = []
|
keywords = []
|
||||||
@@ -69,9 +76,9 @@ keywords = []
|
|||||||
|
|
||||||
[transcription]
|
[transcription]
|
||||||
provider = "openai" # "openai", "groq-transcription", "groq-translation", "mistral-transcription", "elevenlabs", "whisper-cpp"
|
provider = "openai" # "openai", "groq-transcription", "groq-translation", "mistral-transcription", "elevenlabs", "whisper-cpp"
|
||||||
language = "" # Language code (empty = auto-detect, "en", "it", "es", "fr", etc.)
|
|
||||||
model = "whisper-1" # Model: OpenAI="whisper-1", Groq="whisper-large-v3", Mistral="voxtral-mini-latest", ElevenLabs="scribe_v1"
|
model = "whisper-1" # Model: OpenAI="whisper-1", Groq="whisper-large-v3", Mistral="voxtral-mini-latest", ElevenLabs="scribe_v1"
|
||||||
threads = 0 # CPU threads for local transcription (0 = auto: uses NumCPU-1)
|
threads = 0 # CPU threads for local transcription (0 = auto: uses NumCPU-1)
|
||||||
|
# language = "" # Override general.language for this provider only
|
||||||
|
|
||||||
# ─────────────────────────────────────────────────────────────────────────────
|
# ─────────────────────────────────────────────────────────────────────────────
|
||||||
# LLM Post-Processing (Recommended)
|
# LLM Post-Processing (Recommended)
|
||||||
|
|||||||
@@ -521,3 +521,10 @@ Started: Sun Feb 1 12:22:47 AM CET 2026
|
|||||||
- Note: TOML loading already works automatically via struct tags (no load.go changes needed)
|
- Note: TOML loading already works automatically via struct tags (no load.go changes needed)
|
||||||
- Added 3 tests in config_test.go: only general set, transcription overrides general, neither set (auto)
|
- Added 3 tests in config_test.go: only general set, transcription overrides general, neither set (auto)
|
||||||
- All tests passing, typecheck passes
|
- All tests passing, typecheck passes
|
||||||
|
|
||||||
|
### Task 49: Update config template to include general section
|
||||||
|
- Added `[general]` section at top of configTemplate in save.go
|
||||||
|
- Added `language = ""` with comment about ISO 639-1 codes and auto-detect
|
||||||
|
- Removed `language = ""` from `[transcription]` section
|
||||||
|
- Added commented `# language = ""` in transcription section with note about override
|
||||||
|
- All tests passing, typecheck passes
|
||||||
+1
-1
@@ -46,7 +46,7 @@
|
|||||||
"Template shows language under [general] not [transcription]",
|
"Template shows language under [general] not [transcription]",
|
||||||
"Typecheck passes"
|
"Typecheck passes"
|
||||||
],
|
],
|
||||||
"passes": false
|
"passes": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Add SectionLanguage to TUI configure menu",
|
"title": "Add SectionLanguage to TUI configure menu",
|
||||||
|
|||||||
Reference in New Issue
Block a user