Update TextGen/router.py
Browse files- TextGen/router.py +1 -1
TextGen/router.py
CHANGED
@@ -130,7 +130,7 @@ def determine_vocie_from_npc(npc,genre):
|
|
130 |
@app.post("/generate_wav")
|
131 |
async def generate_wav(message: VoiceMessage):
|
132 |
try:
|
133 |
-
voice =
|
134 |
audio_file_pth = handle_file(voice)
|
135 |
|
136 |
# Generator function to yield audio chunks
|
|
|
130 |
@app.post("/generate_wav")
|
131 |
async def generate_wav(message: VoiceMessage):
|
132 |
try:
|
133 |
+
voice = determine_vocie_from_npc(message.npc, message.genre)
|
134 |
audio_file_pth = handle_file(voice)
|
135 |
|
136 |
# Generator function to yield audio chunks
|