File size: 571 Bytes
095053f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
---