Jofthomas HF Staff commited on
Commit
f3b6fe6
·
verified ·
1 Parent(s): de4606f

Update TextGen/router.py

Browse files
Files changed (1) hide show
  1. 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: