@mastra/voice-deepgram 0.0.0-mastra-3338-mastra-memory-pinecone-20250507174328 → 0.0.0-mastra-auto-detect-server-20260108233416
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/CHANGELOG.md +1739 -0
- package/LICENSE.md +11 -42
- package/README.md +10 -7
- package/dist/docs/README.md +32 -0
- package/dist/docs/SKILL.md +33 -0
- package/dist/docs/SOURCE_MAP.json +6 -0
- package/dist/docs/agents/01-adding-voice.md +352 -0
- package/dist/docs/voice/01-overview.md +1019 -0
- package/dist/docs/voice/02-reference.md +62 -0
- package/dist/index.cjs +98 -61
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +52 -4
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +98 -61
- package/dist/index.js.map +1 -0
- package/dist/voices.d.ts +13 -0
- package/dist/voices.d.ts.map +1 -0
- package/package.json +35 -16
- package/dist/_tsup-dts-rollup.d.cts +0 -50
- package/dist/_tsup-dts-rollup.d.ts +0 -50
- package/dist/index.d.cts +0 -4
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/voice-deepgram",
|
|
3
|
-
"version": "0.0.0-mastra-
|
|
3
|
+
"version": "0.0.0-mastra-auto-detect-server-20260108233416",
|
|
4
4
|
"description": "Mastra Deepgram voice integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
|
-
"dist"
|
|
7
|
+
"dist",
|
|
8
|
+
"CHANGELOG.md"
|
|
8
9
|
],
|
|
9
10
|
"main": "dist/index.js",
|
|
10
11
|
"types": "dist/index.d.ts",
|
|
@@ -15,30 +16,48 @@
|
|
|
15
16
|
"default": "./dist/index.js"
|
|
16
17
|
},
|
|
17
18
|
"require": {
|
|
18
|
-
"types": "./dist/index.d.
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
19
20
|
"default": "./dist/index.cjs"
|
|
20
21
|
}
|
|
21
22
|
},
|
|
22
23
|
"./package.json": "./package.json"
|
|
23
24
|
},
|
|
24
|
-
"license": "
|
|
25
|
+
"license": "Apache-2.0",
|
|
25
26
|
"dependencies": {
|
|
26
|
-
"@deepgram/sdk": "^3.
|
|
27
|
-
"zod": "^3.24.3",
|
|
28
|
-
"@mastra/core": "0.0.0-mastra-3338-mastra-memory-pinecone-20250507174328"
|
|
27
|
+
"@deepgram/sdk": "^3.13.0"
|
|
29
28
|
},
|
|
30
29
|
"devDependencies": {
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
30
|
+
"@types/node": "22.13.17",
|
|
31
|
+
"@vitest/coverage-v8": "4.0.12",
|
|
32
|
+
"@vitest/ui": "4.0.12",
|
|
33
|
+
"eslint": "^9.37.0",
|
|
34
|
+
"tsup": "^8.5.0",
|
|
35
|
+
"typescript": "^5.9.3",
|
|
36
|
+
"vitest": "4.0.16",
|
|
37
|
+
"@internal/lint": "0.0.0-mastra-auto-detect-server-20260108233416",
|
|
38
|
+
"@internal/types-builder": "0.0.0-mastra-auto-detect-server-20260108233416",
|
|
39
|
+
"@mastra/core": "0.0.0-mastra-auto-detect-server-20260108233416"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"zod": "^3.25.0 || ^4.0.0",
|
|
43
|
+
"@mastra/core": "0.0.0-mastra-auto-detect-server-20260108233416"
|
|
44
|
+
},
|
|
45
|
+
"homepage": "https://mastra.ai",
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "git+https://github.com/mastra-ai/mastra.git",
|
|
49
|
+
"directory": "voice/deepgram"
|
|
50
|
+
},
|
|
51
|
+
"bugs": {
|
|
52
|
+
"url": "https://github.com/mastra-ai/mastra/issues"
|
|
53
|
+
},
|
|
54
|
+
"engines": {
|
|
55
|
+
"node": ">=22.13.0"
|
|
38
56
|
},
|
|
39
57
|
"scripts": {
|
|
40
|
-
"build": "tsup
|
|
41
|
-
"
|
|
58
|
+
"build": "tsup --silent --config tsup.config.ts",
|
|
59
|
+
"postbuild": "pnpx tsx ../../scripts/generate-package-docs.ts voice/deepgram",
|
|
60
|
+
"build:watch": "tsup --watch --silent --config tsup.config.ts",
|
|
42
61
|
"test": "vitest run",
|
|
43
62
|
"lint": "eslint ."
|
|
44
63
|
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { MastraVoice } from '@mastra/core/voice';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* List of available Deepgram models for text-to-speech and speech-to-text
|
|
5
|
-
*/
|
|
6
|
-
export declare const DEEPGRAM_MODELS: readonly ["aura", "whisper", "base", "enhanced", "nova", "nova-2", "nova-3"];
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* List of available Deepgram voice models for text-to-speech
|
|
10
|
-
* Each voice is designed for specific use cases and languages
|
|
11
|
-
* Format: {name}-{language} (e.g. asteria-en)
|
|
12
|
-
*/
|
|
13
|
-
export declare const DEEPGRAM_VOICES: readonly ["asteria-en", "luna-en", "stella-en", "athena-en", "hera-en", "orion-en", "arcas-en", "perseus-en", "angus-en", "orpheus-en", "helios-en", "zeus-en"];
|
|
14
|
-
|
|
15
|
-
declare type DeepgramModel = (typeof DEEPGRAM_MODELS)[number];
|
|
16
|
-
export { DeepgramModel }
|
|
17
|
-
export { DeepgramModel as DeepgramModel_alias_1 }
|
|
18
|
-
|
|
19
|
-
export declare class DeepgramVoice extends MastraVoice {
|
|
20
|
-
private speechClient?;
|
|
21
|
-
private listeningClient?;
|
|
22
|
-
constructor({ speechModel, listeningModel, speaker, }?: {
|
|
23
|
-
speechModel?: DeepgramVoiceConfig;
|
|
24
|
-
listeningModel?: DeepgramVoiceConfig;
|
|
25
|
-
speaker?: DeepgramVoiceId;
|
|
26
|
-
});
|
|
27
|
-
getSpeakers(): Promise<{
|
|
28
|
-
voiceId: "asteria-en" | "luna-en" | "stella-en" | "athena-en" | "hera-en" | "orion-en" | "arcas-en" | "perseus-en" | "angus-en" | "orpheus-en" | "helios-en" | "zeus-en";
|
|
29
|
-
}[]>;
|
|
30
|
-
speak(input: string | NodeJS.ReadableStream, options?: {
|
|
31
|
-
speaker?: string;
|
|
32
|
-
[key: string]: any;
|
|
33
|
-
}): Promise<NodeJS.ReadableStream>;
|
|
34
|
-
listen(audioStream: NodeJS.ReadableStream, options?: {
|
|
35
|
-
[key: string]: any;
|
|
36
|
-
}): Promise<string>;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export declare interface DeepgramVoiceConfig {
|
|
40
|
-
name?: DeepgramModel;
|
|
41
|
-
apiKey?: string;
|
|
42
|
-
properties?: Record<string, any>;
|
|
43
|
-
language?: string;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
declare type DeepgramVoiceId = (typeof DEEPGRAM_VOICES)[number];
|
|
47
|
-
export { DeepgramVoiceId }
|
|
48
|
-
export { DeepgramVoiceId as DeepgramVoiceId_alias_1 }
|
|
49
|
-
|
|
50
|
-
export { }
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { MastraVoice } from '@mastra/core/voice';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* List of available Deepgram models for text-to-speech and speech-to-text
|
|
5
|
-
*/
|
|
6
|
-
export declare const DEEPGRAM_MODELS: readonly ["aura", "whisper", "base", "enhanced", "nova", "nova-2", "nova-3"];
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* List of available Deepgram voice models for text-to-speech
|
|
10
|
-
* Each voice is designed for specific use cases and languages
|
|
11
|
-
* Format: {name}-{language} (e.g. asteria-en)
|
|
12
|
-
*/
|
|
13
|
-
export declare const DEEPGRAM_VOICES: readonly ["asteria-en", "luna-en", "stella-en", "athena-en", "hera-en", "orion-en", "arcas-en", "perseus-en", "angus-en", "orpheus-en", "helios-en", "zeus-en"];
|
|
14
|
-
|
|
15
|
-
declare type DeepgramModel = (typeof DEEPGRAM_MODELS)[number];
|
|
16
|
-
export { DeepgramModel }
|
|
17
|
-
export { DeepgramModel as DeepgramModel_alias_1 }
|
|
18
|
-
|
|
19
|
-
export declare class DeepgramVoice extends MastraVoice {
|
|
20
|
-
private speechClient?;
|
|
21
|
-
private listeningClient?;
|
|
22
|
-
constructor({ speechModel, listeningModel, speaker, }?: {
|
|
23
|
-
speechModel?: DeepgramVoiceConfig;
|
|
24
|
-
listeningModel?: DeepgramVoiceConfig;
|
|
25
|
-
speaker?: DeepgramVoiceId;
|
|
26
|
-
});
|
|
27
|
-
getSpeakers(): Promise<{
|
|
28
|
-
voiceId: "asteria-en" | "luna-en" | "stella-en" | "athena-en" | "hera-en" | "orion-en" | "arcas-en" | "perseus-en" | "angus-en" | "orpheus-en" | "helios-en" | "zeus-en";
|
|
29
|
-
}[]>;
|
|
30
|
-
speak(input: string | NodeJS.ReadableStream, options?: {
|
|
31
|
-
speaker?: string;
|
|
32
|
-
[key: string]: any;
|
|
33
|
-
}): Promise<NodeJS.ReadableStream>;
|
|
34
|
-
listen(audioStream: NodeJS.ReadableStream, options?: {
|
|
35
|
-
[key: string]: any;
|
|
36
|
-
}): Promise<string>;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export declare interface DeepgramVoiceConfig {
|
|
40
|
-
name?: DeepgramModel;
|
|
41
|
-
apiKey?: string;
|
|
42
|
-
properties?: Record<string, any>;
|
|
43
|
-
language?: string;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
declare type DeepgramVoiceId = (typeof DEEPGRAM_VOICES)[number];
|
|
47
|
-
export { DeepgramVoiceId }
|
|
48
|
-
export { DeepgramVoiceId as DeepgramVoiceId_alias_1 }
|
|
49
|
-
|
|
50
|
-
export { }
|
package/dist/index.d.cts
DELETED