Transformers How to use hf-internal-testing/tiny-random-SpeechT5ForTextToSpeech with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-to-audio", model="hf-internal-testing/tiny-random-SpeechT5ForTextToSpeech") # Load model directly
from transformers import AutoProcessor, AutoModelForTextToSpectrogram
processor = AutoProcessor.from_pretrained("hf-internal-testing/tiny-random-SpeechT5ForTextToSpeech")
model = AutoModelForTextToSpectrogram.from_pretrained("hf-internal-testing/tiny-random-SpeechT5ForTextToSpeech")