Instructions to use Edmon02/TTS_NB_ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Edmon02/TTS_NB_ONNX with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="Edmon02/TTS_NB_ONNX", device_map="auto")# Load model directly from transformers import AutoProcessor, AutoModelForTextToSpectrogram processor = AutoProcessor.from_pretrained("Edmon02/TTS_NB_ONNX") model = AutoModelForTextToSpectrogram.from_pretrained("Edmon02/TTS_NB_ONNX", device_map="auto") - Notebooks
- Google Colab
- Kaggle
docs: advanced model card (Armenian SpeechT5)
Browse files
README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- hy
|
| 4 |
+
license: mit
|
| 5 |
+
base_model: Edmon02/TTS_NB_2
|
| 6 |
+
tags:
|
| 7 |
+
- speecht5
|
| 8 |
+
- onnx
|
| 9 |
+
- text-to-speech
|
| 10 |
+
- armenian
|
| 11 |
+
- hy-am
|
| 12 |
+
- tts
|
| 13 |
+
pipeline_tag: text-to-speech
|
| 14 |
+
library_name: transformers
|
| 15 |
+
inference: true
|
| 16 |
+
model_name: Armenian SpeechT5 ONNX
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# Armenian SpeechT5 — ONNX export (`TTS_NB_ONNX`)
|
| 20 |
+
|
| 21 |
+
ONNX export of the SpeechT5 encoder/decoder for **faster or edge inference** (ONNXRuntime, mobile, C++). Pair with HiFi-GAN vocoder separately.
|
| 22 |
+
|
| 23 |
+
## Files
|
| 24 |
+
|
| 25 |
+
| File | Role |
|
| 26 |
+
|------|------|
|
| 27 |
+
| `encoder_model.onnx` | Text → hidden states |
|
| 28 |
+
| `decoder_model.onnx` | Autoregressive mel decoder |
|
| 29 |
+
| `decoder_with_past_model.onnx` | Decoder with KV cache |
|
| 30 |
+
| `decoder_postnet_and_vocoder.onnx` | Postnet (vocoder may still be separate) |
|
| 31 |
+
| `spm_char.model` | SentencePiece tokenizer |
|
| 32 |
+
| `config.json` / `preprocessor_config.json` | Model config |
|
| 33 |
+
|
| 34 |
+
## When to use
|
| 35 |
+
|
| 36 |
+
- ONNXRuntime deployment
|
| 37 |
+
- Environments without full PyTorch stack
|
| 38 |
+
- Latency-sensitive inference pipelines
|
| 39 |
+
|
| 40 |
+
For PyTorch + Hugging Face, prefer [Edmon02/speecht5_finetuned_voxpopuli_hy](https://huggingface.co/Edmon02/speecht5_finetuned_voxpopuli_hy) or [Edmon02/TTS_NB_2](https://huggingface.co/Edmon02/TTS_NB_2).
|
| 41 |
+
|
| 42 |
+
## Source checkpoint
|
| 43 |
+
|
| 44 |
+
Exported from [Edmon02/TTS_NB_2](https://huggingface.co/Edmon02/TTS_NB_2) (verify export date in commit history).
|
| 45 |
+
|
| 46 |
+
## Limitations
|
| 47 |
+
|
| 48 |
+
- ONNX export may not cover full HF `generate_speech` API — validate your runtime graph
|
| 49 |
+
- Speaker embeddings must be supplied consistently with training
|
| 50 |
+
- Re-export when `TTS_NB_2` architecture or opset changes
|
| 51 |
+
|
| 52 |
+
## License
|
| 53 |
+
|
| 54 |
+
MIT
|