Skip to content

Commit

Permalink
chattts api调用改get为post请求
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikaros-521 committed Jun 18, 2024
1 parent 50a551e commit e0304e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/audio_handle/my_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ async def chattts_api(self, data):
}

try:
return await self.download_audio("ChatTTS", data["api_ip_port"], self.timeout, "get", params)
return await self.download_audio("ChatTTS", data["api_ip_port"], self.timeout, "post", json_data=params)
except aiohttp.ClientError as e:
logging.error(traceback.format_exc())
logging.error(f'ChatTTS请求失败: {e}')
Expand Down

0 comments on commit e0304e1

Please sign in to comment.