master00gwgay-s-student commited on
Commit
095053f
·
verified ·
1 Parent(s): 00212f9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +23 -3
README.md CHANGED
@@ -1,3 +1,23 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import AutoModelForTextToSpeech, AutoProcessor
2
+
3
+ model_name = "speechbrain/tts-tacotron2-1jspeech"
4
+ model = AutoModelForTextToSpeech.from_pretrained(model_name)
5
+ processor = AutoProcessor.from_pretrained(model_name)
6
+
7
+ text = "Hello, world!"
8
+ inputs = processor(text, return_tensors="pt")
9
+ speech = model.generate(inputs)
10
+
11
+ with open("output.wav", "wb") as f:
12
+ f.write(speech.numpy()[0])
13
+
14
+ license: apache-2.0
15
+ datasets:
16
+ - fka/awesome-chatgpt-prompts
17
+ language:
18
+ - en
19
+ metrics:
20
+ - accuracy
21
+ base_model: Goldeath/ElevenLabs
22
+ library_name: adapter-transformers
23
+ ---