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
c8b69a5a9d
commit
a8433d0be4
1 changed files with 3 additions and 3 deletions
|
|
@ -33,9 +33,9 @@ class TTSProvider(TTSProviderBase):
|
|||
"Authorization": f"Bearer {self.access_token}",
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
with open(output_file,'w') as f:
|
||||
f.write('%s\n'%(json.dumps(params)))
|
||||
f.write('%s'%(json.dumps(headers)))
|
||||
with open(output_file,'w',encoding='utf-8') as f:
|
||||
f.write('%s\n'%(json.dumps(params,ensure_ascii=False)))
|
||||
f.write('%s'%(json.dumps(headers,ensure_ascii=False)))
|
||||
|
||||
def yield_data(self,params,headers):
|
||||
response = requests.get(self.api_url, headers=headers, params=params, stream=True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue