nick@nick-sager:~/workspace/doubao$ python ./connection_with_signature.py
连接地址: wss://
openspeech.bytedance.com/api/v3/asr/bigmodel
请求头: ['X-Api-', 'X-Api-', 'X-Api-Resource-Id: volc_bigasr.sauc.duration', 'X-Api-Timestamp: 1773787566', 'X-Api-Signature: 2a3e5580bc7750b64f21954e689808748d6145e4d744ef1eed7d7ca877e78bc8']
Traceback (most recent call last):
File "/home/nick/workspace/doubao/./connection_with_signature.py", line 60, in <module>
run_bigmodel_asr()
File "/home/nick/workspace/doubao/./connection_with_signature.py", line 43, in run_bigmodel_asr
ws = websocket.create_connection(url, header=headers, timeout=10)
File "/home/nick/.local/lib/python3.10/site-packages/websocket/_core.py", line 646, in create_connection
websock.connect(url, **options)
File "/home/nick/.local/lib/python3.10/site-packages/websocket/_core.py", line 261, in connect
self.handshake_response = handshake(self.sock, url, *addrs, **options)
File "/home/nick/.local/lib/python3.10/site-packages/websocket/_handshake.py", line 65, in handshake
status, resp = _get_resp_headers(sock)
File "/home/nick/.local/lib/python3.10/site-packages/websocket/_handshake.py", line 150, in _get_resp_headers
raise WebSocketBadStatusException(
websocket._exceptions.WebSocketBadStatusException: Handshake status 404 Not Found -+-+- {'server': 'Tengine', 'content-type': 'text/plain; charset=utf-8', 'content-length': '38', 'connection': 'keep-alive', 'date': 'Tue, 17 Mar 2026 22:46:07 GMT', 'x-tt-logid': '20260318064607CE8935E7320F6FDCC42B', 'api-service-host': 'fdbd:dc02:28:21c::30', 'server-timing': 'cdn-cache;desc=MISS,edge;dur=0,origin;dur=135', 'x-tt-trace-host': '01d8a5b2f2c6eb71d7b8f31898db02ae3c4d51a42d0988d0f6fffed043e2d180d5f6552f1386465f2221ecad1c0ebc705dfa11512809418cc7ae0dcb9860e7fc6216792e76368faa7d0dd6b8ce2874e1c0c27edfa0bec569ba227fc8077335ec21', 'x-tt-trace-tag': 'id=03;cdn-cache=miss;type=dyn', 'x-tt-trace-id': '00-260318064607CE8935E7320F6FDCC42B-495BDEDE6299E63A-00', 'access-control-allow-origin': '*', 'access-control-allow-credentials': 'true', 'access-control-allow-methods': 'GET, POST, OPTIONS', 'access-control-allow-headers': 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,X-Api-App-Key,': 'X-Tt-Logid,X-Api-Status-Code,X-Api-Message', 'x-alicdn-da-ups-status': 'endOs,0,404', 'via': 'cache3.cn2974[135,0]', 'timing-allow-origin': '*', 'eagleid': '7827c39717737875669307744e'} -+-+- b'Endpoint "asr/bigmodel" does not exist'
nick@nick-sager:~/workspace/doubao$
我没有添加你现在的修改部分,你看看要怎么改?