add Threads field to transcriber config for local providers

This commit is contained in:
leonardotrapani
2026-02-01 01:02:07 +01:00
parent 3563def987
commit a366d61558
6 changed files with 14 additions and 9 deletions
+1
View File
@@ -26,6 +26,7 @@ func (c *Config) ToTranscriberConfig() transcriber.Config {
Language: c.Transcription.Language,
Model: c.Transcription.Model,
Keywords: c.Keywords,
Threads: c.Transcription.Threads,
}
config.APIKey = c.resolveAPIKeyForProvider(c.Transcription.Provider)
+2 -1
View File
@@ -66,9 +66,10 @@ keywords = []
# ─────────────────────────────────────────────────────────────────────────────
[transcription]
provider = "openai" # "openai", "groq-transcription", "groq-translation", "mistral-transcription", "elevenlabs"
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"
threads = 0 # CPU threads for local transcription (0 = auto: uses NumCPU-1)
# ─────────────────────────────────────────────────────────────────────────────
# LLM Post-Processing (Recommended)
+1
View File
@@ -60,6 +60,7 @@ type TranscriptionConfig struct {
APIKey string `toml:"api_key"`
Language string `toml:"language"`
Model string `toml:"model"`
Threads int `toml:"threads"` // CPU threads for local transcription (0 = auto: NumCPU-1)
}
type InjectionConfig struct {