@mastra/voice-google-gemini-live 0.11.3 → 0.11.4
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
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @mastra/voice-google-gemini-live
|
|
2
2
|
|
|
3
|
+
## 0.11.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- dependencies updates: ([#15538](https://github.com/mastra-ai/mastra/pull/15538))
|
|
8
|
+
- Updated dependency [`ws@^8.20.0` ↗︎](https://www.npmjs.com/package/ws/v/8.20.0) (from `^8.19.0`, in `dependencies`)
|
|
9
|
+
- Updated dependencies [[`20f59b8`](https://github.com/mastra-ai/mastra/commit/20f59b876cf91199efbc49a0e36b391240708f08), [`aba393e`](https://github.com/mastra-ai/mastra/commit/aba393e2da7390c69b80e516a4f153cda6f09376), [`3d83d06`](https://github.com/mastra-ai/mastra/commit/3d83d06f776f00fb5f4163dddd32a030c5c20844), [`e2687a7`](https://github.com/mastra-ai/mastra/commit/e2687a7408790c384563816a9a28ed06735684c9), [`fdd54cf`](https://github.com/mastra-ai/mastra/commit/fdd54cf612a9af876e9fdd85e534454f6e7dd518), [`6315317`](https://github.com/mastra-ai/mastra/commit/63153175fe9a7b224e5be7c209bbebc01dd9b0d5), [`a371ac5`](https://github.com/mastra-ai/mastra/commit/a371ac534aa1bb368a1acf9d8b313378dfdc787e), [`0474c2b`](https://github.com/mastra-ai/mastra/commit/0474c2b2e7c7e1ad8691dca031284841391ff1ef), [`0a5fa1d`](https://github.com/mastra-ai/mastra/commit/0a5fa1d3cb0583889d06687155f26fd7d2edc76c), [`7e0e63e`](https://github.com/mastra-ai/mastra/commit/7e0e63e2e485e84442351f4c7a79a424c83539dc), [`ea43e64`](https://github.com/mastra-ai/mastra/commit/ea43e646dd95d507694b6112b0bf1df22ad552b2), [`f607106`](https://github.com/mastra-ai/mastra/commit/f607106854c6416c4a07d4082604b9f66d047221), [`30456b6`](https://github.com/mastra-ai/mastra/commit/30456b6b08c8fd17e109dd093b73d93b65e83bc5), [`9d11a8c`](https://github.com/mastra-ai/mastra/commit/9d11a8c1c8924eb975a245a5884d40ca1b7e0491), [`9d3b24b`](https://github.com/mastra-ai/mastra/commit/9d3b24b19407ae9c09586cf7766d38dc4dff4a69), [`00d1b16`](https://github.com/mastra-ai/mastra/commit/00d1b16b401199cb294fa23f43336547db4dca9b), [`47cee3e`](https://github.com/mastra-ai/mastra/commit/47cee3e137fe39109cf7fffd2a8cf47b76dc702e), [`62919a6`](https://github.com/mastra-ai/mastra/commit/62919a6ee0fbf3779ad21a97b1ec6696515d5104), [`d246696`](https://github.com/mastra-ai/mastra/commit/d246696139a3144a5b21b042d41c532688e957e1), [`354f9ce`](https://github.com/mastra-ai/mastra/commit/354f9ce1ca6af2074b6a196a23f8ec30012dccca), [`16e34ca`](https://github.com/mastra-ai/mastra/commit/16e34caa98b9a114b17a6125e4e3fd87f169d0d0), [`7020c06`](https://github.com/mastra-ai/mastra/commit/7020c0690b199d9da337f0e805f16948e557922e), [`8786a61`](https://github.com/mastra-ai/mastra/commit/8786a61fa54ba265f85eeff9985ca39863d18bb6), [`9467ea8`](https://github.com/mastra-ai/mastra/commit/9467ea87695749a53dfc041576410ebf9ee7bb67), [`7338d94`](https://github.com/mastra-ai/mastra/commit/7338d949380cf68b095342e8e42610dc51d557c1), [`c80dc16`](https://github.com/mastra-ai/mastra/commit/c80dc16e113e6cc159f510ffde501ad4711b2189), [`af8a57e`](https://github.com/mastra-ai/mastra/commit/af8a57ed9ba9685ad8601d5b71ae3706da6222f9), [`d63ffdb`](https://github.com/mastra-ai/mastra/commit/d63ffdbb2c11e76fe5ea45faab44bc15460f010c), [`47cee3e`](https://github.com/mastra-ai/mastra/commit/47cee3e137fe39109cf7fffd2a8cf47b76dc702e), [`1bd5104`](https://github.com/mastra-ai/mastra/commit/1bd51048b6da93507276d6623e3fd96a9e1a8944), [`e9837b5`](https://github.com/mastra-ai/mastra/commit/e9837b53699e18711b09e0ca010a4106376f2653), [`8f1b280`](https://github.com/mastra-ai/mastra/commit/8f1b280b7fe6999ec654f160cb69c1a8719e7a57), [`92dcf02`](https://github.com/mastra-ai/mastra/commit/92dcf029294210ac91b090900c1a0555a425c57a), [`0fd90a2`](https://github.com/mastra-ai/mastra/commit/0fd90a215caf5fca8099c15a67ca03e4427747a3), [`8fb2405`](https://github.com/mastra-ai/mastra/commit/8fb2405138f2d208b7962ad03f121ca25bcc28c5), [`12df98c`](https://github.com/mastra-ai/mastra/commit/12df98c4904643d9481f5c78f3bed443725b4c96)]:
|
|
10
|
+
- @mastra/core@1.26.0
|
|
11
|
+
|
|
12
|
+
## 0.11.4-alpha.0
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- dependencies updates: ([#15538](https://github.com/mastra-ai/mastra/pull/15538))
|
|
17
|
+
- Updated dependency [`ws@^8.20.0` ↗︎](https://www.npmjs.com/package/ws/v/8.20.0) (from `^8.19.0`, in `dependencies`)
|
|
18
|
+
- Updated dependencies [[`20f59b8`](https://github.com/mastra-ai/mastra/commit/20f59b876cf91199efbc49a0e36b391240708f08), [`e2687a7`](https://github.com/mastra-ai/mastra/commit/e2687a7408790c384563816a9a28ed06735684c9), [`8f1b280`](https://github.com/mastra-ai/mastra/commit/8f1b280b7fe6999ec654f160cb69c1a8719e7a57), [`12df98c`](https://github.com/mastra-ai/mastra/commit/12df98c4904643d9481f5c78f3bed443725b4c96)]:
|
|
19
|
+
- @mastra/core@1.26.0-alpha.11
|
|
20
|
+
|
|
3
21
|
## 0.11.3
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-voice-google-gemini-live
|
|
|
3
3
|
description: Documentation for @mastra/voice-google-gemini-live. Use when working with @mastra/voice-google-gemini-live APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/voice-google-gemini-live"
|
|
6
|
-
version: "0.11.
|
|
6
|
+
version: "0.11.4"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -16,7 +16,7 @@ const voiceAgent = new Agent({
|
|
|
16
16
|
id: 'voice-agent',
|
|
17
17
|
name: 'Voice Agent',
|
|
18
18
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
19
|
-
model: 'openai/gpt-5.
|
|
19
|
+
model: 'openai/gpt-5.4',
|
|
20
20
|
voice: new OpenAIVoice(),
|
|
21
21
|
})
|
|
22
22
|
```
|
|
@@ -40,7 +40,7 @@ const voiceAgent = new Agent({
|
|
|
40
40
|
id: 'voice-agent',
|
|
41
41
|
name: 'Voice Agent',
|
|
42
42
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
43
|
-
model: 'openai/gpt-5.
|
|
43
|
+
model: 'openai/gpt-5.4',
|
|
44
44
|
voice: new OpenAIVoice(),
|
|
45
45
|
})
|
|
46
46
|
|
|
@@ -68,7 +68,7 @@ const voiceAgent = new Agent({
|
|
|
68
68
|
id: 'voice-agent',
|
|
69
69
|
name: 'Voice Agent',
|
|
70
70
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
71
|
-
model: 'openai/gpt-5.
|
|
71
|
+
model: 'openai/gpt-5.4',
|
|
72
72
|
voice: new AzureVoice(),
|
|
73
73
|
})
|
|
74
74
|
|
|
@@ -95,7 +95,7 @@ const voiceAgent = new Agent({
|
|
|
95
95
|
id: 'voice-agent',
|
|
96
96
|
name: 'Voice Agent',
|
|
97
97
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
98
|
-
model: 'openai/gpt-5.
|
|
98
|
+
model: 'openai/gpt-5.4',
|
|
99
99
|
voice: new ElevenLabsVoice(),
|
|
100
100
|
})
|
|
101
101
|
|
|
@@ -122,7 +122,7 @@ const voiceAgent = new Agent({
|
|
|
122
122
|
id: 'voice-agent',
|
|
123
123
|
name: 'Voice Agent',
|
|
124
124
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
125
|
-
model: 'openai/gpt-5.
|
|
125
|
+
model: 'openai/gpt-5.4',
|
|
126
126
|
voice: new PlayAIVoice(),
|
|
127
127
|
})
|
|
128
128
|
|
|
@@ -149,7 +149,7 @@ const voiceAgent = new Agent({
|
|
|
149
149
|
id: 'voice-agent',
|
|
150
150
|
name: 'Voice Agent',
|
|
151
151
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
152
|
-
model: 'openai/gpt-5.
|
|
152
|
+
model: 'openai/gpt-5.4',
|
|
153
153
|
voice: new GoogleVoice(),
|
|
154
154
|
})
|
|
155
155
|
|
|
@@ -176,7 +176,7 @@ const voiceAgent = new Agent({
|
|
|
176
176
|
id: 'voice-agent',
|
|
177
177
|
name: 'Voice Agent',
|
|
178
178
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
179
|
-
model: 'openai/gpt-5.
|
|
179
|
+
model: 'openai/gpt-5.4',
|
|
180
180
|
voice: new CloudflareVoice(),
|
|
181
181
|
})
|
|
182
182
|
|
|
@@ -203,7 +203,7 @@ const voiceAgent = new Agent({
|
|
|
203
203
|
id: 'voice-agent',
|
|
204
204
|
name: 'Voice Agent',
|
|
205
205
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
206
|
-
model: 'openai/gpt-5.
|
|
206
|
+
model: 'openai/gpt-5.4',
|
|
207
207
|
voice: new DeepgramVoice(),
|
|
208
208
|
})
|
|
209
209
|
|
|
@@ -230,7 +230,7 @@ const voiceAgent = new Agent({
|
|
|
230
230
|
id: 'voice-agent',
|
|
231
231
|
name: 'Voice Agent',
|
|
232
232
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
233
|
-
model: 'openai/gpt-5.
|
|
233
|
+
model: 'openai/gpt-5.4',
|
|
234
234
|
voice: new SpeechifyVoice(),
|
|
235
235
|
})
|
|
236
236
|
|
|
@@ -257,7 +257,7 @@ const voiceAgent = new Agent({
|
|
|
257
257
|
id: 'voice-agent',
|
|
258
258
|
name: 'Voice Agent',
|
|
259
259
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
260
|
-
model: 'openai/gpt-5.
|
|
260
|
+
model: 'openai/gpt-5.4',
|
|
261
261
|
voice: new SarvamVoice(),
|
|
262
262
|
})
|
|
263
263
|
|
|
@@ -265,7 +265,7 @@ const { text } = await voiceAgent.generate('What color is the sky?')
|
|
|
265
265
|
|
|
266
266
|
// Convert text to speech to an Audio Stream
|
|
267
267
|
const audioStream = await voiceAgent.voice.speak(text, {
|
|
268
|
-
speaker: '
|
|
268
|
+
speaker: 'shubh', // Optional: specify a bulbul:v3 speaker
|
|
269
269
|
})
|
|
270
270
|
|
|
271
271
|
playAudio(audioStream)
|
|
@@ -284,7 +284,7 @@ const voiceAgent = new Agent({
|
|
|
284
284
|
id: 'voice-agent',
|
|
285
285
|
name: 'Voice Agent',
|
|
286
286
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
287
|
-
model: 'openai/gpt-5.
|
|
287
|
+
model: 'openai/gpt-5.4',
|
|
288
288
|
voice: new MurfVoice(),
|
|
289
289
|
})
|
|
290
290
|
|
|
@@ -319,7 +319,7 @@ const voiceAgent = new Agent({
|
|
|
319
319
|
id: 'voice-agent',
|
|
320
320
|
name: 'Voice Agent',
|
|
321
321
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
322
|
-
model: 'openai/gpt-5.
|
|
322
|
+
model: 'openai/gpt-5.4',
|
|
323
323
|
voice: new OpenAIVoice(),
|
|
324
324
|
})
|
|
325
325
|
|
|
@@ -348,7 +348,7 @@ const voiceAgent = new Agent({
|
|
|
348
348
|
id: 'voice-agent',
|
|
349
349
|
name: 'Voice Agent',
|
|
350
350
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
351
|
-
model: 'openai/gpt-5.
|
|
351
|
+
model: 'openai/gpt-5.4',
|
|
352
352
|
voice: new AzureVoice(),
|
|
353
353
|
})
|
|
354
354
|
|
|
@@ -376,7 +376,7 @@ const voiceAgent = new Agent({
|
|
|
376
376
|
id: 'voice-agent',
|
|
377
377
|
name: 'Voice Agent',
|
|
378
378
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
379
|
-
model: 'openai/gpt-5.
|
|
379
|
+
model: 'openai/gpt-5.4',
|
|
380
380
|
voice: new ElevenLabsVoice(),
|
|
381
381
|
})
|
|
382
382
|
|
|
@@ -404,7 +404,7 @@ const voiceAgent = new Agent({
|
|
|
404
404
|
id: 'voice-agent',
|
|
405
405
|
name: 'Voice Agent',
|
|
406
406
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
407
|
-
model: 'openai/gpt-5.
|
|
407
|
+
model: 'openai/gpt-5.4',
|
|
408
408
|
voice: new GoogleVoice(),
|
|
409
409
|
})
|
|
410
410
|
|
|
@@ -432,7 +432,7 @@ const voiceAgent = new Agent({
|
|
|
432
432
|
id: 'voice-agent',
|
|
433
433
|
name: 'Voice Agent',
|
|
434
434
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
435
|
-
model: 'openai/gpt-5.
|
|
435
|
+
model: 'openai/gpt-5.4',
|
|
436
436
|
voice: new CloudflareVoice(),
|
|
437
437
|
})
|
|
438
438
|
|
|
@@ -460,7 +460,7 @@ const voiceAgent = new Agent({
|
|
|
460
460
|
id: 'voice-agent',
|
|
461
461
|
name: 'Voice Agent',
|
|
462
462
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
463
|
-
model: 'openai/gpt-5.
|
|
463
|
+
model: 'openai/gpt-5.4',
|
|
464
464
|
voice: new DeepgramVoice(),
|
|
465
465
|
})
|
|
466
466
|
|
|
@@ -488,7 +488,7 @@ const voiceAgent = new Agent({
|
|
|
488
488
|
id: 'voice-agent',
|
|
489
489
|
name: 'Voice Agent',
|
|
490
490
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
491
|
-
model: 'openai/gpt-5.
|
|
491
|
+
model: 'openai/gpt-5.4',
|
|
492
492
|
voice: new SarvamVoice(),
|
|
493
493
|
})
|
|
494
494
|
|
|
@@ -520,7 +520,7 @@ const voiceAgent = new Agent({
|
|
|
520
520
|
id: 'voice-agent',
|
|
521
521
|
name: 'Voice Agent',
|
|
522
522
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
523
|
-
model: 'openai/gpt-5.
|
|
523
|
+
model: 'openai/gpt-5.4',
|
|
524
524
|
voice: new OpenAIRealtimeVoice(),
|
|
525
525
|
})
|
|
526
526
|
|
|
@@ -550,7 +550,7 @@ const voiceAgent = new Agent({
|
|
|
550
550
|
id: 'voice-agent',
|
|
551
551
|
name: 'Voice Agent',
|
|
552
552
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
553
|
-
model: 'openai/gpt-5.
|
|
553
|
+
model: 'openai/gpt-5.4',
|
|
554
554
|
voice: new GeminiLiveVoice({
|
|
555
555
|
// Live API mode
|
|
556
556
|
apiKey: process.env.GOOGLE_API_KEY,
|
|
@@ -760,12 +760,15 @@ Visit the [Speechify Voice Reference](https://mastra.ai/reference/voice/speechif
|
|
|
760
760
|
// Sarvam Voice Configuration
|
|
761
761
|
const voice = new SarvamVoice({
|
|
762
762
|
speechModel: {
|
|
763
|
-
|
|
763
|
+
model: 'bulbul:v3', // TTS model (bulbul:v2 or bulbul:v3)
|
|
764
|
+
apiKey: process.env.SARVAM_API_KEY,
|
|
765
|
+
language: 'en-IN', // BCP-47 language code
|
|
766
|
+
},
|
|
767
|
+
listeningModel: {
|
|
768
|
+
model: 'saarika:v2.5', // STT model (saarika:v2.5 or saaras:v3)
|
|
764
769
|
apiKey: process.env.SARVAM_API_KEY,
|
|
765
|
-
language: 'en-IN', // Language code
|
|
766
|
-
style: 'conversational', // Style setting
|
|
767
770
|
},
|
|
768
|
-
|
|
771
|
+
speaker: 'shubh', // Default bulbul:v3 speaker
|
|
769
772
|
})
|
|
770
773
|
```
|
|
771
774
|
|
|
@@ -844,7 +847,7 @@ const voiceAgent = new Agent({
|
|
|
844
847
|
id: 'aisdk-voice-agent',
|
|
845
848
|
name: 'AI SDK Voice Agent',
|
|
846
849
|
instructions: 'You are a helpful assistant with voice capabilities.',
|
|
847
|
-
model: 'openai/gpt-5.
|
|
850
|
+
model: 'openai/gpt-5.4',
|
|
848
851
|
voice,
|
|
849
852
|
})
|
|
850
853
|
```
|
|
@@ -32,7 +32,7 @@ const agent = new Agent({
|
|
|
32
32
|
id: 'agent',
|
|
33
33
|
name: 'OpenAI Realtime Agent',
|
|
34
34
|
instructions: `You are a helpful assistant with real-time voice capabilities.`,
|
|
35
|
-
model: 'openai/gpt-5.
|
|
35
|
+
model: 'openai/gpt-5.4',
|
|
36
36
|
voice: new OpenAIRealtimeVoice(),
|
|
37
37
|
})
|
|
38
38
|
|
|
@@ -66,7 +66,7 @@ const agent = new Agent({
|
|
|
66
66
|
name: 'Gemini Live Agent',
|
|
67
67
|
instructions: 'You are a helpful assistant with real-time voice capabilities.',
|
|
68
68
|
// Model used for text generation; voice provider handles realtime audio
|
|
69
|
-
model: 'openai/gpt-5.
|
|
69
|
+
model: 'openai/gpt-5.4',
|
|
70
70
|
voice: new GeminiLiveVoice({
|
|
71
71
|
apiKey: process.env.GOOGLE_API_KEY,
|
|
72
72
|
model: 'gemini-2.0-flash-exp',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/voice-google-gemini-live",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
4
4
|
"description": "Mastra Google Gemini Live API integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -24,29 +24,28 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@google/genai": "
|
|
28
|
-
"google-auth-library": "^10.
|
|
29
|
-
"ws": "^8.
|
|
30
|
-
"zod": "^4.3.6",
|
|
31
|
-
"zod-to-json-schema": "^3.24.6"
|
|
27
|
+
"@google/genai": "^1.45.0",
|
|
28
|
+
"google-auth-library": "^10.6.1",
|
|
29
|
+
"ws": "^8.20.0"
|
|
32
30
|
},
|
|
33
31
|
"devDependencies": {
|
|
34
|
-
"@types/node": "22.19.
|
|
32
|
+
"@types/node": "22.19.15",
|
|
35
33
|
"@types/ws": "^8.18.1",
|
|
36
|
-
"@vitest/coverage-v8": "4.
|
|
37
|
-
"@vitest/ui": "4.
|
|
38
|
-
"eslint": "^
|
|
34
|
+
"@vitest/coverage-v8": "4.1.4",
|
|
35
|
+
"@vitest/ui": "4.1.4",
|
|
36
|
+
"eslint": "^10.2.1",
|
|
39
37
|
"tsup": "^8.5.1",
|
|
40
|
-
"tsx": "
|
|
38
|
+
"tsx": "^4.21.0",
|
|
41
39
|
"typescript": "^5.9.3",
|
|
42
|
-
"vitest": "4.
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"@internal/types-builder": "0.0.
|
|
40
|
+
"vitest": "4.1.4",
|
|
41
|
+
"zod": "^4.3.6",
|
|
42
|
+
"zod-to-json-schema": "^3.25.1",
|
|
43
|
+
"@internal/types-builder": "0.0.59",
|
|
44
|
+
"@internal/lint": "0.0.84",
|
|
45
|
+
"@mastra/core": "1.26.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@mastra/core": ">=1.0.0-0 <2.0.0-0"
|
|
49
|
-
"zod": "^3.0.0"
|
|
48
|
+
"@mastra/core": ">=1.0.0-0 <2.0.0-0"
|
|
50
49
|
},
|
|
51
50
|
"homepage": "https://mastra.ai",
|
|
52
51
|
"repository": {
|