update:优化了websocket对数据库连接的获取与释放
This commit is contained in:
1 parent
ce46c0f35b
commit
5a47440e0f
8 files changed
+91
-54
No files matched your search
@@ -38,7 +38,7 @@ def generate_xf_asr_url():
|
||||
|
||||
|
||||
def make_first_frame(buf):
|
||||
first_frame = {"common" : {"app_id":Config.XF_ASR.APP_ID},"business" : {"domain":"iat","language":"zh_cn","accent":"mandarin","vad_eos":10000},
|
||||
first_frame = {"common" : {"app_id":Config.XF_ASR.APP_ID},"business" : {"domain":"iat","language":"zh_cn","accent":"mandarin","vinfo":1,"vad_eos":1000},
|
||||
"data":{"status":0,"format":"audio/L16;rate=16000","audio":buf,"encoding":"raw"}}
|
||||
return json.dumps(first_frame)
|
||||
|
||||
|
||||
Reference in new issue
Block a user