@mastra/voice-playai 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.
- package/dist/_tsup-dts-rollup.d.cts +8 -0
- package/dist/_tsup-dts-rollup.d.ts +8 -0
- package/dist/index.cjs +8 -0
- package/dist/index.js +8 -0
- package/package.json +4 -4
|
@@ -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.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Mastra PlayAI voice integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"tsup": "^8.4.0",
|
|
33
33
|
"typescript": "^5.8.2",
|
|
34
34
|
"vitest": "^2.1.9",
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
35
|
+
"@mastra/core": "0.10.2",
|
|
36
|
+
"@internal/lint": "0.0.8"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@mastra/core": "^0.10.0"
|
|
39
|
+
"@mastra/core": "^0.10.0-alpha.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
|