@absolutejs/voice-deepgram 0.0.15 → 0.0.16
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/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2271,6 +2271,7 @@ var resolveErrorMessage = (error) => {
|
|
|
2271
2271
|
}
|
|
2272
2272
|
return "Deepgram stream error";
|
|
2273
2273
|
};
|
|
2274
|
+
var omitUndefined = (value) => Object.fromEntries(Object.entries(value).filter(([, entry]) => entry !== undefined));
|
|
2274
2275
|
var buildLiveOptions = (config, format) => {
|
|
2275
2276
|
const options = {
|
|
2276
2277
|
channels: format.channels,
|
|
@@ -2313,7 +2314,7 @@ var buildLiveOptions = (config, format) => {
|
|
|
2313
2314
|
if (keyterm !== undefined) {
|
|
2314
2315
|
options.keyterm = keyterm;
|
|
2315
2316
|
}
|
|
2316
|
-
return options;
|
|
2317
|
+
return omitUndefined(options);
|
|
2317
2318
|
};
|
|
2318
2319
|
var openConnection = (client, config, liveOptions) => {
|
|
2319
2320
|
const listen = client.listen;
|