Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add tts with go-piper #649

Merged
merged 1 commit into from Jun 22, 2023
Merged

feat: add tts with go-piper #649

merged 1 commit into from Jun 22, 2023

Conversation

mudler
Copy link
Owner

@mudler mudler commented Jun 21, 2023

Description

This PR fixes #266 , and adds support to the amazing https://github.com/rhasspy/piper (:heart:) to generate voice from text. I've created overnight the golang binding which is available here: https://github.com/mudler/go-piper.

It adds a new /tts endpoint, which accepts a model and an input text.

Now you can give a voice to your LLMs!!

tts

Instructions

curl $LOCALAI/tts -H "Content-Type: application/json" -d '{         
     "model":"it-riccardo_fasol-x-low.onnx",
     "input": "Ciao, sono Ettore"
   }' | aplay
  • Profit!

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

@mudler mudler force-pushed the tts branch 5 times, most recently from f07a9db to 1714a2a Compare June 22, 2023 06:59
Signed-off-by: mudler <mudler@localai.io>
@mudler mudler added the enhancement New feature or request label Jun 22, 2023
@mudler mudler marked this pull request as ready for review June 22, 2023 07:48
@mudler mudler merged commit a7bb029 into master Jun 22, 2023
14 checks passed
@mudler mudler deleted the tts branch June 22, 2023 15:53
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.

feature: text-to-voice
1 participant