Text-to-Speech
Text-to-speech models read text aloud in a natural-sounding voice.
Inputs
Input
Welcome aboard, the train departs in five minutes.
Text-to-Speech Model
Output
Output
About Text-to-Speech
Text-to-speech models read text aloud in a natural-sounding voice. Browse text-to-speech models on HubClone to compare checkpoints, or open a Space to try one in the browser.
Use Cases
Accessibility
Read web pages aloud.
Voice products
Give assistants and games a voice.
Inference
The Transformers pipeline API runs text-to-speech models in a few lines. Replace <model-id> with any model listed on this page.
from transformers import pipeline
pipe = pipeline("text-to-speech", model="<model-id>")
pipe("Welcome aboard, the train departs in five minutes.")Useful Resources
Want to dig deeper into the topic? Great! Here is a hand-picked list of resources we found helpful.
Documentation
- Text-to-Speech task guide
- Pipelines reference
Notebooks
- Fine-tuning a text-to-speech model