@mastra/voice-deepgram 0.10.1-alpha.0 → 0.10.2-alpha.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.
@@ -31,6 +31,14 @@ export declare class DeepgramVoice extends MastraVoice {
31
31
  speaker?: string;
32
32
  [key: string]: any;
33
33
  }): Promise<NodeJS.ReadableStream>;
34
+ /**
35
+ * Checks if listening capabilities are enabled.
36
+ *
37
+ * @returns {Promise<{ enabled: boolean }>}
38
+ */
39
+ getListener(): Promise<{
40
+ enabled: boolean;
41
+ }>;
34
42
  listen(audioStream: NodeJS.ReadableStream, options?: {
35
43
  [key: string]: any;
36
44
  }): Promise<string>;
@@ -31,6 +31,14 @@ export declare class DeepgramVoice extends MastraVoice {
31
31
  speaker?: string;
32
32
  [key: string]: any;
33
33
  }): Promise<NodeJS.ReadableStream>;
34
+ /**
35
+ * Checks if listening capabilities are enabled.
36
+ *
37
+ * @returns {Promise<{ enabled: boolean }>}
38
+ */
39
+ getListener(): Promise<{
40
+ enabled: boolean;
41
+ }>;
34
42
  listen(audioStream: NodeJS.ReadableStream, options?: {
35
43
  [key: string]: any;
36
44
  }): Promise<string>;
package/dist/index.cjs CHANGED
@@ -135,6 +135,14 @@ var DeepgramVoice = class extends voice.MastraVoice {
135
135
  return nodeStream;
136
136
  }, "voice.deepgram.speak")();
137
137
  }
138
+ /**
139
+ * Checks if listening capabilities are enabled.
140
+ *
141
+ * @returns {Promise<{ enabled: boolean }>}
142
+ */
143
+ async getListener() {
144
+ return { enabled: true };
145
+ }
138
146
  async listen(audioStream, options) {
139
147
  if (!this.listeningClient) {
140
148
  throw new Error("Deepgram listening client not configured");
package/dist/index.js CHANGED
@@ -133,6 +133,14 @@ var DeepgramVoice = class extends MastraVoice {
133
133
  return nodeStream;
134
134
  }, "voice.deepgram.speak")();
135
135
  }
136
+ /**
137
+ * Checks if listening capabilities are enabled.
138
+ *
139
+ * @returns {Promise<{ enabled: boolean }>}
140
+ */
141
+ async getListener() {
142
+ return { enabled: true };
143
+ }
136
144
  async listen(audioStream, options) {
137
145
  if (!this.listeningClient) {
138
146
  throw new Error("Deepgram listening client not configured");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/voice-deepgram",
3
- "version": "0.10.1-alpha.0",
3
+ "version": "0.10.2-alpha.0",
4
4
  "description": "Mastra Deepgram voice integration",
5
5
  "type": "module",
6
6
  "files": [
@@ -23,18 +23,18 @@
23
23
  },
24
24
  "license": "Elastic-2.0",
25
25
  "dependencies": {
26
- "@deepgram/sdk": "^3.11.2",
26
+ "@deepgram/sdk": "^3.13.0",
27
27
  "zod": "^3.24.3"
28
28
  },
29
29
  "devDependencies": {
30
- "@microsoft/api-extractor": "^7.52.5",
31
- "@types/node": "^20.17.27",
32
- "eslint": "^9.23.0",
33
- "tsup": "^8.4.0",
30
+ "@microsoft/api-extractor": "^7.52.8",
31
+ "@types/node": "^20.17.57",
32
+ "eslint": "^9.28.0",
33
+ "tsup": "^8.5.0",
34
34
  "typescript": "^5.8.2",
35
35
  "vitest": "^2.1.9",
36
- "@internal/lint": "0.0.7",
37
- "@mastra/core": "0.10.2-alpha.2"
36
+ "@internal/lint": "0.0.10",
37
+ "@mastra/core": "0.10.4-alpha.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@mastra/core": "^0.10.0-alpha.0"