Downloads · 30 days
17
20% of all-time downloads
Gittiwilo/Supertonic-TTS-ONNX
Supertonic-TTS-ONNX is a text-to-speech model from Gittiwilo. Use it when you need text read aloud. It is set up for transformers.js. The card lists the license as openrail.
If you haven't already, you can install the Transformers.js JavaScript library from NPM using:
Downloads · 30 days
17
20% of all-time downloads
All-time downloads
86
Public
Repo size
263 MB
Likes
0
Public
Click a slice to open those files.
.onnx_data262 MB · 100%
From the Hugging Face model README
If you haven't already, you can install the Transformers.js JavaScript library from NPM using:
npm i @huggingface/transformers
You can then generate audio as follows:
import { pipeline } from '@huggingface/transformers';
const tts = await pipeline('text-to-speech', 'onnx-community/Supertonic-TTS-ONNX');
const input_text = 'This is really cool!';
const audio = await tts(input_text, {
speaker_embeddings: 'https://huggingface.co/onnx-community/Supertonic-TTS-ONNX/resolve/main/voices/F1.bin',
num_inference_steps: 5, // Higher = better quality (typically 1-50)
speed: 1.05, // Higher = faster speech (typically 0.8-1.2)
});
await audio.save('output.wav'); // or `audio.toBlob()`;