Skip to content

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
@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

2 participants