Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,11 @@ def infer(prompt):
|
|
| 28 |
text = "Hello, my name is Manmay , how are you?"
|
| 29 |
|
| 30 |
# with random speaker
|
| 31 |
-
output_dict = model.synthesize(text, config, speaker_id="random", voice_dirs=None)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
return "done"
|
| 34 |
|
|
|
|
| 28 |
text = "Hello, my name is Manmay , how are you?"
|
| 29 |
|
| 30 |
# with random speaker
|
| 31 |
+
#output_dict = model.synthesize(text, config, speaker_id="random", voice_dirs=None)
|
| 32 |
+
|
| 33 |
+
# cloning a speaker.
|
| 34 |
+
# It assumes that you have a speaker file in `bark_voices/speaker_n/speaker.wav` or `bark_voices/speaker_n/speaker.npz`
|
| 35 |
+
output_dict = model.synthesize(text, config, speaker_id="ljspeech", voice_dirs="voice_dirs/")
|
| 36 |
|
| 37 |
return "done"
|
| 38 |
|