malvin noel commited on
Commit
046681b
·
1 Parent(s): fe4c8dd

add voices

Browse files
Files changed (1) hide show
  1. scripts/generate_voice.py +5 -5
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
- "af_heart",
10
- "en_us_amy",
11
- "en_deep",
12
- "en_female",
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: