-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
feat(bark-cpp): add new bark.cpp backend #4287
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
✅ Deploy Preview for localai ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
sd.threads = int(opts.Threads) | ||
|
||
modelFile := C.CString(opts.ModelFile) | ||
defer C.free(unsafe.Pointer(modelFile)) |
Check warning
Code scanning / gosec
Use of unsafe calls should be audited Warning
|
||
func (sd *Bark) TTS(opts *pb.TTSRequest) error { | ||
t := C.CString(opts.Text) | ||
defer C.free(unsafe.Pointer(t)) |
Check warning
Code scanning / gosec
Use of unsafe calls should be audited Warning
defer C.free(unsafe.Pointer(t)) | ||
|
||
dst := C.CString(opts.Dst) | ||
defer C.free(unsafe.Pointer(dst)) |
Check warning
Code scanning / gosec
Use of unsafe calls should be audited Warning
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
36d8356
to
00af0bb
Compare
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Description
This PR adds the bark.cpp backend (part of #1126) which provides a bark implementation which also works on CPUs. This is an initial sketch at it, more to come.
Tested with:
Notes for Reviewers
Signed commits