CoolFace
Apppublic

robinhad/ukrainian-tts

sourceHugging Faceupdated 2y agoView on Hugging Face
74likes
App README

Ukrainian TTS πŸ“’πŸ€–

Ukrainian TTS (text-to-speech) using ESPNET.

pytest ![Open In HFπŸ€— Space ](https://huggingface.co/spaces/robinhad/ukrainian-tts) ![Open In Colab](https://colab.research.google.com/github/robinhad/ukrainian-tts/blob/main/ttsexample.ipynb) [![Open Bot](https://img.shields.io/badge/Open%20Bot%20πŸ€–-Telegram-blue)](https://t.me/ukttsbot) [![chat](https://img.shields.io/badge/chat-Telegram-blue)](https://t.me/speechrecognition_uk)

Link to online demo -> https://huggingface.co/spaces/robinhad/ukrainian-tts Note: online demo saves user input to improve user experience; by using it, you consent to analyze this data. Link to source code and models -> https://github.com/robinhad/ukrainian-tts Telegram bot -> https://t.me/uk_tts_bot

Features βš™οΈ

  • β€”Completely offline
  • β€”Multiple voices
  • β€”Automatic stress with priority queue: acute -> user-defined > dictionary > model
  • β€”Control speech speed
  • β€”Python package works on Windows, Mac (x86/M1), Linux(x86/ARM)
  • β€”Inference on mobile devices (inference models through espnet_onnx without cleaners)

Support ❀️

If you like my work, please support ❀️ -> https://send.monobank.ua/jar/48iHq4xAXm You're welcome to join UA Speech Recognition and Synthesis community: Telegram https://t.me/speech_recognition_uk

Examples πŸ€–

Oleksa (male):

https://github.com/robinhad/ukrainian-tts/assets/5759207/ace842ef-06d0-4b1f-ad49-5fda92999dbb

<details> <summary>More voices πŸ“’πŸ€–</summary>

Tetiana (female):

https://github.com/robinhad/ukrainian-tts/assets/5759207/a6ecacf6-62ae-4fc5-b6d5-41e6cdd3d992

Dmytro (male):

https://github.com/robinhad/ukrainian-tts/assets/5759207/67d3dac9-6626-40ef-98e5-ec194096bbe0

Lada (female):

https://github.com/robinhad/ukrainian-tts/assets/5759207/fcf558b2-3ff9-4539-ad9e-8455b52223a4

Mykyta (male):

https://github.com/robinhad/ukrainian-tts/assets/5759207/033f5215-3f09-4021-ba19-1f55158445ca

</details>

How to use: πŸ“’

Quickstart

Install using:

bash
!pip install git+https://github.com/robinhad/ukrainian-tts.git

Code example:

python
from ukrainian_tts.tts import TTS, Voices, Stress
import IPython.display as ipd

tts = TTS(device="cpu") # can try gpu, mps
with open("test.wav", mode="wb") as file:
    _, output_text = tts.tts("ΠŸΡ€ΠΈΠ²Ρ–Ρ‚, як Ρƒ Ρ‚Π΅Π±Π΅ справи?", Voices.Dmytro.value, Stress.Dictionary.value, file)
print("Accented text:", output_text)

ipd.Audio(filename="test.wav")

See example notebook: tts_example.ipynb ![Open In Colab](https://colab.research.google.com/github/robinhad/ukrainian-tts/blob/main/tts_example.ipynb)

How to contribute: πŸ™Œ

Look into this list with current problems: https://github.com/robinhad/ukrainian-tts/issues/35

How to train: πŸ‹οΈ

Link to guide: training/STEPS.md

Attribution 🀝