Skip to content

Commit 9c0d26c

Browse files
committed
return errors from tts gRPC backend
1 parent b033836 commit 9c0d26c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/backend/tts.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,10 @@ func ModelTTS(backend, text, modelFile, voice string, loader *model.ModelLoader,
8585
Dst: filePath,
8686
})
8787

88+
// return RPC error if any
89+
if !res.Success {
90+
return "", nil, fmt.Errorf(res.Message)
91+
}
92+
8893
return filePath, res, err
8994
}

0 commit comments

Comments
 (0)