Hello,
Is using this from Web Browser deprecated?
const ws = new WebSocket("wss://api.deepgram.com/v1/listen", [
"token",
"MY_TOKEN",
]);
The behavior that I have is the first request is working, I receive back the transcript text. But on the second websocket message we receive back a deprecated message instead.
Object { type: "Metadata", transaction_key: "deprecated", request_id: "26cecf1c-4d3a-4ac9-a181-3de1d5b8606e", sha256: "d92d87ee7635b24ec86adaa529060bf2df912a7f262fa147e0ada1cc15657fcf", created: "2023-10-23T18:26:42.171Z", duration: 3.7151875, channels: 1, models: (1) […], model_info: {…} }
channels: 1
created: "2023-10-23T18:26:42.171Z"
duration: 3.7151875
model_info: Object { "96a295ec-6336-43d5-b1cb-1e48b5e6d9a4": {…} }
"96a295ec-6336-43d5-b1cb-1e48b5e6d9a4": Object { name: "general", version: "2023-02-22.3", arch: "base" }
<prototype>: Object { … }
models: Array [ "96a295ec-6336-43d5-b1cb-1e48b5e6d9a4" ]
0: "96a295ec-6336-43d5-b1cb-1e48b5e6d9a4"
length: 1
<prototype>: Array []
request_id: "26cecf1c-4d3a-4ac9-a181-3de1d5b8606e"
sha256: "d92d87ee7635b24ec86adaa529060bf2df912a7f262fa147e0ada1cc15657fcf"
transaction_key: "deprecated"
type: "Metadata"
<prototype>: Object { … }
SpeechToTextDeepgram.js:94