New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@livekit/agents-plugin-deepgram

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@livekit/agents-plugin-deepgram - npm Package Compare versions

Comparing version 0.4.4 to 0.4.5

11

CHANGELOG.md
# @livekit/agents-plugin-deepgram
## 0.4.5
### Patch Changes
- Use peer dependencies for @livekit/rtc-node and @livekit/agents - [#170](https://github.com/livekit/agents-js/pull/170) ([@lukasIO](https://github.com/lukasIO))
- chore(tsconfig): enable `noUncheckedIndexedAccess` - [#168](https://github.com/livekit/agents-js/pull/168) ([@nbsp](https://github.com/nbsp))
- Updated dependencies [[`f5dc9896a9eec2ba1e703d7209936bcc22d46b33`](https://github.com/livekit/agents-js/commit/f5dc9896a9eec2ba1e703d7209936bcc22d46b33), [`141519068094ca72f0fa86c4ee829ab3746bc02f`](https://github.com/livekit/agents-js/commit/141519068094ca72f0fa86c4ee829ab3746bc02f), [`6bff3b030063b2e851946b90ad9e7d981a46e2aa`](https://github.com/livekit/agents-js/commit/6bff3b030063b2e851946b90ad9e7d981a46e2aa), [`b719e7d5ffa37b541b219cd05c631483480e2103`](https://github.com/livekit/agents-js/commit/b719e7d5ffa37b541b219cd05c631483480e2103), [`1558b9bc4ed8ddc1c6b552875549a4fb96ec3802`](https://github.com/livekit/agents-js/commit/1558b9bc4ed8ddc1c6b552875549a4fb96ec3802)]:
- @livekit/agents@0.4.5
## 0.4.4

@@ -4,0 +15,0 @@

18

dist/stt.js

@@ -187,3 +187,3 @@ var _a;

this.#speaking = true;
this.queue.put({ type: stt.SpeechEventType.START_OF_SPEECH, alternatives: [] });
this.queue.put({ type: stt.SpeechEventType.START_OF_SPEECH });
break;

@@ -201,12 +201,18 @@ }

// been observed.
if (alternatives.length > 0 && alternatives[0].text) {
if (alternatives[0] && alternatives[0].text) {
if (!this.#speaking) {
this.#speaking = true;
this.queue.put({ type: stt.SpeechEventType.START_OF_SPEECH, alternatives: [] });
this.queue.put({ type: stt.SpeechEventType.START_OF_SPEECH });
}
if (isFinal) {
this.queue.put({ type: stt.SpeechEventType.FINAL_TRANSCRIPT, alternatives });
this.queue.put({
type: stt.SpeechEventType.FINAL_TRANSCRIPT,
alternatives: [alternatives[0], ...alternatives.splice(0)],
});
}
else {
this.queue.put({ type: stt.SpeechEventType.INTERIM_TRANSCRIPT, alternatives });
this.queue.put({
type: stt.SpeechEventType.INTERIM_TRANSCRIPT,
alternatives: [alternatives[0], ...alternatives.splice(0)],
});
}

@@ -219,3 +225,3 @@ }

this.#speaking = false;
this.queue.put({ type: stt.SpeechEventType.END_OF_SPEECH, alternatives: [] });
this.queue.put({ type: stt.SpeechEventType.END_OF_SPEECH });
}

@@ -222,0 +228,0 @@ break;

{
"name": "@livekit/agents-plugin-deepgram",
"version": "0.4.4",
"version": "0.4.5",
"description": "Deepgram plugin for LiveKit Agents for Node.js",

@@ -11,9 +11,13 @@ "main": "dist/index.js",

"@microsoft/api-extractor": "^7.35.0",
"@livekit/rtc-node": "^0.11.1",
"@types/ws": "^8.5.10",
"typescript": "^5.0.0"
"typescript": "^5.0.0",
"@livekit/agents": "^0.4.5"
},
"dependencies": {
"ws": "^8.16.0"
},
"peerDependencies": {
"@livekit/rtc-node": "^0.11.1",
"ws": "^8.16.0",
"@livekit/agents": "0.4.4"
"@livekit/agents": "^0.4.5"
},

@@ -20,0 +24,0 @@ "scripts": {

@@ -240,3 +240,3 @@ // SPDX-FileCopyrightText: 2024 LiveKit, Inc.

this.#speaking = true;
this.queue.put({ type: stt.SpeechEventType.START_OF_SPEECH, alternatives: [] });
this.queue.put({ type: stt.SpeechEventType.START_OF_SPEECH });
break;

@@ -256,12 +256,18 @@ }

// been observed.
if (alternatives.length > 0 && alternatives[0].text) {
if (alternatives[0] && alternatives[0].text) {
if (!this.#speaking) {
this.#speaking = true;
this.queue.put({ type: stt.SpeechEventType.START_OF_SPEECH, alternatives: [] });
this.queue.put({ type: stt.SpeechEventType.START_OF_SPEECH });
}
if (isFinal) {
this.queue.put({ type: stt.SpeechEventType.FINAL_TRANSCRIPT, alternatives });
this.queue.put({
type: stt.SpeechEventType.FINAL_TRANSCRIPT,
alternatives: [alternatives[0], ...alternatives.splice(0)],
});
} else {
this.queue.put({ type: stt.SpeechEventType.INTERIM_TRANSCRIPT, alternatives });
this.queue.put({
type: stt.SpeechEventType.INTERIM_TRANSCRIPT,
alternatives: [alternatives[0], ...alternatives.splice(0)],
});
}

@@ -275,3 +281,3 @@ }

this.#speaking = false;
this.queue.put({ type: stt.SpeechEventType.END_OF_SPEECH, alternatives: [] });
this.queue.put({ type: stt.SpeechEventType.END_OF_SPEECH });
}

@@ -278,0 +284,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc