Spaces:
Build error
Build error
from transformers import pipeline | |
# Example using a model hosted on the Hugging Face Hub | |
narrator = pipeline("text-to-speech", model="kakao-enterprise/vits-ljs") | |
text = "Your input text here." | |
narrated_text = narrator(text) | |
from IPython.display import Audio as IPythonAudio | |
IPythonAudio(narrated_text["audio"][0], rate=narrated_text["sampling_rate"]) | |