Skip to content

Commit c770d42

Browse files
committed
Add the voice clone feature of the echo-tts model to the readme page.
1 parent 497bb51 commit c770d42

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,18 @@ model = AutoInferenceModel.from_pretrained(
116116
device="cuda",
117117
)
118118

119+
# Basic text-to-speech
119120
output = model(
120121
text="Hey, here is some random stuff, the text the less likely the model can cope!",
121122
output_file="output.wav",
122123
)
124+
125+
# Voice cloning with speaker reference audio
126+
output = model(
127+
text="Hey, here is some random stuff, the text the less likely the model can cope!",
128+
speaker_audio_path="reference.wav",
129+
output_file="output_cloned.wav",
130+
)
123131
```
124132

125133
## 🤗 Contributing

0 commit comments

Comments
 (0)