@mastra/voice-playai 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.
@@ -20,6 +20,14 @@ export declare class PlayAIVoice extends MastraVoice {
20
20
  speak(input: string | NodeJS.ReadableStream, options?: {
21
21
  speaker?: string;
22
22
  }): Promise<NodeJS.ReadableStream>;
23
+ /**
24
+ * Checks if listening capabilities are enabled.
25
+ *
26
+ * @returns {Promise<{ enabled: boolean }>}
27
+ */
28
+ getListener(): Promise<{
29
+ enabled: boolean;
30
+ }>;
23
31
  listen(_input: NodeJS.ReadableStream, _options?: Record<string, unknown>): Promise<string | NodeJS.ReadableStream>;
24
32
  getSpeakers(): Promise<{
25
33
  voiceId: string;
@@ -20,6 +20,14 @@ export declare class PlayAIVoice extends MastraVoice {
20
20
  speak(input: string | NodeJS.ReadableStream, options?: {
21
21
  speaker?: string;
22
22
  }): Promise<NodeJS.ReadableStream>;
23
+ /**
24
+ * Checks if listening capabilities are enabled.
25
+ *
26
+ * @returns {Promise<{ enabled: boolean }>}
27
+ */
28
+ getListener(): Promise<{
29
+ enabled: boolean;
30
+ }>;
23
31
  listen(_input: NodeJS.ReadableStream, _options?: Record<string, unknown>): Promise<string | NodeJS.ReadableStream>;
24
32
  getSpeakers(): Promise<{
25
33
  voiceId: string;
package/dist/index.cjs CHANGED
@@ -202,6 +202,14 @@ var PlayAIVoice = class extends voice.MastraVoice {
202
202
  return stream$1;
203
203
  }, "voice.playai.speak")();
204
204
  }
205
+ /**
206
+ * Checks if listening capabilities are enabled.
207
+ *
208
+ * @returns {Promise<{ enabled: boolean }>}
209
+ */
210
+ async getListener() {
211
+ return { enabled: false };
212
+ }
205
213
  async listen(_input, _options) {
206
214
  throw new Error("PlayAI does not support speech recognition");
207
215
  }
package/dist/index.js CHANGED
@@ -200,6 +200,14 @@ var PlayAIVoice = class extends MastraVoice {
200
200
  return stream;
201
201
  }, "voice.playai.speak")();
202
202
  }
203
+ /**
204
+ * Checks if listening capabilities are enabled.
205
+ *
206
+ * @returns {Promise<{ enabled: boolean }>}
207
+ */
208
+ async getListener() {
209
+ return { enabled: false };
210
+ }
203
211
  async listen(_input, _options) {
204
212
  throw new Error("PlayAI does not support speech recognition");
205
213
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/voice-playai",
3
- "version": "0.10.1-alpha.0",
3
+ "version": "0.10.2-alpha.0",
4
4
  "description": "Mastra PlayAI voice integration",
5
5
  "type": "module",
6
6
  "files": [
@@ -23,17 +23,17 @@
23
23
  },
24
24
  "license": "Elastic-2.0",
25
25
  "dependencies": {
26
- "zod": "^3.24.3"
26
+ "zod": "^3.25.56"
27
27
  },
28
28
  "devDependencies": {
29
- "@microsoft/api-extractor": "^7.52.5",
30
- "@types/node": "^20.17.27",
31
- "eslint": "^9.23.0",
32
- "tsup": "^8.4.0",
29
+ "@microsoft/api-extractor": "^7.52.8",
30
+ "@types/node": "^20.17.57",
31
+ "eslint": "^9.28.0",
32
+ "tsup": "^8.5.0",
33
33
  "typescript": "^5.8.2",
34
34
  "vitest": "^2.1.9",
35
- "@internal/lint": "0.0.7",
36
- "@mastra/core": "0.10.2-alpha.2"
35
+ "@internal/lint": "0.0.10",
36
+ "@mastra/core": "0.10.4-alpha.1"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@mastra/core": "^0.10.0-alpha.0"