Instructions to use Hydramus/Simba-TTS-tsn-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Hydramus/Simba-TTS-tsn-onnx with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-to-speech', 'Hydramus/Simba-TTS-tsn-onnx');
Simba-TTS-tsn (ONNX for Transformers.js)
ONNX export of UBC-NLP/Simba-TTS-tsn, a VITS neural Setswana (Tswana) text-to-speech model, packaged for in-browser synthesis with ๐ค Transformers.js.
Runs entirely client-side (WebAssembly) โ no server, no audio leaving the device.
Usage
import { pipeline } from '@huggingface/transformers';
const tts = await pipeline('text-to-speech', 'Hydramus/Simba-TTS-tsn-onnx', { dtype: 'fp32' });
const { audio, sampling_rate } = await tts('Dumela rra, o tsogile jang?');
// `audio` is a Float32Array at `sampling_rate` (16000 Hz)
Files
onnx/model.onnxโ fp32 (~109 MB). VITS is Conv-dominated and onnxruntime-web has noConvInteger, so int8 quantization saves almost nothing here; fp32 is shipped for simplicity and quality.config.json,vocab.json,tokenizer_config.json, etc. โ VITS char tokenizer.
Attribution & license
- Base model: UBC-NLP/Simba-TTS-tsn (The University of British Columbia โ Natural Language Processing group), trained on the SimbaBench dataset.
- License: CC-BY-4.0 โ same as the base model. Attribution required.
- This repository only re-packages the original weights as ONNX; all model credit belongs to UBC-NLP.
- Downloads last month
- 49
Model tree for Hydramus/Simba-TTS-tsn-onnx
Base model
UBC-NLP/Simba-TTS-tsn