@deepgram/sdk 4.1.1 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -19,6 +19,7 @@ Official JavaScript SDK for [Deepgram](https://www.deepgram.com/). Power your ap
|
|
|
19
19
|
- [4. Examples](#4-examples)
|
|
20
20
|
- [Change the API url used for all SDK methods](#change-the-api-url-used-for-all-sdk-methods)
|
|
21
21
|
- [Change the API url used for transcription only](#change-the-api-url-used-for-transcription-only)
|
|
22
|
+
- [Change the API url used for the Voice Agent websocket](#change-the-api-url-used-for-the-voice-agent-websocket)
|
|
22
23
|
- [Override fetch transmitter](#override-fetch-transmitter)
|
|
23
24
|
- [Proxy requests in the browser](#proxy-requests-in-the-browser)
|
|
24
25
|
- [Set custom headers for fetch](#set-custom-headers-for-fetch)
|
|
@@ -193,6 +194,20 @@ const deepgram = createClient(DEEPGRAM_API_KEY, {
|
|
|
193
194
|
});
|
|
194
195
|
```
|
|
195
196
|
|
|
197
|
+
#### Change the API url used for the Voice Agent websocket
|
|
198
|
+
|
|
199
|
+
Useful for using a voice agent proxy (for e.g. 3rd party provider auth).
|
|
200
|
+
|
|
201
|
+
```js
|
|
202
|
+
import { createClient } from "@deepgram/sdk";
|
|
203
|
+
// - or -
|
|
204
|
+
// const { createClient } = require("@deepgram/sdk");
|
|
205
|
+
|
|
206
|
+
const deepgram = createClient(DEEPGRAM_API_KEY, {
|
|
207
|
+
global: { websocket: { options: { url: "ws://localhost:8080" } } },
|
|
208
|
+
});
|
|
209
|
+
```
|
|
210
|
+
|
|
196
211
|
#### Change the API url used for transcription only
|
|
197
212
|
|
|
198
213
|
Useful for on-prem installations. Only affects requests to `/listen` endpoints.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "4.
|
|
1
|
+
export declare const version = "4.2.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/main/lib/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "4.
|
|
1
|
+
export declare const version = "4.2.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = "4.
|
|
1
|
+
export const version = "4.2.0";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
package/src/lib/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "4.
|
|
1
|
+
export const version = "4.2.0";
|