Skip to content

Commit

Permalink
fix(tts): correctly pass backend config when generating model options (
Browse files Browse the repository at this point in the history
…#4091)

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
  • Loading branch information
mudler authored Nov 7, 2024
1 parent 20a5b20 commit e2a8dd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/backend/tts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e2a8dd6

Please sign in to comment.