--- license: apache-2.0 language: - de pipeline_tag: text-to-speech library_name: onnx tags: - tts - text-to-speech - german - austrian-german - onnx - cpu - browser - onnxruntime-web - tiny-voca - vocos --- # apptor-tiny-tts-at (Austrian German, v0.1) A tiny German text-to-speech model with an **Austrian accent you can turn up or down**: from Hochdeutsch (0) to Austrian (1.0) and a bit beyond (up to 1.6). 4.5M parameters, one 21 MB ONNX file, two synthetic voices (`M2` male, `F2` female), 24 kHz. Runs on the CPU and **directly in the browser**, without eSpeak, without a server. **Try it:** [tiny-tts.apptor.at](https://tiny-tts.apptor.at) (everything runs on your device). This is **version 0.1, an early preview**. The accent is still mild and does not sit in every word: better than nothing, but not fully Austrian yet. It was trained on a single GPU. Feedback is welcome on [X @apptor_at](https://x.com/apptor_at). Why: speech output almost always sounds German-German. This model is meant to give Austrians a voice that is closer to how they speak, in small, lightweight applications where big models do not fit. Listen: `samples/hobellied-M2-accent-0.wav` (Hochdeutsch), `-accent-1.0.wav` (Austrian), `-accent-1.6.wav` (strongest usable setting). ## Three ways to use it | you want | use | needs | |---|---|---| | a voice on your website / web app | the `web/` folder | any web server that can set two headers | | a voice in a Python program | `speak.py` and the ONNX files | `pip install onnxruntime numpy num2words` | | a complete voice assistant (listen, decide, speak) | [flash-voice](https://github.com/ViktorsGitUser/flash-voice) on GitHub | see there | Download everything: `git clone https://huggingface.co/apptor/apptor-tiny-tts-at` (with git-lfs), or `hf download apptor/apptor-tiny-tts-at --local-dir apptor-tiny-tts-at`. ### Web `web/` is exactly the demo site: `index.html`, `apptor-tts.js` (front end + synthesis, plain ES module), the models and [ONNX Runtime Web](https://onnxruntime.ai) 1.20.1. No build step, no npm. Copy the folder to a web server. The included `.htaccess` (Apache) sets the two headers that let the browser use several CPU cores: ``` Cross-Origin-Opener-Policy: same-origin Cross-Origin-Embedder-Policy: require-corp ``` Without them it still works, just on one core. Opening `index.html` as a file (`file://`) does not work; to try it locally run `python web/serve.py` and open http://127.0.0.1:8000/. The first visit downloads about 50 MB, which the page keeps in the browser cache. To use it in your own page, see the `