diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-01 14:06:30 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-01 14:06:30 +0300 |
| commit | a892b4913c233d0ef85dd67e3d1c415e383bd6fd (patch) | |
| tree | 198aa3d727a9ae937391f2880cc248d9c22f9498 /internal/processor | |
| parent | 9dbf30e9eacccfc23d980c94c3b4d91b5cdb3459 (diff) | |
zu: switch GUI phonetics to shared fetcher
Diffstat (limited to 'internal/processor')
| -rw-r--r-- | internal/processor/processor.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/internal/processor/processor.go b/internal/processor/processor.go index 970dafd..5792119 100644 --- a/internal/processor/processor.go +++ b/internal/processor/processor.go @@ -543,10 +543,12 @@ func (p *Processor) GenerateAnkiFile() (string, error) { func (p *Processor) RunGUIMode() error { // Create GUI configuration from command line flags and viper config guiConfig := &gui.Config{ - AudioFormat: p.flags.AudioFormat, - ImageProvider: p.flags.ImageAPI, - OpenAIKey: cli.GetOpenAIKey(), - AutoPlay: !p.flags.NoAutoPlay, // Invert the flag (--no-auto-play disables auto-play) + AudioFormat: p.flags.AudioFormat, + ImageProvider: p.flags.ImageAPI, + OpenAIKey: cli.GetOpenAIKey(), + GoogleAPIKey: cli.GetGoogleAPIKey(), + PhoneticProvider: phonetic.Provider(viper.GetString("phonetic.provider")), + AutoPlay: !p.flags.NoAutoPlay, // Invert the flag (--no-auto-play disables auto-play) } // Only set OutputDir if it was explicitly provided via flag |
