Update README.md
Browse files
README.md
CHANGED
@@ -31,7 +31,7 @@ YarnGPT is a text-to-speech (TTS) model designed to synthesize Nigerian-accented
|
|
31 |
|
32 |
|
33 |
#### How to use (Colab)
|
34 |
-
The model can generate audio on its own but its better to use a voice to prompt the model, there are about
|
35 |
- zainab
|
36 |
- jude
|
37 |
- tayo
|
@@ -42,7 +42,6 @@ The model can generate audio on its own but its better to use a voice to prompt
|
|
42 |
- umar
|
43 |
- osagie
|
44 |
- joke
|
45 |
-
- onye
|
46 |
- emma (the names do not correlate to any tribe or accent)
|
47 |
|
48 |
|
@@ -91,7 +90,7 @@ model = AutoModelForCausalLM.from_pretrained(hf_path,torch_dtype="auto").to(audi
|
|
91 |
# your input text
|
92 |
text="Uhm, so, what was the inspiration behind your latest project? Like, was there a specific moment where you were like, 'Yeah, this is it!' Or, you know, did it just kind of, uh, come together naturally over time?"
|
93 |
|
94 |
-
# creating a prompt, when creating a prompt, there is an optional `speaker_name` parameter, the possible speakers are "idera","emma","
|
95 |
prompt=audio_tokenizer.create_prompt(text,"idera")
|
96 |
|
97 |
# tokenize the prompt
|
|
|
31 |
|
32 |
|
33 |
#### How to use (Colab)
|
34 |
+
The model can generate audio on its own but its better to use a voice to prompt the model, there are about 11 voices supported by default (6 males and 5 females ):
|
35 |
- zainab
|
36 |
- jude
|
37 |
- tayo
|
|
|
42 |
- umar
|
43 |
- osagie
|
44 |
- joke
|
|
|
45 |
- emma (the names do not correlate to any tribe or accent)
|
46 |
|
47 |
|
|
|
90 |
# your input text
|
91 |
text="Uhm, so, what was the inspiration behind your latest project? Like, was there a specific moment where you were like, 'Yeah, this is it!' Or, you know, did it just kind of, uh, come together naturally over time?"
|
92 |
|
93 |
+
# creating a prompt, when creating a prompt, there is an optional `speaker_name` parameter, the possible speakers are "idera","emma","jude","osagie","tayo","zainab","joke","regina","remi","umar","chinenye" if no speaker is selected a speaker is chosen at random
|
94 |
prompt=audio_tokenizer.create_prompt(text,"idera")
|
95 |
|
96 |
# tokenize the prompt
|