Skip to content

Conversation

mudler
Copy link
Owner

@mudler mudler commented Nov 28, 2024

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:

name: bark
backend: bark-cpp
parameters:
  model: huggingface://Green-Sky/bark-ggml/bark-small_weights-f16.bin

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Copy link

netlify bot commented Nov 28, 2024

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 288bfc5
🔍 Latest deploy log https://app.netlify.com/sites/localai/deploys/67489aa7ddf06100081b6ca1
😎 Deploy Preview https://deploy-preview-4287--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

Use of unsafe calls should be audited

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

Use of unsafe calls should be audited
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

Use of unsafe calls should be audited
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>
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler mudler merged commit 58ff47d into master Nov 28, 2024
30 of 31 checks passed
@mudler mudler deleted the feat/bark-cpp branch November 28, 2024 21:16
@mudler mudler added the enhancement New feature or request label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant