Spaces:
Running
on
Zero
Running
on
Zero
malvin noel
commited on
Commit
·
046681b
1
Parent(s):
fe4c8dd
add voices
Browse files
scripts/generate_voice.py
CHANGED
@@ -6,13 +6,13 @@ import random
|
|
6 |
pipeline = KPipeline(lang_code='a') # 'a' for English
|
7 |
|
8 |
ENGLISH_VOICES = [
|
9 |
-
"
|
10 |
-
"
|
11 |
-
"
|
12 |
-
"
|
13 |
-
"en_male"
|
14 |
]
|
15 |
|
|
|
16 |
def generate_voice(text: str, path: str):
|
17 |
for voice in random.sample(ENGLISH_VOICES, len(ENGLISH_VOICES)):
|
18 |
try:
|
|
|
6 |
pipeline = KPipeline(lang_code='a') # 'a' for English
|
7 |
|
8 |
ENGLISH_VOICES = [
|
9 |
+
"af_bella",
|
10 |
+
"af_nicole",
|
11 |
+
"am_michael",
|
12 |
+
"am_fenrir"
|
|
|
13 |
]
|
14 |
|
15 |
+
|
16 |
def generate_voice(text: str, path: str):
|
17 |
for voice in random.sample(ENGLISH_VOICES, len(ENGLISH_VOICES)):
|
18 |
try:
|