直接上代码
- https://chat.openai.com/voice/get_token
-
- 1. 请求内容 Request:
-
- GET /voice/get_token HTTP/1.1
- Host: ios.chat.openai.com
- Content-Type: application/json
- Cookie: _puid=user***Fc9T:16962276****Nph%2Fb**SU%3D; _uasid="Z0FBQUF***nPT0="; __cf_bm=BUg**Fc9T:1696141922-jAvVI6z6wuPzpl**YXJeI%3D
- Connection: keep-alive
- OAI-Device-Id: 92CB5E4F-D5A6-4AE7-A04F-82C82BC8C9BA
- OAI-Client-Type: ios
- Accept: */*
- User-Agent: ****
- Authorization: Bearer eyJ***qA
- Accept-Language: zh-CN,zh-Hans;q=0.9
- Accept-Encoding: gzip, deflate, br
-
-
-
- 2. 响应内容 Response:
-
- HTTP/1.1 200 OK
- Date: Mon, 02 Oct 2023 06:22:14 GMT
- Content-Type: application/json
- Transfer-Encoding: chunked
- Connection: keep-alive
- strict-transport-security: max-age=31536000; includeSubDomains; preload
- CF-Cache-Status: DYNAMIC
- X-Content-Type-Options: nosniff
- Server: cloudflare
- CF-RAY: 80************eaf58-NRT
- Content-Encoding: gzip
- alt-svc: h3=":443"; ma=86400
-
- {"url":"wss://chatgpt.livekit.cloud","token":"eyJdp**C_ho","e2ee_key":"WL***2UzZR"}