同步服务端的修改。

pull/3362/head
Fantasy 2 years ago committed by GitHub
parent c00173e812
commit 844d431902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -476,9 +476,9 @@ class TTSHttpHandler:
html = requests.post(self.url, json.dumps(params), stream=True) html = requests.post(self.url, json.dumps(params), stream=True)
# 3. Process the received response # 3. Process the received response
for chunk in html.iter_content(chunk_size=None): for line in html.iter_lines():
receive_time_list.append(time.time()) receive_time_list.append(time.time())
audio = base64.b64decode(chunk) # bytes audio = base64.b64decode(line) # bytes
if first_flag: if first_flag:
first_response = time.time() - st first_response = time.time() - st
first_flag = 0 first_flag = 0

Loading…
Cancel
Save