mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
add
This commit is contained in:
parent
82893f589c
commit
40669fe59a
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ class TTSProvider(TTSProviderBase):
|
||||||
f.write('%s'%(json.dumps(headers,ensure_ascii=False)))
|
f.write('%s'%(json.dumps(headers,ensure_ascii=False)))
|
||||||
|
|
||||||
def yield_data(self,url,params,headers):
|
def yield_data(self,url,params,headers):
|
||||||
response = requests.get(url, headers=headers, params=params, stream=True)
|
response = requests.get(url=url, headers=headers, params=params, stream=True)
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
for chunk in response.iter_content(chunk_size=None):
|
for chunk in response.iter_content(chunk_size=None):
|
||||||
if chunk:
|
if chunk:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue