diff --git a/core/backend/tts.go b/core/backend/tts.go index bac2e9008836..20aa358e7257 100644 --- a/core/backend/tts.go +++ b/core/backend/tts.go @@ -28,10 +28,11 @@ func ModelTTS( bb = model.PiperBackend } - opts := ModelOptions(config.BackendConfig{}, appConfig, []model.Option{ + opts := ModelOptions(backendConfig, appConfig, []model.Option{ model.WithBackendString(bb), model.WithModel(modelFile), }) + ttsModel, err := loader.BackendLoader(opts...) if err != nil { return "", nil, err