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)