YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co/docs/hub/model-cards#model-card-metadata)
from transformers import AutoModelForTextToSpeech, AutoProcessor
model_name = "speechbrain/tts-tacotron2-1jspeech" model = AutoModelForTextToSpeech.from_pretrained(model_name) processor = AutoProcessor.from_pretrained(model_name)
text = "Hello, world!" inputs = processor(text, return_tensors="pt") speech = model.generate(inputs)