This commit is contained in:
seven 2025-03-29 18:27:28 +08:00
parent a5a16cfffb
commit c1be248fa9

View file

@ -59,10 +59,10 @@ class TTSProvider(TTSProviderBase):
# print(f"错误信息: {response.text}")
async def yield_data(self,base_url:str='',params:dict={},headers:dict={}):
async def yield_data(self,url:str='',params:dict={},headers:dict={}):
async with aiohttp.ClientSession() as session:
try:
async with session.get(base_url, params=params, headers=headers,timeout=10) as response:
async with session.get(url, params=params, headers=headers,timeout=10) as response:
if response.status == 200:
async for r in response.content.iter_chunks():
yield r[0]