TTS json
Browse files- App/TTS/TTSRoutes.py +2 -1
App/TTS/TTSRoutes.py
CHANGED
|
@@ -102,7 +102,8 @@ async def search_id(req: StatusRequest):
|
|
| 102 |
@tts_router.post("/cai_tts")
|
| 103 |
async def cai_tts(req: CharacterTTSRequest):
|
| 104 |
cai = CharacterTTS()
|
| 105 |
-
|
|
|
|
| 106 |
|
| 107 |
|
| 108 |
# @tts_router.post("/pi_tts")
|
|
|
|
| 102 |
@tts_router.post("/cai_tts")
|
| 103 |
async def cai_tts(req: CharacterTTSRequest):
|
| 104 |
cai = CharacterTTS()
|
| 105 |
+
url = await cai.say(req)
|
| 106 |
+
return {"audio": url}
|
| 107 |
|
| 108 |
|
| 109 |
# @tts_router.post("/pi_tts")
|