Einstein-Engines icon indicating copy to clipboard operation
Einstein-Engines copied to clipboard

Port TTS

Open DEATHB4DEFEAT opened this issue 1 year ago • 5 comments

Description

https://github.com/SpaceStationUA/station/pull/7 https://github.com/SpaceStationUA/station/pull/8 I need some help finding a bunch of English voices we can link as defaults.

This uses Piper to generate the audio. Windows support is untested, but exists. There is very little setup required; install Piper, find some models and make their prototypes (or download the "defaults" to bin/Content.Server/data/tts/models and rename them accordingly), set tts.enabled to true, maybe change tts.model_path (starting the path with data/ will put it in the server's datadir), and you're good to go.


TODO

  • [x] IC language support
  • [x] Fix volume
  • [ ] Improve sanitization
  • [x] Cache messages
  • [x] Automatically delete messages
  • [ ] Queue audio
  • [ ] Review the code
  • [x] Figure out what SSML is

Media

https://github.com/user-attachments/assets/e65457bd-6ea7-4bf7-9d9c-5be1f6a80fbb


Changelog

:cl:

  • add: Added TTS

DEATHB4DEFEAT avatar Nov 08 '24 04:11 DEATHB4DEFEAT

@DEATHB4DEFEAT i think better to cherry-pick is - corvax tts that works with GPU but needs an external hosting

Evgencheg avatar Nov 09 '24 06:11 Evgencheg

please tell me this will have a server/client config to disable

bruhmogus avatar Nov 09 '24 19:11 bruhmogus

@DEATHB4DEFEAT https://github.com/Rxup/ss14-tts-api it's support random voice generator via tts_test.ipynb and can use https://models.silero.ai/models/tts/en/v3_en.pt change in https://github.com/Rxup/ss14-tts-api/blob/main/ss14tts.py#L31

Rxup avatar Nov 10 '24 11:11 Rxup

This pull request has conflicts, please resolve those before we can evaluate the pull request.

github-actions[bot] avatar Nov 17 '24 00:11 github-actions[bot]

Bro this is so cool!

Crono209ggg avatar Nov 24 '24 18:11 Crono209ggg