add Threads field to transcriber config for local providers
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -28,6 +28,7 @@ type Config struct {
|
||||
Language string
|
||||
Model string
|
||||
Keywords []string
|
||||
Threads int // CPU threads for local transcription (0 = auto)
|
||||
}
|
||||
|
||||
// mapConfigProviderToRegistryName maps config provider names to provider registry names
|
||||
|
||||
Reference in New Issue
Block a user