Update TextGen/router.py
Browse files- TextGen/router.py +5 -5
TextGen/router.py
CHANGED
@@ -82,11 +82,11 @@ async def generate_wav(request: Request):
|
|
82 |
voice_choice = body.get("voice_choice", "./blacksmith.mp3")
|
83 |
|
84 |
valid_voices = [
|
85 |
-
"./blacksmith.mp3",
|
86 |
-
"./female.wav",
|
87 |
-
"./female.mp3",
|
88 |
-
"./narator_out.wav",
|
89 |
-
"./blacksmith2.mp3"
|
90 |
]
|
91 |
|
92 |
if voice_choice not in valid_voices:
|
|
|
82 |
voice_choice = body.get("voice_choice", "./blacksmith.mp3")
|
83 |
|
84 |
valid_voices = [
|
85 |
+
"./voices/blacksmith.mp3",
|
86 |
+
"./voices/female.wav",
|
87 |
+
"./voices/female.mp3",
|
88 |
+
"./voices/narator_out.wav",
|
89 |
+
"./voices/blacksmith2.mp3"
|
90 |
]
|
91 |
|
92 |
if voice_choice not in valid_voices:
|