Update README.md
Browse files
README.md
CHANGED
|
@@ -87,7 +87,7 @@ vocab_path = hf_hub_download("NMikka/F5-TTS-Georgian", "extended_vocab.txt")
|
|
| 87 |
|
| 88 |
# Load a reference sample from the training dataset
|
| 89 |
ds = load_dataset("NMikka/Common-Voice-Geo-Cleaned", split="test")
|
| 90 |
-
ref_sample = ds[
|
| 91 |
|
| 92 |
# Save reference audio to temp file (F5-TTS expects a file path)
|
| 93 |
ref_path = "/tmp/ref.wav"
|
|
@@ -105,7 +105,7 @@ model = F5TTS(
|
|
| 105 |
wav, sr, _ = model.infer(
|
| 106 |
ref_file=ref_path,
|
| 107 |
ref_text=ref_sample["text"],
|
| 108 |
-
gen_text="
|
| 109 |
)
|
| 110 |
sf.write("output.wav", wav, sr)
|
| 111 |
```
|
|
|
|
| 87 |
|
| 88 |
# Load a reference sample from the training dataset
|
| 89 |
ds = load_dataset("NMikka/Common-Voice-Geo-Cleaned", split="test")
|
| 90 |
+
ref_sample = ds[92] # Pick any sample as voice reference, but this one is the one i used while testing alot.
|
| 91 |
|
| 92 |
# Save reference audio to temp file (F5-TTS expects a file path)
|
| 93 |
ref_path = "/tmp/ref.wav"
|
|
|
|
| 105 |
wav, sr, _ = model.infer(
|
| 106 |
ref_file=ref_path,
|
| 107 |
ref_text=ref_sample["text"],
|
| 108 |
+
gen_text="แกแแฅแแ แแแแแ แแแแแแ แแแแก แแแแแแกแแแก แ แแแแแแจแ, แแแ แแแแกแ แแ แแแแแก แแแกแแงแแ แแ",
|
| 109 |
)
|
| 110 |
sf.write("output.wav", wav, sr)
|
| 111 |
```
|