Skip to content

Commit f77f5fa

Browse files
committed
Adapt CLI for sound generation
1 parent b15b791 commit f77f5fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/cli/soundgeneration.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,14 @@ func (t *SoundGenerationCMD) Run(ctx *cliContext.Context) error {
8585

8686
options := config.BackendConfig{}
8787
options.SetDefaults()
88+
options.Backend = t.Backend
8889

8990
var inputFile *string
9091
if t.InputFile != "" {
9192
inputFile = &t.InputFile
9293
}
9394

94-
filePath, _, err := backend.SoundGeneration(t.Backend, t.Model, text,
95+
filePath, _, err := backend.SoundGeneration(t.Model, text,
9596
parseToFloat32Ptr(t.Duration), parseToFloat32Ptr(t.Temperature), &t.DoSample,
9697
inputFile, parseToInt32Ptr(t.InputFileSampleDivisor), ml, opts, options)
9798

0 commit comments

Comments
 (0)