@mastra/voice-speechify 0.10.0 → 0.10.1

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.
@@ -23,6 +23,14 @@ export declare class SpeechifyVoice extends MastraVoice {
23
23
  speak(input: string | NodeJS.ReadableStream, options?: {
24
24
  speaker?: string;
25
25
  } & Omit<AudioStreamRequest, 'voiceId' | 'input'>): Promise<NodeJS.ReadableStream>;
26
+ /**
27
+ * Checks if listening capabilities are enabled.
28
+ *
29
+ * @returns {Promise<{ enabled: boolean }>}
30
+ */
31
+ getListener(): Promise<{
32
+ enabled: boolean;
33
+ }>;
26
34
  listen(_input: NodeJS.ReadableStream, _options?: Record<string, unknown>): Promise<string | NodeJS.ReadableStream>;
27
35
  }
28
36
 
@@ -23,6 +23,14 @@ export declare class SpeechifyVoice extends MastraVoice {
23
23
  speak(input: string | NodeJS.ReadableStream, options?: {
24
24
  speaker?: string;
25
25
  } & Omit<AudioStreamRequest, 'voiceId' | 'input'>): Promise<NodeJS.ReadableStream>;
26
+ /**
27
+ * Checks if listening capabilities are enabled.
28
+ *
29
+ * @returns {Promise<{ enabled: boolean }>}
30
+ */
31
+ getListener(): Promise<{
32
+ enabled: boolean;
33
+ }>;
26
34
  listen(_input: NodeJS.ReadableStream, _options?: Record<string, unknown>): Promise<string | NodeJS.ReadableStream>;
27
35
  }
28
36
 
package/dist/index.cjs CHANGED
@@ -785,6 +785,14 @@ var SpeechifyVoice = class extends voice.MastraVoice {
785
785
  return nodeStream;
786
786
  }, "voice.speechify.speak")();
787
787
  }
788
+ /**
789
+ * Checks if listening capabilities are enabled.
790
+ *
791
+ * @returns {Promise<{ enabled: boolean }>}
792
+ */
793
+ async getListener() {
794
+ return { enabled: false };
795
+ }
788
796
  async listen(_input, _options) {
789
797
  throw new Error("Speechify does not support speech recognition");
790
798
  }
package/dist/index.js CHANGED
@@ -783,6 +783,14 @@ var SpeechifyVoice = class extends MastraVoice {
783
783
  return nodeStream;
784
784
  }, "voice.speechify.speak")();
785
785
  }
786
+ /**
787
+ * Checks if listening capabilities are enabled.
788
+ *
789
+ * @returns {Promise<{ enabled: boolean }>}
790
+ */
791
+ async getListener() {
792
+ return { enabled: false };
793
+ }
786
794
  async listen(_input, _options) {
787
795
  throw new Error("Speechify does not support speech recognition");
788
796
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/voice-speechify",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Mastra Speechify voice integration",
5
5
  "type": "module",
6
6
  "files": [
@@ -33,11 +33,11 @@
33
33
  "tsup": "^8.4.0",
34
34
  "typescript": "^5.8.2",
35
35
  "vitest": "^2.1.9",
36
- "@internal/lint": "0.0.6",
37
- "@mastra/core": "0.10.0"
36
+ "@internal/lint": "0.0.8",
37
+ "@mastra/core": "0.10.2"
38
38
  },
39
39
  "peerDependencies": {
40
- "@mastra/core": "^0.10.0"
40
+ "@mastra/core": "^0.10.0-alpha.0"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",