@mastra/voice-openai 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.
@@ -50,6 +50,14 @@ export declare class OpenAIVoice extends MastraVoice {
50
50
  speed?: number;
51
51
  [key: string]: any;
52
52
  }): Promise<NodeJS.ReadableStream>;
53
+ /**
54
+ * Checks if listening capabilities are enabled.
55
+ *
56
+ * @returns {Promise<{ enabled: boolean }>}
57
+ */
58
+ getListener(): Promise<{
59
+ enabled: boolean;
60
+ }>;
53
61
  /**
54
62
  * Transcribes audio from a given stream using the configured listening model.
55
63
  *
@@ -50,6 +50,14 @@ export declare class OpenAIVoice extends MastraVoice {
50
50
  speed?: number;
51
51
  [key: string]: any;
52
52
  }): Promise<NodeJS.ReadableStream>;
53
+ /**
54
+ * Checks if listening capabilities are enabled.
55
+ *
56
+ * @returns {Promise<{ enabled: boolean }>}
57
+ */
58
+ getListener(): Promise<{
59
+ enabled: boolean;
60
+ }>;
53
61
  /**
54
62
  * Transcribes audio from a given stream using the configured listening model.
55
63
  *
package/dist/index.cjs CHANGED
@@ -126,6 +126,17 @@ var OpenAIVoice = class extends voice.MastraVoice {
126
126
  }, "voice.openai.speak")();
127
127
  return audio;
128
128
  }
129
+ /**
130
+ * Checks if listening capabilities are enabled.
131
+ *
132
+ * @returns {Promise<{ enabled: boolean }>}
133
+ */
134
+ async getListener() {
135
+ if (!this.listeningClient) {
136
+ return { enabled: false };
137
+ }
138
+ return { enabled: true };
139
+ }
129
140
  /**
130
141
  * Transcribes audio from a given stream using the configured listening model.
131
142
  *
package/dist/index.js CHANGED
@@ -120,6 +120,17 @@ var OpenAIVoice = class extends MastraVoice {
120
120
  }, "voice.openai.speak")();
121
121
  return audio;
122
122
  }
123
+ /**
124
+ * Checks if listening capabilities are enabled.
125
+ *
126
+ * @returns {Promise<{ enabled: boolean }>}
127
+ */
128
+ async getListener() {
129
+ if (!this.listeningClient) {
130
+ return { enabled: false };
131
+ }
132
+ return { enabled: true };
133
+ }
123
134
  /**
124
135
  * Transcribes audio from a given stream using the configured listening model.
125
136
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/voice-openai",
3
- "version": "0.10.1-alpha.0",
3
+ "version": "0.10.2-alpha.0",
4
4
  "description": "Mastra OpenAI speech integration",
5
5
  "type": "module",
6
6
  "files": [
@@ -23,18 +23,18 @@
23
23
  },
24
24
  "license": "Elastic-2.0",
25
25
  "dependencies": {
26
- "openai": "^4.89.0",
26
+ "openai": "^4.104.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"