Voice_Cloning / README.md
master00gwgay-s-student's picture
Update README.md
095053f verified

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)

with open("output.wav", "wb") as f: f.write(speech.numpy()[0])
license: apache-2.0 datasets: - fka/awesome-chatgpt-prompts language: - en metrics: - accuracy base_model: Goldeath/ElevenLabs library_name: adapter-transformers