wrong params
Browse files- App/TTS/TTSRoutes.py +1 -1
App/TTS/TTSRoutes.py
CHANGED
|
@@ -101,7 +101,7 @@ async def search_id(req: StatusRequest):
|
|
| 101 |
async def pi_tts(req: PiTTSRequest):
|
| 102 |
if not pi.initialized:
|
| 103 |
await pi.setup()
|
| 104 |
-
return await pi.say(
|
| 105 |
|
| 106 |
|
| 107 |
@tts_router.get("/audio/{audio_name}")
|
|
|
|
| 101 |
async def pi_tts(req: PiTTSRequest):
|
| 102 |
if not pi.initialized:
|
| 103 |
await pi.setup()
|
| 104 |
+
return await pi.say(req.text, voice=req.voice)
|
| 105 |
|
| 106 |
|
| 107 |
@tts_router.get("/audio/{audio_name}")
|