Metadata-Version: 2.5
Name: wilga
Version: 0.2.0
Summary: Small Polish and English text-to-speech: 24 kHz, CPU, ONNX, no eSpeak
Project-URL: Homepage, https://huggingface.co/lion-ai/wilga
Project-URL: Demo, https://huggingface.co/spaces/lion-ai/wilga-demo
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Keywords: english,onnx,polish,speech-synthesis,text-to-speech,tts
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Natural Language :: Polish
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
Requires-Python: >=3.9
Requires-Dist: huggingface-hub>=0.20
Requires-Dist: numpy>=1.22
Requires-Dist: onnxruntime>=1.16
Description-Content-Type: text/markdown

# Wilga

Small text-to-speech for **Polish** (8 voices) and **English** (3 voices). 24 kHz, runs on a CPU with ONNX Runtime,
no eSpeak, no PyTorch, no GPU. Numbers, dates, times and abbreviations are read as words (in Polish with case and
gender agreement: "z 5 kotami" → "z pięcioma kotami").

```bash
pip install wilga
wilga "Dzień dobry! Spotkanie jest o 14:30." -o dzien_dobry.wav
wilga "Hello there!" --language en --voice hifi_6097 -o hello.wav
wilga --list-voices
```

Without installing: `uvx wilga "Dzień dobry!" -o dzien_dobry.wav`.

```python
import wilga

tts = wilga.load("pl")                    # downloads the Polish model once (33 MB) from Hugging Face
tts.save("Dzień dobry!", "dzien_dobry.wav", voice="kobieta_ciepla")

audio = wilga.speak("Hello there!", language="en", voice="hifi_92")   # float32 numpy array, 24 kHz
print(wilga.voices())
```

`speak` and `save` read text of any length sentence by sentence and also take `speed` (larger is faster),
`pitch_shift`, `pitch_range` and `sentence_gap` (seconds of silence between sentences).

The models, samples, measurements and a browser version are on Hugging Face:
[lion-ai/wilga](https://huggingface.co/lion-ai/wilga), demo: [lion-ai/wilga-demo](https://huggingface.co/spaces/lion-ai/wilga-demo).
Seven Polish voices are synthetic (designed from text descriptions); the others are trained on MC Speech (CC0) and
Hi-Fi TTS (CC BY 4.0). Apache-2.0; see NOTICE for third-party components.
