@mastra/voice-google 0.14.0-alpha.0 → 0.14.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.
- package/CHANGELOG.md +27 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @mastra/voice-google
|
|
2
2
|
|
|
3
|
+
## 0.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added support for SSML, custom pronunciations, multi-speaker markup, and Gemini-TTS model selection in `GoogleVoice.speak()`. Existing text-only usage is unchanged. ([#19425](https://github.com/mastra-ai/mastra/pull/19425))
|
|
8
|
+
|
|
9
|
+
**New `options.input` fields:** pass `ssml`, `markup`, `customPronunciations`, `multiSpeakerMarkup`, or `prompt` (for Gemini-TTS style steering) directly to the Google Cloud TTS API.
|
|
10
|
+
|
|
11
|
+
**New `options.voice` fields:** set `modelName` (e.g. `gemini-2.5-flash-preview-tts`) or `multiSpeakerVoiceConfig` alongside the default `name` and `languageCode`.
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
// SSML with custom pronunciations
|
|
15
|
+
await voice.speak('Give Metacam to the patient.', {
|
|
16
|
+
input: {
|
|
17
|
+
ssml: '<speak>Give <phoneme alphabet="ipa" ph="mɛtəˈkæm">Metacam</phoneme>.</speak>',
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// Gemini-TTS with prompt-driven styling
|
|
22
|
+
await voice.speak('Hello!', {
|
|
23
|
+
voice: { name: 'Kore', modelName: 'gemini-2.5-flash-preview-tts' },
|
|
24
|
+
input: { prompt: 'Warm, calm tone.' },
|
|
25
|
+
});
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
- Added Cloud Speech-to-Text v2 support to `GoogleVoice.listen()`. Pass `{ v2: true }` in options to use the v2 API, which supports additional audio formats like AAC-in-MP4 (iOS Safari) via `autoDecodingConfig` or `explicitDecodingConfig`. The v1 path remains the default — no breaking changes. ([#19422](https://github.com/mastra-ai/mastra/pull/19422))
|
|
29
|
+
|
|
3
30
|
## 0.14.0-alpha.0
|
|
4
31
|
|
|
5
32
|
### Minor Changes
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-voice-google
|
|
|
3
3
|
description: Documentation for @mastra/voice-google. Use when working with @mastra/voice-google APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/voice-google"
|
|
6
|
-
version: "0.14.0
|
|
6
|
+
version: "0.14.0"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/voice-google",
|
|
3
|
-
"version": "0.14.0
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Mastra Google voice integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@google-cloud/text-to-speech": "^6.4.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@types/node": "22.
|
|
31
|
+
"@types/node": "22.20.1",
|
|
32
32
|
"@vitest/coverage-v8": "4.1.10",
|
|
33
33
|
"@vitest/ui": "4.1.10",
|
|
34
34
|
"eslint": "^10.4.1",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"tsx": "^4.22.4",
|
|
37
37
|
"typescript": "^6.0.3",
|
|
38
38
|
"vitest": "4.1.10",
|
|
39
|
-
"@internal/
|
|
40
|
-
"@internal/
|
|
41
|
-
"@internal/voice": "0.0.
|
|
39
|
+
"@internal/types-builder": "0.0.89",
|
|
40
|
+
"@internal/lint": "0.0.114",
|
|
41
|
+
"@internal/voice": "0.0.14"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"zod": "^3.25.0 || ^4.0.0"
|