Xenova / speecht5_tts

huggingface.co
Total runs: 6.9K
24-hour runs: 0
7-day runs: 0
30-day runs: -305.8K
Model's Last Updated: August 28 2025
text-to-speech

Introduction of speecht5_tts

Model Details of speecht5_tts

https://huggingface.co/microsoft/speecht5_tts with ONNX weights to be compatible with Transformers.js.

Usage (Transformers.js)

If you haven't already, you can install the Transformers.js JavaScript library from NPM using:

npm i @xenova/transformers

Example: Text-to-speech pipeline.

import { pipeline } from '@xenova/transformers';

// Create a text-to-speech pipeline
const synthesizer = await pipeline('text-to-speech', 'Xenova/speecht5_tts', { quantized: false });

// Generate speech
const speaker_embeddings = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/speaker_embeddings.bin';
const result = await synthesizer('Hello, my dog is cute', { speaker_embeddings });
console.log(result);
// {
//   audio: Float32Array(26112) [-0.00005657337896991521, 0.00020583874720614403, ...],
//   sampling_rate: 16000
// }

Optionally, save the audio to a wav file (Node.js):

import wavefile from 'wavefile';
import fs from 'fs';

const wav = new wavefile.WaveFile();
wav.fromScratch(1, result.sampling_rate, '32f', result.audio);
fs.writeFileSync('result.wav', wav.toBuffer());

Example: Load processor, tokenizer, and models separately.

import { AutoTokenizer, AutoProcessor, SpeechT5ForTextToSpeech, SpeechT5HifiGan, Tensor } from '@xenova/transformers';

// Load the tokenizer and processor
const tokenizer = await AutoTokenizer.from_pretrained('Xenova/speecht5_tts');
const processor = await AutoProcessor.from_pretrained('Xenova/speecht5_tts');

// Load the models
// NOTE: We use the unquantized versions as they are more accurate
const model = await SpeechT5ForTextToSpeech.from_pretrained('Xenova/speecht5_tts', { quantized: false });
const vocoder = await SpeechT5HifiGan.from_pretrained('Xenova/speecht5_hifigan', { quantized: false });

// Load speaker embeddings from URL
const speaker_embeddings_data = new Float32Array(
    await (await fetch('https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/speaker_embeddings.bin')).arrayBuffer()
);
const speaker_embeddings = new Tensor(
    'float32',
    speaker_embeddings_data,
    [1, speaker_embeddings_data.length]
)

// Run tokenization
const { input_ids } = tokenizer('Hello, my dog is cute');

// Generate waveform
const { waveform } = await model.generate_speech(input_ids, speaker_embeddings, { vocoder });
console.log(waveform)
// Tensor {
//   dims: [ 26112 ],
//   type: 'float32',
//   size: 26112,
//   data: Float32Array(26112) [ -0.00043630177970044315, -0.00018082228780258447, ... ],
// }

Optionally, save the audio to a wav file (Node.js):

// Write to file (Node.js)
import wavefile from 'wavefile';
import fs from 'fs';

const wav = new wavefile.WaveFile();
wav.fromScratch(1, processor.feature_extractor.config.sampling_rate, '32f', waveform.data);
fs.writeFileSync('out.wav', wav.toBuffer());

Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using 🤗 Optimum and structuring your repo like this one (with ONNX weights located in a subfolder named onnx ).

Runs of Xenova speecht5_tts on huggingface.co

6.9K
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
-305.8K
30-day runs

More Information About speecht5_tts huggingface.co Model

speecht5_tts huggingface.co

speecht5_tts huggingface.co is an AI model on huggingface.co that provides speecht5_tts's model effect (), which can be used instantly with this Xenova speecht5_tts model. huggingface.co supports a free trial of the speecht5_tts model, and also provides paid use of the speecht5_tts. Support call speecht5_tts model through api, including Node.js, Python, http.

speecht5_tts huggingface.co Url

https://huggingface.co/Xenova/speecht5_tts

Xenova speecht5_tts online free

speecht5_tts huggingface.co is an online trial and call api platform, which integrates speecht5_tts's modeling effects, including api services, and provides a free online trial of speecht5_tts, you can try speecht5_tts online for free by clicking the link below.

Xenova speecht5_tts online free url in huggingface.co:

https://huggingface.co/Xenova/speecht5_tts

speecht5_tts install

speecht5_tts is an open source model from GitHub that offers a free installation service, and any user can find speecht5_tts on GitHub to install. At the same time, huggingface.co provides the effect of speecht5_tts install, users can directly use speecht5_tts installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

speecht5_tts install url in huggingface.co:

https://huggingface.co/Xenova/speecht5_tts

Url of speecht5_tts

speecht5_tts huggingface.co Url

Provider of speecht5_tts huggingface.co

Xenova
ORGANIZATIONS

Other API from Xenova

huggingface.co

Total runs: 521.1K
Run Growth: -180.2K
Growth Rate: -34.58%
Updated:August 28 2025
huggingface.co

Total runs: 97.2K
Run Growth: 11.6K
Growth Rate: 11.95%
Updated:December 17 2025
huggingface.co

Total runs: 78.4K
Run Growth: -34.6K
Growth Rate: -40.07%
Updated:February 11 2026
huggingface.co

Total runs: 63.9K
Run Growth: -40.2K
Growth Rate: -62.85%
Updated:December 17 2025
huggingface.co

Total runs: 52.0K
Run Growth: -254
Growth Rate: -0.49%
Updated:July 22 2025
huggingface.co

Total runs: 43.3K
Run Growth: 23.1K
Growth Rate: 53.23%
Updated:July 11 2025
huggingface.co

Total runs: 33.7K
Run Growth: 28.0K
Growth Rate: 82.63%
Updated:January 09 2026
huggingface.co

Total runs: 33.7K
Run Growth: 2.6K
Growth Rate: 7.78%
Updated:July 12 2025
huggingface.co

Total runs: 30.1K
Run Growth: 4.7K
Growth Rate: 15.68%
Updated:June 25 2025
huggingface.co

Total runs: 20.3K
Run Growth: 889
Growth Rate: 4.38%
Updated:June 30 2025
huggingface.co

Total runs: 12.8K
Run Growth: -22
Growth Rate: -0.17%
Updated:July 26 2025
huggingface.co

Total runs: 9.4K
Run Growth: -130
Growth Rate: -1.38%
Updated:October 27 2025
huggingface.co

Total runs: 9.0K
Run Growth: 249
Growth Rate: 2.78%
Updated:July 11 2025
huggingface.co

Total runs: 6.3K
Run Growth: 1.5K
Growth Rate: 24.54%
Updated:August 28 2025
huggingface.co

Total runs: 5.1K
Run Growth: 1.6K
Growth Rate: 32.11%
Updated:August 19 2025
huggingface.co

Total runs: 3.2K
Run Growth: 632
Growth Rate: 21.52%
Updated:October 08 2024
huggingface.co

Total runs: 2.7K
Run Growth: -159
Growth Rate: -5.95%
Updated:August 19 2025
huggingface.co

Total runs: 2.6K
Run Growth: 252
Growth Rate: 9.68%
Updated:July 01 2025
huggingface.co

Total runs: 2.6K
Run Growth: -189
Growth Rate: -7.35%
Updated:June 25 2025
huggingface.co

Total runs: 2.3K
Run Growth: 40
Growth Rate: 1.76%
Updated:July 22 2025
huggingface.co

Total runs: 1.9K
Run Growth: 459
Growth Rate: 24.29%
Updated:December 17 2025
huggingface.co

Total runs: 1.7K
Run Growth: 390
Growth Rate: 23.30%
Updated:July 11 2025