How to use microsoft/speecht5_tts with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="microsoft/speecht5_tts")
# Load model directly from transformers import AutoProcessor, AutoModelForTextToSpectrogram processor = AutoProcessor.from_pretrained("microsoft/speecht5_tts") model = AutoModelForTextToSpectrogram.from_pretrained("microsoft/speecht5_tts")
If anyone, like me is getting weird hallucinations, it turns out my issue was punctuation. I copied/pasted from a word document, and some characters just weren't recognized. Once I removed them, the hallucinations are gone.
· Sign up or log in to comment