diff --git a/utils/audio_handle/my_tts.py b/utils/audio_handle/my_tts.py index 2a1031a6..60ae2c9f 100644 --- a/utils/audio_handle/my_tts.py +++ b/utils/audio_handle/my_tts.py @@ -1102,8 +1102,16 @@ async def websocket_client_logic2(websocket, audio_tmp_path): return None - # ChatTTS + # ChatTTS (gradio_client-0.16.4,版本太低没法用喵) async def chattts_api(self, data): + """ChatTTS Gradio的API对接喵 + + Args: + data (dict): 传参数据喵 + + Returns: + str: 音频路径 + """ try: client = Client(data["gradio_ip_port"]) result = client.predict(