Skip to content

Commit

Permalink
补充ChatTTS的注释
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikaros-521 committed May 29, 2024
1 parent 68e09d1 commit 2d1fe1f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion utils/audio_handle/my_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2d1fe1f

Please sign in to comment.