From c1be248fa9b3de385ddf4951ddb93a3c4646b92c Mon Sep 17 00:00:00 2001 From: seven Date: Sat, 29 Mar 2025 18:27:28 +0800 Subject: [PATCH] add --- main/xiaozhi-server/core/providers/tts/linkerai.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/xiaozhi-server/core/providers/tts/linkerai.py b/main/xiaozhi-server/core/providers/tts/linkerai.py index 4d4f2dd2b..fcd66c609 100644 --- a/main/xiaozhi-server/core/providers/tts/linkerai.py +++ b/main/xiaozhi-server/core/providers/tts/linkerai.py @@ -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]